/* contacto.css — estilos de contacto.php (scope .body--contacto-card).
   Extraído de styles.css (fase 4 css-audit). Carga entre styles.css y
   funcionalidades.css para conservar el orden de cascada original. */

/* ============================================================
   PÁGINA CONTACTO — formulario simple solicitar demo
   ============================================================ */
.contactoSection {
    padding: 130px 0 90px;
}



/* ============================================================
   CONTACTO CARD — página fondo blanco normal del proyecto.
   Card alrededor del form con fondo rotatorio (crossfade) dentro.
   ============================================================ */

/* Aliases vars de funcionalidades.css para que aplique fuera de #top
   (en funcionalidades.css se scopan a #top, que en contacto solo hace match
   al header). Asegura que el carrusel quickNav hereda colores brand. */
.body--contacto-card {
    --color-primary: var(--brand);
    --color-primary-dark: #003f50;
    --color-primary-soft: #36848b;
    --color-sky: #b9d2d4;
    --color-ink: var(--text);
    --color-text: var(--text);
    --color-text-soft: var(--text-soft);
    --color-surface: #ffffff;
    --color-surface-alt: #f4f8f8;
    --color-border: rgba(0, 85, 109, 0.12);
    --color-border-strong: rgba(0, 85, 109, 0.18);
}

/* Main scope contacto: position relative + overflow hidden para contener bg. */
.body--contacto-card main {
    position: relative;
    overflow: hidden;
}

/* Header transparent al cargar; on scroll añade backdrop blur (sin tinte). */
.body--contacto-card .header {
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.body--contacto-card .header.is-scrolled {
    background: transparent !important;
    backdrop-filter: blur(22px) !important;
    -webkit-backdrop-filter: blur(22px) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

/* Header en zona clara (wave / #f3f3f3 / footer) — estilo clásico del resto web. */
.body--contacto-card .header.is-light {
    background: rgba(251, 253, 253, 0.78) !important;
    backdrop-filter: blur(22px) !important;
    -webkit-backdrop-filter: blur(22px) !important;
    border-bottom-color: var(--line) !important;
    box-shadow: var(--shadow-sm) !important;
}

.body--contacto-card .header.is-light .navLink,
.body--contacto-card .header.is-light .btnLink,
.body--contacto-card .header.is-light .langSwitchBtn {
    color: var(--text-soft);
}

.body--contacto-card .header.is-light .navLink:hover,
.body--contacto-card .header.is-light .btnLink:hover,
.body--contacto-card .header.is-light .langSwitchBtn:hover {
    color: var(--brand);
}

.body--contacto-card .header.is-light .navLink::after {
    background: var(--brand);
}

.body--contacto-card .header.is-light .navToggle span {
    background: var(--brand);
}

/* Logo header en zona clara → versión normal del proyecto. */
.body--contacto-card .header.is-light .brandLogo {
    content: url("../img/logo_horizontal.webp");
}

/* Header z-index alto sobre el bg main. */
.body--contacto-card .header {
    z-index: 200;
}

/* Nav links blancos sobre bg azul. */
.body--contacto-card .navLink,
.body--contacto-card .btnLink,
.body--contacto-card .langSwitchBtn {
    color: rgba(255, 255, 255, 0.85);
}

.body--contacto-card .navLink:hover,
.body--contacto-card .btnLink:hover,
.body--contacto-card .langSwitchBtn:hover {
    color: #fff;
}

.body--contacto-card .navLink::after {
    background: #fff;
}

.body--contacto-card .navToggle span {
    background: #fff;
}

/* Logo header → versión inversa blanca. */
.body--contacto-card .brandLogo {
    content: url("../img/logo_horizontal_inv_new.webp");
}

@media (max-width: 1159px) {
    .body--contacto-card .brand picture source { display: none; }

    /* Textless como el home; no existe asset blanco del símbolo, así que
       se blanquea con filter sobre la zona azul. */
    .body--contacto-card .brandLogo {
        content: url("../img/logo-no-text.webp");
        filter: brightness(0) invert(1);
    }

    /* En zona clara (header is-light) vuelve al color normal del proyecto. */
    .body--contacto-card .header.is-light .brandLogo {
        content: url("../img/logo-no-text.webp");
        filter: none;
    }
}

/* Al abrir el menú móvil, el header de contacto recupera el estado claro
   estándar para que navegación, logo y controles mantengan contraste. */
@media (max-width: 1024px) {
    .body--contacto-card .header.is-menu-open {
        background: #fff !important;
        border-bottom-color: var(--line) !important;
        box-shadow: var(--shadow-sm) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .body--contacto-card .header.is-menu-open .nav {
        background: #fff !important;
    }

    .body--contacto-card .header.is-menu-open .brandLogo {
        content: url("../img/logo-no-text.webp");
        filter: none;
    }

    .body--contacto-card .header.is-menu-open .navLink,
    .body--contacto-card .header.is-menu-open .navDropdownLink,
    .body--contacto-card .header.is-menu-open .navDropdownToggle,
    .body--contacto-card .header.is-menu-open .btnLink,
    .body--contacto-card .header.is-menu-open .langSwitchBtn {
        color: var(--brand);
    }

    .body--contacto-card .header.is-menu-open .navLink::after,
    .body--contacto-card .header.is-menu-open .navToggle span {
        background: var(--brand);
    }
}

/* CTA "Solicitar demo" oculto en contacto (ya estás en el form). */
.body--contacto-card .header .btnPrimary,
.body--contacto-card .header .navCtaPrimary {
    display: none !important;
}

/* Bg extendido full viewport detrás del header transparent.
   Footer tapa la parte inferior con su propio bg. */
.contactoMainBg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #001a22;
}

.contactoMainBg .contactoBgImg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 4000ms cubic-bezier(0.4, 0, 0.6, 1);
    display: block;
}

.contactoMainBg .contactoBgImg.is-active {
    opacity: 1;
}

.contactoMainBg__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 36, 48, 0.4) 0%, rgba(0, 36, 48, 0.55) 100%);
}

/* Section por encima del bg. Min-height viewport con form centrado vertical
   entre header y flechita; altura form variable se acomoda. */
.contactoSection--card {
    position: relative;
    z-index: 1;
    padding: clamp(70px, 7vw, 90px) 0 clamp(100px, 10vw, 140px);
    min-height: calc(100dvh - 72px);
    display: flex;
    align-items: center;
}

/* Pantallas ≤1080px alto: form más cerca header + menos espacio bajo submit. */
@media (max-height: 1080px) {
    .contactoSection--card {
        padding-top: 20px;
        padding-bottom: 30px;
        align-items: flex-start;
    }
}

/* Scroll hint — flecha centrada antes del footer. Default chevron-down;
   rota 180° (arriba) cuando footer entra viewport via JS class `is-up`. */
.body--contacto-card .contactoScrollHint {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    margin-top: -30px;
    margin-bottom: 45px;
}

.body--contacto-card .contactoScrollHint svg {
    transition: transform 360ms cubic-bezier(0.23, 1, 0.32, 1);
}

.body--contacto-card .contactoScrollHint.is-up svg {
    transform: rotate(180deg);
}

/* Olas — 3 capas wavestop_new como bg loopeando horizontal a ritmos distintos. */
.body--contacto-card .contactoWave {
    position: relative;
    z-index: 1;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 180px;
    overflow: hidden;
    pointer-events: none;
}

.body--contacto-card .contactoWave__layer {
    position: absolute;
    inset: 0;
    background-image: url("../img/wavestop_new.webp");
    background-repeat: repeat-x;
    background-size: 100vw auto;
    background-position: 0 bottom;
    will-change: background-position;
}

.body--contacto-card .contactoWave__layer--3 {
    opacity: 0.7;
    background-position: 25vw bottom;
}

/* Section tras las olas — fondo noisewp con tinte gris. */
.body--contacto-card .contactoLinks {
    position: relative;
    z-index: 1;
    background: #f3f3f3;
    padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
    margin-top: -1px;
    color: var(--text);
}

/* ===== ANIMACIONES SCOPE CONTACTO ===== */

/* Scroll-reveal: heavy fade-up + blur (high-end + emil ease-out exponencial). */
.body--contacto-card [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
    transition:
        opacity 820ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 820ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

.body--contacto-card [data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* FAQ list: wrapper sin fade propio, solo es trigger para cascada hijos. */
.body--contacto-card .faqList[data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
}

/* FAQ items aparecen en cascada CUANDO el wrapper (.faqList) entra viewport.
   Así no esperan a scroll hasta el final. */
.body--contacto-card .faqList .faqItem {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
    transition:
        opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.body--contacto-card .faqList.is-revealed .faqItem {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.body--contacto-card .faqList.is-revealed .faqItem:nth-of-type(1) { transition-delay: 0ms; }
.body--contacto-card .faqList.is-revealed .faqItem:nth-of-type(2) { transition-delay: 60ms; }
.body--contacto-card .faqList.is-revealed .faqItem:nth-of-type(3) { transition-delay: 120ms; }
.body--contacto-card .faqList.is-revealed .faqItem:nth-of-type(4) { transition-delay: 180ms; }
.body--contacto-card .faqList.is-revealed .faqItem:nth-of-type(5) { transition-delay: 240ms; }
.body--contacto-card .faqList.is-revealed .faqItem:nth-of-type(6) { transition-delay: 300ms; }
.body--contacto-card .faqList.is-revealed .faqItem:nth-of-type(7) { transition-delay: 360ms; }

/* FAQ chevron rotate animation (emil cubic-bezier custom). */
.body--contacto-card .faqItem summary {
    transition: color 240ms cubic-bezier(0.23, 1, 0.32, 1);
}

.body--contacto-card .faqIcon {
    transition: transform 360ms cubic-bezier(0.32, 0.72, 0, 1);
}

.body--contacto-card .faqItem[open] .faqIcon {
    transform: rotate(180deg);
}

/* FAQ answer slide smooth (cubic-bezier exponencial). */
.body--contacto-card .faqAnswer {
    overflow: hidden;
}

.body--contacto-card .faqItem[open] .faqAnswer {
    animation: faqAnswerIn 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes faqAnswerIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card form sin tilt — hover removed (causaba escalado raro). */

/* Magnetic hover sutil sobre quickNav items (emil scale-on-active ya en funcionalidades.css). */
.body--contacto-card .quickNavBtn {
    transition:
        transform 380ms cubic-bezier(0.32, 0.72, 0, 1),
        box-shadow 380ms cubic-bezier(0.32, 0.72, 0, 1);
}

.body--contacto-card .quickNavBtn:active {
    transform: scale(0.97);
    transition: transform 110ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* Phone menu items stagger entry al abrir. */
.contactoFormCard .phoneInput.is-open .phonePrefixMenu li button {
    animation: phoneItemIn 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contactoFormCard .phoneInput.is-open .phonePrefixMenu li:nth-child(1) button  { animation-delay: 30ms; }
.contactoFormCard .phoneInput.is-open .phonePrefixMenu li:nth-child(2) button  { animation-delay: 50ms; }
.contactoFormCard .phoneInput.is-open .phonePrefixMenu li:nth-child(3) button  { animation-delay: 70ms; }
.contactoFormCard .phoneInput.is-open .phonePrefixMenu li:nth-child(4) button  { animation-delay: 90ms; }
.contactoFormCard .phoneInput.is-open .phonePrefixMenu li:nth-child(5) button  { animation-delay: 110ms; }
.contactoFormCard .phoneInput.is-open .phonePrefixMenu li:nth-child(6) button  { animation-delay: 130ms; }
.contactoFormCard .phoneInput.is-open .phonePrefixMenu li:nth-child(7) button  { animation-delay: 150ms; }
.contactoFormCard .phoneInput.is-open .phonePrefixMenu li:nth-child(8) button  { animation-delay: 170ms; }

@keyframes phoneItemIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Help text underline grow-on-hover (emil). */
.contactoFormCard .contactoHelp a {
    position: relative;
}

.contactoFormCard .contactoHelp a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: #fff;
    transform: scaleX(1);
    transform-origin: right center;
    transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
}

.contactoFormCard .contactoHelp a:hover {
    text-decoration: none;
}

.contactoFormCard .contactoHelp a:hover::after {
    transform: scaleX(0);
    transform-origin: left center;
}

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .body--contacto-card [data-reveal],
    .body--contacto-card [data-reveal].is-revealed,
    .body--contacto-card .faqItem[open] .faqAnswer,
    .contactoFormCard .phoneInput.is-open .phonePrefixMenu li button {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
        transition: none;
    }
}

/* FAQ scope contacto — bg #f3f3f3 sólido continuidad. */
.body--contacto-card .faq {
    position: relative;
    z-index: 1;
    background: #f3f3f3;
}

@media (max-width: 720px) {
    .body--contacto-card .faq .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Título carrusel — color brand (en funcionalidades hereda de #top scope). */
.body--contacto-card .quickNavBlock h2 {
    color: var(--brand);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}



















/* Footer bg #f3f3f3 sólido — texto brand. */
.body--contacto-card .footer {
    background: #f3f3f3 !important;
    border-top: 0;
    color: var(--text-soft) !important;
}

.body--contacto-card .footer * {
    color: inherit !important;
}

.body--contacto-card .footer h4 {
    color: var(--text) !important;
}

.body--contacto-card .footer a {
    color: var(--text-soft) !important;
    transition: color 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.body--contacto-card .footer a:hover {
    color: var(--brand) !important;
}

.body--contacto-card .footer .brandCopy strong {
    color: var(--brand) !important;
}

/* Logo footer → logo.webp (versión normal sobre fondo claro). */
.body--contacto-card .footerLogo img {
    content: url("../img/logo.webp");
}

/* Scroll hint bob — subtle infinite up/down indicando que hay más abajo. */
.body--contacto-card .contactoScrollHint svg {
    animation: contactoHintBob 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.body--contacto-card .contactoScrollHint.is-up svg {
    animation: none;
}

@keyframes contactoHintBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .body--contacto-card .contactoScrollHint svg {
        animation: none;
    }
}

/* FAQ sectionHead title enhanced reveal. */
.body--contacto-card .faq .sectionHead[data-reveal] h2 {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.body--contacto-card .faq .sectionHead[data-reveal].is-revealed h2 {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile: footer centrado completo. */
@media (max-width: 720px) {
    .body--contacto-card .footerGrid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 32px;
    }

    .body--contacto-card .footerBrand,
    .body--contacto-card .footerCol {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .body--contacto-card .footerCol a {
        text-align: center;
    }

    .body--contacto-card .footerLogo {
        justify-self: center;
    }

    .body--contacto-card .footerBottom {
        text-align: center;
    }

    /* Sin padding horizontal en form y footer (full-bleed móvil). */
    .body--contacto-card .contactoFormCard .contactoForm {
        padding-left: 0;
        padding-right: 0;
    }

    .body--contacto-card .footer .container {
        padding-left: 0;
        padding-right: 0;
    }
}

.contactoCardLayout {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Card form transparent — bg extendido a main, card solo contenedor visual. */
.contactoFormCard {
    position: relative;
    border-radius: 28px;
    isolation: isolate;
}

/* Intro DENTRO del card, texto blanco sobre bg rotatorio. */
.contactoFormCard .contactoIntro {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 44px 32px 0;
    margin-bottom: 0;
}

.contactoFormCard .contactoTitle {
    color: #fff;
    margin-top: 0;
    text-shadow: 0 2px 24px rgba(0, 30, 40, 0.4);
}

.contactoFormCard .contactoLead {
    color: rgba(255, 255, 255, 0.82);
    margin-top: 14px;
    text-shadow: 0 1px 12px rgba(0, 30, 40, 0.3);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}









/* Form dentro de la card: transparent + padding generoso. */
.contactoFormCard .contactoForm {
    position: relative;
    z-index: 2;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 28px 40px 40px;
    gap: 14px;
}

/* Labels — todos en mayúscula pura, tracked. */
.contactoFormCard .contactoField label,
.contactoFormCard .contactoLabel {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Rows: 2 columnas desktop/tablet, stack mobile. */
.contactoFormCard .contactoRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 640px) {
    .contactoFormCard .contactoRow {
        grid-template-columns: 1fr;
    }
}

/* Help text bajo textarea — subrayado, color brand suave. */
.contactoFormCard .contactoHelp {
    margin-top: -4px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.contactoFormCard .contactoHelp a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    font-weight: 600;
    transition: color 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.contactoFormCard .contactoHelp a:hover {
    color: rgba(255, 255, 255, 0.78);
}

/* Submit wrapper centra el botón al 80% ancho. */
.contactoFormCard .contactoSubmitWrap {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.contactoFormCard .contactoSubmit {
    width: 80%;
}

.contactoFormCard .contactoField input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: #fff;
    padding: 14px 16px;
    border-radius: 10px;
    transition:
        border-color 220ms cubic-bezier(0.23, 1, 0.32, 1),
        background 220ms cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.contactoFormCard .contactoField input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contactoFormCard .contactoField input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
}

.contactoFormCard .contactoField input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.contactoFormCard .contactoField input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px rgba(0, 36, 48, 0.5) inset;
    caret-color: #fff;
}

/* Select glass coherente con inputs. */
.contactoFormCard .contactoField select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: #fff;
    padding: 14px 40px 14px 16px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
    cursor: pointer;
    transition:
        border-color 220ms cubic-bezier(0.23, 1, 0.32, 1),
        background-color 220ms cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.contactoFormCard .contactoField select:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.38);
    background-color: rgba(255, 255, 255, 0.14);
}

.contactoFormCard .contactoField select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.contactoFormCard .contactoField select option {
    background: #002430;
    color: #fff;
}

/* Textarea glass. */
.contactoFormCard .contactoField textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: #fff;
    padding: 14px 16px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    resize: vertical;
    min-height: 90px;
    transition:
        border-color 220ms cubic-bezier(0.23, 1, 0.32, 1),
        background 220ms cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.contactoFormCard .contactoField textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contactoFormCard .contactoField textarea:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
}

.contactoFormCard .contactoField textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Label span (no for input) — mismo estilo. */
.contactoFormCard .contactoLabel {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 7px;
    display: block;
}

/* Radios — chips pill seleccionable. */
.contactoFormCard .contactoRadios {
    display: flex;
    gap: 8px;
}

.contactoFormCard .contactoRadio {
    flex: 1;
    cursor: pointer;
    user-select: none;
}

.contactoFormCard .contactoRadio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contactoFormCard .contactoRadio span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    transition:
        background 200ms cubic-bezier(0.23, 1, 0.32, 1),
        border-color 200ms cubic-bezier(0.23, 1, 0.32, 1),
        color 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.contactoFormCard .contactoRadio:hover span {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
}

.contactoFormCard .contactoRadio input:checked + span {
    background: #fff;
    border-color: #fff;
    color: var(--brand);
    font-weight: 700;
}

.contactoFormCard .contactoRadio input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

/* Field condicional "Otros" — animación al expandir. */
.contactoFormCard .contactoField--otros[hidden] {
    display: none;
}

/* Submit pill blanco texto brand. */
/* Submit pill blanco texto brand. */
.contactoFormCard .contactoSubmit {
    margin-top: 4px;
    width: 80%;
    background: #fff;
    color: var(--brand);
    transition:
        transform 360ms cubic-bezier(0.32, 0.72, 0, 1),
        box-shadow 360ms cubic-bezier(0.32, 0.72, 0, 1),
        background 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

@media (max-width: 640px) {
    .contactoFormCard .contactoSubmit {
        width: 100%;
    }
}

.contactoFormCard .contactoSubmit:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 24px 48px -16px rgba(0, 85, 109, 0.45);
}

.contactoFormCard .contactoSubmit:active {
    transform: scale(0.97);
    transition: transform 110ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* Phone input dentro del card — reusa estilos glass. */
.contactoFormCard .phoneInput {
    position: relative;
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-radius: 10px;
    transition:
        border-color 220ms cubic-bezier(0.23, 1, 0.32, 1),
        background 220ms cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.contactoFormCard .phoneInput:hover:not(:focus-within) {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
}

.contactoFormCard .phoneInput:focus-within {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.contactoFormCard .phoneInput .phoneNumber {
    flex: 1;
    min-width: 0;
    background: transparent !important;
    border: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-radius: 0 10px 10px 0 !important;
    padding: 14px 16px !important;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
}

.contactoFormCard .phoneInput .phoneNumber:focus {
    outline: none;
    box-shadow: none !important;
    background: transparent !important;
}

.contactoFormCard .phonePrefix {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.contactoFormCard .phonePrefix:hover,
.contactoFormCard .phonePrefix:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.contactoFormCard .phoneFlag {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
}

.contactoFormCard .phonePrefixCode {
    color: rgba(255, 255, 255, 0.95);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.contactoFormCard .phoneChevron {
    margin-left: 2px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.contactoFormCard .phoneInput.is-open .phoneChevron {
    transform: rotate(180deg);
}

.contactoFormCard .phonePrefixMenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: min(280px, 95vw);
    max-width: 95vw;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    margin: 0;
    list-style: none;
    background: #002430;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 24px 52px -18px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    pointer-events: none;
    transition:
        opacity 180ms cubic-bezier(0.23, 1, 0.32, 1),
        transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 50;
}

.contactoFormCard .phoneInput.is-open .phonePrefixMenu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.contactoFormCard .phonePrefixMenu li {
    margin: 0;
    list-style: none;
}

.contactoFormCard .phonePrefixMenu button {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    transition: background 160ms cubic-bezier(0.23, 1, 0.32, 1),
                color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.contactoFormCard .phonePrefixMenu button:hover,
.contactoFormCard .phonePrefixMenu button:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
}

.contactoFormCard .phoneMenuFlag {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
}

.contactoFormCard .phoneMenuCode {
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
}

.contactoFormCard .phonePrefixMenu::-webkit-scrollbar {
    width: 6px;
}

.contactoFormCard .phonePrefixMenu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

/* Stacking: field phone con z-index para que menú escape stacking de hermanos. */
.contactoFormCard .contactoField--phone {
    position: relative;
    z-index: 10;
}

.contactoFormCard .contactoField--phone:has(.phoneInput.is-open) {
    z-index: 100;
}

/* Overlay legibilidad — fade vertical desvanece abajo para que footer
   transparent vea video natural (sin tinte azul). */




/* Cuerpo encima del video. Header z-index alto para que dropdown nunca tape. */




/* === HEADER ghost — transparente SIEMPRE, sin transiciones ni scrolled state. === */


/* Swap logo → variante "new" inversa (blanca). */




/* Links nav blancos. */








/* CTA primario header — pill blanco texto brand. */




/* === SECTION immersive — full viewport menos header.
   align-items center con padding-top mayor para empujar form un poco arriba. */




/* Intro tipografía sobre video. */








/* === FORM sin card — directo sobre video. === */












/* ===== Phone input con selector prefijo ===== */






/* Phone input override: input bare dentro del wrapper. */




/* Prefix trigger. */












/* Menú prefijos — fondo sólido oscuro brand, no transparente. */














/* Field phone: z-index alto + nuevo stacking context para que menú escape
   los siguientes contactoField que crean su propio context vía transform. */




/* Scrollbar slim del menú. */




/* Autofill Chrome → force dark glass. */


/* Submit — pill blanco texto brand. */






/* Stagger entrada (legacy body--contacto-video, no aplica scope card). */

/* Scroll hint — flecha estática centrada, empuja footer fuera viewport.
   Default orientada abajo (indica scroll); rota 180° (arriba) cuando footer
   entra viewport via JS class `is-up`. */






/* === FOOTER ghost — transparent + solo backdrop blur, sin tinte ni saturate.
   transform translateZ(0) + will-change fuerza compositing layer al cargar →
   Chrome pinta footer aunque esté off-screen (sin esperar al scroll). === */
















.contactoIntro {
    text-align: center;
    margin-bottom: 36px;
}

.contactoTitle {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--brand);
    margin-top: 14px;
}

.contactoLead {
    margin-top: 16px;
    color: var(--text-soft);
    font-size: 1.08rem;
    line-height: 1.6;
}

.contactoForm {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.contactoField {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.contactoField label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}

.contactoField input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 85, 109, 0.16);
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contactoField input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 85, 109, 0.12);
}

.contactoSubmit {
    margin-top: 8px;
    width: 100%;
}

/* ============================================================
   FORMULARIO COMERCIAL ACTUAL — dependencias portadas de master
   ============================================================ */
.body--contacto-card .contactoFormCard .contactoField label,
.body--contacto-card .contactoFormCard .contactoLabel {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
}

.body--contacto-card .contactoFormCard .contactoField label .req {
    margin-left: 3px;
    color: #ff8a7b;
    font-weight: 800;
}

.body--contacto-card .contactoFormCard .contactoAssurance {
    margin: 2px auto 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: center;
    text-wrap: balance;
}

.body--contacto-card .contactoFormCard .phonePrefixStatic {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.body--contacto-card .contactoFormCard .contactoField input:-webkit-autofill,
.body--contacto-card .contactoFormCard .contactoField input:-webkit-autofill:hover,
.body--contacto-card .contactoFormCard .contactoField input:-webkit-autofill:focus,
.body--contacto-card .contactoFormCard .phoneInput .phoneNumber:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-color 600000s 0s;
}

/* Estado de envío integrado, visible junto al formulario. */
.body--contacto-card .contactoMsg {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 20px 40px 0;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 600;
}

.body--contacto-card .contactoMsg svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.body--contacto-card .contactoMsg--ok {
    background: #e7faf0;
    border: 1px solid #13ce66;
    color: #085229;
}

.body--contacto-card .contactoMsg--error {
    background: #ffeded;
    border: 1px solid #ff6b6b;
    color: #661d1d;
}

.body--contacto-card .contactoMsg[hidden] {
    display: none;
}

/* Nota de contacto que enlaza el formulario con las preguntas frecuentes. */
.body--contacto-card .faqContactNote {
    max-width: 680px;
    margin: -48px auto 60px;
    color: var(--color-text-secondary, #5a6b6e);
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.15rem);
    line-height: 1.7;
    text-align: center;
    text-wrap: balance;
    scroll-margin-top: 90px;
}

.body--contacto-card .faqContactNote a {
    color: var(--color-primary, #00556d);
    font-weight: 700;
}

.body--contacto-card .faqContactNote.is-contactZoom {
    animation: contactNoteZoom 820ms cubic-bezier(.22, .8, .3, 1);
    transform-origin: center;
    will-change: transform;
}

@keyframes contactNoteZoom {
    0%, 100% { transform: scale(1); }
    42% { transform: scale(1.09); }
}

@media (prefers-reduced-motion: reduce) {
    .body--contacto-card .faqContactNote.is-contactZoom {
        animation: none;
    }
}

/* Selector múltiple con búsqueda. El select nativo continúa siendo la fuente
   de verdad para validación y para construir ESPECIALIDADES[]. */
.body--contacto-card .cfCombo {
    position: relative;
}

.body--contacto-card .cfCombo.is-enhanced > select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.body--contacto-card .cfComboToggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 220ms cubic-bezier(0.23, 1, 0.32, 1),
                background-color 220ms cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.body--contacto-card .cfComboToggle:hover {
    border-color: rgba(255, 255, 255, 0.38);
    background-color: rgba(255, 255, 255, 0.14);
}

.body--contacto-card .cfCombo.is-open .cfComboToggle,
.body--contacto-card .cfComboToggle:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.body--contacto-card .cfCombo.is-empty .cfComboValue {
    color: rgba(255, 255, 255, 0.62);
}

.body--contacto-card .cfComboToggle svg {
    flex: 0 0 auto;
    transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.body--contacto-card .cfCombo.is-open .cfComboToggle svg {
    transform: rotate(180deg);
}

.body--contacto-card .cfComboPanel {
    position: absolute;
    z-index: 80;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: #002a37;
    box-shadow: 0 22px 48px rgba(0, 20, 27, 0.45);
}

.body--contacto-card .cfComboSearch {
    width: 100%;
    margin-bottom: 8px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.body--contacto-card .cfComboSearch::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.body--contacto-card .cfComboSearch::-webkit-search-cancel-button {
    appearance: none;
    -webkit-appearance: none;
}

.body--contacto-card .cfComboSearch:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.13);
}

.body--contacto-card .cfComboList {
    max-height: 264px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
}

.body--contacto-card .cfComboList::-webkit-scrollbar {
    width: 8px;
}

.body--contacto-card .cfComboList::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.body--contacto-card .cfComboOption {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.body--contacto-card .cfComboOption:hover,
.body--contacto-card .cfComboOption:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.body--contacto-card .cfComboBox {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    color: #002a37;
    transition: background 160ms ease, border-color 160ms ease;
}

.body--contacto-card .cfComboBox svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    transition: opacity 140ms ease;
}

.body--contacto-card .cfComboOption[aria-selected="true"] .cfComboBox {
    border-color: #fff;
    background: #fff;
}

.body--contacto-card .cfComboOption[aria-selected="true"] .cfComboBox svg {
    opacity: 1;
}

.body--contacto-card .cfComboEmpty {
    margin: 0;
    padding: 14px 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    text-align: center;
}

.body--contacto-card .cfComboFoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.body--contacto-card .cfComboCount {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
}

.body--contacto-card .cfComboActions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.body--contacto-card .cfComboClear,
.body--contacto-card .cfComboOnly {
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.body--contacto-card .cfComboClear:hover,
.body--contacto-card .cfComboOnly:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.body--contacto-card .cfComboOnly[aria-pressed="true"] {
    border-color: #fff;
    background: #fff;
    color: #002a37;
}

.body--contacto-card .cfComboOnly:disabled {
    opacity: 0.4;
    cursor: default;
}

@media (max-width: 640px) {
    .body--contacto-card .contactoMsg {
        margin-inline: 20px;
    }

    .body--contacto-card .cfComboFoot {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .body--contacto-card .contactoBgImg,
    .body--contacto-card .cfComboToggle,
    .body--contacto-card .cfComboToggle svg,
    .body--contacto-card .cfComboOption {
        transition: none;
    }
}

