/* Eficacia · sitio público. Plano (sin sombras marcadas ni degradados, según el brief), mobile-first. */

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Cinzel";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("../fonts/cinzel-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --navy: #0F2347;
    --navy-900: #0a1832;
    --navy-800: #16305c;
    --blue: #1B4F9E;
    --gold: #C9A14A;
    --gold-ink: #7d5f1f;      /* dorado legible sobre fondos claros (contraste AA) */
    --white: #ffffff;
    --soft: #f4f6fa;
    --line: #dde3ee;
    --text: #14213a;
    --muted: #4f5d76;
    --on-navy: #d3dcee;
    --whatsapp: #25D366;
    --whatsapp-ink: #0b3d1f;
    --error: #a32020;

    --font-text: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    --font-brand: "Cinzel", "Trajan Pro", Georgia, serif;
    --radius: 12px;
    --gutter: 16px;
    --section: 56px;
}

@media (min-width: 720px) {
    :root { --gutter: 24px; --section: 80px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font: 400 1.0625rem/1.6 var(--font-text);
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; line-height: 1.15; color: inherit; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
/* El texto se acomoda solo al ancho de la pantalla: una palabra o dirección muy larga (un correo,
   un enlace) se corta antes de salirse de la pantalla en un celular */
body, .prose, blockquote { overflow-wrap: break-word; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 800px; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px; top: -100px;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.icon {
    width: 1.25em; height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Botones ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: .65rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: 700 1rem/1.1 var(--font-text);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.button--lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.0625rem; }
.button--gold { background: var(--gold); color: var(--navy); }
.button--gold:hover { background: #d8b468; color: var(--navy); }
.button--navy { background: var(--navy); color: var(--white); }
.button--navy:hover { background: var(--navy-800); color: var(--white); }
.button--outline-light { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.button--outline-light:hover { border-color: var(--gold); color: var(--gold); }
.button--whatsapp { background: var(--whatsapp); color: var(--whatsapp-ink); }
.button--whatsapp:hover { background: #3fe07c; color: var(--whatsapp-ink); }
.button[disabled] { opacity: .65; cursor: progress; }

/* ---------- Encabezado ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 1rem; min-height: 72px; }

.site-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.mark { width: 52px; height: 44px; flex: none; }
.mark__frame, .mark__tower { fill: var(--blue); }
.mark__facet, .mark__gold, .mark__arc { fill: var(--gold); }
.mark__shade { fill: #a9853a; }
.site-brand__logo { display: block; height: 44px; width: auto; max-width: min(320px, 60vw); }
.site-brand__text { display: grid; line-height: 1.1; }
.site-brand__name { font: 600 1.3rem/1 var(--font-brand); letter-spacing: .2em; text-transform: uppercase; }
.site-brand__tag { display: none; font-size: .72rem; letter-spacing: .04em; color: var(--gold-ink); margin-top: .25rem; }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--text); font-weight: 600; text-decoration: none; padding: .5rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.mobile-nav a[aria-current="page"] { color: var(--navy); }
.site-header__cta { display: none; }

.mobile-nav summary {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .icon { width: 24px; height: 24px; }
.mobile-nav[open] summary { background: var(--soft); }
.mobile-nav nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
}
.mobile-nav li a:not(.button) { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; text-decoration: none; }
.mobile-nav li .button { width: 100%; margin-top: 1rem; }

@media (min-width: 600px) {
    .site-brand__tag { display: block; }
    .site-header__cta { display: inline-flex; }
}
/* El menú horizontal crece con las páginas del sitio: con más ítems se usa el desplegable hasta pantallas
   más anchas (la clase la pone el layout según la cantidad, sin JavaScript) */
@media (min-width: 960px) {
    .site-header:not(.site-header--menu-long):not(.site-header--menu-xl) .site-nav { display: block; }
    .site-header:not(.site-header--menu-long):not(.site-header--menu-xl) .mobile-nav { display: none; }
}
@media (min-width: 1200px) {
    .site-header--menu-long .site-nav { display: block; }
    .site-header--menu-long .mobile-nav { display: none; }
    .site-header--menu-long .site-nav ul { gap: 1.25rem; }
}

/* ---------- Hero ---------- */

.hero { background: var(--navy); color: var(--white); padding: 48px 0 56px; overflow: hidden; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__title { font-size: clamp(2.1rem, 6vw, 3.5rem); font-weight: 700; letter-spacing: -.01em; max-width: 16ch; }
.hero__lead { margin-top: 1.25rem; font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--on-navy); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__art { margin: 0; display: grid; justify-items: center; gap: 1rem; }
.hero__picture img { border-radius: var(--radius); }
.hero__tagline {
    font: 600 .95rem/1.4 var(--font-brand);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
}

.building { width: min(100%, 340px); }
.building__tower--0 { fill: #16305c; }
.building__tower--1 { fill: #1a386b; }
.building__tower--2 { fill: #132a52; }
.building__win { fill: #244579; }
.building__win.is-lit { fill: var(--gold); }
.building__arc { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }

@media (prefers-reduced-motion: no-preference) {
    .building__win.is-lit { animation: light 8s ease-in-out infinite both; }
    .building__win.d1 { animation-delay: 1.1s; }
    .building__win.d2 { animation-delay: 2.3s; }
    .building__win.d3 { animation-delay: 3.4s; }
    .building__win.d4 { animation-delay: 4.6s; }
    .building__win.d5 { animation-delay: 5.7s; }
}
@keyframes light {
    0%, 12% { fill: #244579; }
    22%, 88% { fill: var(--gold); }
    100% { fill: #244579; }
}

@media (min-width: 960px) {
    .hero { padding: 88px 0 96px; }
    .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
}

/* ---------- Secciones ---------- */

.section { padding: var(--section) 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: var(--white); }
.section--compact { padding: calc(var(--section) * .7) 0; }

.section__head { max-width: 680px; margin-bottom: 2.5rem; }
.section__title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: var(--navy); }
.section--navy .section__title { color: var(--white); }
.section__title--center { text-align: center; margin-bottom: 2rem; }
.section__lead { margin-top: .85rem; font-size: 1.15rem; color: var(--muted); }
.section--navy .section__lead { color: var(--on-navy); }

.eyebrow {
    margin-bottom: .75rem;
    font: 600 .8rem/1 var(--font-brand);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-ink);
}
.eyebrow--light { color: var(--gold); }

/* Tarjetas de servicios */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.75rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
}
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold); }
.card__icon .icon { width: 26px; height: 26px; }
.card__title { font-size: 1.25rem; color: var(--navy); }
.card__text { color: var(--muted); }
.card__link { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; font-weight: 700; }

/* Pasos */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
.step { padding-top: 1.25rem; border-top: 2px solid var(--line); }
.step__number { display: block; font: 600 2.4rem/1 var(--font-brand); color: var(--gold); margin-bottom: .75rem; }
.step__title { font-size: 1.3rem; color: var(--navy); }
.step__text { margin-top: .4rem; color: var(--muted); }
@media (min-width: 720px) {
    .steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
}

/* Razones (fondo azul marino) */
.reasons { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.reason__icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 1rem; }
.reason__title { font-size: 1.3rem; }
.reason__text { margin-top: .4rem; color: var(--on-navy); }

/* Cifras */
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0; text-align: center; }
.stat { display: flex; flex-direction: column-reverse; gap: .25rem; }
.stat__value { margin: 0; font: 600 2.6rem/1 var(--font-brand); color: var(--navy); }
.stat__label { color: var(--muted); }

/* Testimonios */
.quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.quote { padding: 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.quote__text { margin: 0; font-size: 1.1rem; }
.quote__text p::before { content: "“"; color: var(--gold); font: 600 1.6rem/0 var(--font-brand); margin-right: .15rem; }
.quote__author { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.quote__author span { display: block; color: var(--muted); font-size: .95rem; }
.quote__photo img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }

/* Cobertura */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.chip .icon { color: var(--gold-ink); }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--gold-ink); }
.faq__item[open] .faq__question::after { content: "–"; }
.faq__answer { padding: 0 0 1.25rem; color: var(--muted); }

/* Banda de llamado a la acción */
.cta-band { background: var(--gold); color: var(--navy); padding: 48px 0; }
.cta-band__inner { display: grid; gap: 1.5rem; align-items: center; }
.cta-band__title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.cta-band__text { margin-top: .5rem; font-size: 1.1rem; }
@media (min-width: 720px) {
    .cta-band__inner { grid-template-columns: 1fr auto; }
}

/* ---------- Contacto y formulario ---------- */

.contact__grid { display: grid; gap: 2.5rem; }
.contact-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-list__item { display: flex; align-items: flex-start; gap: .65rem; }
.contact-list__item .icon { margin-top: .2rem; color: var(--gold-ink); }
@media (min-width: 960px) {
    .contact__grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
}

.lead-form {
    display: grid;
    gap: 1rem;
    padding: 1.75rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--navy);
    border-radius: var(--radius);
}
@media (min-width: 720px) { .lead-form { padding: 2rem; } }
.lead-form__title { font-size: 1.4rem; color: var(--navy); }
.lead-form__hint { color: var(--muted); font-size: .95rem; }
.lead-form__row { display: grid; gap: 1rem; }
@media (min-width: 600px) { .lead-form__row { grid-template-columns: 1fr 1fr; } }
.lead-form__status:empty { display: none; }
.lead-form__status { padding: .8rem 1rem; border-radius: 8px; background: #e7f3ec; color: #1d5b36; font-weight: 600; }
.lead-form__status.is-error { background: #fbe9e9; color: var(--error); }
.lead-form__submit { justify-self: start; }

.field { display: grid; gap: .35rem; }
.field__label { font-weight: 600; }
.field__input {
    width: 100%;
    min-height: 48px;
    padding: .65rem .85rem;
    font: inherit;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid #c4cddd;
    border-radius: 8px;
}
textarea.field__input { min-height: 120px; resize: vertical; }
.field__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 79, 158, .2); }
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: .95rem; font-weight: 600; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: .65rem; }
.field--check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--navy); }
.field--check .field__error { grid-column: 1 / -1; }

/* Campo trampa para bots: fuera de pantalla, nunca con display:none (algunos bots lo detectan) */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Páginas de contenido ---------- */

.page-head { margin-bottom: 2rem; }
/* ---------- Sección personalizada ---------- */

.custom__blocks { display: grid; gap: 2rem; }
@media (min-width: 760px) {
    .custom__blocks--2 { grid-template-columns: repeat(2, 1fr); }
    .custom__blocks--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) { .custom__blocks--3 { grid-template-columns: repeat(3, 1fr); } }
.custom__block { display: grid; gap: .85rem; align-content: start; }
.custom__image img { width: 100%; height: auto; border-radius: var(--radius, 8px); }
.custom__title { font-size: 1.3rem; color: var(--navy); }
.section--navy .custom__title { color: var(--gold); }
.section--navy .custom__text { color: var(--on-navy); }
.section--navy .custom__text a { color: var(--white); }
.custom__action { margin-top: .25rem; }
.section--page-intro { padding-bottom: calc(var(--section) * .4); }

.prose { font-size: 1.0625rem; }
.prose--measure { max-width: 72ch; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.25rem; font-size: 1.45rem; color: var(--navy); }
.prose h3 { margin-top: 1.5rem; font-size: 1.2rem; color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4rem; }

/* Archivos insertados en un texto (Site\EmbedRenderer): se ven, pero no se descargan ni se copian */
.embed { margin-left: auto; margin-right: auto; max-width: 720px; }
.embed--centrado { text-align: center; }
.embed__protegido {
    position: relative; display: block; margin: 0 auto;
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.embed__protegido img, .embed__protegido canvas { pointer-events: none; -webkit-user-drag: none; }
.embed__imagen img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: var(--radius); }
/* Capa sobre la imagen: «Guardar imagen» y arrastrar actúan sobre ella, no sobre el archivo */
.embed__escudo { position: absolute; inset: 0; }
.embed__titulo { margin-top: .5rem; font-size: .95rem; color: var(--muted); }
.embed__pdf { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; }
.embed__pagina { display: block; width: 100%; height: auto; background: var(--white); box-shadow: 0 1px 4px rgba(15, 35, 71, .15); }
.embed__pagina + .embed__pagina { margin-top: .75rem; }
.embed__estado { margin: 0; padding: 1.5rem .5rem; text-align: center; color: var(--muted); font-size: .95rem; }
.embed--icono { max-width: 100%; }
/* Archivo de un elemento de lista (tarjeta, paso, razón): ícono al pie, se abre a lo ancho de la tarjeta */
.card .embed--icono, .step .embed--icono, .reason .embed--icono { margin-top: .9rem; }
.embed--icono .embed__boton { max-width: 100%; text-align: left; }
.section--navy .embed__boton { background: transparent; border-color: rgba(255, 255, 255, .35); color: var(--white); }
.section--navy .embed__boton:hover, .section--navy .embed--icono[open] .embed__boton { border-color: var(--gold); color: var(--white); }
.section--navy .embed__icono { color: var(--gold); }
.embed__boton {
    display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1rem;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
    color: var(--blue); font-weight: 600; cursor: pointer; list-style: none;
}
.embed__boton::-webkit-details-marker { display: none; }
.embed__boton:hover, .embed--icono[open] .embed__boton { border-color: var(--blue); color: var(--navy); }
.embed__icono { flex: none; color: var(--gold-ink); }
.embed__panel { margin-top: .75rem; text-align: center; }
/* En los elementos de las listas, con JavaScript, el archivo se abre en una ventana sobre la página */
.embed__barra { display: none; }
.js .embed--flotante[open] .embed__panel {
    position: fixed; inset: 0; z-index: 100; margin: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(env(safe-area-inset-top, 0px) + 1rem) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 2rem);
    background: rgba(10, 24, 50, .95);
}
.js .embed--flotante .embed__barra {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    max-width: 900px; margin: 0 auto .75rem; color: var(--white); font-weight: 600; text-align: left;
}
.embed__cerrar {
    flex: none; padding: .5rem 1.1rem; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
    background: transparent; color: var(--white); font: inherit; cursor: pointer;
}
.embed__cerrar:hover, .embed__cerrar:focus-visible { border-color: var(--gold); color: var(--gold); }
.js .embed--flotante .embed__panel > .embed__protegido { max-width: 900px; margin: 0 auto; }
.js .embed--flotante .embed__pdf { background: transparent; border: 0; padding: 0; }
html.embed-abierto { overflow: hidden; }
@media print { .embed__protegido { display: none; } }

.notice { text-align: center; }
.notice .section__lead { margin-left: auto; margin-right: auto; }
.notice__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

/* ---------- Pie ---------- */

.site-footer { background: var(--navy-900); color: var(--on-navy); padding: 56px 0 24px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer__brand { font: 600 1.4rem/1 var(--font-brand); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.site-footer__name { margin: .6rem 0 1rem; }
.site-footer__title { font: 600 .8rem/1 var(--font-brand); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.site-footer__list { display: grid; gap: .55rem; }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
@media (min-width: 720px) {
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- WhatsApp flotante ---------- */

.wa-float {
    position: fixed;
    right: 16px; bottom: 16px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 52px;
    padding: 0 1.1rem;
    border-radius: 999px;
    background: var(--whatsapp);
    color: var(--whatsapp-ink);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--white);
}
.wa-float:hover { color: var(--whatsapp-ink); background: #3fe07c; }
.wa-float .icon { width: 24px; height: 24px; }
@media (max-width: 599px) {
    .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; }
}

/* ---------- Aparición al desplazarse (solo con JavaScript) ---------- */

@media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
    .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Barra de vista previa (solo administradores) ---------- */

.preview-bar { position: sticky; top: 0; z-index: 60; background: var(--navy-900); color: var(--white); border-bottom: 3px solid var(--gold); padding: .75rem 0; }
.preview-bar + .site-header { top: 0; position: relative; }
.preview-bar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.preview-bar__title { font: 600 .85rem/1 var(--font-brand); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.preview-bar a { color: var(--white); }
.preview-bar__changes summary { cursor: pointer; }
.preview-bar__changes ul { margin: .5rem 0 0; padding-left: 1.2rem; list-style: disc; }
.preview-bar__notice { margin: .25rem 0; font-weight: 600; }
.preview-bar__notice--error { color: #ffb4b4; }
.preview-bar__notice--success { color: #a9e2c1; }
.preview-bar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.preview-bar__publish { display: flex; flex-wrap: wrap; gap: .5rem; }
.preview-bar__note { min-height: 46px; padding: .5rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: var(--white); font: inherit; }
.lead-form__preview { border: 0; margin: 0; padding: 0; display: grid; gap: 1rem; opacity: .7; }

/* Vista previa del administrador: enlace para editar cada sección (solo existe en la vista previa) */
.preview-edit { position: relative; z-index: 5; background: #fbf3e2; border-top: 2px dashed var(--gold); }
.preview-edit .container { padding-top: .35rem; padding-bottom: .35rem; }
.preview-edit__link { display: inline-block; font-weight: 700; font-size: .95rem; color: var(--navy); text-decoration: none; }
.preview-edit__link:hover, .preview-edit__link:focus-visible { text-decoration: underline; color: var(--navy); }
