/* contact: estilos migrados preservando el diseño original. */

/* ==========================================================
   ANTHORIA — CONTACT EXPERIENCE
   ========================================================== */

body.contact-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: #f4ede2;
}

body.contact-page.contact-form-open {
    overflow: hidden;
}

body.contact-page header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;
    width: 100%;
    background: transparent;
}

body.contact-page main {
    min-height: 100vh;
    padding: 0;
    background: transparent;
}

/* ==========================================================
   MAIN EXPERIENCE
   ========================================================== */

body.contact-page main>.contact-experience {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 128px 48px 54px;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(circle at 13% 22%,
            rgba(183, 138, 61, 0.18),
            transparent 30%),
        radial-gradient(circle at 88% 76%,
            rgba(221, 181, 108, 0.17),
            transparent 34%),
        linear-gradient(145deg,
            #fffdf9 0%,
            #f5efe5 48%,
            #eadcc7 100%);
}

/* Completa el fondo en escritorios compactos sin desplazar el contenido. */
@media (min-width: 981px) and (max-width: 1599px) {
    body.contact-page main>.contact-experience {
        min-height: calc(100vh / 0.9);
    }

    body.contact-page .contact-layout {
        transform: translateY(calc(-100vh / 18));
    }
}

body.contact-page main>.contact-experience::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: 0.28;

    background-image:
        linear-gradient(rgba(152, 101, 31, 0.075) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(152, 101, 31, 0.075) 1px,
            transparent 1px);

    background-size: 54px 54px;

    mask-image:
        linear-gradient(to bottom,
            transparent 2%,
            #000 24%,
            #000 78%,
            transparent 100%);

    -webkit-mask-image:
        linear-gradient(to bottom,
            transparent 2%,
            #000 24%,
            #000 78%,
            transparent 100%);

    pointer-events: none;
}

body.contact-page main>.contact-experience::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -2;
    width: min(980px, 76vw);
    aspect-ratio: 1;
    border: 1px solid rgba(183, 138, 61, 0.10);
    border-radius: 50%;

    box-shadow:
        0 0 0 90px rgba(183, 138, 61, 0.035),
        0 0 0 190px rgba(183, 138, 61, 0.025);

    transform: translate(-50%, -50%);
    pointer-events: none;
}

body.contact-page .contact-ambient {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(183, 138, 61, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

body.contact-page .contact-ambient-one {
    top: 15%;
    left: 5%;
    width: 220px;
    height: 220px;
}

body.contact-page .contact-ambient-two {
    right: 4%;
    bottom: 5%;
    width: 340px;
    height: 340px;
}

body.contact-page .contact-ambient-three {
    top: 19%;
    right: 17%;
    width: 74px;
    height: 74px;
    background: rgba(255, 255, 255, 0.18);

    box-shadow:
        0 0 0 18px rgba(183, 138, 61, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

/* ==========================================================
   LAYOUT
   ========================================================== */

body.contact-page .contact-layout {
    position: relative;
    z-index: 2;
    display: grid;

    grid-template-columns:
        minmax(0, 0.88fr) minmax(520px, 1.12fr);

    align-items: center;
    gap: clamp(56px, 7vw, 112px);
    width: min(1240px, 100%);
    margin: auto;
}

/* ==========================================================
   INTRODUCTION
   ========================================================== */

body.contact-page .contact-introduction-panel {
    max-width: 520px;
}

body.contact-page .contact-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: #9d7132;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

body.contact-page .contact-kicker>span {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b78a3d;
    box-shadow: 0 0 0 6px rgba(183, 138, 61, 0.11);
}

body.contact-page .contact-kicker>span::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(183, 138, 61, 0.34);
    border-radius: inherit;
    animation: contactPulse 2.4s ease-out infinite;
}

body.contact-page .contact-introduction-panel h1 {
    max-width: 620px;
    margin: 0;
    color: #2d2924;
    font-size: clamp(3.6rem, 5.3vw, 6rem);
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -0.04em;
}

body.contact-page .contact-introduction-panel h1 span {
    display: block;
    margin-top: 12px;
    color: #a97835;
    font-style: italic;
}

body.contact-page .contact-introduction {
    max-width: 500px;
    margin: 30px 0 34px;
    color: rgba(45, 41, 36, 0.70);
    font-size: 0.96rem;
    line-height: 1.8;
}

body.contact-page .contact-details {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
    max-width: 520px;
    padding-top: 24px;
    border-top: 1px solid rgba(183, 138, 61, 0.30);
}

body.contact-page .contact-detail {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

body.contact-page .contact-detail span {
    color: rgba(45, 41, 36, 0.52);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.contact-page .contact-detail strong {
    color: #5f4b30;
    font-size: 0.79rem;
    font-weight: 600;
    line-height: 1.5;
}

/* ==========================================================
   LEGAL LINKS
   ========================================================== */

body.contact-page .contact-legal-links {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: max-content;
    margin: 0;

    transform: translateX(-50%);
}

body.contact-page .contact-legal-link {
    appearance: none;
    -webkit-appearance: none;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;
    outline: 0;

    color: #a97835;
    background: transparent;
    box-shadow: none;

    font-family: "Montserrat", sans-serif;
    font-size: 0.66rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.03em;

    cursor: pointer;
}

body.contact-page .contact-legal-separator {
    color: #5f4b30;
    font-size: 0.66rem;
    opacity: 0.55;
}

body.contact-page .contact-legal-link:hover {
    color: #5f4b30;
}

body.contact-page .contact-legal-link:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

/* ==========================================================
   COMMUNICATION PANEL
   ========================================================== */

body.contact-page .contact-command-panel {
    position: relative;
    width: 100%;
    padding: 34px;
    border: 1px solid rgba(183, 138, 61, 0.54);
    border-radius: 28px;

    background:
        radial-gradient(circle at 100% 0%,
            rgba(221, 181, 108, 0.18),
            transparent 35%),
        linear-gradient(145deg,
            rgba(255, 253, 249, 0.93),
            rgba(239, 227, 207, 0.86));

    box-shadow:
        0 38px 100px rgba(63, 44, 20, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);

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

body.contact-page .contact-command-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 1px;

    background:
        linear-gradient(90deg,
            transparent,
            #d8a756,
            transparent);

    box-shadow:
        0 0 16px rgba(185, 130, 39, 0.48);
}

body.contact-page .contact-command-panel::after {
    content: "";
    position: absolute;
    top: 24px;
    right: 24px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b78a3d;

    box-shadow:
        -18px 0 0 rgba(183, 138, 61, 0.45),
        -36px 0 0 rgba(183, 138, 61, 0.20);
}

body.contact-page .contact-panel-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-right: 76px;
}

body.contact-page .contact-panel-emblem {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(183, 138, 61, 0.44);
    border-radius: 17px;
    color: #a97835;
    background: rgba(255, 255, 255, 0.38);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.contact-page .contact-panel-emblem svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.contact-page .contact-panel-label {
    margin: 0 0 6px;
    color: #a97835;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

body.contact-page .contact-panel-heading h2 {
    margin: 0;
    color: #2d2924;
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 600;
    line-height: 1;
}

/* ==========================================================
   CONTACT CHANNELS
   ========================================================== */

body.contact-page .contact-channel-list {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    height: auto;
    margin: 0;
    pointer-events: auto;
    transform: none;
}

body.contact-page .contact-channel-card {
    position: relative;
    inset: auto;
    z-index: 1;
    display: grid;

    grid-template-columns:
        34px 54px minmax(0, 1fr) auto;

    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 106px;
    margin: 0;
    padding: 16px 18px;
    overflow: hidden;
    appearance: none;
    border: 1px solid rgba(183, 138, 61, 0.33);
    border-radius: 17px;
    color: #2d2924;

    background:
        radial-gradient(circle at 100% 50%,
            rgba(221, 181, 108, 0.16),
            transparent 38%),
        rgba(255, 255, 255, 0.40);

    box-shadow:
        0 15px 30px rgba(67, 48, 25, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.74);

    text-align: left;
    cursor: pointer;
    transform: none;

    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        background-color 0.28s ease,
        box-shadow 0.28s ease;
}

body.contact-page .contact-channel-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    width: 38%;
    height: 1px;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(216, 167, 86, 0.88),
            transparent);
}

body.contact-page .contact-channel-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 92px;
    height: 100%;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(221, 181, 108, 0.10));

    pointer-events: none;
}

body.contact-page .contact-channel-card:hover {
    z-index: 2;
    border-color: rgba(183, 138, 61, 0.68);
    background-color: rgba(255, 255, 255, 0.58);

    box-shadow:
        0 20px 38px rgba(67, 48, 25, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);

    transform: translateX(7px);
}

body.contact-page .contact-channel-card:focus-visible {
    outline: 2px solid #b78a3d;
    outline-offset: 3px;
}

body.contact-page .contact-channel-number {
    position: relative;
    z-index: 1;
    color: rgba(157, 113, 50, 0.58);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.05rem;
    font-weight: 600;
}

body.contact-page .contact-channel-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(183, 138, 61, 0.36);
    border-radius: 15px;
    color: #a97835;
    background: rgba(255, 255, 255, 0.45);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.contact-page .contact-channel-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.contact-page .contact-channel-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.contact-page .contact-channel-label {
    margin: 0 0 4px;
    color: #9d7132;
    font-family: "Montserrat", sans-serif;
    font-size: 0.59rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
}

body.contact-page .contact-channel-card strong {
    color: #2d2924;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1;
}

body.contact-page .contact-channel-note {
    margin-top: 6px;
    color: rgba(45, 41, 36, 0.58);
    font-size: 0.69rem;
    line-height: 1.35;
}

body.contact-page .contact-channel-arrow {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #b78a3d;
    font-size: 1.45rem;
    font-weight: 300;
    transition: transform 0.28s ease;
}

body.contact-page .contact-channel-card:hover .contact-channel-arrow {
    transform: translateX(4px);
}

body.contact-page .contact-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding-top: 19px;
    border-top: 1px solid rgba(183, 138, 61, 0.23);
    color: rgba(45, 41, 36, 0.56);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

body.contact-page .contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.contact-page .contact-availability i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7f9b5a;

    box-shadow:
        0 0 0 5px rgba(127, 155, 90, 0.11);
}

/* ==========================================================
   LEGAL MODAL - VENTANA FLOTANTE 
   ========================================================== */

body.contact-page .legal-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;

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

    padding: 28px;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    background: rgba(30, 25, 19, 0.48);

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

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

body.contact-page .legal-modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

body.contact-page .legal-modal-panel {
    position: relative;

    width: min(820px, 100%);
    height: min(82vh, 760px);

    overflow: hidden;

    border: 1px solid rgba(183, 138, 61, 0.48);
    border-radius: 24px;

    background: #f4ede2;

    box-shadow:
        0 40px 110px rgba(20, 14, 8, 0.32);

    transform: translateY(16px) scale(0.98);

    transition: transform 0.25s ease;
}

body.contact-page .legal-modal.show .legal-modal-panel {
    transform: translateY(0) scale(1);
}

body.contact-page .legal-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 3;

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

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid rgba(183, 138, 61, 0.32);
    border-radius: 50%;

    color: #8c6234;
    background: rgba(255, 255, 255, 0.72);

    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
}

body.contact-page .legal-modal-frame {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    background: #f4ede2;
}


/* DARK */

body.contact-page.dark-theme .legal-modal {
    background: rgba(0, 0, 0, 0.68);
}

body.contact-page.dark-theme .legal-modal-panel {
    border-color: rgba(209, 168, 95, 0.42);
    background: #0d0c0a;

    box-shadow:
        0 40px 110px rgba(0, 0, 0, 0.62);
}

body.contact-page.dark-theme .legal-modal-close {
    border-color: rgba(209, 168, 95, 0.30);
    color: #d1a85f;
    background: rgba(20, 18, 15, 0.86);
}

body.contact-page.dark-theme .legal-modal-frame {
    background: #0d0c0a;
}


/* MOBILE */

@media (max-width: 768px) {

    body.contact-page .legal-modal {
        padding: 14px;
    }

    body.contact-page .legal-modal-panel {
        width: 100%;
        height: calc(100svh - 28px);

        border-radius: 18px;
    }

    body.contact-page .legal-modal-close {
        top: 12px;
        right: 12px;

        width: 36px;
        height: 36px;
    }
}

/* ==========================================================
   LEGAL DOCUMENT CONTENT
   Privacy Policy + Legal Notice
   ========================================================== */

html,
body.legal-document {
    margin: 0;
    padding: 0;
}

body.legal-document {
    min-height: 100vh;

    background:
        radial-gradient(circle at 85% 5%,
            rgba(190, 145, 68, 0.10),
            transparent 32%),
        #f5efe5;

    color: #332d26;

    font-family: Arial, Helvetica, sans-serif;
}


/* Main document */

body.legal-document .legal-page {
    width: 100%;
    margin: 0;
    padding: 0;
}

body.legal-document .legal-content {
    width: min(720px, calc(100% - 96px));

    margin: 0 auto;

    padding:
        64px 0 80px;
}


/* Anthoria label */

body.legal-document .legal-eyebrow {
    margin:
        0 0 18px;

    color: #b98532;

    font-size: 0.68rem;
    font-weight: 600;

    letter-spacing: 0.22em;

    text-transform: uppercase;
}


/* Main title */

body.legal-document h1 {
    margin:
        0 0 12px;

    color: #2c2722;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 400;

    line-height: 0.98;

    letter-spacing: -0.035em;
}


/* Last updated */

body.legal-document .legal-updated {
    margin:
        0 0 54px;

    color: #8d8174;

    font-size: 0.78rem;

    letter-spacing: 0.04em;
}


/* Section titles */

body.legal-document h2 {
    position: relative;

    margin:
        54px 0 18px;

    padding-top: 22px;

    border-top:
        1px solid rgba(181, 136, 58, 0.20);

    color: #302a24;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 1.55rem;
    font-weight: 400;

    line-height: 1.2;
}


/* Paragraphs */

body.legal-document p {
    margin:
        0 0 16px;

    color: #62594f;

    font-size: 0.94rem;
    font-weight: 400;

    line-height: 1.75;
}


/* Lists */

body.legal-document ul,
body.legal-document ol {
    margin:
        10px 0 24px;

    padding-left: 22px;
}

body.legal-document li {
    margin-bottom: 8px;

    color: #62594f;

    font-size: 0.94rem;

    line-height: 1.65;
}

body.legal-document li::marker {
    color: #b98532;
}


/* Strong text */

body.legal-document strong {
    color: #3c342c;

    font-weight: 600;
}


/* Links */

body.legal-document a {
    color: #a87428;

    text-decoration: none;

    border-bottom:
        1px solid rgba(168, 116, 40, 0.35);

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

body.legal-document a:hover {
    color: #805718;

    border-color: currentColor;
}


/* Selection */

body.legal-document ::selection {
    background: rgba(185, 133, 50, 0.20);
}


/* Scrollbar */

body.legal-document::-webkit-scrollbar {
    width: 8px;
}

body.legal-document::-webkit-scrollbar-track {
    background: transparent;
}

body.legal-document::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background:
        rgba(130, 105, 73, 0.28);
}


/* ==========================================================
   LEGAL DOCUMENT — DARK
   ========================================================== */

body.legal-document.dark-theme {
    background:
        radial-gradient(circle at 85% 5%,
            rgba(194, 148, 69, 0.10),
            transparent 32%),
        #0d0c0a;

    color: #e8dfd2;
}

body.legal-document.dark-theme h1,
body.legal-document.dark-theme h2 {
    color: #f1e8da;
}

body.legal-document.dark-theme p,
body.legal-document.dark-theme li {
    color: #bdb3a5;
}

body.legal-document.dark-theme strong {
    color: #e3d7c7;
}

body.legal-document.dark-theme .legal-updated {
    color: #8f8579;
}

body.legal-document.dark-theme h2 {
    border-top-color:
        rgba(201, 157, 82, 0.18);
}


/* ==========================================================
   LEGAL DOCUMENT — MOBILE
   ========================================================== */

@media (max-width: 768px) {

    body.legal-document .legal-content {
        width:
            calc(100% - 44px);

        padding:
            52px 0 64px;
    }

    body.legal-document .legal-eyebrow {
        margin-bottom: 14px;

        font-size: 0.61rem;
    }

    body.legal-document h1 {
        font-size: 2.65rem;
    }

    body.legal-document .legal-updated {
        margin-bottom: 40px;

        font-size: 0.72rem;
    }

    body.legal-document h2 {
        margin-top: 42px;

        padding-top: 18px;

        font-size: 1.35rem;
    }

    body.legal-document p,
    body.legal-document li {
        font-size: 0.88rem;

        line-height: 1.7;
    }
}

/* ==========================================================
   FORM OVERLAY
   ========================================================== */

body.contact-page .contact-form-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(30, 25, 19, 0.54);

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

    transition:
        opacity 0.28s ease,
        visibility 0.28s ease;
}

body.contact-page .contact-form-overlay.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

body.contact-page .contact-form-panel {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100vh - 48px);
    padding: 42px;
    overflow-y: auto;
    border: 1px solid rgba(183, 138, 61, 0.60);
    border-radius: 26px;

    background:
        radial-gradient(circle at 100% 0%,
            rgba(221, 181, 108, 0.18),
            transparent 35%),
        linear-gradient(145deg,
            rgba(255, 253, 249, 0.98),
            rgba(239, 227, 207, 0.96));

    box-shadow:
        0 42px 120px rgba(16, 12, 8, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);

    transform: translateY(18px) scale(0.98);
    transition: transform 0.28s ease;
}

body.contact-page .contact-form-overlay.show .contact-form-panel {
    transform: translateY(0) scale(1);
}

body.contact-page .contact-form-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14%;
    width: 72%;
    height: 1px;

    background:
        linear-gradient(90deg,
            transparent,
            #d8a756,
            transparent);
}

body.contact-page .contact-form-close {
    position: absolute;
    top: 18px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(183, 138, 61, 0.30);
    border-radius: 12px;
    color: #8a622b;
    background: rgba(255, 255, 255, 0.36);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

body.contact-page .contact-form-label {
    margin: 0 0 8px;
    color: #a97835;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

body.contact-page .contact-form-panel h2 {
    margin: 0 52px 28px 0;
    color: #2d2924;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 600;
    line-height: 1;
}

body.contact-page .contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

body.contact-page .contact-form-group label {
    color: #6f5733;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.contact-page .contact-form-group input,
body.contact-page .contact-form-group textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(183, 138, 61, 0.40);
    border-radius: 11px;
    outline: none;
    color: #2d2924;
    background: rgba(255, 255, 255, 0.58);
    font: inherit;
    resize: vertical;

    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

body.contact-page .contact-form-group textarea {
    min-height: 112px;
}

body.contact-page .contact-form-group input:focus,
body.contact-page .contact-form-group textarea:focus {
    border-color: #b78a3d;

    box-shadow:
        0 0 0 3px rgba(183, 138, 61, 0.14);
}

body.contact-page .dynamic-contact-field {
    display: none;
}

body.contact-page .dynamic-contact-field.show {
    display: flex;
}

body.contact-page .appointment-fields.show {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

body.contact-page .appointment-fields .contact-form-group:first-child {
    grid-column: 1 / -1;
}

body.contact-page .contact-submit-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    padding: 0 20px;
    border: 1px solid #c89d55;
    border-radius: 12px;
    color: #fff8ea;
    background: #b8863f;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

body.contact-page .contact-submit-button:hover {
    background: #a97835;
    transform: translateY(-2px);
}

body.contact-page .contact-form-status {
    min-height: 0;
    margin: 15px 0 0;
    color: #6d532e;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
}

body.contact-page .contact-form-status:empty {
    display: none;
}

/* ==========================================================
   DARK THEME
   ========================================================== */

body.contact-page.dark-theme,
body.contact-page.dark-theme main {
    background: #050605;
}

body.contact-page.dark-theme main>.contact-experience {
    background:
        radial-gradient(circle at 13% 22%,
            rgba(208, 164, 87, 0.13),
            transparent 30%),
        radial-gradient(circle at 88% 76%,
            rgba(208, 164, 87, 0.11),
            transparent 34%),
        linear-gradient(145deg,
            #050605 0%,
            #0d0c0a 48%,
            #17120e 100%);
}

body.contact-page.dark-theme .contact-introduction-panel h1 {
    color: #f8f1e5;
}

body.contact-page.dark-theme .contact-introduction-panel h1 span,
body.contact-page.dark-theme .contact-kicker,
body.contact-page.dark-theme .contact-panel-label {
    color: #d1a85f;
}

body.contact-page.dark-theme .contact-introduction {
    color: rgba(248, 241, 229, 0.66);
}

body.contact-page.dark-theme .contact-details {
    border-top-color: rgba(209, 168, 95, 0.24);
}

body.contact-page.dark-theme .contact-detail span {
    color: rgba(248, 241, 229, 0.46);
}

body.contact-page.dark-theme .contact-detail strong {
    color: #d9c7aa;
}

body.contact-page.dark-theme .contact-command-panel {
    border-color: rgba(209, 168, 95, 0.52);

    background:
        radial-gradient(circle at 100% 0%,
            rgba(208, 164, 87, 0.13),
            transparent 35%),
        linear-gradient(145deg,
            rgba(18, 16, 14, 0.94),
            rgba(29, 24, 19, 0.90));

    box-shadow:
        0 42px 110px rgba(0, 0, 0, 0.56),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.contact-page.dark-theme .contact-panel-emblem,
body.contact-page.dark-theme .contact-channel-icon {
    color: #d1a85f;
    border-color: rgba(209, 168, 95, 0.36);
    background: rgba(255, 255, 255, 0.035);
}

body.contact-page.dark-theme .contact-panel-heading h2,
body.contact-page.dark-theme .contact-channel-card strong {
    color: #f8f1e5;
}

body.contact-page.dark-theme .contact-channel-card {
    border-color: rgba(209, 168, 95, 0.25);
    color: #f8f1e5;

    background:
        radial-gradient(circle at 100% 50%,
            rgba(208, 164, 87, 0.09),
            transparent 38%),
        rgba(255, 255, 255, 0.028);

    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.contact-page.dark-theme .contact-channel-card:hover {
    border-color: rgba(209, 168, 95, 0.62);
    background-color: rgba(255, 255, 255, 0.055);
}

body.contact-page.dark-theme .contact-channel-label,
body.contact-page.dark-theme .contact-channel-arrow,
body.contact-page.dark-theme .contact-channel-number {
    color: #d1a85f;
}

body.contact-page.dark-theme .contact-channel-note,
body.contact-page.dark-theme .contact-panel-footer {
    color: rgba(248, 241, 229, 0.52);
}

body.contact-page.dark-theme .contact-panel-footer {
    border-top-color: rgba(209, 168, 95, 0.20);
}

body.contact-page.dark-theme .contact-form-panel {
    border-color: rgba(209, 168, 95, 0.54);

    background:
        radial-gradient(circle at 100% 0%,
            rgba(208, 164, 87, 0.13),
            transparent 35%),
        linear-gradient(145deg,
            rgba(18, 16, 14, 0.98),
            rgba(29, 24, 19, 0.97));
}

body.contact-page.dark-theme .contact-form-panel h2 {
    color: #f8f1e5;
}

body.contact-page.dark-theme .contact-form-label,
body.contact-page.dark-theme .contact-form-group label,
body.contact-page.dark-theme .contact-form-close {
    color: #d1a85f;
}

body.contact-page.dark-theme .contact-form-group input,
body.contact-page.dark-theme .contact-form-group textarea {
    border-color: rgba(209, 168, 95, 0.34);
    color: #f8f1e5;
    color-scheme: dark;
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 980px) {

    body.contact-page main>.contact-experience {
        align-items: flex-start;
        min-height: 100svh;
        padding: 116px 28px 44px;
    }

    body.contact-page .contact-layout {
        grid-template-columns: 1fr;
        gap: 38px;
        width: min(720px, 100%);
    }

    body.contact-page .contact-introduction-panel {
        max-width: 650px;
    }

    body.contact-page .contact-introduction-panel h1 {
        max-width: 650px;
        font-size: clamp(3.4rem, 9vw, 5.5rem);
    }

    body.contact-page .contact-command-panel {
        width: 100%;
    }
}

/* ==========================================================
   CONTACT — DISEÑO ANTERIOR PARA MÓVIL
   ========================================================== */

@media (max-width: 768px) {

    body.contact-page,
    body.contact-page main {
        width: 100%;
        min-height: 100svh;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    /* Mantiene la ventana del menú por encima de su capa desenfocada. */

    body.contact-page.menu-open header {
        z-index: 9000;
    }

    /*
     * Al abrir el formulario se oculta el header para que el botón
     * hamburguesa no se superponga con la X del formulario.
     */

    body.contact-page.contact-form-open header {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    /* Elimina la línea y los puntos dorados heredados del panel de PC. */

    body.contact-page .contact-command-panel::before,
    body.contact-page .contact-command-panel::after {
        content: none;
        display: none;
    }

    body.contact-page main>.contact-experience {
        position: relative;
        display: block;

        width: 100%;
        max-width: none;
        height: 100svh;
        min-height: 700px;

        margin: 0;
        padding: 0;
        overflow: hidden;

        background-position: center bottom;
        background-size: cover;
        background-repeat: no-repeat;
    }

    /* Fondo Ivory anterior */

    body.contact-page:not(.dark-theme) main>.contact-experience {
        background-image:
            linear-gradient(to bottom,
                #f4ede2 0%,
                rgba(244, 237, 226, 0.80) 6%,
                rgba(244, 237, 226, 0) 18%,
                rgba(244, 237, 226, 0) 82%,
                rgba(244, 237, 226, 0.80) 94%,
                #f4ede2 100%),
            url(../../assets/images/contact-showcase-mobile.jpg);
    }

    /* Fondo Dark anterior */

    body.contact-page.dark-theme main>.contact-experience {
        background-image:
            linear-gradient(to bottom,
                #050605 0%,
                rgba(5, 6, 5, 0.82) 6%,
                rgba(5, 6, 5, 0) 18%,
                rgba(5, 6, 5, 0) 82%,
                rgba(5, 6, 5, 0.82) 94%,
                #050605 100%),
            url(../../assets/images/contact-showcase-mobile-dark.jpg);

        background-position: center bottom;
        background-size: cover;
        background-repeat: no-repeat;
    }

    /* Ocultar elementos exclusivos del nuevo diseño de PC */

    body.contact-page .contact-ambient,
    body.contact-page .contact-introduction-panel,
    body.contact-page .contact-panel-heading,
    body.contact-page .contact-panel-footer {
        display: none;
    }

    /*
     * Los contenedores permanecen en el HTML,
     * pero dejan de crear cajas en móvil.
     */

    body.contact-page .contact-layout,
    body.contact-page .contact-command-panel {
        display: contents;
    }

    /* Contenedor de las tres tarjetas */

    body.contact-page .contact-channel-list {
        position: absolute;
        inset: 0;
        z-index: 5;

        display: block;

        width: 100%;
        height: 100%;
        margin: 0;

        pointer-events: none;
        transform: none;
    }

    /* Tarjetas */

    body.contact-page .contact-channel-card {
        position: absolute;
        z-index: 6;

        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto;
        align-items: center;
        gap: 8px;

        width: min(33vw, 145px);
        min-height: 66px;

        margin: 0;
        padding: 8px 11px;

        border: 1px solid var(--contact-card-mobile-border,
                rgba(218, 176, 94, 0.88));

        border-radius: 13px;

        color:
            var(--contact-card-mobile-color,
                #fff7e7);

        background: linear-gradient(135deg,
                rgba(252, 247, 238, 0.88),
                rgba(229, 210, 170, 0.60));

        border: 1px solid rgba(215, 191, 140, 0.45);

        color: #8C6234;

        box-shadow:
            var(--contact-card-mobile-shadow,
                0 12px 24px rgba(36, 22, 10, 0.28));

        backdrop-filter:
            var(--contact-card-mobile-filter,
                blur(7px));

        -webkit-backdrop-filter:
            var(--contact-card-mobile-filter,
                blur(7px));

        text-align: left;
        pointer-events: auto;
        transform-origin: center;
    }

    /* Elimina los adornos del diseño nuevo */

    body.contact-page .contact-channel-card::before,
    body.contact-page .contact-channel-card::after {
        display: none;
    }

    /* Posición individual de cada tarjeta */

    body.contact-page .contact-channel-card:nth-child(1) {
        top: 23.8%;
        left: 30.5%;

        transform:
            translate(-47.5%, -42%) rotate(0.5deg);
    }

    body.contact-page .contact-channel-card:nth-child(2) {
        top: 51.8%;
        left: 32.5%;

        transform:
            translate(-52%, -46%) rotate(-0.4deg);
    }

    body.contact-page .contact-channel-card:nth-child(3) {
        top: 79.5%;
        left: 40.5%;

        transform:
            translate(-53%, -42%) rotate(-0.5deg);
    }

    /*
     * Estos elementos pertenecen al diseño nuevo de PC
     * y se ocultan dentro de las tarjetas móviles.
     */

    body.contact-page .contact-channel-number,
    body.contact-page .contact-channel-icon,
    body.contact-page .contact-channel-note {
        display: none;
    }

    body.contact-page .contact-channel-copy {
        position: static;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    body.contact-page .contact-channel-label {
        margin: 0 0 3px;

        color:
            var(--contact-card-mobile-label,
                #8f5c18);

        font-family: "Montserrat", sans-serif;
        font-size: 0.49rem;
        font-weight: 400;
        line-height: 1.1;
        letter-spacing: 0.15em;
        text-transform: uppercase;

        text-shadow:
            var(--contact-card-mobile-label-shadow,
                none);
    }

    body.contact-page .contact-channel-card strong {
        color:
            var(--contact-card-mobile-title,
                #cbb88d);

        font-family: "Cormorant Garamond", serif;
        font-size: 1.08rem;
        font-weight: 600;
        line-height: 1;

        text-shadow:
            var(--contact-card-mobile-title-shadow,
                none);
    }

    body.contact-page .contact-channel-arrow {
        position: static;
        margin-left: 8px;

        color:
            var(--contact-card-mobile-arrow,
                #e6b75f);

        font-size: 1.05rem;

        text-shadow:
            var(--contact-card-mobile-arrow-shadow,
                none);

        transform: none;
    }

    /*
     * Evita que el efecto hover de PC
     * mueva las tarjetas en pantallas táctiles.
     */

    body.contact-page .contact-channel-card:nth-child(1):hover {
        transform:
            translate(-47.5%, -42%) rotate(0.5deg);
    }

    body.contact-page .contact-channel-card:nth-child(2):hover {
        transform:
            translate(-52%, -46%) rotate(-0.4deg);
    }

    body.contact-page .contact-channel-card:nth-child(3):hover {
        transform:
            translate(-53%, -42%) rotate(-0.5deg);
    }

    /* Formulario por encima del fondo móvil */

    body.contact-page .contact-form-overlay {
        z-index: 10000;
        align-items: flex-start;
        padding: 14px;
    }

    body.contact-page .contact-form-overlay[data-contact-type="email"],
    body.contact-page .contact-form-overlay[data-contact-type="whatsapp"] {
        align-items: center;
    }

    body.contact-page .contact-form-panel,
    body.contact-page .contact-form-overlay.show .contact-form-panel {
        max-height: calc(100svh - 28px);
        padding: 34px 22px 26px;
        border-radius: 21px;
        transform: none;
    }

    body.contact-page .appointment-fields.show {
        grid-template-columns: 1fr;
    }

    body.contact-page .appointment-fields .contact-form-group:first-child {
        grid-column: auto;
    }

    /* Privacy Policy + Legal Notice — SOLO MÓVIL */

    body.contact-page .contact-legal-links {
        bottom: 6px;
    }

    body.contact-page.contact-form-open .contact-legal-links {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    body.contact-page .contact-legal-link,
    body.contact-page .contact-legal-link:hover,
    body.contact-page .contact-legal-separator {
        font-size: 0.54rem;
    }
}

/* ==========================================================
   ANIMATION
   ========================================================== */

@keyframes contactPulse {

    0% {
        opacity: 0.8;
        transform: scale(0.72);
    }

    70%,
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@media (prefers-reduced-motion: reduce) {

    body.contact-page .contact-kicker>span::after {
        animation: none;
    }

    body.contact-page .contact-channel-card,
    body.contact-page .contact-channel-arrow,
    body.contact-page .contact-form-overlay,
    body.contact-page .contact-form-panel,
    body.contact-page .contact-submit-button {
        transition: none;
    }
}
