/* Hoja de estilo de las páginas de artículo (HTML estático).
   Mismos tokens de marca que src/index.css, escritos a mano porque estas
   páginas no pasan por Tailwind: son HTML plano servido por Apache. */

:root {
  --navy: #0D1F4E;
  --navy-deep: #081538;
  --teal: #008B9E;
  --teal-deep: #00707F;
  --foam: #E6F5F7;
  --gold: #F2B441;
  --wa: #25D366;
  --ink: #16233F;
  --muted: #5C6B85;
  --border: #E3E8F0;
  --bg: #F7F8FA;
  --display: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -0.022em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wide { max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--teal-deep); margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 10px; }

/* ---------- barra superior y nav ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.8); font-size: 13px; }
.topbar .wide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 6px; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.topbar a:hover { color: var(--gold); }
.topbar-l, .topbar-r { display: flex; align-items: center; gap: 16px; }
.topbar-r { display: none; }

.nav { border-bottom: 1px solid var(--border); background: rgba(255,255,255,.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; }
.nav .wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand b { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--navy); display: block; letter-spacing: -.01em; }
.brand b span { color: var(--teal); }
.brand small { font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); display: none; }
.nav-links { display: none; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; min-height: 44px; }
.nav-links a:hover { border-color: var(--teal); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1DB954; }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- encabezado del artículo ---------- */
.hero { background: var(--navy); color: #fff; padding: 44px 0 66px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.7); text-decoration: none; }
.back:hover { color: var(--gold); }
.tag { display: inline-block; margin-top: 14px; background: var(--teal); color: #fff; border-radius: 999px; padding: 5px 13px; font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.hero h1 { margin-top: 18px; font-size: clamp(31px, 6vw, 48px); }
.lede { margin: 18px 0 0; font-size: 19px; line-height: 1.55; color: #C9D6F2; }
.meta { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.6); }
.hero-img { margin-top: -40px; border-radius: 18px; box-shadow: 0 16px 40px rgba(13,31,78,.18); }

/* ---------- cuerpo ---------- */
article h2 { margin-top: 48px; font-size: clamp(25px, 4.4vw, 31px); color: var(--navy); }
article p { margin: 20px 0 0; line-height: 1.75; }
article ul, article ol { margin: 20px 0 0; padding: 0; list-style: none; }
article li { display: flex; gap: 12px; margin-top: 10px; line-height: 1.7; }
article li .bullet { flex: none; margin-top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
article li .num { flex: none; display: grid; place-items: center; width: 25px; height: 25px; margin-top: 2px; border-radius: 50%; background: var(--foam); color: var(--teal-deep); font-family: var(--mono); font-size: 12px; font-weight: 700; }

figure { margin: 40px 0 0; }
figure img { border-radius: 18px; }
figcaption { margin-top: 12px; border-left: 2px solid var(--teal); padding-left: 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }

.note { margin: 32px 0 0; border: 1px solid rgba(0,139,158,.25); background: var(--foam); border-radius: 18px; padding: 20px; color: var(--navy); line-height: 1.7; font-size: 16px; }
.note b { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--teal-deep); }

.tablewrap { margin: 32px 0 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; text-align: left; }
thead { background: var(--navy); color: #fff; }
th { padding: 12px 16px; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
td { padding: 12px 16px; vertical-align: top; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--border); }
td:first-child { font-weight: 700; color: var(--navy); }
tbody tr:nth-child(even) { background: var(--bg); }

/* ---------- preguntas frecuentes ---------- */
.faq { margin-top: 56px; }
details { margin-top: 12px; border: 1px solid var(--border); border-radius: 18px; background: #fff; padding: 0 20px; }
summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font-family: var(--sans); font-size: 22px; font-weight: 400; color: var(--teal); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 20px; color: var(--muted); font-size: 16px; }

/* ---------- compartir y llamada a la acción ---------- */
.share { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.share span { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.share a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; color: var(--navy); }
.share a:hover { border-color: var(--teal); background: var(--foam); color: var(--teal-deep); }
.share svg { width: 18px; height: 18px; fill: currentColor; }

.cta { margin-top: 48px; border-radius: 24px; background: var(--navy); color: #fff; padding: 34px 28px; }
.cta h2 { margin: 0; font-size: clamp(24px, 4.2vw, 30px); }
.cta p { margin: 12px 0 0; color: #C9D6F2; line-height: 1.6; }
.cta div { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- tarjetas ---------- */
.cards { margin-top: 36px; display: grid; gap: 24px; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #fff; text-decoration: none; color: inherit; }
.card:hover { box-shadow: 0 12px 32px rgba(13,31,78,.10); }
.card .thumb { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .thumb span { position: absolute; left: 12px; top: 12px; background: rgba(13,31,78,.9); color: #fff; border-radius: 999px; padding: 4px 11px; font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 19px; color: var(--navy); line-height: 1.3; }
.card p { margin: 8px 0 0; flex: 1; font-size: 15px; color: var(--muted); line-height: 1.6; }
.card .foot { margin: 16px 0 0; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-deep); display: flex; gap: 10px; }

.related { margin-top: 72px; padding-bottom: 88px; }

/* ---------- pie ---------- */
footer { background: var(--navy-deep); color: #B9C6E6; font-size: 15px; padding: 52px 0 0; margin-top: 0; }
footer .cols { display: grid; gap: 34px; }
footer h4 { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: #fff; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li a { color: #B9C6E6; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
footer li a:hover { color: #fff; }
footer .socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
footer .socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); }
footer .socials svg { width: 18px; height: 18px; fill: #B9C6E6; }
footer .socials a:hover { background: var(--teal); }
footer .socials a:hover svg { fill: #fff; }
footer .legal { margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #7E8DA8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

.float-wa { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.float-wa svg { width: 28px; height: 28px; fill: currentColor; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .brand small { display: block; }
  .brand img { width: 44px; height: 44px; }
  .brand b { font-size: 19px; }
  .cta { padding: 40px; }
}
@media (min-width: 768px) { .topbar-r { display: flex; } footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .nav-links { display: flex; } .cards { grid-template-columns: repeat(3, 1fr); } }

@media print {
  .topbar, .nav, .share, .cta, .related, .float-wa, footer { display: none; }
  .hero { background: none; color: #000; padding-top: 0; }
  .hero h1, .lede, .meta { color: #000; }
}
