/* =========================================================
   Javier Ladino – Asesor en Pensiones
   Hoja de estilos del sistema de diseño (oct 2026).
   La usan index.html e interes.html. No depende de Bootstrap.
   ========================================================= */

:root {
  --surface: #f5f7fa;
  --paper: #ffffff;
  --line: #d9e0e8;
  --line-strong: #788aa2;
  --ink: #17212c;
  --ink-muted: #55657a;
  --navy: #1f4e79;
  --navy-soft: #e7eef5;
  --navy-deep: #132f4a;
  --on-deep-muted: #c3d0de;
  --sky: #0672a6;
  --sky-soft: #e6f1f8;
  --gold: #846232;
  --gold-light: #d9b47a;
  --gold-soft: #f6efe3;
  --success: #166534;
  --success-soft: #e5f4ea;
  --warning: #9a5b00;
  --warning-soft: #fdf3e1;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(19, 47, 74, .06), 0 4px 16px rgba(19, 47, 74, .06);
  --shadow-overlay: 0 12px 40px rgba(19, 47, 74, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 18px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--sky); }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; color: var(--ink); margin: 0; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 860px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.section-head.centrado { margin-left: auto; margin-right: auto; text-align: center; }
.overline { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.h2 { font-size: 36px; line-height: 1.22; }
.lead { color: var(--ink-muted); max-width: 72ch; }
.filete { width: 56px; height: 3px; background: var(--gold); border-radius: 2px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 16px/1.2 var(--font-sans); text-decoration: none; cursor: pointer; text-align: center;
  transition: filter .15s ease, background-color .15s ease;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-secondary { background: var(--paper); color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--navy-soft); color: var(--navy); filter: none; }
.btn-whatsapp { background: var(--success); color: #fff; border-radius: 999px; }
.btn-whatsapp:hover { color: #fff; }
.btn-whatsapp svg { flex-shrink: 0; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

.badge { display: inline-flex; align-self: flex-start; font-size: 13px; font-weight: 600; line-height: 20px; padding: 2px 8px; border-radius: var(--radius-sm); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-brand { background: var(--navy-soft); color: var(--navy); }
.badge-info { background: var(--sky-soft); color: var(--sky); }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-neutral { background: var(--surface); color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Tarjeta ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.card h3 { font-size: 22px; line-height: 1.36; }
.card p { font-size: 16px; line-height: 1.62; color: var(--ink-muted); }
.card .overline { font-size: 13px; color: var(--sky); }
.card .card-link { margin-top: auto; padding-top: 8px; font-size: 16px; font-weight: 600; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--ink); }
.brand-sub { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; }
.nav a:hover, .nav a.activo { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); width: 44px; height: 44px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }
.header-cta { flex-shrink: 0; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-overlay); padding: 8px 24px 16px;
  }
  .nav.abierto { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}

/* ---------- Portada ---------- */
.hero { padding: 72px 0 64px; }
.hero .container { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 52px; line-height: 1.15; letter-spacing: -.01em; }
.hero-sub { font-size: 20px; line-height: 1.6; color: var(--ink-muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 15px; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; }
.hero-photo { flex: 1 1 380px; min-width: 0; position: relative; }
.hero-photo .foto { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-card); border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 4 / 5; }
.hero-photo .foto img { width: 88%; display: block; }
.hero-badge {
  position: absolute; left: -24px; bottom: 32px; background: var(--paper); border-radius: var(--radius-md);
  box-shadow: var(--shadow-overlay); padding: 16px 20px; display: flex; align-items: center; gap: 14px;
}
.hero-badge b { font-family: var(--font-serif); font-size: 40px; line-height: 1; font-weight: 600; color: var(--gold); }
.hero-badge span { font-size: 14px; line-height: 1.4; }

/* ---------- Entidades ---------- */
.entidades .container { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: center; font-size: 15px; }
.entidades strong { color: var(--ink); }
.entidades a { color: var(--ink-muted); text-decoration: none; }
.entidades a:hover { color: var(--navy); text-decoration: underline; }
.entidades .nota { flex-basis: 100%; text-align: center; font-size: 14px; color: var(--ink-muted); }

/* ---------- Sobre mí ---------- */
.sobre .container { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.sobre-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lista-check { flex: 1 1 460px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lista-check li { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 24px; }
.lista-check svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- Casos comunes ---------- */
.caso { gap: 10px; }
.caso h3 { font-size: 21px; }
.caso .sub { font-size: 14px; font-weight: 600; color: var(--sky); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Cifras ---------- */
.cifras { background: var(--navy-deep); color: #fff; }
.cifras .container { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.cifra b { display: block; font-family: var(--font-serif); font-size: 48px; line-height: 1.15; font-weight: 600; color: var(--gold-light); }
.cifra span { font-size: 16px; color: var(--on-deep-muted); }

/* ---------- Pasos ---------- */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.pasos li { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--navy); padding-top: 20px; }
.pasos .num { font-family: var(--font-serif); font-size: 28px; font-weight: 600; color: var(--navy); }
.pasos strong { font-weight: 600; }
.pasos span:last-child { font-size: 16px; line-height: 1.62; color: var(--ink-muted); }

/* ---------- Paquetes ---------- */
.paquete { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px 24px; background: var(--paper); display: flex; flex-direction: column; gap: 16px; }
.paquete.destacado { border: 2px solid var(--navy); }
.paquete h3 { font-size: 24px; line-height: 1.25; }
.paquete ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.62; color: var(--ink-muted); display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.paquete .recibes { font-size: 15px; color: var(--ink); background: var(--surface); border-radius: var(--radius-sm); padding: 10px 12px; }

/* ---------- Cierre ---------- */
.cta-box { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 56px 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-box h2 { color: #fff; font-size: 36px; line-height: 1.22; }
.cta-box p { color: #dce6f0; margin-top: 12px; }
.cta-box > div { flex: 1 1 460px; min-width: 0; }

/* ---------- Contacto ---------- */
.contacto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 32px; }
.contacto-grid .card strong { font-size: 16px; }
.contacto-grid .card a, .contacto-grid .card address { font-size: 17px; font-style: normal; color: var(--ink); }
.contacto-grid .card a { color: var(--sky); }
.mapa { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.mapa iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-deep); color: #fff; }
.site-footer .container { padding-top: 56px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.footer-grid img { height: 48px; width: auto; align-self: flex-start; margin-bottom: 10px; }
.footer-grid span, .footer-grid p { color: var(--on-deep-muted); }
.footer-grid strong { font-weight: 600; }
.site-footer a { color: #9fd4f2; }
.site-footer a:hover { color: #fff; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid #2b4a6a; font-size: 14px; color: #a9bacc; }

/* ---------- Botón flotante de WhatsApp (celular) ---------- */
.wa-flotante {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  background: var(--success); color: #fff; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-overlay);
}
@media (max-width: 760px) { .wa-flotante { display: flex; } }

/* ---------- Información pensional (interes.html) ---------- */
.info-hero { background: var(--navy-deep); color: #fff; padding: 72px 0 60px; }
.info-hero h1 { color: #fff; font-size: 44px; line-height: 1.18; margin: 16px 0; max-width: 820px; }
.info-hero p { color: var(--on-deep-muted); max-width: 760px; font-size: 19px; }
.updated-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 14px; color: #fff; }
.topic-card { height: 100%; }
.topic-card .category { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--sky); }
.topic-card .meta { font-size: 14px; color: var(--ink-muted); }
.coming { display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-muted); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.article-block { max-width: 880px; margin: 0 auto 32px; padding: 40px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.article-block h2 { font-size: 32px; line-height: 1.25; margin-bottom: 8px; }
.article-block h3 { font-size: 22px; margin-top: 28px; margin-bottom: 8px; color: var(--navy); }
.article-block p, .article-block li { font-size: 17px; line-height: 1.75; }
.article-block p { margin: 12px 0; }
.article-block ul, .article-block ol { padding-left: 22px; }
.article-meta { padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; }
.notice { margin: 24px 0; padding: 18px 20px; background: var(--sky-soft); border-radius: var(--radius-md); }
.notice.warning { background: var(--warning-soft); }
.source-list { background: var(--surface); padding: 18px 22px 18px 42px; border-radius: var(--radius-md); }
.whatsapp-cta { margin-top: 28px; padding: 24px; border-radius: var(--radius-md); background: var(--success-soft); text-align: center; }
.whatsapp-cta a { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--success); color: #fff; font-weight: 600; text-decoration: none; }
.editorial-note { max-width: 880px; margin: 0 auto; padding: 22px; border: 1px solid #e3cfa6; background: var(--gold-soft); border-radius: var(--radius-md); font-size: 16px; }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 18px; }
  .hero-badge { left: 12px; bottom: 12px; }
  .h2, .cta-box h2 { font-size: 28px; }
  .cta-box { padding: 36px 24px; }
  .brand-sub { display: none; }
  .info-hero h1 { font-size: 32px; }
  .article-block { padding: 24px 18px; }
  .article-block h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.read-link { margin-top: auto; padding-top: 8px; font-size: 16px; font-weight: 600; text-decoration: none; }
.read-link:hover { text-decoration: underline; }
