/* ==========================================================================
   UMBRAL · hoja de estilos única
   Estructura visual tomada de las plantillas de paginamodelos (elcaribe/cessa):
   topbar, navbar, hero con overlay + KPI, service cards, process steps,
   kpi boxes, plan cards, FAQ, cta band, botones flotantes.
   Sin Bootstrap ni CDN: grid y utilidades mínimas incluidas aquí.
   ========================================================================== */

/* ---------- 0. Tokens ---------- */
:root {
  --ink: #0a1d2e;
  --ink-2: #12304a;
  --steel: #1b4965;
  --steel-2: #2c6e9b;
  --copper: #a8622c;
  --copper-2: #c07a3e;
  --copper-soft: #f7ede3;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --line: #e1e5ea;
  --line-strong: #c9d0d8;

  --text: #16222e;
  --muted: #5a6875;

  --ok: #2f6b4f;      --ok-soft: #e8f2ec;
  --warn: #8a5a1e;    --warn-soft: #f9f0dd;
  --danger: #8c2f2f;  --danger-soft: #f8ebeb;
  --info: #1b4965;    --info-soft: #eaf1f6;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 4px;
  --shadow-sm: 0 1px 2px rgba(10, 29, 46, .05);
  --shadow: 0 1px 2px rgba(10, 29, 46, .04), 0 12px 28px rgba(10, 29, 46, .07);
  --shadow-lg: 0 2px 4px rgba(10, 29, 46, .05), 0 24px 56px rgba(10, 29, 46, .12);

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --step-0: clamp(1rem, .96rem + .2vw, 1.06rem);
  --step-1: clamp(1.14rem, 1.06rem + .4vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + .8vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2rem, 1.5rem + 2.6vw, 3.2rem);
  --gap: clamp(1rem, .75rem + 1.2vw, 1.75rem);
  --pad-y: clamp(3.2rem, 2.2rem + 5vw, 5.5rem);
  --max: 1180px;
}

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.62;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.16; margin: 0 0 .55em; letter-spacing: -.022em; font-weight: 700; }
h1 { font-size: var(--step-4); letter-spacing: -.032em; }
h2 { font-size: var(--step-3); letter-spacing: -.026em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: .32em 0; }
a { color: var(--steel); text-underline-offset: 3px; }
a:hover { color: var(--steel-2); }
img, svg { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .9em; background: #eef1f5; padding: .12em .38em; border-radius: 4px; color: var(--steel); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.8rem 0; }
:focus-visible { outline: 2px solid var(--steel-2); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--copper-soft); color: var(--ink); }

/* ---------- 2. Grid y utilidades (equivalente al subconjunto de Bootstrap usado) ---------- */
.container, .container-xxl { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.row { display: grid; gap: var(--gap); }
.g-2 { gap: .6rem; } .g-3 { gap: 1rem; } .g-4 { gap: 1.4rem; } .g-5 { gap: 2rem; }
.col-12, .col-md-6, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8 { min-width: 0; grid-column: span 12; }
@media (min-width: 720px) {
  .row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-md-6 { grid-column: span 6; }
}
@media (min-width: 992px) {
  .col-lg-3 { grid-column: span 3; }
  .col-lg-4 { grid-column: span 4; }
  .col-lg-5 { grid-column: span 5; }
  .col-lg-6 { grid-column: span 6; }
  .col-lg-7 { grid-column: span 7; }
  .col-lg-8 { grid-column: span 8; }
}
.d-flex { display: flex; } .d-block { display: block; } .d-none { display: none; }
.flex-wrap { flex-wrap: wrap; } .flex-column { flex-direction: column; }
.align-items-center { align-items: center; } .align-items-start { align-items: start; } .align-items-end { align-items: end; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; } .text-start { text-align: left; }
.fw-bold { font-weight: 700; } .fw-semibold { font-weight: 600; }
.text-muted { color: var(--muted); } .text-white { color: #fff; }
.bg-white { background: var(--surface); } .bg-light { background: var(--surface-2); }
.rounded { border-radius: var(--radius); } .rounded-circle { border-radius: 50%; }
.position-relative { position: relative; } .position-absolute { position: absolute; }
.top-0 { top: 0; } .bottom-0 { bottom: 0; } .start-0 { left: 0; } .end-0 { right: 0; }
.w-100 { width: 100%; } .h-100 { height: 100%; }
.img-fluid { width: 100%; height: auto; }
.border { border: 1px solid var(--line); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.list-unstyled { list-style: none; padding-left: 0; }
.small { font-size: .86rem; } .lead { font-size: 1.06rem; color: var(--muted); }
.py-5 { padding-block: clamp(2.6rem, 2rem + 3vw, 4.5rem); }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 3rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.ms-2 { margin-left: .6rem; } .ms-3 { margin-left: 1rem; } .ms-4 { margin-left: 1.5rem; }
.me-2 { margin-right: .6rem; } .me-3 { margin-right: 1rem; }
.p-2 { padding: .6rem; } .p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; }
.px-3 { padding-inline: 1rem; } .py-2 { padding-block: .6rem; } .py-3 { padding-block: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; background: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; top: 0; }
@media (min-width: 992px) { .d-lg-block { display: block; } .d-lg-none { display: none; } }
@media (max-width: 991px) { .d-lg-block { display: none; } }

/* ---------- 3. Topbar y navbar (como la plantilla) ---------- */
.topbar-small { background: var(--ink); color: #9fb2c4; font-size: .8rem; }
.topbar-small a { color: #cfdbe6; text-decoration: none; }
.topbar-small a:hover { color: #fff; }
.topbar-small .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .5rem; flex-wrap: wrap; }
.topbar-small .icon { width: 14px; height: 14px; color: var(--copper-2); }

.navbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.navbar .container { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; }
.navbar-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.navbar-brand svg, .navbar-brand img { width: 34px; height: 34px; object-fit: contain; }
.navbar-nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.navbar .nav-link { color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500; padding: .5rem .7rem; border-radius: var(--radius-sm); }
.navbar .nav-link:hover { background: #eef1f5; color: var(--ink); }
.navbar .nav-link[aria-current="page"] { color: var(--ink); font-weight: 650; background: #eef1f5; }
.nav-toggle { display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .45rem .7rem; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--ink); }
@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .navbar-nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1rem; box-shadow: var(--shadow); }
  .navbar.is-open .navbar-nav { display: flex; }
  .navbar .nav-link { padding: .75rem .3rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .navbar .nav-link:last-child { border-bottom: 0; }
  .navbar-nav .btn { margin: .6rem 0 0; }
}

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .74rem 1.15rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--steel); color: #fff; border-color: var(--steel); }
.btn-primary:hover { background: #163d55; border-color: #163d55; color: #fff; }
.btn-accent { background: var(--copper); color: #fff; border-color: var(--copper); }
.btn-accent:hover { background: #8e5021; border-color: #8e5021; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: #eef1f5; border-color: var(--steel); color: var(--ink); }
.btn-outline-light { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-lg { padding: .9rem 1.45rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-sm { padding: .4rem .65rem; font-size: .85rem; background: var(--surface); border-color: var(--line); color: var(--muted); }
.btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- 5. Secciones ---------- */
.section { padding: var(--pad-y) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-dark { background: linear-gradient(180deg, var(--ink) 0%, #0d2438 100%); color: #e7edf3; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p, .section-dark .lead { color: #b3c2d1; }
.section-title {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin-bottom: .9rem;
}
.section-title::before { content: ""; width: 22px; height: 1px; background: var(--copper); }
.section-dark .section-title { color: #d9a173; }
.section-dark .section-title::before { background: #d9a173; }
.section-head { max-width: 46rem; margin-bottom: calc(var(--gap) * 1.2); }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- 6. Hero (con overlay y KPI, como la plantilla) ---------- */
.hero {
  position: relative; color: #e7edf3; overflow: hidden;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(44, 110, 155, .40), transparent 62%),
    linear-gradient(180deg, #091a29 0%, #0c2237 100%);
}
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero .container { position: relative; z-index: 2; padding-block: clamp(2.8rem, 2rem + 4vw, 5rem); }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { color: #b6c5d4; max-width: 50ch; margin-bottom: 1.6rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.7rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.12); color: #9db0c2; font-size: .88rem; }
.hero-meta strong { color: #e7edf3; }

/* carrusel de fotos del edificio (hero) */
.hero.carrusel-hero { min-height: clamp(560px, 72vh, 780px); display: flex; align-items: center; }
.hero.carrusel-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(95deg, rgba(9,26,41,.93) 0%, rgba(9,26,41,.82) 40%, rgba(9,26,41,.46) 70%, rgba(9,26,41,.22) 100%);
}
.carrusel { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.carrusel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
  transform: scale(1.02);
}
.carrusel-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.carrusel-slide.is-active { opacity: 1; animation: carrusel-zoom 9s ease-out forwards; }
@keyframes carrusel-zoom { from { transform: scale(1.02); } to { transform: scale(1.09); } }
.carrusel-controles { position: absolute; right: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 3; display: flex; align-items: center; gap: .6rem; }
.carrusel-flecha {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.28);
  transition: background .15s, border-color .15s;
}
.carrusel-flecha:hover { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.5); }
.carrusel-flecha .icon { width: 18px; height: 18px; }
.carrusel-puntos { display: flex; align-items: center; gap: .45rem; margin-inline: .4rem; }
.carrusel-punto {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.4); transition: width .2s, background .2s, border-radius .2s;
}
.carrusel-punto[aria-current="true"] { width: 24px; border-radius: 5px; background: var(--copper-2); }
.carrusel-pie {
  position: absolute; left: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 3;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb2c4;
}
@media (prefers-reduced-motion: reduce) {
  .carrusel-slide.is-active { animation: none; }
}

/* mock del producto */
.mock { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: .75rem; box-shadow: var(--shadow-lg); }
.mock-top { display: flex; align-items: center; gap: .4rem; padding: .15rem .25rem .65rem; color: #90a5b8; font-size: .72rem; letter-spacing: .06em; }
.mock-dot { width: 7px; height: 7px; border-radius: 50%; background: #33506a; }
.mock-card { background: #fff; color: var(--text); border-radius: 8px; padding: 1.05rem; }
.mock-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mock-amount { font-size: 1.85rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: .25rem 0 .1rem; }
.mock-row { display: flex; justify-content: space-between; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.mock-row:last-child { border-bottom: 0; }
.mock-qr { width: 74px; height: 74px; border-radius: 6px; background: var(--ink); display: grid; place-items: center; color: #e3e9ef; font-family: var(--mono); font-size: .56rem; text-align: center; padding: 5px; letter-spacing: .06em; line-height: 1.35; }
.mock-pass { display: flex; gap: .75rem; align-items: center; margin-top: .85rem; background: #f2f5f8; border: 1px solid var(--line); border-radius: 8px; padding: .65rem; }

/* ---------- 7. KPI boxes y pilares ---------- */
.kpi-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; text-align: center; }
.kpi-box h3 { margin: 0; font-size: 1.9rem; letter-spacing: -.03em; color: var(--ink); }
.kpi-box small { color: var(--muted); font-size: .8rem; }
.section-dark .kpi-box { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section-dark .kpi-box h3 { color: #fff; }
.section-dark .kpi-box small { color: #9db0c2; }

.pilares { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }
.pilar { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.15rem; }
.pilar .icon { color: var(--copper-2); margin-bottom: .7rem; }
.pilar h4 { font-size: 1rem; margin-bottom: .35rem; }
.pilar p { color: #b3c2d1; font-size: .9rem; margin: 0; }
.pilar-evidence { display: block; margin-top: .75rem; padding-top: .55rem; border-top: 1px solid rgba(255,255,255,.1); font-family: var(--mono); font-size: .71rem; color: #8399ad; letter-spacing: .03em; }

/* ---------- 8. Service cards (roles / módulos) ---------- */
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; height: 100%; transition: border-color .15s, box-shadow .15s; }
.service-card:hover { border-color: var(--steel); box-shadow: var(--shadow); }
.service-icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--copper-soft); color: var(--copper); border: 1px solid #ecd6c2; margin-bottom: .9rem; }
.service-icon .icon { width: 22px; height: 22px; }
.service-card h4 { margin-bottom: .5rem; }

/* ---------- 9. Process steps ---------- */
.process { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); counter-reset: paso; }
.process-step { position: relative; padding-top: 2.6rem; }
.process-step::before {
  counter-increment: paso; content: "0" counter(paso);
  position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: .8rem; font-weight: 700;
  color: var(--copper); border-top: 1px solid var(--copper); padding-top: .35rem; width: 2.4rem;
}
.process-step h4 { margin-bottom: .35rem; }

/* ---------- 10. Planes ---------- */
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.price.is-featured { border: 2px solid var(--steel); box-shadow: var(--shadow); }
.price-flag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); background: var(--copper-soft); border: 1px solid #ecd6c2; border-radius: var(--radius-pill); padding: .2rem .5rem; margin-bottom: .55rem; }
.price-name { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--muted); }
.price-amount { display: flex; align-items: baseline; gap: .35rem; }
.price-amount b { font-size: 2.25rem; font-weight: 700; letter-spacing: -.035em; color: var(--ink); }
.price-amount span { color: var(--muted); font-size: .9rem; }
.price-cta { margin-top: auto; }

/* ---------- 11. Listas de chequeo ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
/* flujo normal: si el <li> fuera grid, la negrita y el texto caían en celdas
   distintas y cada uno ocupaba su propia línea (el texto se partía en 9 líneas) */
.checks li { position: relative; padding-left: 1.5rem; margin: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .5rem; height: .5rem; border-radius: 1px; background: var(--steel);
}
.checks-x li::before { background: var(--danger); }
.checks-plain li::before { background: var(--line-strong); }

/* ---------- 12. Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .5rem;
  border-radius: var(--radius-pill); font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; background: #eef1f5; color: var(--muted);
  border: 1px solid var(--line);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: #cfe3d7; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: #eeddb9; }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: #edd2d2; }
.badge.info { background: #eaf1f6; color: var(--steel); border-color: #d5e2ec; }
.badge.accent { background: var(--copper-soft); color: var(--copper); border-color: #ecd6c2; }

/* ---------- 13. Tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 42rem; }
table.data th, table.data td { text-align: left; padding: .72rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: #f2f5f8; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- 14. Avisos ---------- */
.note { border: 1px solid var(--line); border-left: 3px solid var(--steel); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface); padding: .9rem 1.1rem; }
.note-warn { border-left-color: var(--warn); background: #fffdf8; }
.note-danger { border-left-color: var(--danger); background: #fdf8f8; }
.note-dark { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); color: #c3d1de; }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); }
.note-dark strong { color: #fff; }

/* ---------- 15. FAQ ---------- */
.faq { display: grid; gap: .5rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--steel); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details > p, .faq details > ul { margin: .8rem 0 0; color: var(--muted); }

/* ---------- 16. CTA band ---------- */
.cta-section { background: linear-gradient(120deg, var(--copper) 0%, #8e5021 100%); color: #fff; }
.cta-section h2 { color: #fff; }
.cta-section p { color: #f6e6d8; }

/* ---------- 17. Botones flotantes ---------- */
.floating-buttons { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: grid; gap: .5rem; }
.float-btn, .float-whatsapp {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow); text-decoration: none; border: 0; cursor: pointer;
}
.float-whatsapp { background: #1f7a4d; color: #fff; }
.float-btn { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.float-btn .icon, .float-whatsapp .icon { width: 20px; height: 20px; }

/* ---------- 18. Iconos ---------- */
.icon { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* ---------- 19. Prosa (manual y guía) ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); scroll-margin-top: 5.5rem; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.7rem; }
.prose p, .prose li { max-width: 68ch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0 1.6rem; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: #f2f5f8; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.manual { display: grid; gap: calc(var(--gap) * 1.3); grid-template-columns: 1fr; align-items: start; }
.manual-toc { display: none; }
.manual-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; counter-reset: toc; }
.manual-toc li { counter-increment: toc; margin: 0; }
.manual-toc a { display: block; padding: .45rem .7rem .45rem 2.1rem; position: relative; color: var(--muted); text-decoration: none; font-size: .88rem; border-left: 2px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.manual-toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: .6rem; font-family: var(--mono); font-size: .72rem; color: var(--line-strong); }
.manual-toc a:hover { color: var(--ink); background: var(--surface); }
.manual-toc a.is-active { color: var(--ink); border-left-color: var(--copper); background: var(--surface); font-weight: 600; }
.manual-toc a.is-active::before { color: var(--copper); }
@media (min-width: 980px) {
  .manual { grid-template-columns: 240px minmax(0, 1fr); }
  .manual-toc { display: block; position: sticky; top: 5rem; }
}
.manual-body { min-width: 0; }

/* ---------- 20. Guía de estilo ---------- */
.swatches { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.swatch { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.swatch-color { height: 62px; }
.swatch-meta { padding: .5rem .65rem; font-size: .78rem; }
.swatch-meta b { display: block; font-size: .82rem; color: var(--ink); }
.swatch-meta span { color: var(--muted); font-family: var(--mono); font-size: .72rem; }
.type-row { display: flex; align-items: baseline; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.type-row:last-child { border-bottom: 0; }
.type-row > span:last-child { color: var(--muted); font-family: var(--mono); font-size: .74rem; margin-left: auto; }
.icon-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); }
.icon-cell { display: grid; justify-items: center; gap: .45rem; padding: .9rem .4rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: .7rem; color: var(--muted); text-align: center; }
.icon-cell .icon { color: var(--steel); }
.do-dont { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

/* ---------- 21. Tarjetas genéricas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.15rem, .95rem + .7vw, 1.6rem); }
.card h3, .card h4 { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-flat { background: var(--surface-2); }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--steel); box-shadow: var(--shadow); color: inherit; }
.card-link:hover h4 { color: var(--steel); }

/* ---------- 22. Footer ---------- */
.footer { background: var(--ink); color: #8fa2b4; padding: 3rem 0 2rem; font-size: .9rem; }
.footer a { color: #cfdbe6; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer h4 { color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-grid { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.footer .navbar-brand { color: #fff; }

/* ---------- 23. Utilidades finales ---------- */
.muted { color: var(--muted); } .center { text-align: center; }
.mt-auto { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

@media print {
  .topbar-small, .navbar, .footer, .floating-buttons, .btn, .manual-toc { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding: 1rem 0; }
  .prose h2 { break-after: avoid; }
  a { color: #000; text-decoration: none; }
}

/* ==========================================================================
   24. Alias de compatibilidad
   Las páginas de documentación (funciones, manual, guía) se escribieron con
   una primera versión de nombres. Se mantienen como alias para que no haya
   clases huérfanas: cualquier página nueva debe usar los nombres de arriba.
   ========================================================================== */
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 2.5rem); margin-inline: auto; }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.section--dark { background: linear-gradient(180deg, var(--ink) 0%, #0d2438 100%); color: #e7edf3; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: #b3c2d1; }
.section__head { max-width: 46rem; margin-bottom: calc(var(--gap) * 1.2); }
.section__head p { color: var(--muted); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--copper); }
.section--dark .eyebrow { color: #d9a173; }
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.card--flat { background: var(--surface-2); }
.card--link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, box-shadow .15s; }
.card--link:hover { border-color: var(--steel); box-shadow: var(--shadow); color: inherit; }
.card--rule { border-top: 2px solid var(--steel); }
.card__icon { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--copper-soft); color: var(--copper); margin-bottom: .9rem; border: 1px solid #ecd6c2; }
.card__icon .icon { width: 21px; height: 21px; }
.checks--plain li::before { background: var(--line-strong); }
.checks--x li::before { background: var(--danger); }
.note--warn { border-left-color: var(--warn); background: #fffdf8; }
.note--danger { border-left-color: var(--danger); background: #fdf8f8; }
.note--dark { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); color: #c3d1de; }
.note--dark strong { color: #fff; }
.btn--primary { background: var(--steel); color: #fff; border-color: var(--steel); }
.btn--primary:hover { background: #163d55; border-color: #163d55; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: #eef1f5; border-color: var(--steel); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--copper { background: var(--copper); color: #fff; border-color: var(--copper); }
.btn--copper:hover { background: #8e5021; border-color: #8e5021; color: #fff; }
.btn--lg { padding: .9rem 1.45rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--quiet { padding: .4rem .65rem; font-size: .85rem; background: var(--surface); border-color: var(--line); color: var(--muted); }
.btn--primary[disabled], .btn[disabled] { opacity: .5; cursor: not-allowed; }
.fila { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.manual__toc { display: none; }
.manual__body { min-width: 0; }
@media (min-width: 980px) {
  .manual__toc { display: block; position: sticky; top: 5rem; }
}
.swatch__color { height: 62px; }
.swatch__meta { padding: .5rem .65rem; font-size: .78rem; }
.swatch__meta b { display: block; font-size: .82rem; color: var(--ink); }
.swatch__meta span { color: var(--muted); font-family: var(--mono); font-size: .72rem; }
.price__name { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--muted); }
.price__amount { display: flex; align-items: baseline; gap: .35rem; }
.price__amount b { font-size: 2.25rem; font-weight: 700; letter-spacing: -.035em; color: var(--ink); }
.price__amount span { color: var(--muted); font-size: .9rem; }
.price__resumen { color: var(--muted); font-size: .93rem; margin: 0; }
.price__cta { margin-top: auto; }
.price__flag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); background: var(--copper-soft); border: 1px solid #ecd6c2; border-radius: var(--radius-pill); padding: .2rem .5rem; margin-bottom: .55rem; }

.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.split { display: grid; gap: calc(var(--gap) * 1.3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); align-items: center; }

/* ==========================================================================
   25. Imágenes de secciones
   ========================================================================== */

/* foto con tarjeta de dato encima (como en las plantillas) */
.foto-marco { position: relative; border-radius: var(--radius); overflow: hidden; }
.foto-marco img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.foto-marco::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,29,46,0) 45%, rgba(10,29,46,.55) 100%);
}
.foto-dato {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  background: var(--copper); color: #fff; border-radius: var(--radius-sm);
  padding: .8rem 1rem; display: flex; align-items: center; gap: .9rem; box-shadow: var(--shadow);
}
.foto-dato b { font-size: 1.5rem; letter-spacing: -.03em; line-height: 1; }
.foto-dato small { font-size: .74rem; line-height: 1.25; opacity: .92; max-width: 8rem; }
.foto-dato .sep { width: 1px; height: 34px; background: rgba(255,255,255,.35); }

/* tarjetas de tipo de condominio con foto */
.tipo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.tipo-card:hover { border-color: var(--steel); box-shadow: var(--shadow); }
.tipo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.tipo-card .tipo-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.tipo-card h4 { margin: 0; }
.tipo-card p { margin: 0; }
.tipo-card .checks { margin-top: .2rem; }

/* teléfono con la app dentro */
.telefono {
  width: min(296px, 100%); margin-inline: auto; border-radius: 34px; padding: 9px;
  background: linear-gradient(160deg, #16283c, #0a1d2e); box-shadow: var(--shadow-lg);
  border: 1px solid #24384d;
}
.telefono__pantalla { border-radius: 26px; overflow: hidden; background: #fff; aspect-ratio: 430 / 1080; }
.telefono__pantalla img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; }
.telefono__muesca { width: 92px; height: 5px; border-radius: 3px; background: #2b405a; margin: 4px auto 8px; }

/* ==========================================================================
   26. Alta de cliente (formularios del sitio)
   Nota: la app usa .campo en app.css; aquí se usa .f-* para no chocar.
   ========================================================================== */
.f-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 1rem + 1vw, 2rem); }
.f-seccion + .f-seccion { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.f-seccion__titulo { display: flex; align-items: center; gap: .55rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.f-seccion__num { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .7rem; letter-spacing: 0; }

.f-grid { display: grid; gap: .9rem 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-grid .f-campo--ancho { grid-column: 1 / -1; } }

.f-campo { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.f-label { font-size: .84rem; font-weight: 650; color: var(--ink); }
.f-label span { font-weight: 400; color: var(--muted); }
.f-input, .f-select, .f-textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .68rem .8rem; transition: border-color .15s, box-shadow .15s;
}
.f-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.f-input::placeholder { color: #9aa6b2; }
.f-input:focus, .f-select:focus, .f-textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(27, 73, 101, .16); }
.f-input.is-error, .f-select.is-error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(140, 47, 47, .12); }
.f-hint { font-size: .78rem; color: var(--muted); }
.f-error { font-size: .78rem; color: var(--danger); display: none; }
.f-campo.tiene-error .f-error { display: block; }

/* selector de tipo: tarjetas con icono */
.f-opciones { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); }
.f-opcion { position: relative; display: grid; gap: .3rem; justify-items: start; padding: .8rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.f-opcion:hover { border-color: var(--steel); }
.f-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.f-opcion .icon { width: 20px; height: 20px; color: var(--steel); }
.f-opcion b { font-size: .9rem; }
.f-opcion small { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.f-opcion:has(input:checked) { border-color: var(--steel); background: #f3f7fa; box-shadow: inset 0 0 0 1px var(--steel); }
.f-opcion:has(input:focus-visible) { outline: 2px solid var(--steel-2); outline-offset: 2px; }
/* respaldo con clase para navegadores sin :has() */
.f-opcion.is-seleccionado { border-color: var(--steel); background: #f3f7fa; box-shadow: inset 0 0 0 1px var(--steel); }

/* selector de plan */
.f-planes { display: grid; gap: .6rem; }
.f-plan { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem .8rem; padding: .85rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.f-plan:hover { border-color: var(--steel); }
.f-plan input { position: absolute; opacity: 0; pointer-events: none; }
.f-plan b { font-size: .95rem; }
.f-plan small { grid-column: 1; font-size: .78rem; color: var(--muted); }
.f-plan .f-plan__precio { grid-row: 1 / span 2; text-align: right; font-weight: 700; color: var(--ink); }
.f-plan .f-plan__precio em { display: block; font-style: normal; font-size: .72rem; font-weight: 500; color: var(--muted); }
.f-plan:has(input:checked) { border-color: var(--steel); background: #f3f7fa; box-shadow: inset 0 0 0 1px var(--steel); }
.f-plan:has(input:focus-visible) { outline: 2px solid var(--steel-2); outline-offset: 2px; }
.f-plan.is-seleccionado { border-color: var(--steel); background: #f3f7fa; box-shadow: inset 0 0 0 1px var(--steel); }
.f-plan__flag { position: absolute; top: -.6rem; right: .8rem; background: var(--copper); color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 4px; }

/* resumen lateral */
.resumen { position: sticky; top: 5.5rem; }
.resumen__caja { background: linear-gradient(160deg, #0d2438, #0a1d2e); color: #e7edf3; border-radius: var(--radius); padding: 1.25rem; }
.resumen__caja h4 { color: #fff; font-size: 1rem; margin-bottom: .2rem; }
.resumen__caja p { color: #a9b8c7; font-size: .85rem; margin: 0; }
.resumen__linea { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.resumen__linea:last-of-type { border-bottom: 0; }
.resumen__linea span { color: #a9b8c7; }
.resumen__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.18); }
.resumen__total b { font-size: 1.6rem; letter-spacing: -.03em; color: #fff; }
.resumen__total small { color: #9db0c2; }

/* estado de éxito */
.exito { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--radius); padding: clamp(1.2rem, 1rem + 1vw, 2rem); }
.exito__icono { width: 46px; height: 46px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin-bottom: .9rem; }
.exito__icono .icon { width: 24px; height: 24px; stroke-width: 2.2; }

/* botón con carga */
.btn.is-loading { opacity: .75; pointer-events: none; }

/* --------------------------------------------------------------- marca ------ */

/* El logotipo sobre fondo oscuro necesita aire y, como es navy, un cuadro
   blanco: si no, desaparece contra el fondo. */
.marca-confianza {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 1.4rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}
.marca-confianza img { display: block; }

.marca-portada {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 1.1rem;
}
.marca-portada img { display: block; }

/* el pie merece más presencia que la barra */
.footer .navbar-brand img { width: 44px; height: 44px; }
.footer .navbar-brand { font-size: 1.35rem; }
