/* =========================================================
   MELISA HAIR STUDIO · EL STUDIO
   ---------------------------------------------------------
   La fotografía grande muestra el salón.
   La fotografía pequeña muestra a Melisa.
   El header sigue utilizando css/header.css.
   ========================================================= */

.studio-page {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 700px;
    overflow: hidden;
    background: #241a14;
}

/* Fondo ambiental */
.studio-background {
    position: absolute;
    inset: 0;
    background: url("../images/estudio.png") center / cover no-repeat;
    transform: scale(1.02);
}

.studio-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(25, 17, 12, 0.84) 0%,
            rgba(25, 17, 12, 0.63) 29%,
            rgba(25, 17, 12, 0.25) 58%,
            rgba(25, 17, 12, 0.38) 100%
        ),
        linear-gradient(
            0deg,
            rgba(17, 11, 8, 0.50),
            rgba(17, 11, 8, 0.03) 55%
        );
}

.studio-layout {
    position: absolute;
    z-index: 4;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
}

/* =========================================================
   TEXTO
   ========================================================= */

.studio-intro {
    position: absolute;
    z-index: 8;
    top: 48%;
    left: 5%;
    width: 35%;
    transform: translateY(-50%);
}

.eyebrow {
    margin-bottom: 31px;
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 0.22em;
}

.eyebrow i {
    display: block;
    width: 42px;
    height: 1px;
    background: rgba(255, 255, 255, 0.50);
}

.chapter {
    display: block;
    margin-bottom: 17px;
    font-size: 7px;
    letter-spacing: 0.22em;
    opacity: 0.58;
}

.studio-intro h1 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(52px, 5vw, 82px);
    font-weight: 400;
    line-height: 0.84;
    letter-spacing: -0.045em;
}

.studio-intro h1 em {
    font-weight: 400;
    opacity: 0.74;
}

.lead {
    max-width: 420px;
    margin: 26px 0 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(19px, 1.45vw, 25px);
    line-height: 1.15;
}

.body-copy {
    max-width: 390px;
    margin: 19px 0 0;
    font-size: 8px;
    font-weight: 300;
    line-height: 1.9;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    opacity: 0.70;
}

.values {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 7px;
    letter-spacing: 0.19em;
    opacity: 0.68;
}

.values b {
    font-weight: 400;
}

/* =========================================================
   IMAGEN GRANDE · SALÓN
   ========================================================= */

.studio-main-photo {
    position: absolute;
    z-index: 6;
    top: 7%;
    right: 16%;
    width: 29%;
    height: 72%;
    margin: 0;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.22);
}

.studio-main-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    /* Encuadre pensado para destacar el interior del salón */
    object-position: 53% center;

    transition: transform 1.3s cubic-bezier(.2, .7, .2, 1);
}

.studio-main-photo:hover img {
    transform: scale(1.025);
}

.studio-main-photo figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 32px 23px 20px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    background: linear-gradient(
        0deg,
        rgba(22, 14, 10, 0.73),
        transparent
    );
}

.studio-main-photo figcaption span {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 25px;
}

.studio-main-photo figcaption small {
    font-size: 6px;
    letter-spacing: 0.17em;
    opacity: 0.75;
}

/* =========================================================
   IMAGEN PEQUEÑA · MELISA
   ========================================================= */

.melisa-detail {
    position: absolute;
    z-index: 7;
    top: 17%;
    right: 5%;
    width: 16%;
    height: 39%;
    margin: 0;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.27);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.melisa-detail img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: center 43%;

    transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.melisa-detail:hover img {
    transform: scale(1.035);
}

.melisa-detail figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    padding: 27px 15px 13px;

    background: linear-gradient(
        0deg,
        rgba(20, 13, 9, 0.74),
        transparent
    );
}

.melisa-detail figcaption span {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 21px;
}

.melisa-detail figcaption small {
    display: block;
    margin-top: 3px;
    font-size: 5px;
    letter-spacing: 0.15em;
    opacity: 0.70;
}

/* =========================================================
   NOTA INFERIOR
   ========================================================= */

.studio-note {
    position: absolute;
    z-index: 9;
    right: 7%;
    bottom: 11%;
    width: 26%;
    padding: 18px 20px;

    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 15px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.075);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.note-number {
    padding-top: 3px;
    font-size: 7px;
    letter-spacing: 0.18em;
    opacity: 0.62;
}

.studio-note p {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 18px;
    line-height: 1.1;
    opacity: 0.88;
}

/* CTA */
.book-experience {
    position: absolute;
    z-index: 10;
    left: 5%;
    bottom: 5.5%;
    width: 220px;
    height: 47px;
    padding: 0 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.065);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    font-size: 7px;
    letter-spacing: 0.18em;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.book-experience:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

/* =========================================================
   AJUSTES
   ========================================================= */

@media (max-width: 1150px) {
    .studio-intro {
        width: 39%;
    }

    .studio-main-photo {
        right: 14%;
        width: 31%;
    }

    .melisa-detail {
        right: 3%;
    }

    .studio-note {
        right: 4%;
    }
}

@media (max-height: 760px) {
    .studio-intro h1 {
        font-size: 56px;
    }

    .eyebrow {
        margin-bottom: 18px;
    }

    .lead {
        margin-top: 18px;
    }

    .body-copy {
        margin-top: 13px;
    }

    .values {
        margin-top: 16px;
    }

    .studio-main-photo {
        height: 68%;
    }
}


/* =========================================================
   EL STUDIO · VERSIÓN MÓVIL
   Historia -> salón -> Melisa -> nota -> CTA.
   ========================================================= */
@media (max-width: 700px) {
    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .studio-page {
        height: auto;
        min-height: 100svh;
        overflow: visible;
        padding-top: 94px;
    }

    .studio-background,
    .studio-overlay {
        position: fixed;
    }

    .studio-background {
        transform: none;
        background-position: 48% center;
    }

    .studio-layout {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        min-height: 100svh;
        padding: 38px 18px 34px;
        display: flex;
        flex-direction: column;
    }

    .studio-intro {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        transform: none;
    }

    .eyebrow {
        margin-bottom: 21px;
        font-size: 6px;
    }

    .chapter {
        margin-bottom: 13px;
        font-size: 6px;
    }

    .studio-intro h1 {
        max-width: 340px;
        font-size: clamp(46px, 14vw, 62px);
        line-height: 0.88;
    }

    .lead {
        max-width: 330px;
        margin-top: 21px;
        font-size: 21px;
    }

    .body-copy {
        max-width: 340px;
        margin-top: 17px;
        font-size: 7px;
        line-height: 1.8;
    }

    .values {
        margin-top: 20px;
        font-size: 6px;
    }

    .studio-main-photo {
        position: relative;
        top: auto;
        right: auto;
        width: calc(100% - 20px);
        height: 455px;
        margin: 38px 0 0 auto;
    }

    .melisa-detail {
        position: relative;
        z-index: 9;
        top: auto;
        right: auto;
        width: 49%;
        height: 265px;
        margin: -108px 0 0;
    }

    .studio-note {
        position: relative;
        z-index: 10;
        right: auto;
        bottom: auto;
        width: 78%;
        margin: -45px 0 0 auto;
        padding: 17px;
        grid-template-columns: 22px 1fr;
    }

    .studio-note p {
        font-size: 17px;
        line-height: 1.10;
    }

    .book-experience {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        height: 52px;
        margin-top: 31px;
    }
}
