/* FERABAL Capital: sitio público.
   Marca: azul marino #0B2545, verde #2EC4A0, gris azulado #4A6378, claro #F5F7FA. Fuente: Inter.
   No carga nada de otros sitios (ni fuentes ni scripts). */
:root {
  --navy: #0B2545; --navy-2: #13315C; --green: #2EC4A0; --green-dark: #128A6E; --green-soft: #E6F8F3;
  --slate: #4A6378; --light: #F5F7FA; --line: #DCE3EA; --white: #fff; --amber-bg: #FEF0C7; --amber: #7A2E0E;
  --on-navy: #C9D6E2;
  --sombra: 0 1px 2px rgba(11, 37, 69, .05), 0 10px 28px rgba(11, 37, 69, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); background: var(--white); line-height: 1.6; font-size: 17px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.angosto { max-width: 820px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Aviso de borrador: quitar al publicar */
.borrador { background: var(--amber-bg); color: var(--amber); font-size: 14px; padding: 8px 16px; text-align: center; }
.pendiente { background: var(--amber-bg); color: var(--amber); border-radius: 4px; padding: 0 5px; font-weight: 600; }
.provisional { font-size: 14px; color: var(--amber); margin: 0 0 20px; }

/* Botones */
.boton { display: inline-block; background: var(--green); color: var(--navy); font-weight: 700;
  text-decoration: none; padding: 12px 20px; border-radius: 10px; border: 2px solid var(--green);
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.boton:hover, .boton:focus-visible { background: #4AD4B3; border-color: #4AD4B3; }
.boton:active { transform: translateY(1px); }
.boton.grande { font-size: 18px; padding: 15px 26px; box-shadow: 0 8px 22px rgba(46, 196, 160, .28); }
.boton.grande:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(46, 196, 160, .36); }
.boton.claro { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); font-size: 18px; padding: 15px 26px; }
.boton.claro:hover, .boton.claro:focus-visible { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.boton.chico { padding: 8px 14px; font-size: 14px; border-radius: 8px; }

/* Encabezado */
header.sitio { background: var(--navy); position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
header.sitio .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.marca { display: flex; align-items: center; text-decoration: none; color: var(--white); }
svg.logo { height: 36px; width: auto; display: block; }
nav.principal { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
nav.principal a { color: var(--on-navy); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0;
  border-bottom: 2px solid transparent; }
nav.principal a:hover, nav.principal a:focus-visible { color: var(--white); border-bottom-color: var(--green); }
.menu-boton { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px; cursor: pointer; }
.menu-boton svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; }

/* 1. Portada */
.portada { color: var(--white); padding: 84px 0 92px; overflow: hidden;
  background:
    radial-gradient(820px 460px at 88% -12%, rgba(46, 196, 160, .24), transparent 62%),
    radial-gradient(640px 380px at -8% 112%, rgba(46, 196, 160, .10), transparent 62%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
.portada .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.sobre { color: var(--green); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.8px; }
.portada p.intro { font-size: 19px; color: var(--on-navy); margin: 0 0 30px; max-width: 32em; }
.acciones { display: flex; gap: 12px; flex-wrap: wrap; }

/* Dibujo de la Carátula (adorno de la portada) */
.hoja { background: var(--white); color: var(--navy); border-radius: 16px; padding: 26px 26px 20px; width: 100%; max-width: 360px;
  justify-self: end; transform: rotate(2deg);
  box-shadow: 14px 14px 0 rgba(255, 255, 255, .07), 0 28px 60px rgba(0, 0, 0, .38); }
.hoja-cabeza { border-bottom: 3px solid var(--green); padding-bottom: 14px; margin-bottom: 6px; }
.hoja-titulo { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.2; }
.hoja-sub { display: block; color: var(--slate); font-size: 14px; }
.hoja-filas { list-style: none; margin: 0; padding: 0; }
.hoja-filas li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.hoja-filas li span { flex: 0 0 46%; }
.hoja-filas li i { flex: 1; height: 10px; border-radius: 5px; background: #E3E9EF; }
.hoja-filas li:nth-child(2) i { margin-right: 34%; }
.hoja-filas li:nth-child(3) i { margin-right: 18%; }
.hoja-filas li:nth-child(4) i { margin-right: 42%; }
.hoja-filas li:nth-child(5) i { margin-right: 26%; background: #BFEADF; }
.hoja-filas li:nth-child(6) i { margin-right: 10%; }
.hoja-pie { margin: 14px 0 0; font-size: 14px; font-weight: 700; color: var(--green-dark); padding-left: 28px; position: relative; }
.hoja-pie::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: var(--navy); font-size: 12px; font-weight: 800; text-align: center; line-height: 20px; }

/* Secciones */
section { padding: 80px 0; }
section.gris { background: var(--light); }
section, .portada { scroll-margin-top: 72px; } /* que el encabezado fijo no tape el título */
h2.titulo { font-size: clamp(27px, 3.2vw, 36px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.5px; }
h2.titulo::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--green); margin-bottom: 16px; }
p.bajada { color: var(--slate); margin: 0 0 36px; max-width: 42em; font-size: 18px; }
h3.subtitulo { font-size: 22px; margin: 44px 0 18px; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.letra { font-size: 13px; color: var(--slate); margin: 14px 0 0; }

/* 2. Calculadora */
.lista { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; box-shadow: var(--sombra); }
.lista h3 { margin: 0 0 12px; font-size: 19px; }
.lista ul { margin: 0; padding-left: 20px; }
.lista li { padding: 3px 0; }
.lista li::marker { color: var(--green-dark); }
.calc fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.calc legend, .calc-etiqueta { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 10px; display: block; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opciones label { cursor: pointer; }
.opciones input { position: absolute; opacity: 0; }
.opciones span { display: block; padding: 10px 16px; border: 2px solid var(--line); border-radius: 10px; font-weight: 600;
  background: var(--white); min-width: 52px; text-align: center; transition: border-color .15s, background-color .15s; }
.opciones label:hover span { border-color: #B8C4D0; }
.opciones input:checked + span { border-color: var(--green-dark); background: var(--green-soft); }
.opciones input:focus-visible + span { outline: 3px solid #2EC4A066; }
.calc-monto { display: block; font-size: 36px; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; accent-color: var(--green-dark); height: 28px; margin: 0; cursor: pointer; }
.calc-rango { display: flex; justify-content: space-between; color: var(--slate); font-size: 13px; margin-bottom: 22px; }
.resultado { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); border-radius: 14px; padding: 28px;
  box-shadow: 0 18px 40px rgba(11, 37, 69, .22); }
.resultado .etiqueta { color: var(--green); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.resultado .pago { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; margin: 4px 0; font-variant-numeric: tabular-nums; }
.resultado .menor { color: var(--on-navy); font-size: 14px; margin: 0; }
.resultado dl { margin: 20px 0 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.resultado dt { color: var(--green); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-top: 12px; }
.resultado dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.resultado .boton { display: block; text-align: center; margin-bottom: 14px; }

/* Lista de precios y tabla de pagos */
table.precios { width: 100%; border-collapse: collapse; font-size: 16px; }
table.precios th, table.precios td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.precios tr:last-child th, table.precios tr:last-child td { border-bottom: 0; }
table.precios th[scope=row] { width: 42%; color: var(--slate); font-weight: 600; }
table.precios.ejemplos th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--slate); }
table.precios.ejemplos td { font-variant-numeric: tabular-nums; }
table.precios.ejemplos strong { font-size: 19px; }
table.precios caption { text-align: left; font-weight: 700; font-size: 18px; padding-bottom: 8px; }
.tabla-titulo { font-size: 18px; margin: 18px 0 0; }
.solo-celular { display: none; }
.tabla-scroll { overflow-x: auto; margin-top: 12px; }
table.pagos { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.pagos th, table.pagos td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.pagos thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--slate); border-bottom: 2px solid var(--line); }
table.pagos th:first-child { text-align: left; padding-left: 0; }
table.pagos tbody th { font-weight: 600; color: var(--slate); }
table.pagos tbody tr:nth-child(even) { background: var(--light); }
table.pagos td:nth-child(5) { font-weight: 700; }
table.pagos tfoot th, table.pagos tfoot td { font-weight: 800; border-top: 2px solid var(--navy); border-bottom: 0; }

/* Cajas que se abren: condiciones y preguntas */
details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 28px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--green-dark); border-bottom: 2px solid var(--green-dark); transform: rotate(45deg); transition: transform .15s; }
details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
summary:hover { color: var(--green-dark); }
details[open] > summary { border-bottom: 1px solid var(--line); }
details p { color: var(--slate); margin: 14px 0 16px; }
details.condiciones { margin-top: 24px; padding: 0 24px; box-shadow: var(--sombra); }
details.condiciones + details.condiciones { margin-top: 12px; }
details.condiciones[open] { padding-bottom: 20px; }
details.condiciones .dos { margin-top: 16px; }
details.condiciones > p.letra { font-size: 15px; }

/* 3. Beneficios */
#beneficios h2.titulo { text-align: center; margin-bottom: 36px; }
#beneficios h2.titulo::before { margin-left: auto; margin-right: auto; }
.beneficio { text-align: center; padding: 28px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--sombra); }
.beneficio svg { width: 56px; height: 56px; fill: none; stroke: var(--green-dark); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  background: var(--green-soft); border-radius: 16px; padding: 10px; box-sizing: content-box; }
.beneficio h3 { font-size: 20px; margin: 16px 0 6px; }
.beneficio p { color: var(--slate); margin: 0; }

/* 4. Requisitos */
.producto { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; border-top: 5px solid var(--green); box-shadow: var(--sombra); }
.producto h3 { font-size: 24px; margin: 0 0 2px; }
.producto .para { color: var(--slate); margin: 0 0 18px; font-weight: 500; }
dl.ficha { margin: 0; }
dl.ficha dt { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--slate); font-weight: 700; margin-top: 14px; }
dl.ficha dd { margin: 2px 0 0; }
.aviso-sat { background: var(--navy); color: var(--white); border-radius: 14px; padding: 22px 26px; margin-top: 24px; }
.aviso-sat strong { color: var(--green); }

/* 5. Cómo funciona */
ol.pasos { list-style: none; counter-reset: paso; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
ol.pasos li { counter-increment: paso; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px 22px;
  box-shadow: var(--sombra); }
ol.pasos li::before { content: counter(paso); display: inline-block; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--green); font-weight: 800; text-align: center; line-height: 38px; margin-bottom: 12px; }
ol.pasos h3 { margin: 0 0 6px; font-size: 18px; }
ol.pasos p { margin: 0; color: var(--slate); font-size: 16px; }
.nota { background: var(--green-soft); border-left: 5px solid var(--green); border-radius: 0 12px 12px 0; padding: 16px 20px; margin-top: 28px; }

/* 6. Con quién estás tratando */
#opiniones { margin: 24px 0 0; }

/* 8. Botón final y formulario */
section.final { color: var(--white);
  background:
    radial-gradient(720px 420px at 8% 0%, rgba(46, 196, 160, .18), transparent 62%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
section.final .dos { align-items: start; gap: 48px; }
section.final h2.titulo { color: var(--white); }
section.final p.bajada { color: var(--on-navy); margin-bottom: 24px; }
section.final .hablar { color: var(--on-navy); margin-top: 22px; }
ul.palomas { list-style: none; margin: 0; padding: 0; }
ul.palomas li { padding: 10px 0 10px 34px; position: relative; border-top: 1px solid rgba(255, 255, 255, .12); color: #E4EAF0; font-size: 16px; }
ul.palomas li:first-child { border-top: 0; }
ul.palomas li::before { content: "✓"; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: var(--navy); font-weight: 800; font-size: 13px; text-align: center; line-height: 22px; }
form.solicitud { background: var(--white); color: var(--navy); border-radius: 16px; padding: 28px; box-shadow: 0 24px 56px rgba(0, 0, 0, .32); }
form.solicitud label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 5px; }
form.solicitud input[type=text], form.solicitud input[type=tel], form.solicitud select {
  width: 100%; padding: 12px; border: 1px solid #B8C4D0; border-radius: 10px; font: inherit; background: var(--white); color: var(--navy); }
form.solicitud input:focus, form.solicitud select:focus { outline: 3px solid #2EC4A066; border-color: var(--green-dark); }
form.solicitud [aria-invalid=true] { border-color: #B42318; background: #FEF3F2; }
form.solicitud label.acepto { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; }
form.solicitud label.acepto input { margin-top: 5px; transform: scale(1.25); accent-color: var(--green-dark); }
form.solicitud button { width: 100%; cursor: pointer; font-family: inherit; }
#form-mensaje:empty { display: none; }
#form-mensaje { font-size: 15px; color: var(--navy); font-weight: 600; background: var(--light); border-radius: 8px; padding: 10px 12px; }

/* 9. Pie de página */
footer.sitio { background: #071A33; color: #9FB2C6; font-size: 14px; padding: 40px 0 40px; }
footer.sitio p { margin: 0 0 10px; max-width: 60em; }
footer.sitio a { color: var(--on-navy); }
footer.sitio a:hover { color: var(--white); }
footer.sitio .pendiente { line-height: 1.9; }
.pie-arriba { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  padding-bottom: 26px; margin-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pie-arriba svg.logo { height: 32px; }
.pie-menu { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pie-menu a { text-decoration: none; font-weight: 500; }
.pie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 22px; }
.pie h3 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .8px; margin: 0 0 10px; }
.pie p { margin: 0 0 8px; }
.legal-pie { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; }

/* Página legal */
.legal { padding: 56px 0 72px; max-width: 760px; }

/* Tableta y celular */
@media (max-width: 860px) {
  .portada { padding: 52px 0 60px; }
  .portada .wrap, .dos, .tres, ol.pasos, .pie { grid-template-columns: 1fr; }
  .hoja { display: none; }
  section { padding: 56px 0; }
  section.final .dos { gap: 28px; }
  header.sitio .wrap { gap: 12px; }
  .boton.chico { margin-left: auto; }
  /* Sin JavaScript, el menú queda a la vista en un segundo renglón */
  nav.principal { order: 5; flex-basis: 100%; margin: 0; gap: 2px 18px; padding-bottom: 10px; }
  /* Con JavaScript, el menú se guarda detrás del botón */
  header.sitio.con-menu .menu-boton { display: inline-flex; }
  header.sitio.con-menu nav.principal { display: none; flex-direction: column; gap: 0; padding-bottom: 12px; }
  header.sitio.con-menu.abierto nav.principal { display: flex; }
  header.sitio.con-menu nav.principal a { padding: 13px 0; font-size: 17px; border-bottom: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
}
/* La tabla de pagos ya no cabe: se avisa que se desliza */
@media (max-width: 640px) { .solo-celular { display: block; margin-top: 6px; } }
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  header.sitio .wrap { gap: 8px; }
  header.sitio svg.logo { height: 22px; }
  .boton.chico { padding: 7px 9px; font-size: 13px; white-space: nowrap; }
  .menu-boton { width: 36px; height: 36px; }
  .boton.grande, .boton.claro { width: 100%; text-align: center; }
  .lista, .producto, form.solicitud, .resultado { padding: 22px 18px; }
  details.condiciones { padding: 0 18px; }
}
/* Celular muy angosto: del logo se ve solo el sello con las iniciales */
@media (max-width: 370px) {
  .marca { width: 52px; overflow: hidden; }
  header.sitio .marca svg.logo { flex: none; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  header.sitio, .borrador, .acciones, .menu-boton, form.solicitud button { display: none; }
  .portada, section.final, .resultado, footer.sitio { background: none; color: #000; }
}
