/* ============================================================================
   estilos.css — Sistema de diseño de Kevin-Vida en Equilibrio
   ----------------------------------------------------------------------------
   ÚNICA fuente de verdad del diseño. Cambias un color o un componente aquí
   y cambia en TODAS las páginas que enlacen este archivo.

   CÓMO USARLO EN CADA PÁGINA (dentro de <head>):
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800;12..96,900&family=Figtree:wght@400;500;600;700&display=swap" rel="stylesheet">
     <link rel="stylesheet" href="/estilos.css">
   ============================================================================ */

/* ── TOKENS ── */
:root {
  --primary: #2f5bea;
  --primary-dark: #2348c4;
  --primary-light: #eff4ff;
  --primary-mid: #c7d7fc;
  --gold: #f59e0b;
  --red: #ef4444;
  --green: #25D366;
  --green-dark: #1fb95a;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --card: #ffffff;
  --border: #e8edf3;
  --shadow: 0 4px 18px rgba(15,23,42,.06), 0 1px 4px rgba(15,23,42,.03);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.05);
  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1080px;
}

/* ── RESET / BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.03em; line-height: 1.05; }

/* ── LAYOUT ── */
.wrap { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 900; margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; color: var(--muted); }

/* ── TEXT HELPERS ── */
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.accent { color: var(--primary); }

/* ── EYEBROW / BADGES / PILLS ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--primary-light); border: 1px solid var(--primary-mid);
  font-size: .8rem; font-weight: 700; color: var(--primary);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.badge-amber { background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; }
.badge-red   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.badge-green { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.badge-blue  { background: var(--primary-light); border: 1px solid var(--primary-mid); color: var(--primary); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: 'Figtree', sans-serif; font-size: .98rem; font-weight: 700;
  cursor: pointer; line-height: 1; -webkit-tap-highlight-color: transparent;
  transition: background .18s, transform .18s, box-shadow .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn-block { width: 100%; }
.btn-lg { min-height: 58px; font-size: 1.05rem; padding: 0 30px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(47,91,234,.22); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary-mid); background: var(--primary-light); color: var(--primary); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-whatsapp { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,.24); }
.btn-whatsapp:hover { background: var(--green-dark); }
.btn-soldout { background: #e2e8f0; color: var(--muted); cursor: not-allowed; pointer-events: none; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── CARDS ── */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
  transition: transform .22s cubic-bezier(.2,0,.2,1), box-shadow .22s, border-color .22s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-mid); }
.card-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); margin-bottom: 18px; }
.card-ico svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--muted); margin-bottom: 18px; flex: 1 1 auto; }
.card-link { font-size: .92rem; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 15px; height: 15px; transition: transform .18s; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ── GRID ── */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(3,1fr); } }

/* ── PRICING (asesorías) ── */
.plan { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.featured { border-color: var(--primary-mid); box-shadow: 0 0 0 2px var(--primary-mid), var(--shadow); }
.plan-tag { position: absolute; top: -12px; left: 24px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.plan-save { display: inline-block; background: #fff7ed; border: 1px solid #fcd34d; color: #92400e; font-size: .74rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start; }
.plan-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.price { display: flex; align-items: flex-end; gap: 8px; line-height: 1; margin-bottom: 4px; flex-wrap: wrap; }
.price-amount { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2.4rem; font-weight: 900; letter-spacing: -.04em; }
.price-currency { font-size: 1rem; font-weight: 700; color: var(--muted); }
.price-old { font-size: 1.05rem; font-weight: 700; color: var(--red); text-decoration: line-through; }
.price-note { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.features { display: grid; gap: 10px; margin-bottom: 22px; }
.feature { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--text-2); }
.feature .ck { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; margin-top: 1px; }
.feature .ck svg { width: 12px; height: 12px; }
.plan .btn { margin-top: auto; }

/* ── FORMS ── */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px,4vw,34px); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--bg-alt); border: 1.5px solid var(--border); border-radius: 13px;
  font-family: 'Figtree', sans-serif; font-size: 1rem; color: var(--text);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #94a3b8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(47,91,234,.12); }
.field input.invalid { border-color: var(--red); background: #fef2f2; }
.field .err { display: none; font-size: .8rem; color: var(--red); font-weight: 600; margin-top: 5px; }
.field .err.show { display: block; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; }
.consent input { width: 19px; height: 19px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--primary); cursor: pointer; }
.consent label { font-size: .82rem; color: var(--muted); line-height: 1.45; cursor: pointer; }
.submit-btn { width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-family: 'Figtree', sans-serif; font-size: 1.05rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; box-shadow: 0 10px 26px rgba(47,91,234,.28); transition: background .18s, transform .18s; }
.submit-btn:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-2px); }
.submit-btn:disabled { opacity: .7; cursor: not-allowed; }
.submit-btn svg { width: 18px; height: 18px; }
.submit-btn .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.submit-btn.loading .label, .submit-btn.loading .arrow { display: none; }
.submit-btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── STEPS (página de gracias) ── */
.steps { display: grid; gap: 16px; }
.step { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step-num { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 900; font-size: 1.1rem; display: grid; place-items: center; }
.step-body h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 5px; }
.step-body p { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.step.highlight { border-color: var(--primary-mid); box-shadow: 0 0 0 2px var(--primary-mid), var(--shadow); }

/* ── VIDEO / EMBEDS (retos) ── */
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: var(--shadow); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-tall { aspect-ratio: auto; height: clamp(560px, 80vh, 800px); }

/* ── ACCORDION (FAQ) ── */
.accordion { display: grid; gap: 10px; }
.accordion-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.accordion-btn { width: 100%; border: 0; background: none; color: var(--text); text-align: left; padding: 16px 18px; font-family: 'Figtree', sans-serif; font-size: .95rem; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; min-height: 56px; }
.accordion-btn .plus { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 1.15rem; transition: transform .28s, background .18s, color .18s; }
.accordion-item.active .plus { transform: rotate(45deg); background: var(--primary); color: #fff; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .38s cubic-bezier(.2,0,.2,1); }
.accordion-item.active .accordion-content { max-height: 500px; }
.accordion-inner { padding: 0 18px 18px; color: var(--muted); font-size: .91rem; }

/* ── CALLOUTS (avisos / disclaimers legales) ── */
.notice { border-radius: 14px; padding: 16px 18px; font-size: .9rem; line-height: 1.55; }
.notice-info { background: var(--primary-light); border: 1px solid var(--primary-mid); color: #1e3a8a; }
.notice-warn { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }

/* ── HERO ── */
.hero { padding: clamp(40px,7vw,80px) 0 clamp(28px,5vw,56px); }
.hero h1 { font-size: clamp(2.3rem,7vw,4.2rem); font-weight: 900; margin: 18px 0; }
.hero .lead { max-width: 52ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── LEGAL / PROSE (aviso, términos) ── */
.prose { max-width: 75ch; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 32px 0 12px; }
.prose h3 { font-size: 1.15rem; font-weight: 800; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--text-2); margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 12px; }
.prose a { color: var(--primary); text-decoration: underline; }

/* ── FLOATING WHATSAPP ── */
.floating-whatsapp { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--green); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 60; border: 2.5px solid rgba(255,255,255,.9); transition: background .18s, transform .18s; }
.floating-whatsapp:hover { background: var(--green-dark); transform: translateY(-2px); }
.floating-whatsapp svg { width: 27px; height: 27px; fill: currentColor; }

/* ── UTILIDADES ── */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; } }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }

/* ── PÁGINAS DE VIDEOS (Retos / Aprende gratis) ── */
.videos-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .videos-grid { grid-template-columns: repeat(3, 1fr); } }
.yt-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.yt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.yt-thumb { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; cursor: pointer; border: 0; padding: 0; display: block; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-thumb .yt-play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,.55); border-radius: 50%; transition: background .18s, transform .18s; }
.yt-thumb:hover .yt-play { background: var(--primary); transform: scale(1.06); }
.yt-thumb .yt-play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.yt-card .yt-title { padding: 14px 16px 16px; font-weight: 700; font-size: .98rem; color: var(--text); line-height: 1.35; }
.yt-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Playlist destacada (1 sola, se actualiza sola) */
.playlist-wrap { max-width: 860px; margin: 0 auto; }
