/* ===================================================
   1. RESETEO Y VARIABLES GLOBALES
   =================================================== */
:root {
    --bg-dark: #0a0a0a;
    --text-light: #f4f4f4;
    --accent: #d4af37;
    --trans-speed: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 100%;
    scrollbar-width: none;
    /* Oculta la barra de scroll en Firefox */
}

body::-webkit-scrollbar {
    display: none;
    /* Oculta la barra de scroll en Chrome/Safari */
}

/* ===================================================
   2. ESTRUCTURA PRINCIPAL (SCROLL LOCK)
   =================================================== */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.screen-section {
    min-height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0px 20px;
}

/* ===================================================
   3. PANTALLA: INICIO
   =================================================== */
#inicio {
    overflow: hidden;
    padding: 80px 20px;
}

.bg-fx-container {
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80%;
    height: 70%;
    z-index: 1;
    pointer-events: none;
}

.floating-img {
    position: absolute;
    width: clamp(200px, 20vw, 350px);
    border-radius: 8px;
    object-fit: contain;
    opacity: 0;
    filter: blur(1px) brightness(0.7);
    mix-blend-mode: lighten;
    transition: opacity 2s ease-in-out, transform 8s ease-out;
}

.hero-content {
    z-index: 10;
    text-align: center;
    background: radial-gradient(circle, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0) 70%);
    padding: 40px;
    border-radius: 50%;
}

h1.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 200;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

p.slogan {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #ccc;
    font-style: italic;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-links a:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* ===================================================
   4. PANTALLA: ACERCA DE MI (SPLIT SCREEN)
   =================================================== */
#acerca {
    background-color: #111;
    padding: 0;
    overflow: hidden;
}

.acerca-split-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.acerca-left {
    flex: 1 1 50%;
    position: relative;
    background-image: url('./fts/retrato-fotografo.jpeg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.acerca-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 0.2) 50%, rgba(17, 17, 17, 0.9) 90%, rgba(17, 17, 17, 1) 100%);
}

.acerca-right {
    flex: 1 1 50%;
    background-color: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 60px;
    position: relative;
    z-index: 2;
}

.acerca-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 25px;
}

.specialty-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.acerca-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    max-width: 550px;
    margin-bottom: 40px;
}

.btn-work {
    color: var(--bg-dark);
    background-color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 16px 32px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.btn-work:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.signature {
    position: absolute;
    bottom: 40px;
    right: 60px;
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    #acerca {
        display: block;
        height: auto;
        min-height: 100vh;
        overflow-y: visible;
    }

    .acerca-split-container {
        display: block;
        width: 100%;
        height: auto;
        min-height: 100vh;
    }

    .acerca-left {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 60vh;
        z-index: 1;
        background-position: center top;
        background-size: cover;
    }

    .acerca-left::after {
        background: linear-gradient(to bottom, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 0) 40%, rgba(17, 17, 17, 0.95) 80%, rgba(17, 17, 17, 1) 100%);
    }

    .acerca-right {
        width: 100%;
        padding: 0 20px 80px 20px;
        margin-top: 50vh;
        background-color: transparent;
        z-index: 2;
        align-items: center;
        text-align: center;
    }

    .acerca-title {
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 20px;
    }

    .specialty-tags {
        justify-content: center;
        margin-bottom: 25px;
    }

    .acerca-text {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .signature {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 40px;
        font-size: 1.2rem;
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* ===================================================
   5. PANTALLA: PROYECTOS (CARRUSEL Y GRID)
   =================================================== */
#proyectos {
    background-color: #151515;
    padding: 80px 20px;
}

.carousel-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1000px) {
    .carousel-container {
        justify-content: center;
    }
}

.folders-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.folder-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.folder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
}

.cover-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.folder-card:hover .cover-wrapper {
    transform: scale(1.05);
}

.cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.folder-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    z-index: 10;
}

.folder-info h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    font-weight: 300;
}

.folder-info span {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-view-all {
    margin-top: 40px;
    display: inline-block;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-view-all:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* ===================================================
   6. PANTALLA: CONTACTO
   =================================================== */
#contacto {
    background-color: #0d0d0d;
    padding: 80px 20px;
}

.contact-container {
    display: flex;
    gap: 50px;
    max-width: 1000px;
    width: 100%;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-cards {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.card-icon {
    font-size: 2.5rem;
}

.card-info h4 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-info p {
    font-size: 0.9rem;
    color: #aaa;
}

.contact-form-wrapper {
    flex: 1 1 400px;
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.form-group label {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.dark-form input,
.dark-form select,
.dark-form textarea {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.dark-form input:focus,
.dark-form select:focus,
.dark-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.dark-form select option {
    background: var(--bg-dark);
    color: var(--text-light);
}

.dark-form textarea {
    resize: vertical;
    min-height: 60px;
}

.btn-submit {
    align-self: flex-start;
    background: var(--text-light);
    color: var(--bg-dark);
    border: none;
    padding: 15px 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

/* ===================================================
   7. HEADER Y ESTILOS ESPECÍFICOS PARA PROYECTOS.HTML
   =================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.header h1 {
    font-weight: 200;
    letter-spacing: 5px;
    color: var(--accent);
}

.btn-back {
    color: var(--text-light);
    text-decoration: none;
    border: 1px solid var(--text-light);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-back:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

/* ===================================================
   8. OVERLAYS Y LIGHTBOX (GALERÍAS)
   =================================================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 1);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--trans-speed) ease;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

#dynamic-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.25);
    z-index: -1;
}

.fixed-back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 250;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.fixed-back-btn:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

.overlay-hero-section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.overlay-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.overlay-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.gallery-title-hero {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 200;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
    animation: bounce 2s infinite;
    opacity: 0.8;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.overlay-gallery-section {
    min-height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    padding: 80px 20px;
    position: relative;
    z-index: 10;
}

.overlay-content {
    max-width: 1400px;
    margin: 0 auto;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.photo-item {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.photo-item:hover {
    transform: scale(1.03);
    opacity: 0.9;
    background-color: rgba(255, 255, 255, 0.05);
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.visible {
    opacity: 1;
    pointer-events: auto;
}

#lightbox img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    user-select: none;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 310;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 4rem;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s, transform 0.3s;
    z-index: 310;
}

.lightbox-nav:hover {
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}