/* ==========================================================
   Fuentes autoalojadas — Fraunces y Karla, ambas bajo SIL OFL 1.1
   (ver /fuentes/OFL.txt). Subsets latin y latin-ext, los mismos
   que servía Google. latin-ext es obligatorio: el signo ₡ (U+20A1)
   vive ahí, no en latin.
   ========================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 650;
  font-display: swap;
  src: url(/fuentes/fraunces-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: 'Fraunces';
  font-style: normal;
  font-weight: 650;
  font-display: swap;
  src: url(/fuentes/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fuentes/karla-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: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fuentes/karla-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fuentes/karla-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: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fuentes/karla-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fuentes/karla-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: 'Karla';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fuentes/karla-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fuentes/karla-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: 'Karla';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fuentes/karla-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================
   Pura Vida Digital — sistema compartido
   Una sola fuente de verdad para las 7 páginas.
   Lo específico de cada página va inline en su <style>.
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  --verde:#0e6b4a; --verde-osc:#0a4f37; --verde-cl:#edf5f1; --mango:#f2913d;
  --ink:#20241f; --crema:#faf7f0; --line:#e9e3d6; --wa:#25d366; --muted:#6d7268;
  --wash:#f4f1e8; --papel:#fff; --alerta:#b0503f;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --curva: cubic-bezier(.2,.8,.3,1);
}

body {
  margin: 0;
  font-family: 'Karla', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -.03em; }

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--verde); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: .9rem; font-weight: 700; text-decoration: none;
  transition: top 180ms var(--curva);
}
.saltar:focus { top: 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- navegación ---------- */
.cabecera { border-bottom: 1px solid var(--line); }
.cabecera .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 13px; padding-bottom: 13px; }
.marca { display: flex; align-items: center; gap: 8px; font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; font-weight: 650; font-size: 1rem; letter-spacing: -.015em; text-decoration: none; }
.marca b { color: var(--verde); font-weight: 650; }
.menu { display: flex; gap: 3px; flex-wrap: wrap; }
.menu a { display: block; padding: 7px 11px; border-radius: 6px; font-size: .87rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: background 150ms ease-out, color 150ms ease-out; }
.menu a:hover { background: var(--wash); color: var(--ink); }
.menu a[aria-current="page"] { background: var(--wash); color: var(--ink); font-weight: 700; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 19px; border: 0; border-radius: 8px; font-family: inherit; font-size: .9rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform 150ms var(--curva), background 150ms ease-out, border-color 150ms ease-out; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn.p { background: var(--verde); color: #fff; }
.btn.p:hover { background: #12805a; }
.btn.s { background: var(--papel); color: var(--ink); border: 1px solid var(--line); }
.btn.s:hover { border-color: var(--ink); }
.btn.w { background: var(--wa); color: #06331c; }
.btn.w:hover { background: #3ee07a; }

/* ---------- ruta de migas ---------- */
.miga { padding-top: 22px; font-size: .82rem; color: var(--muted); }
.miga ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.miga li { display: flex; align-items: center; gap: 8px; }
.miga li + li::before { content: "›"; color: var(--line); }
.miga a { text-decoration: none; border-bottom: 1px solid transparent; transition: color 150ms ease-out, border-color 150ms ease-out; }
.miga a:hover { color: var(--ink); border-bottom-color: var(--mango); }
.miga [aria-current="page"] { color: var(--ink); font-weight: 700; }
.miga + .portada { padding-top: clamp(20px,3vw,32px); }

/* ---------- portada de subpágina ---------- */
.portada { padding: clamp(38px,6vw,68px) 0 0; }
.portada .rotulo { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--verde); }
.portada h1 { font-size: clamp(1.95rem,4.6vw,3.05rem); line-height: 1.04; max-width: 18ch; margin-top: 10px; text-wrap: balance; }
.portada h1 em { font-style: normal; color: var(--verde); }
.portada .sub { color: var(--muted); font-size: 1.04rem; max-width: 56ch; margin-top: 15px; text-wrap: pretty; }
.portada .sub strong { color: var(--ink); font-weight: 700; }
.portada .acciones { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.avales { display: flex; gap: 6px 18px; margin-top: 18px; flex-wrap: wrap; font-size: .81rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.avales b { color: var(--ink); font-weight: 700; }

/* ---------- secciones ---------- */
main section { padding: clamp(42px,6vw,72px) 0 0; }
.titulo .rotulo { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--verde); display: block; margin-bottom: 7px; }
.titulo h2 { font-size: clamp(1.4rem,3.1vw,2.05rem); max-width: 26ch; text-wrap: balance; }
.titulo p { color: var(--muted); font-size: .96rem; max-width: 58ch; margin-top: 9px; text-wrap: pretty; }

/* ---------- marco de dispositivo ---------- */
.marco { background: var(--papel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(32,36,31,.05), 0 14px 36px -14px rgba(32,36,31,.18); }
.marco-top { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-bottom: 1px solid var(--line); background: var(--wash); }
.marco-top i { width: 8px; height: 8px; border-radius: 50%; background: #d8d2c4; flex: none; }
.marco-top .ruta { flex: 1; text-align: center; font-family: var(--mono); font-size: .69rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- conversación de WhatsApp ---------- */
.chat { padding: 14px; background: #e9e6dd; display: grid; gap: 7px; align-content: start; }
.burbuja { max-width: 84%; padding: 8px 11px; border-radius: 11px; font-size: .82rem; line-height: 1.42; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.burbuja.cliente { background: var(--papel); }
.burbuja.bot { background: #d8f2c4; margin-left: auto; }
.burbuja.tonto { background: #f3e3dc; margin-left: auto; }
.burbuja small { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.burbuja .hora { float: right; margin: 4px 0 0 8px; font-size: .62rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.entra { animation: entra .34s var(--curva) both; animation-delay: calc(var(--d,0) * 1ms); }
@keyframes entra { from { opacity: 0; transform: translateY(9px) scale(.975) } to { opacity: 1; transform: none } }

/* ---------- agenda ---------- */
.agenda { padding: 14px 16px; background: var(--papel); }
.agenda-cab { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .73rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.cita { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.cita:last-child { border-bottom: 0; }
.cita time { font-family: var(--mono); font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cita b { display: block; font-weight: 700; }
.cita i { font-style: normal; color: var(--muted); font-size: .77rem; }
.cita.libre { background: var(--verde-cl); margin: 0 -8px; padding: 10px 8px; border-radius: 8px; border-bottom-color: transparent; }
.cita.libre b { color: var(--verde); }
.pie-marco { padding: 13px 16px; border-top: 1px solid var(--line); background: var(--papel); font-size: .84rem; color: var(--muted); }
.pie-marco b { color: var(--ink); font-weight: 700; }

/* ---------- dos paneles lado a lado ---------- */
.par { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
@media (max-width: 880px) { .par { grid-template-columns: 1fr; } }

/* ---------- comparación en dos columnas (sin tarjetas) ---------- */
.comparar { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
@media (max-width: 780px) { .comparar { grid-template-columns: 1fr; } }
.comparar > div { padding: 22px 24px 24px; border-bottom: 1px solid var(--line); }
.comparar > div:first-child { border-right: 1px solid var(--line); }
@media (max-width: 780px) { .comparar > div:first-child { border-right: 0; } }
.comparar h3 { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.comparar h3::before { content: ""; width: 9px; height: 9px; border-radius: 2px; flex: none; }
.comparar .antes h3 { color: var(--alerta); }
.comparar .antes h3::before { background: var(--alerta); }
.comparar .despues h3 { color: var(--verde); }
.comparar .despues h3::before { background: var(--verde); }
.comparar li { color: var(--muted); font-size: .93rem; padding: 7px 0 7px 20px; position: relative; text-wrap: pretty; }
.comparar li::before { content: "—"; position: absolute; left: 0; top: 7px; color: var(--line); }
.comparar .despues li::before { content: "✓"; color: var(--verde); font-weight: 700; }
.comparar p { color: var(--muted); font-size: .93rem; text-wrap: pretty; }

/* ---------- rejilla de capacidades ---------- */
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); margin-top: 26px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rejilla > div { padding: 17px 19px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rejilla b { display: block; font-size: .92rem; font-weight: 700; }
.rejilla span { display: block; color: var(--muted); font-size: .86rem; margin-top: 3px; text-wrap: pretty; }

/* ---------- filas de servicio / pasos numerados ---------- */
.servicios { margin-top: 24px; border-top: 1px solid var(--line); }
.servicio { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: baseline; padding: 19px 2px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background 160ms ease-out, padding-left 220ms var(--curva); }
.servicio:hover { background: rgba(32,36,31,.025); padding-left: 10px; }
.servicio h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.servicio .monto { font-size: .87rem; font-weight: 700; color: var(--verde); font-variant-numeric: tabular-nums; white-space: nowrap; }
.servicio .monto em { font-style: normal; font-weight: 500; color: var(--muted); }
.servicio p { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; max-width: 68ch; text-wrap: pretty; }
.servicio.pendiente { opacity: .55; }
.servicio.pendiente .monto { color: var(--muted); }
.etiqueta { display: inline-block; margin-left: 8px; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7a4b12; background: var(--mango); border-radius: 3px; padding: 2px 7px; vertical-align: 2px; }

.pasos { margin-top: 24px; border-top: 1px solid var(--line); }
.paso { display: grid; grid-template-columns: 46px 1fr; gap: 4px 18px; padding: 18px 2px; border-bottom: 1px solid var(--line); }
.paso .n { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; font-weight: 650; font-size: 1rem; color: var(--mango); font-variant-numeric: tabular-nums; grid-row: span 2; padding-top: 2px; }
.paso b { font-size: 1rem; font-weight: 700; }
.paso p { color: var(--muted); font-size: .91rem; max-width: 62ch; text-wrap: pretty; }

/* ---------- tablas ---------- */
.tabla { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: .92rem; font-variant-numeric: tabular-nums; }
.tabla th, .tabla td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tabla thead th { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.tabla td { text-align: right; white-space: nowrap; font-weight: 700; }
.tabla thead th:last-child { text-align: right; }
.tabla tbody tr { transition: background 150ms ease-out; }
.tabla tbody tr:hover { background: var(--wash); }
.tabla tr.destacado th, .tabla tr.destacado td { background: var(--verde-cl); }
.tabla tr.destacado th { box-shadow: inset 3px 0 0 0 var(--verde); }
.tabla .plan { font-weight: 700; }
.tabla .plan em { display: block; font-style: normal; font-weight: 400; color: var(--muted); font-size: .85rem; }
.tabla tr.suelto th, .tabla tr.suelto td { color: var(--muted); font-weight: 400; }
.tabla tr.total th, .tabla tr.total td { background: var(--wash); font-weight: 800; }

/* ---------- la cuenta (ROI) ---------- */
.cuenta { margin-top: 26px; background: var(--papel); border: 1.5px solid var(--verde); border-radius: 14px; padding: 22px 24px; max-width: 620px; }
.cuenta .linea { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; font-variant-numeric: tabular-nums; }
.cuenta .linea:last-of-type { border-bottom: 0; }
.cuenta .linea span { color: var(--muted); }
.cuenta .linea b { white-space: nowrap; font-weight: 700; }
.cuenta .total { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; font-weight: 650; font-size: 1.22rem; letter-spacing: -.02em; color: var(--verde-osc); margin-top: 12px; }
.cuenta .aviso { color: var(--muted); font-size: .84rem; margin-top: 10px; text-wrap: pretty; }

/* ---------- nota al pie de sección ---------- */
.enlace { color: var(--verde); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--mango); padding-bottom: 2px; transition: color 160ms ease-out; }
.enlace:hover { color: var(--verde-osc); }
.pie-nota { margin-top: 14px; font-size: .88rem; }
.nota { color: var(--muted); font-size: .88rem; margin-top: 14px; max-width: 68ch; text-wrap: pretty; }
.nota b { color: var(--ink); font-weight: 700; }

/* ---------- quién ---------- */
.quien { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,290px); gap: clamp(22px,4vw,48px); padding-top: 26px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .quien { grid-template-columns: 1fr; } }
.quien h2 { font-size: 1.2rem; margin-bottom: 9px; }
.quien p { color: var(--muted); font-size: .94rem; max-width: 56ch; text-wrap: pretty; }
.quien p + p { margin-top: 9px; }
.quien strong { color: var(--ink); font-weight: 700; }
.perfiles { display: grid; gap: 6px; align-content: start; }
.perfiles a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: .86rem; font-weight: 700; text-decoration: none; transition: border-color 150ms ease-out, background 150ms ease-out; }
.perfiles a:hover { border-color: var(--verde); background: var(--verde-cl); }
.perfiles a span { color: var(--muted); font-weight: 400; }

/* ---------- cierre y pie ---------- */
.cierre { margin-top: clamp(42px,6vw,72px); background: var(--ink); color: #fff; border-radius: 16px; padding: clamp(28px,5vw,46px); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; }
@media (max-width: 780px) { .cierre { grid-template-columns: 1fr; } }
.cierre h2 { font-size: clamp(1.3rem,3vw,1.9rem); max-width: 20ch; text-wrap: balance; }
.cierre p { color: #b6bbb2; font-size: .94rem; max-width: 46ch; margin-top: 8px; text-wrap: pretty; }

footer { margin-top: 34px; padding: 20px 0 44px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; }
.legal { display: flex; gap: 16px; }
.legal a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: color 150ms ease-out, border-color 150ms ease-out; }
.legal a:hover { color: var(--ink); border-color: var(--mango); }
.legal a[aria-current="page"] { color: var(--ink); font-weight: 700; border-color: var(--mango); }

/* ---------- entrada ---------- */
.aparecer { opacity: 0; transform: translateY(16px); animation: aparecer .5s var(--curva) forwards; animation-delay: calc(var(--i,0) * 65ms); }
@keyframes aparecer { to { opacity: 1; transform: none } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .aparecer, .entra { opacity: 1 !important; transform: none !important; }
}
