:root {
  --ink: #1d3b47;
  --teal: #1f4e5f;
  --teal-dark: #163a47;
  --mint: #8cc9b8;
  --mint-soft: #e8f4f0;
  --cream: #faf8f4;
  --muted: #5d6f75;
  --line: #dde7e4;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'Quicksand', system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 40px); color: var(--teal); }
h3 { font-size: 19px; color: var(--teal); }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-family: 'Caveat', cursive; font-size: 24px; color: #3d8f78; margin-bottom: .2em; }
.lead { font-size: 19px; color: var(--muted); }

.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; background: var(--teal); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--teal); transition: background .2s, transform .2s; }
.btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: 15px; }
.btn-line { background: transparent; color: var(--teal); }
.btn-line:hover { background: var(--mint-soft); }
.btn-light { background: #fff; color: var(--teal); border-color: #fff; }
.btn-light:hover { background: var(--mint-soft); }
.btn-line-light { background: transparent; color: #fff; border-color: #fff; }
.btn-line-light:hover { background: rgba(255,255,255,.15); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.actions.center { justify-content: center; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand strong { display: block; font-family: 'Caveat', cursive; font-size: 24px; font-weight: 700; color: var(--teal); line-height: 1; }
.brand small { font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; }
.nav a:not(.btn):hover { color: #3d8f78; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--teal); margin: 5px 0; border-radius: 2px; }

/* Portada */
.hero { background: var(--cream); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-family: 'Caveat', cursive; font-weight: 700; font-size: clamp(52px, 7vw, 84px); color: var(--teal); }
.hero-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 160px 24px 24px 24px; box-shadow: 0 30px 60px -30px rgba(31,78,95,.45); }
.badge { display: inline-block; font-size: 14px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

/* Secciones */
.section { padding: 88px 0; }
.soft { background: var(--mint-soft); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(31,78,95,.35); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 20px; }
.card-body p { font-size: 15px; color: var(--muted); margin: 0; }

.plans { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 22px; margin-top: 32px; }
.plan { background: #fff; border-radius: var(--radius); padding: 28px; }
.plan p { color: var(--muted); font-size: 15px; }
.price, .plan .price { font-family: 'Caveat', cursive; font-size: 44px; font-weight: 700; color: #3d8f78; line-height: 1; margin-bottom: 8px; }
.price.big { font-size: 56px; }
.plan-bonos img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.bonos { list-style: none; margin: 0; padding: 0; }
.bonos li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.bonos li:last-child { border-bottom: 0; }
.bonos strong { color: var(--teal); }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.terms p { border-left: 3px solid var(--mint); padding-left: 14px; margin: 0; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px 24px 160px 24px; }
.steps { list-style: none; counter-reset: s; margin: 24px 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 58px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%; background: var(--mint-soft); color: var(--teal); font-weight: 700; display: grid; place-items: center; }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 19px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }
.note { font-size: 15px; color: var(--muted); background: var(--cream); border-radius: 12px; padding: 12px 16px; }

.about-head { display: flex; align-items: center; gap: 36px; max-width: 860px; }
.avatar { width: 200px; height: 200px; object-fit: cover; object-position: top; border-radius: 50%; background: var(--mint-soft); flex-shrink: 0; }

/* Bio: bloques con icono y año a la derecha */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.timeline article { display: flex; flex-direction: column; background: var(--mint); border-radius: var(--radius); padding: 28px; color: #13323c; }
.bloque-head { display: flex; align-items: center; gap: 18px; min-height: 80px; margin: 0 0 14px; }
.bloque-head .ico { flex: 0 0 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.bloque-head .ico img { height: 72px; width: auto; max-width: 72px; object-fit: contain; margin: 0; mix-blend-mode: multiply; }
.bloque-title { min-width: 0; }
.timeline .year { font-family: 'Caveat', cursive; font-size: 40px; font-weight: 700; color: var(--teal); line-height: 1; margin: 0; white-space: nowrap; }
.timeline p.kicker { font-size: 16px; font-weight: 700; color: #163a47; margin: 6px 0 0; line-height: 1.3; }
.timeline article > p:not(.kicker):not(.year) { font-size: 15px; margin: 0; }

.contact { background: var(--teal); color: #fff; text-align: center; padding: 88px 0; }
.contact-in img { width: 220px; margin: 0 auto 8px; background: #fff; border-radius: 20px; padding: 16px; }
.contact h2 { font-family: 'Caveat', cursive; font-size: clamp(54px, 8vw, 80px); color: var(--mint); margin: 0; }
.contact p { font-size: 18px; color: #fff; }

.foot { background: var(--teal-dark); color: #cfe3dd; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; padding-bottom: 22px; }
.foot p { margin: 0; }

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-bonos { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 22px; gap: 14px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav .btn { text-align: center; }
  .hero-in, .split { grid-template-columns: 1fr; gap: 32px; }
  .hero-img img { aspect-ratio: 4 / 3; border-radius: 100px 20px 20px 20px; }
  .terms, .timeline { grid-template-columns: 1fr; }
  .about-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .avatar { width: 150px; height: 150px; }
  .section, .contact { padding: 64px 0; }
}
@media (max-width: 560px) {
  .cards, .plans { grid-template-columns: 1fr; }
  .brand small { display: none; }
}
.timeline article { width: 100%; max-width: none; }

.bloque-title .year.year-sm { font-size: 30px; }

/* Ajustes del editor */
.timeline article:has(.year-sm) { width: min(100%, 280px); max-width: 280px; justify-self: center; }

.timeline article:has(.year-sm) { width: 100%; max-width: none; justify-self: stretch; }
