/* TopoApp — Landing /anunciate (aliados anunciantes)
   Sobria a propósito: fondo claro, un solo color de acento, títulos alineados a la izquierda,
   capturas reales como protagonistas y nada de degradados ni tarjetas con ícono. */
:root {
    --tinta: #1C1917; --gris: #57534E; --suave: #78716C; --linea: #E7E5E4; --linea-2: #D6D3D1;
    --fondo: #FBFAF8; --suave-bg: #F5F3EF; --blanco: #fff;
    --marca: #C2551A; --marca-hover: #A8460F; --marca-bg: #FDF1E8;
    --verde: #15803D;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--tinta); background: var(--fondo); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem); line-height: 1.15; }
h3 { font-size: 1rem; line-height: 1.3; }
p { margin: 0; }
.an-wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.an-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.an-si { width: 16px; height: 16px; flex: none; color: var(--verde); }
.an-no { color: var(--linea-2); font-weight: 600; }

/* Botones y enlaces */
.an-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--tinta); border-radius: 8px; padding: 10px 18px; background: var(--tinta); color: #fff; font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.an-btn:hover { background: #000; }
.an-btn:focus-visible, .an-enlace:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, .an-pos:focus-visible, .an-tabs button:focus-visible { outline: 2px solid var(--marca); outline-offset: 2px; }
.an-btn--lg { padding: 14px 24px; font-size: 1rem; }
.an-btn--sm { padding: 8px 14px; font-size: .88rem; }
.an-btn--linea { background: var(--blanco); color: var(--tinta); border-color: var(--linea-2); }
.an-btn--linea:hover { background: var(--suave-bg); }
.an-btn--bloque { width: 100%; }
.an-btn[disabled] { opacity: .6; cursor: wait; }
.an-enlace { color: var(--marca); font-weight: 600; text-decoration: none; }
.an-enlace:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Navegación */
.an-nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 248, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.an-nav.is-fijo { border-bottom-color: var(--linea); }
.an-nav-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.an-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 1rem; }
.an-nav-links { display: flex; gap: 24px; margin-left: auto; }
.an-nav-links a { color: var(--gris); text-decoration: none; font-size: .92rem; }
.an-nav-links a:hover { color: var(--tinta); }

/* Hero */
.an-hero { padding: 64px 0 0; }
.an-hero-txt { max-width: 720px; }
.an-sobre { color: var(--suave); font-size: .92rem; margin-bottom: 14px; }
.an-hero h1 { font-size: clamp(2.05rem, 1.3rem + 3vw, 3.4rem); line-height: 1.06; letter-spacing: -.03em; }
.an-lead { margin-top: 20px; font-size: 1.12rem; color: var(--gris); max-width: 640px; }
.an-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.an-hechos { margin-top: 28px; color: var(--gris); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.an-hechos b { color: var(--tinta); }
.an-hechos span { color: var(--linea-2); }
.an-hero-img { margin-top: 48px; margin-bottom: 0; }
.an-hero-img img { border-radius: 12px 12px 0 0; border: 1px solid var(--linea); border-bottom: 0; box-shadow: 0 30px 60px -40px rgba(28, 25, 23, .45); }
.an-hero-img figcaption, .an-nota { color: var(--suave); font-size: .86rem; margin-top: 12px; }
.an-hero-img figcaption { padding-bottom: 8px; }

/* Secciones */
.an-sec { padding: 88px 0; }
.an-sec--borde { border-top: 1px solid var(--linea); }
.an-sec--suave { background: var(--suave-bg); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.an-sub { color: var(--gris); margin-top: 12px; max-width: 560px; }
.an-cab { margin-bottom: 36px; }
.an-cab--fila { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.an-dos { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }

/* Listas sí / no */
.an-listas { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.an-listas h3 { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--linea); }
.an-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.an-lista li { display: flex; gap: 10px; color: var(--gris); font-size: .97rem; line-height: 1.5; }
.an-lista .an-si { margin-top: 4px; }
.an-lista .an-no { width: 16px; text-align: center; flex: none; }

/* Mapa de espacios */
.an-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--linea); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.an-tabs button { border: 0; background: none; font-family: inherit; font-weight: 500; font-size: .95rem; line-height: 1; color: var(--suave); padding: 12px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.an-tabs button.is-on { color: var(--tinta); border-bottom-color: var(--tinta); }
.an-mapa-cuerpo { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.an-mapa-vis { position: sticky; top: 84px; }
.an-toma { display: none; position: relative; margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--linea); background: var(--blanco); }
.an-toma.is-on { display: block; }
.an-toma--movil { max-width: 300px; margin: 0 auto; border-radius: 22px; }
.an-zona { position: absolute; border: 2px dashed rgba(194, 85, 26, .55); border-radius: 6px; background: rgba(194, 85, 26, .06); cursor: pointer; padding: 0; transition: background .15s, border-color .15s; }
.an-zona span { position: absolute; top: -11px; left: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--blanco); color: var(--marca); border: 1.5px solid var(--marca); font-family: inherit; font-weight: 700; font-size: .74rem; line-height: 19px; text-align: center; }
.an-zona:hover, .an-zona.is-on { border-style: solid; border-color: var(--marca); background: rgba(194, 85, 26, .12); }
.an-zona.is-on span { background: var(--marca); color: #fff; }
.an-pos-lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.an-pos { display: flex; gap: 14px; padding: 14px 8px; border-bottom: 1px solid var(--linea); cursor: pointer; border-radius: 6px; transition: background .15s; }
.an-pos:hover { background: rgba(28, 25, 23, .03); }
.an-pos.is-on { background: var(--marca-bg); }
.an-pos-n { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--linea-2); color: var(--suave); font-size: .74rem; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.an-pos.is-on .an-pos-n { border-color: var(--marca); background: var(--marca); color: #fff; }
.an-pos b { font-weight: 600; font-size: .97rem; }
.an-pos p { color: var(--gris); font-size: .9rem; line-height: 1.45; margin-top: 2px; display: none; }
.an-pos small { color: var(--suave); font-size: .8rem; display: none; margin-top: 4px; }
.an-pos.is-on p, .an-pos.is-on small { display: block; }

/* Precios */
.an-precios-ctl { display: flex; gap: 12px; }
.an-sel { display: grid; gap: 4px; font-size: .8rem; color: var(--suave); }
select, input, textarea { font: inherit; color: var(--tinta); }
.an-sel select, .an-campo select, .an-campo input, .an-campo textarea, .an-cuenta select { border: 1px solid var(--linea-2); border-radius: 8px; background: var(--blanco); padding: 9px 12px; font-size: .95rem; }
.an-sel select { min-width: 150px; }
.an-tabla-wrap { background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; overflow: hidden; }
.an-tabla { width: 100%; border-collapse: collapse; table-layout: fixed; }
.an-tabla th, .an-tabla td { padding: 13px 16px; border-bottom: 1px solid var(--linea); text-align: center; font-size: .94rem; vertical-align: middle; }
.an-tabla tbody th { text-align: left; font-weight: 400; color: var(--gris); }
.an-tabla thead th:first-child { width: 34%; }
.an-tabla thead th { vertical-align: bottom; padding-top: 28px; padding-bottom: 18px; position: relative; font-weight: 400; }
.an-tabla td .an-si { display: inline-block; vertical-align: middle; }
.an-tabla .is-rec { background: #FFFBF7; }
.an-tabla thead .is-rec { box-shadow: inset 0 3px 0 var(--marca); }
.an-rec { position: absolute; top: 9px; left: 0; right: 0; font-size: .72rem; font-weight: 600; color: var(--marca); }
.an-plan-n { display: block; font-weight: 600; font-size: 1rem; }
.an-plan-precio { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.an-plan-total { display: block; font-size: .8rem; color: var(--suave); min-height: 1.3em; }
.an-tabla-cupo th, .an-tabla-cupo td { font-size: .86rem; }
.an-tabla-cupo td { color: var(--gris); font-variant-numeric: tabular-nums; }
.an-tabla-cupo td.is-lleno { color: var(--marca); font-weight: 600; }
.an-tabla tfoot td { border-bottom: 0; padding: 16px; }
.an-tabla tfoot .an-btn { width: 100%; gap: 0; }

.an-cuenta { margin-top: 28px; padding: 22px 24px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; }
.an-cuenta p { font-size: 1.05rem; line-height: 2.1; }
.an-cuenta small { color: var(--suave); font-size: .82rem; }
.an-cuenta-in { display: inline-flex; align-items: center; gap: 4px; border-bottom: 1.5px solid var(--tinta); padding: 0 2px; }
.an-cuenta-in input { width: 5.5ch; border: 0; background: none; font-weight: 600; padding: 0; font-size: 1.05rem; -moz-appearance: textfield; }
.an-cuenta-in input::-webkit-outer-spin-button, .an-cuenta-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.an-cuenta select { padding: 4px 8px; font-weight: 600; }
.an-cuenta b { color: var(--verde); }
.an-extras { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: .92rem; color: var(--gris); }
.an-extras b { color: var(--tinta); font-weight: 600; }
.an-extras a { color: var(--marca); font-weight: 600; }

/* Nota de René */
.an-nota-rene { max-width: 760px; }
.an-nota-rene > p:first-child { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.55; letter-spacing: -.01em; }
.an-nota-rene-de { margin-top: 20px !important; color: var(--suave); font-size: .92rem; }
.an-nota-rene-de a { color: var(--marca); font-weight: 600; }

/* Formulario */
.an-form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px 72px; align-items: start; }
.an-form-txt .an-lista { margin-top: 20px; }
.an-form-alt { margin-top: 28px !important; color: var(--gris); font-size: .95rem; }
.an-form-alt a { color: var(--marca); font-weight: 600; }
.an-form { background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; padding: 28px; display: grid; gap: 16px; }
.an-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.an-campo { display: grid; gap: 6px; min-width: 0; }
.an-campo > span { font-size: .86rem; font-weight: 600; }
.an-campo small { font-weight: 400; color: var(--suave); }
.an-campo input, .an-campo select, .an-campo textarea { width: 100%; padding: 11px 12px; font-size: 1rem; }
.an-campo textarea { resize: vertical; }
.an-campo.is-error input { border-color: #B91C1C; background: #FEF2F2; }
.an-form-error { color: #B91C1C; font-size: .9rem; }
.an-legal { color: var(--suave); font-size: .8rem; text-align: center; }
.an-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Preguntas */
.an-faq { border-top: 1px solid var(--linea); }
.an-faq details { border-bottom: 1px solid var(--linea); }
.an-faq summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; position: relative; }
.an-faq summary::-webkit-details-marker { display: none; }
.an-faq summary::after { content: "+"; position: absolute; right: 4px; top: 15px; font-size: 1.3rem; font-weight: 400; color: var(--suave); }
.an-faq details[open] summary::after { content: "–"; }
.an-faq details p { padding: 0 0 20px; color: var(--gris); max-width: 640px; }

/* Pie */
.an-pie { border-top: 1px solid var(--linea); padding: 28px 0 32px; color: var(--suave); font-size: .86rem; }
.an-pie-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.an-pie nav { display: flex; flex-wrap: wrap; gap: 18px; }
.an-pie a { text-decoration: none; }
.an-pie a:hover { color: var(--tinta); }

/* Barra del celular */
.an-barra-movil { display: none; }

/* Gracias */
.an-gracias { min-height: 100vh; display: grid; place-items: center; padding: 48px 0; }
.an-gracias-in { max-width: 600px; }
.an-gracias h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); line-height: 1.12; letter-spacing: -.025em; margin-top: 28px; }
.an-gracias .an-lead { font-size: 1.05rem; }
.an-gracias ol { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--linea); }
.an-gracias ol li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); color: var(--gris); font-size: .95rem; }
.an-gracias ol b { color: var(--tinta); font-weight: 600; }
.an-gracias-volver { display: inline-block; margin-top: 28px; color: var(--suave); font-size: .9rem; }

@media (max-width: 900px) {
    .an-dos, .an-form-wrap, .an-mapa-cuerpo { grid-template-columns: 1fr; }
    .an-mapa-vis { position: static; }
    .an-extras { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .an-nav-links { display: none; }
    .an-nav-in { justify-content: space-between; }
    .an-hero { padding-top: 36px; }
    .an-lead { font-size: 1.02rem; }
    .an-hero-cta .an-btn { width: 100%; }
    .an-hero-img { margin-top: 36px; width: 100%; padding: 0 0 0 16px; overflow: hidden; }
    .an-hero-img img { width: 150%; max-width: none; border-radius: 10px 0 0 0; border-right: 0; }
    .an-hero-img figcaption { padding-right: 16px; }
    .an-sec { padding: 60px 0; }
    .an-listas, .an-fila { grid-template-columns: 1fr; }
    .an-listas { gap: 28px; }
    .an-precios-ctl { width: 100%; }
    .an-sel { flex: 1; }
    .an-sel select { min-width: 0; width: 100%; font-size: 16px; }
    .an-tabla th, .an-tabla td { padding: 11px 6px; font-size: .84rem; }
    .an-tabla tbody th { padding-left: 12px; }
    .an-tabla thead th:first-child { width: 38%; }
    .an-tabla thead th { padding-top: 26px; }
    .an-rec { font-size: .64rem; }
    .an-plan-n { font-size: .86rem; }
    .an-plan-precio { font-size: 1.05rem; }
    .an-plan-total { font-size: .68rem; line-height: 1.25; }
    .an-tabla tfoot td { padding: 12px 4px; }
    .an-tabla tfoot .an-btn { padding: 8px 4px; font-size: .8rem; }
    .an-ocultar-movil { display: none; }
    .an-cuenta { padding: 18px; }
    .an-cuenta p { font-size: 1rem; }
    .an-cuenta-in input, .an-cuenta select { font-size: 16px; }
    .an-form { padding: 20px; }
    .an-campo input, .an-campo select, .an-campo textarea { font-size: 16px; }
    .an-barra-movil { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 250, 248, .96); border-top: 1px solid var(--linea); transform: translateY(110%); transition: transform .2s; }
    .an-barra-movil.is-on { transform: none; }
    .an-pie { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
