/* =========================================
   ARIEL OAKS
   BASE CSS
========================================= */


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    background: #0b0b0b;
    color: #f2f0e9;

    font-family: Arial, Helvetica, sans-serif;

    overflow-x: hidden;
}


a {
    color: inherit;
    text-decoration: none;
}



/* =========================================
   NAVEGACIÓN
========================================= */

.nav {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 70px;

    padding: 0 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    z-index: 100;

    background: transparent;

    transition: background 0.3s ease;

}

.nav.scrolled {

    background: #0b0b0b;

}


.nav-logo {

    font-size: 16px;

    font-weight: 900;

    letter-spacing: -0.04em;

}


.nav-menu {

    display: flex;

    gap: 30px;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.1em;

}



/* =========================================
   HERO
========================================= */

.hero {

    width: 100%;

    height: 100vh;

    min-height: 700px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    overflow: hidden;


    background-image:

        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.35)
        ),

        url("images/Portada_Fondo1.webp");


    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

}


.hero-content {

    text-align: center;

}


.hero h1 {

    font-size: clamp(80px, 15vw, 230px);

    line-height: 0.75;

    font-weight: 900;

    letter-spacing: -0.08em;

    text-transform: uppercase;

}


.hero p {

    margin-top: 30px;

    font-size: 14px;

    text-transform: uppercase;

    letter-spacing: 0.25em;

    color: #d0d0d0;

}


.scroll {

    position: absolute;

    bottom: 30px;

    left: 50%;

    transform: translateX(-50%);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 0.2em;

    color: #d0d0d0;

}



/* =========================================
   SECCIONES
========================================= */

section {

    position: relative;

    min-height: 100vh;

    padding: 60px 50px;

}


.section-number {

    display: block;

    margin-bottom: 20px;

    font-size: 11px;

    letter-spacing: 0.15em;

    color: #9a9a9a;

}


section h2 {

    font-size: clamp(60px, 9vw, 140px);

    line-height: 0.8;

    font-weight: 900;

    letter-spacing: -0.07em;

    text-transform: uppercase;

}



/* =========================================
   ABOUT
========================================= */

.about {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 80px;

    background: #0b0b0b;

}


.about-image {
    width: 45%;
    max-width: 650px;
    transform: translateX(150px);
}


.about-image img {

    width: 100%;

    display: block;

    object-fit: cover;

}



.about-text {
    width: 50%;
    max-width: 700px;
    transform: translate(-60px, -25px);
}


.about .intro {

    margin-top: 80px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(30px, 4vw, 60px);

    line-height: 1.05;

}


.about-text > p:last-child {
    margin-top: 40px;
    max-width: 600px;
    font-size: 16px;
    line-height: 1.6;
    color: #9a9a9a;
}

.about-gallery {
    width: 100%;
    margin-top: 36px;
}

.about-gallery img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================
   SERVICES
========================================= */

.services {

    background-image:

        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45)
        ),

        url("images/Aboutme_Fondo.webp");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    color: #f2f0e9;

}


.services .section-number {

    color: #666;

}


.services-grid {

    margin-top: 100px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 1px;

    background: rgba(242, 240, 233, 0.35);

}


.service {

    min-height: 350px;

    padding: 30px;

    background: rgba(11, 11, 11, 0.55);

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    transition: 0.4s ease;

}


.service:hover {

    background: rgba(0, 0, 0, 0.85);

    color: #f2f0e9;

}

.service span {

    font-size: 11px;

}


.service h3 {

    font-size: clamp(30px, 4vw, 60px);

    line-height: 0.9;

    font-weight: 900;

    letter-spacing: -0.06em;

    text-transform: uppercase;

}


.service p {

    max-width: 300px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 17px;

    line-height: 1.4;

}



/* =========================================
   WORK
========================================= */

.work {
    min-height: 100svh;
    padding-top: 50px;
    padding-bottom: 30px;
    background: #0b0b0b;
}

.work > h2 {
    font-size: clamp(55px, 7vw, 100px);
}

.work-slideshow {
    width: min(100%, calc(100svh - 240px), 480px);
    margin: 24px auto 0;
}

.work-slides {
    position: relative;
}

.work-slide {
    display: none;
}

.work-slide.is-active {
    display: block;
}

.work-slide-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.work-slide-header h3 {
    font-size: clamp(28px, 4vw, 52px);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.work-slide-header p {
    max-width: 180px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    line-height: 1.35;
    color: #9a9a9a;
}

.work-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.work-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #171717;
    cursor: pointer;
}

.work-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: filter 0.2s ease;
}

.work-thumb:hover img,
.work-thumb:focus-visible img {
    filter: brightness(1.12);
}

.work-thumb.is-placeholder {
    display: grid;
    place-items: center;
    color: #9a9a9a;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: default;
}

.work-video::after {
    content: "Reproducir ▶";
    position: absolute;
    right: 9px;
    bottom: 9px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f2f0e9;
}

.work-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.work-control {
    padding: 0;
    border: 0;
    background: transparent;
    color: #f2f0e9;
    font-size: 25px;
    cursor: pointer;
}

.work-indicators {
    display: flex;
    gap: 8px;
}

.work-indicator {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid #f2f0e9;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.work-indicator.is-active {
    background: #f2f0e9;
}

.work-preview {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 300;
}

.work-preview.is-open {
    opacity: 1;
    pointer-events: auto;
}

.work-preview-content {
    position: relative;
    width: min(50vw, 900px);
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 60px);
}

.work-preview-media {
    display: grid;
    place-items: center;
    width: 100%;
    max-height: 75vh;
}

.work-preview-content img {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    display: block;
    object-fit: contain;
}

.work-preview-video {
    display: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.work-preview-content.is-video #work-preview-image {
    display: none;
}

.work-preview-content.is-video .work-preview-video {
    display: block;
}

.work-preview-close {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    padding: 0;
    border: 0;
    background: transparent;
    color: #f2f0e9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

body.preview-open {
    overflow: hidden;
}



/* =========================================
   PERSONAL WORK
========================================= */

.personal {

    background: #12383d;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

}


.personal h2 {

    font-size: clamp(70px, 12vw, 180px);

}


.personal p {

    max-width: 600px;

    margin-top: 70px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 22px;

    line-height: 1.4;

}



/* =========================================
   ANALOG
========================================= */

.analog {

    background: #0b0b0b;

    display: flex;

    flex-direction: column;

    justify-content: center;

}


.analog p {

    max-width: 900px;

    margin-top: 100px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(35px, 5vw, 75px);

    line-height: 1.05;

}



/* =========================================
   CONTACT
========================================= */

.contact {

    min-height: 80vh;

    background: #6e1717;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

}


.contact h2 {

    font-size: clamp(80px, 15vw, 220px);

}


.contact-links {

    display: flex;

    gap: 30px;

}


.contact-links a {

    padding-bottom: 5px;

    border-bottom: 1px solid currentColor;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 0.1em;

}



/* =========================================
   FOOTER
========================================= */

footer {

    padding: 30px 50px;

    display: flex;

    justify-content: space-between;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 0.1em;

    color: #9a9a9a;

}



/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    section {
        padding: 50px 30px;
    }

    .about {
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
    }

    .about-image {
        width: 100%;
        max-width: 600px;
        transform: none;
    }

    .about-text {
        width: 100%;
        transform: none;
    }

    .about-gallery {
        width: 100%;
        margin-top: 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

        .work {
        padding-top: 60px;
        padding-bottom: 30px;
    }

    .work > h2 {
        font-size: clamp(50px, 9vw, 75px);
    }

    .work-slideshow {
        width: min(100%, calc(100svh - 260px), 520px);
        margin-top: 20px;
    }

    .work-slide-header {
        gap: 16px;
        margin-bottom: 14px;
    }

    .work-slide-header h3 {
        font-size: clamp(28px, 5vw, 48px);
    }

    .work-slide-header p {
        max-width: 190px;
        font-size: 14px;
    }

    .work-preview-content {
        width: min(65vw, 700px);
    }

}



/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .nav {
        padding: 0 15px;
    }

    .nav-menu {
        gap: 12px;
        font-size: 8px;
    }

    section {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 21vw;
    }

    .about {
        display: block;
    }

    .about-image,
    .about-text {
        width: 100%;
    }

    .about-image {
        transform: none;
    }

    .about-text {
        margin-top: 50px;
        transform: none;
    }

    .about .intro {
        margin-top: 50px;
    }

    .about-gallery {
        margin-top: 36px;
    }

    .work-grid {
        margin-top: 60px;
        display: block;
    }

    .project {
        margin-bottom: 50px;
    }

    .project-image {
        height: 350px;
    }

    .personal h2 {
        font-size: 19vw;
    }

    .contact h2 {
        font-size: 21vw;
    }

    footer {
        padding: 25px 15px;
        flex-direction: column;
        gap: 10px;
    }

        .project-collage {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(6, 1fr);
        aspect-ratio: 3 / 5;
    }

    .work-media:nth-child(1) {
        grid-column: span 2;
        grid-row: span 3;
    }

    .work-media:nth-child(2) {
        grid-column: auto;
    }

    .work-media:nth-child(4) {
        grid-row: auto;
    }

    .work-media:nth-child(9) {
        grid-column: span 3;
    }

        .work {
        padding-top: 70px;
        padding-bottom: 30px;
    }

    .work-slideshow {
        width: min(100%, calc(100svh - 220px));
    }

    .work-slide-header {
        display: block;
    }

    .work-slide-header p {
        margin-top: 10px;
    }

    .work-preview-content {
        width: min(82vw, 520px);
    }

}

/* =========================================
   ACTUALIZACIONES — SELECTED WORK
========================================= */

/* La previsualización ocupa 25% en computadora. */
.work-preview-content {
    width: min(25vw, 460px);
}

/* Las miniaturas de video son elementos enlazados. */
.work-thumb {
    display: block;
    color: inherit;
}

.work-thumb video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* La leyenda solo aparece en videos que tienen enlace externo. */
.work-video.is-linked::after {
    content: "Ver video ↗";
}

/* Política usa dos videos verticales, no nueve cuadros. */
.work-gallery-politics {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.work-gallery-politics .work-thumb {
    width: auto;
    max-height: min(52svh, 500px);
    aspect-ratio: 600 / 1280;
    justify-self: center;
}


/* =========================================
   PERSONAL WORK
========================================= */

.personal {
    background: #003541;
}


/* =========================================
   ALTERNATE WORK / ANALOG
========================================= */

.analog {
    min-height: 100svh;
    padding-top: 90px;
    padding-bottom: 45px;
    background: #0b0b0b;
    display: flex;
    align-items: center;
}

.alternate-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
    align-items: center;
    gap: clamp(50px, 8vw, 140px);
}

.alternate-copy h2 {
    font-size: clamp(60px, 8vw, 125px);
}

.alternate-copy p {
    max-width: 480px;
    margin-top: 42px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 45px);
    line-height: 1.08;
    color: #d0d0d0;
}

.alternate-slideshow {
    width: min(100%, 700px);
    justify-self: end;
}

.alternate-slide {
    display: none;
}

.alternate-slide.is-active {
    display: block;
}

.alternate-gallery {
    display: grid;
    gap: 6px;
}

.alternate-gallery-analog {
    grid-template-columns: repeat(3, 1fr);
}

.alternate-gallery-reels {
    grid-template-columns: repeat(3, 1fr);
}

.alternate-gallery-music {
    grid-template-columns: repeat(2, 1fr);
}

.alternate-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #171717;
    color: inherit;
    cursor: pointer;
}

.alternate-media img,
.alternate-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: filter 0.2s ease;
}

.alternate-media:hover img,
.alternate-media:hover video,
.alternate-media:focus-visible img,
.alternate-media:focus-visible video {
    filter: brightness(1.12);
}

.alternate-media.is-video::after {
    content: "Ver video ↗";
    position: absolute;
    right: 9px;
    bottom: 9px;
    color: #f2f0e9;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.alternate-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.alternate-control {
    padding: 0;
    border: 0;
    background: transparent;
    color: #f2f0e9;
    font-size: 25px;
    cursor: pointer;
}

.alternate-indicators {
    display: flex;
    gap: 8px;
}

.alternate-indicator {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid #f2f0e9;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.alternate-indicator.is-active {
    background: #f2f0e9;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .work-preview-content {
        width: min(45vw, 460px);
    }

    .alternate-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .alternate-slideshow {
        width: min(100%, 620px);
        justify-self: start;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .work-preview-content {
        width: min(82vw, 520px);
    }

    .analog {
        min-height: auto;
        padding-top: 85px;
        padding-bottom: 45px;
    }

    .alternate-copy p {
        margin-top: 28px;
        font-size: 28px;
    }

    .alternate-gallery-reels {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-gallery-politics .work-thumb {
        max-height: 360px;
    }

}

/* =========================================
   FONDOS FOTOGRÁFICOS Y ALTENATE WORK FIJO
========================================= */

/* Personal Work ahora usa la fotografía nueva como fondo. */
.personal {
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.42),
            rgba(0, 0, 0, 0.42)
        ),
        url("images/Aboutme_Fondo_02.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Contact ahora usa una fotografía como fondo. */
.contact {
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.42),
            rgba(0, 0, 0, 0.42)
        ),
        url("images/Aboutme_Fondo_03.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/*
Evita que Alternate Work cambie de altura cuando
el slideshow pasa de Analog a Reels o Videos Musicales.
*/
.alternate-slides {
    aspect-ratio: 1 / 1;
}

.alternate-slide {
    height: 100%;
}

.alternate-slide.is-active {
    display: flex;
    align-items: center;
}

.alternate-gallery {
    width: 100%;
}
