:root {
  --navy: #0B1F3A;
  --soft: #122848;
  --blue: #1F6FEB;
  --gold: #C9A227;
  --gold-2: #e0b82f;
  --luz: #F4F6F9;
  --ink: #1A2332;
  --muted: #5B6573;
  --sub: #A8C4F0;
  --line: #D8DEE8;
  --fine: #7A8799;
  --footer: #A8B3C5;
  --cream: #FEF3C7;
  --brown: #78350F;
  --radius: 14px;
  --header-h: 72px;
  --max: 1120px;
}
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip {
  position: absolute; left: -999px; top: 0; z-index: 80;
  background: var(--gold); color: var(--navy); padding: 8px 12px; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 58, .97);
  border-bottom: 1px solid rgba(201, 162, 39, .28);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .04em;
  white-space: nowrap;
}
.brand img {
  width: 48px; height: 48px; border-radius: 10px;
  border: 2px solid rgba(201, 162, 39, .7);
}
.nav-toggle {
  display: none;
  background: transparent; color: #fff;
  border: 1px solid rgba(168, 196, 240, .45);
  border-radius: 8px; padding: 8px 12px; font-weight: 700; cursor: pointer;
}
.site-nav ul {
  list-style: none; display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap;
}
.site-nav a {
  color: var(--sub); text-decoration: none; font-size: .95rem; font-weight: 600;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav .btn { color: var(--navy); }
.site-nav .btn:hover { color: var(--navy); }

.btn {
  display: inline-block;
  background: var(--gold); color: var(--navy);
  padding: 13px 22px; border-radius: 8px; font-weight: 800;
  text-decoration: none; border: 2px solid var(--gold);
  line-height: 1.2; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); filter: none; }
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(168, 196, 240, .55);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-ghost-dark {
  background: transparent; color: var(--navy); border-color: var(--line);
}
.btn-ghost-dark:hover { border-color: var(--blue); color: var(--blue); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { filter: brightness(1.08); color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .actions { justify-content: center; }

.hero {
  color: #fff;
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(11, 31, 58, .74), rgba(11, 31, 58, .92)),
    image-set(url("banner.webp") type("image/webp"), url("banner.jpg") type("image/jpeg"));
  background-position: center;
  background-size: cover;
  padding: 64px 0 80px;
}
.hero-copy { text-align: center; max-width: 820px; margin: 0 auto; }
.kicker {
  color: var(--gold); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.15rem);
  line-height: 1.15; margin-bottom: 18px; font-weight: 800;
}
.hero .lead-hero {
  color: var(--sub); font-size: 1.12rem; margin-bottom: 28px;
}
.page-hero {
  background: var(--navy); color: #fff; padding: 42px 0 48px;
}
.page-hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.2; margin: 8px 0 14px;
}
.page-hero .lead-hero { color: var(--sub); max-width: 720px; font-size: 1.08rem; }
.page-hero .price-xl {
  font-size: 1.7rem; font-weight: 800; color: var(--gold); margin: 12px 0 20px;
}

section { padding: 72px 0; }
.alt { background: var(--luz); }
h2 { color: var(--navy); font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 12px; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 36px; }
.section-head p,
.lead { color: var(--muted); }
.center { text-align: center; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 800px) {
  .grid-2.founders { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .grid-2.split { grid-template-columns: 1fr 1fr; align-items: start; }
}

.card {
  background: #fff; border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(11, 31, 58, .04);
}
.alt .card { background: #fff; }
.card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.12rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--blue); }
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-card .card-media { display: block; background: var(--soft); }
.product-card .card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.product-card.square-cover .card-media img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; }
.product-card .card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card .card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.price { font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.badge {
  display: inline-block; background: var(--cream); color: var(--brown);
  font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.trust article { text-align: center; padding: 8px 6px; }
.trust strong { display: block; color: var(--navy); margin-bottom: 4px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.steps article { position: relative; padding-top: 8px; }
.steps article::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font-weight: 800; margin-bottom: 12px;
}

.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details p { margin-top: 10px; color: var(--muted); }

.crumbs { font-size: .9rem; color: var(--sub); margin-bottom: 10px; }
.crumbs a { color: var(--sub); }
.page-hero .crumbs a:hover { color: #fff; }
.crumbs span { opacity: .85; }

.prose { max-width: 760px; }
.prose p { margin-bottom: 14px; }
.prose ul, .bullets { margin: 0 0 18px 1.15em; }
.prose li, .bullets li { margin-bottom: 8px; }
.note {
  background: var(--cream); color: var(--brown);
  border-radius: 10px; padding: 14px 16px; margin: 18px 0;
}
.cta-band {
  background: var(--navy); color: #fff; padding: 56px 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--sub); max-width: 640px; margin: 0 auto 22px; }

.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.compare th { color: var(--navy); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.compare a { font-weight: 700; text-decoration: none; }

.social-list { list-style: none; display: grid; gap: 10px; }
.social-list a, .net {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 700;
}
.social-list a:hover, .net:hover { border-color: var(--blue); }
.soon { color: var(--muted); font-weight: 600; display: block; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; }

.form { display: grid; gap: 12px; }
.form label { font-weight: 700; color: var(--navy); }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff;
}
.form input:focus, .form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(31,111,235,.18); }
.form .hint { color: var(--muted); font-size: .9rem; }

.float-contact {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  background: var(--blue); color: #fff; padding: 12px 18px;
  border-radius: 999px; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 24px rgba(31, 111, 235, .35);
}
.float-contact:hover { filter: brightness(1.08); color: #fff; }
body.page-contacto .float-contact { display: none; }

.site-footer {
  background: var(--navy); color: var(--footer);
  padding: 42px 0 28px; font-size: .92rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px;
  text-align: left; margin-bottom: 28px;
}
.site-footer h2 { color: #fff; font-size: 1rem; text-align: left; margin-bottom: 10px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer .soon { color: var(--fine); padding: 0; border: 0; display: inline; }
.fineprint { color: var(--fine); font-size: .8rem; margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(168, 196, 240, .15); padding-top: 18px; text-align: center; }

.error { padding: 80px 0 100px; text-align: center; }
.error h1 { color: var(--navy); margin-bottom: 12px; }

@media (max-width: 840px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .site-nav {
    display: none; width: 100%;
    background: var(--soft); border-radius: 12px; padding: 12px;
    margin-bottom: 12px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav .btn { text-align: center; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
}

/* Libros */
.book-media img,
.product-card.book .card-media img {
  aspect-ratio: 5 / 8;
  object-fit: cover;
  object-position: center top;
}
.book-hero-cover {
  max-width: 280px;
  margin: 0 auto;
}
.book-hero-cover img,
.book-cover img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(11, 31, 58, .22);
}
.btn.is-soon,
.btn[aria-disabled="true"] {
  background: #7A8799;
  border-color: #7A8799;
  color: #fff;
  pointer-events: none;
  cursor: not-allowed;
  opacity: .92;
}
.official-note {
  font-size: .92rem;
  color: var(--brown);
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
}
