/* =========================================================
   MELISA HAIR STUDIO · RESULTADOS
   ---------------------------------------------------------
   Carrusel editorial de 10 fotografías.
   El header común se mantiene en css/header.css.
   ========================================================= */

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

/* =========================================================
   FONDO AMBIENTAL
   La imagen activa también se utiliza desenfocada detrás.
   ========================================================= */

.results-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #211812;
}

.background-image {
    position: absolute;
    inset: -45px;
    opacity: 0;

    background-position: center;
    background-size: cover;

    filter:
        blur(28px)
        brightness(0.56)
        saturate(0.72);

    transform: scale(1.10);
    transition: opacity 0.9s ease;
}

.background-image.active {
    opacity: 1;
}

.results-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(22, 14, 10, 0.72) 0%,
            rgba(22, 14, 10, 0.30) 31%,
            rgba(22, 14, 10, 0.13) 62%,
            rgba(22, 14, 10, 0.40) 100%
        ),
        linear-gradient(
            0deg,
            rgba(17, 11, 8, 0.58),
            rgba(17, 11, 8, 0.02) 55%
        );
}

/* =========================================================
   ESTRUCTURA
   ========================================================= */

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

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

.results-copy {
    position: absolute;
    z-index: 10;
    top: 12%;
    left: 5%;
    width: 31%;
}

.eyebrow {
    margin-bottom: 22px;

    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);
}

.results-copy h1 {
    margin: 0;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(47px, 4.5vw, 73px);
    font-weight: 400;
    line-height: 0.84;
    letter-spacing: -0.045em;
}

.results-copy h1 em {
    font-weight: 400;
    opacity: 0.72;
}

.results-copy p {
    margin: 21px 0 0;

    font-size: 8px;
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.72;
}

/* =========================================================
   CARRUSEL
   La foto activa es grande; las siguientes asoman a la derecha.
   ========================================================= */

.carousel-shell {
    position: absolute;
    z-index: 6;
    top: 7%;
    right: 4.5%;
    bottom: 12%;
    left: 39%;
    overflow: hidden;
}

.carousel-track {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;

    transform: translateX(0);
    transition: transform 0.85s cubic-bezier(.22, .75, .22, 1);
    will-change: transform;
}

.result-card {
    position: relative;
    flex: 0 0 24%;
    height: 72%;

    overflow: hidden;

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

    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);

    opacity: 0.58;
    transform: scale(0.91);

    transition:
        flex-basis 0.75s cubic-bezier(.22, .75, .22, 1),
        height 0.75s cubic-bezier(.22, .75, .22, 1),
        opacity 0.55s ease,
        transform 0.75s cubic-bezier(.22, .75, .22, 1),
        border-color 0.4s ease;
}

.result-card.active {
    flex-basis: 45%;
    height: 92%;
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.48);
}

.result-card img {
    width: 100%;
    height: 100%;
    display: block;

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

    transition: transform 1.3s cubic-bezier(.22, .75, .22, 1);
}

.result-card.active:hover img {
    transform: scale(1.025);
}

.card-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(17, 11, 8, 0.60),
            transparent 36%
        );
}

.card-meta {
    position: absolute;
    right: 17px;
    bottom: 16px;
    left: 17px;

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

.card-meta span {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 24px;
}

.card-meta small {
    font-size: 6px;
    letter-spacing: 0.18em;
    opacity: 0.70;
}

/* =========================================================
   FLECHAS Y CONTADOR
   ========================================================= */

.carousel-controls {
    position: absolute;
    z-index: 12;
    left: 5%;
    bottom: 16%;

    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-controls button {
    width: 43px;
    height: 43px;

    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);
    color: #fff;

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

    cursor: pointer;
    transition: background 0.25s ease;
}

.carousel-controls button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.counter {
    min-width: 110px;
    display: flex;
    align-items: center;
    gap: 11px;

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

.counter i {
    width: 43px;
    height: 1px;
    background: rgba(255, 255, 255, 0.48);
}

/* =========================================================
   ÍNDICE 01—10
   ========================================================= */

.result-index {
    position: absolute;
    z-index: 12;
    right: 4.5%;
    bottom: 5%;

    display: flex;
    gap: 6px;
}

.result-index button {
    position: relative;
    width: 31px;
    height: 31px;

    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.48);

    font-size: 6px;
    letter-spacing: 0.08em;

    cursor: pointer;
    transition: color 0.3s ease;
}

.result-index button::after {
    content: "";
    position: absolute;
    right: 7px;
    bottom: 3px;
    left: 7px;

    height: 1px;
    background: rgba(255, 255, 255, 0);

    transition: background 0.3s ease;
}

.result-index button.active {
    color: #fff;
}

.result-index button.active::after {
    background: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   CTA
   ========================================================= */

.results-book {
    position: absolute;
    z-index: 12;
    left: 5%;
    bottom: 6%;

    width: 210px;
    height: 46px;
    padding: 0 17px;

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

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

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

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

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

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

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

@media (max-width: 1150px) {
    .results-copy {
        width: 34%;
    }

    .carousel-shell {
        left: 38%;
    }

    .result-card {
        flex-basis: 28%;
    }

    .result-card.active {
        flex-basis: 48%;
    }
}

@media (max-height: 760px) {
    .results-copy {
        top: 9%;
    }

    .results-copy h1 {
        font-size: 54px;
    }

    .carousel-shell {
        top: 4%;
        bottom: 11%;
    }

    .result-card {
        height: 68%;
    }

    .result-card.active {
        height: 88%;
    }
}


/* =========================================================
   RESULTADOS · VERSIÓN MÓVIL
   Una imagen protagonista; la siguiente queda visible.
   ========================================================= */
@media (max-width: 700px) {
    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

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

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

    .results-layout {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        min-height: calc(100svh - 94px);
        padding: 32px 0 30px;
    }

    .results-copy {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        margin: 0 20px;
    }

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

    .results-copy h1 {
        max-width: 335px;
        font-size: clamp(47px, 14vw, 62px);
        line-height: 0.88;
    }

    .results-copy p {
        max-width: 300px;
        margin-top: 16px;
        font-size: 6px;
    }

    .carousel-shell {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        height: 470px;
        margin-top: 28px;
    }

    .carousel-track {
        height: 100%;
        gap: 10px;
        padding-left: 20px;
        align-items: stretch;
    }

    .result-card,
    .result-card.active {
        flex: 0 0 76vw;
        height: 100%;
        opacity: 1;
        transform: none;
    }

    .result-card:not(.active) {
        opacity: 0.48;
    }

    .carousel-controls {
        position: relative;
        left: auto;
        bottom: auto;
        width: calc(100% - 40px);
        margin: 18px 20px 0;
        justify-content: space-between;
    }

    .result-index {
        position: relative;
        right: auto;
        bottom: auto;
        width: calc(100% - 40px);
        margin: 14px 20px 0;
        justify-content: space-between;
        gap: 0;
    }

    .result-index button {
        width: 26px;
        height: 28px;
        font-size: 5.5px;
    }

    .results-book {
        position: relative;
        left: auto;
        bottom: auto;
        width: calc(100% - 40px);
        height: 51px;
        margin: 19px 20px 0;
    }
}
