/* =========================================================
   MELISA HAIR STUDIO · CONTACTO
   ---------------------------------------------------------
   Página editorial, limpia y sin formulario innecesario.
   En escritorio se mantiene en una pantalla.
   En móvil pasa a composición vertical.
   ========================================================= */

.contact-page {
    position: relative;
    width: 100%;
    height: calc(100svh - 54px);
    min-height: 690px;
    overflow: hidden;
    background: #241a14;
}

/* =========================================================
   FONDO
   Reutilizamos estudio.png para mantener identidad visual.
   ========================================================= */

.contact-background {
    position: absolute;
    inset: 0;

    background:
        url("../images/estudio.webp")
        center 54% / cover
        no-repeat;

    transform: scale(1.025);
}

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

    background:
        linear-gradient(
            90deg,
            rgba(25, 17, 12, 0.87) 0%,
            rgba(25, 17, 12, 0.65) 34%,
            rgba(25, 17, 12, 0.30) 66%,
            rgba(25, 17, 12, 0.48) 100%
        ),
        linear-gradient(
            0deg,
            rgba(16, 10, 7, 0.55),
            rgba(16, 10, 7, 0.03) 60%
        );
}

/* =========================================================
   COMPOSICIÓN
   ========================================================= */

.contact-layout {
    position: absolute;
    z-index: 3;

    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
}

.contact-intro {
    position: absolute;

    top: 47%;
    left: 5%;
    width: 39%;

    transform: translateY(-50%);
}

.contact-eyebrow {
    margin-bottom: 30px;

    display: flex;
    align-items: center;
    gap: 13px;

    font-size: 7px;
    font-weight: 500;
    letter-spacing: 0.22em;
}

.contact-eyebrow i {
    width: 42px;
    height: 1px;

    display: block;

    background: rgba(255, 255, 255, 0.50);
}

.contact-chapter {
    display: block;

    margin-bottom: 17px;

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

    opacity: 0.58;
}

.contact-intro h1 {
    max-width: 610px;

    margin: 0;

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

.contact-intro h1 em {
    font-weight: 400;
    opacity: 0.72;
}

.contact-lead {
    max-width: 430px;

    margin: 27px 0 0;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(18px, 1.4vw, 24px);
    line-height: 1.18;

    opacity: 0.88;
}

/* =========================================================
   TARJETA DE CONTACTO
   ========================================================= */

.contact-card {
    position: absolute;

    top: 13%;
    right: 5%;

    width: 38%;
    min-height: 58%;

    padding: 25px 30px 28px;

    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 17px;

    border: 1px solid rgba(255, 255, 255, 0.28);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.11),
            rgba(255, 255, 255, 0.045)
        );

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

    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.16);
}

.contact-card-number {
    padding-top: 5px;

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

    opacity: 0.58;
}

.contact-card-content {
    display: flex;
    flex-direction: column;
}

.contact-label {
    margin-bottom: 20px;

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

    opacity: 0.66;
}

.contact-line {
    position: relative;

    min-height: 100px;
    padding: 20px 45px 20px 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-top: 1px solid rgba(255, 255, 255, 0.18);

    transition:
        padding-left 0.3s ease,
        background 0.3s ease;
}

.contact-line:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-line:hover {
    padding-left: 10px;

    background: rgba(255, 255, 255, 0.035);
}

.contact-line small {
    margin-bottom: 7px;

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

    opacity: 0.58;
}

.contact-line strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(22px, 1.75vw, 30px);
    font-weight: 400;
    line-height: 1.05;
}

.contact-line b {
    position: absolute;

    top: 50%;
    right: 5px;

    font-size: 15px;
    font-weight: 300;

    transform: translateY(-50%);
}

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

.contact-book {
    position: absolute;

    right: 5%;
    bottom: 6%;

    width: 260px;
    height: 49px;
    padding: 0 18px;

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

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

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) and (min-width: 701px) {
    .contact-intro {
        width: 43%;
    }

    .contact-card {
        width: 42%;
    }
}

/* =========================================================
   CONTACTO · MÓVIL
   ---------------------------------------------------------
   El contenido pasa al flujo vertical para evitar cualquier
   solapamiento y conservar una lectura editorial limpia.
   ========================================================= */

@media (max-width: 700px) {
    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .contact-page {
        height: auto;
        min-height: 100svh;

        padding-top: 94px;

        overflow: visible;
    }

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

    .contact-background {
        transform: none;
        background-position: 51% center;
    }

    .contact-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(26, 18, 13, 0.60),
                rgba(26, 18, 13, 0.74) 48%,
                rgba(18, 12, 9, 0.92)
            );
    }

    .contact-layout {
        position: relative;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        padding: 38px 18px 35px;
    }

    .contact-intro {
        position: relative;

        top: auto;
        left: auto;

        width: 100%;

        transform: none;
    }

    .contact-eyebrow {
        margin-bottom: 22px;

        font-size: 6px;
    }

    .contact-chapter {
        margin-bottom: 13px;

        font-size: 6px;
    }

    .contact-intro h1 {
        max-width: 345px;

        font-size: clamp(48px, 14vw, 64px);
        line-height: 0.88;
    }

    .contact-lead {
        max-width: 335px;

        margin-top: 22px;

        font-size: 20px;
    }

    .contact-card {
        position: relative;

        top: auto;
        right: auto;

        width: 100%;
        min-height: 0;

        margin-top: 38px;
        padding: 20px 18px 22px;

        grid-template-columns: 25px 1fr;
        gap: 11px;
    }

    .contact-card-number,
    .contact-label {
        font-size: 6px;
    }

    .contact-line {
        min-height: 91px;
        padding: 17px 35px 17px 0;
    }

    .contact-line strong {
        font-size: 24px;
    }

    .contact-book {
        position: relative;

        right: auto;
        bottom: auto;

        width: 100%;
        height: 52px;

        margin-top: 24px;
    }
}
