/* El Mapa del Potencial · Escuela de Potencial Humano — identidad: violeta nocturno, marfil, dorado mate, Rubik */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("./rubik-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("./rubik-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --violet: #30213E; --violet-2: #3D2B4F; --violet-deep: #1F1430;
  --ivory: #F7F3EB; --ivory-2: #EFE8DB; --paper: #FBF8F2;
  --gold: #BA9A5A; --gold-light: #E6C36A;
  --ink: #30213E; --muted: #5E566A; --line: #E4DCCD;
  --radius: 22px; --shadow: 0 30px 60px -40px rgba(48, 33, 62, .45);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 12px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: var(--violet); padding: 8px 14px; border-radius: 10px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.kicker--light { color: var(--gold-light); }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }
.gold { color: var(--gold-light); }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.btn--gold { background: var(--gold); color: var(--violet); }
.btn--gold:hover { background: var(--gold-light); }
.btn--violet { background: var(--violet); color: var(--ivory); }
.btn--ghost-light { border-color: rgba(247, 243, 235, .55); color: var(--ivory); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.actions-note { font-size: 14px; color: var(--muted); }

/* barra superior */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(48, 33, 62, .97); backdrop-filter: blur(8px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand img { width: 230px; }
.nav { display: flex; gap: 22px; }
.nav a { color: #EDE4D6; text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--gold-light); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.nav-access { color: #CFC5DB; font-size: 14px; text-decoration: none; }
@media (max-width: 980px) { .nav { display: none; } }
@media (max-width: 560px) { .brand img { width: 170px; } .nav-access { display: none; } }

/* héroe */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 85% 10%, rgba(186, 154, 90, .28), transparent 60%), linear-gradient(180deg, var(--violet) 0%, var(--violet-deep) 100%); color: var(--ivory); padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.hero-mark { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: min(560px, 70vw); opacity: .09; pointer-events: none; }
.hero-inner { position: relative; }
.hero h1 { font-size: clamp(42px, 7.4vw, 86px); font-weight: 800; max-width: 14ch; margin-bottom: 22px; }
.hero h1 span { display: block; }
.hero-body { font-size: clamp(18px, 2vw, 21px); color: #E9E2D6; max-width: 58ch; }
.evidence { list-style: none; margin: 46px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(247, 243, 235, .18); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.evidence li { font-size: 15px; color: #DCD3E4; padding-left: 18px; position: relative; }
.evidence li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; transform: rotate(45deg); border: 1.5px solid var(--gold-light); }
@media (max-width: 860px) { .evidence { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .evidence { grid-template-columns: 1fr; } }

/* Claves */
.claves { background: var(--ivory); padding: clamp(64px, 9vw, 110px) 0; }
.claves-head { max-width: 760px; }
.start { display: inline-block; margin-top: 10px; padding: 10px 18px; border-radius: 999px; background: #FBF3DE; color: var(--violet); font-size: 16px; }
.etapas { list-style: none; padding: 0; margin: 40px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.etapas li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.etapa-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--violet); color: var(--gold-light); font-weight: 800; margin-bottom: 14px; }
.etapa-time { color: var(--gold); font-weight: 600; font-size: 14px; margin: 6px 0 10px; }
.etapas p:last-child { color: var(--muted); margin: 0; }
.claves-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.claves-grid h3 { margin-bottom: 12px; }
.note { font-size: 15px; color: var(--muted); margin-top: 14px; }
@media (max-width: 860px) { .etapas, .claves-grid { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); }

/* formaciones asincrónicas */
.formaciones { background: var(--paper); padding: clamp(64px, 9vw, 110px) 0; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card h3 { font-size: 23px; }
.card p { color: var(--muted); }
.card-tag { align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); background: #FBF3DE; border-radius: 999px; padding: 6px 12px; margin: 0; }
.card .checks { margin: 6px 0 10px; }
.card-proof { color: var(--violet) !important; font-weight: 600; }
.card .btn { align-self: flex-start; margin-top: auto; }
.more { margin-top: 30px; color: var(--muted); }
.more a { color: var(--violet); font-weight: 600; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* sesión */
.sesion { background: var(--violet); color: var(--ivory); padding: clamp(60px, 8vw, 96px) 0; }
.sesion .lead { color: #E3DAEA; }
.sesion-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.sesion-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sesion-list li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 16px 20px; }
.sesion-list strong { color: var(--gold-light); }
@media (max-width: 860px) { .sesion-grid { grid-template-columns: 1fr; } }

/* gráfico */
.grafico { background: var(--ivory); padding: clamp(64px, 9vw, 110px) 0; }
.provider { margin: 30px 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.provider figcaption { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.neutrino-widget { width: 100%; min-height: 450px; border: 0; display: block; }
.provider-disclosure { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.bridge { margin-top: 34px; max-width: 70ch; }
.bridge h3 { margin-bottom: 8px; }
.coordinates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 0; }
.coordinates div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.coordinates dt { font-weight: 700; color: var(--violet); }
.coordinates dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .coordinates { grid-template-columns: 1fr 1fr; } }
.programa { margin-top: 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--violet); color: var(--ivory); border-radius: var(--radius); padding: 26px 30px; }
.programa img { width: 72px; }
.programa p { color: #E3DAEA; margin: 6px 0 0; }
@media (max-width: 760px) { .programa { grid-template-columns: 1fr; } }

/* Fernando */
.fernando { background: var(--paper); padding: clamp(64px, 9vw, 110px) 0; }
.fernando-grid { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.portrait img { border-radius: 50%; border: 6px solid var(--gold); box-shadow: 0 30px 60px -30px rgba(48, 33, 62, .55); }
.role { font-weight: 600; color: var(--gold); }
.fernando p { color: var(--muted); }
blockquote { margin: 26px 0; padding: 18px 24px; border-left: 4px solid var(--gold); background: var(--ivory); border-radius: 0 16px 16px 0; }
blockquote p { color: var(--violet) !important; font-size: 20px; font-weight: 600; margin: 0; }
blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: 14px; color: var(--muted); }
.credentials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.credentials li { background: #FBF3DE; color: var(--violet); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
@media (max-width: 860px) { .fernando-grid { grid-template-columns: 1fr; } .portrait img { max-width: 260px; } }

/* preguntas */
.faq { background: var(--ivory); padding: clamp(64px, 9vw, 110px) 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
.faq-list summary { cursor: pointer; font-weight: 600; color: var(--violet); }
.faq-list details p { margin: 12px 0 0; color: var(--muted); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* cierre y pie */
.final { background: linear-gradient(180deg, var(--violet) 0%, var(--violet-deep) 100%); color: var(--ivory); padding: clamp(64px, 9vw, 100px) 0; text-align: center; }
.final h2 { max-width: 22ch; margin-inline: auto; }
.final .actions { justify-content: center; }
.footer { background: var(--violet-deep); color: #CFC5DB; padding: 44px 0 110px; font-size: 14px; }
.footer-inner { display: grid; gap: 14px; }
.footer img { width: 210px; }
.footer a { color: var(--gold-light); text-decoration: none; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer nav a { color: #CFC5DB; }

/* WhatsApp flotante */
.whatsapp-contact { position: fixed; z-index: 40; right: calc(18px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 0; padding: 5px; border: 1px solid rgba(186, 154, 90, .7); border-radius: 999px; background: var(--violet); color: var(--ivory); text-decoration: none; box-shadow: 0 12px 34px rgba(31, 20, 48, .35); }
.whatsapp-contact__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #25D366; color: #fff; order: 2; }
.whatsapp-contact__icon svg { width: 24px; height: 24px; fill: currentColor; }
.whatsapp-contact__label { order: 1; font-weight: 700; font-size: 14px; padding: 0 12px 0 14px; white-space: nowrap; }
@media (max-width: 760px) { .whatsapp-contact__label { display: none; } }

/* vista previa del administrador */
.b25-preview-banner { position: sticky; top: 0; z-index: 50; display: flex; gap: 12px; justify-content: center; padding: 8px; background: var(--gold-light); color: var(--violet); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* enlaces secundarios y página de consulta */
.text-link { color: inherit; font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: auto; }
.card-actions .btn { margin-top: 0; }
.hero .text-link, .sesion .text-link { color: var(--ivory); }
.consulta { background: var(--ivory); padding: clamp(40px, 7vw, 80px) 0; }
.consulta h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; margin-bottom: 14px; }
.consulta-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.consulta .checks { margin-top: 22px; }
.consulta-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.consulta-form h2 { font-size: 26px; }
.consulta-form p { color: var(--muted); }
.consulta-form form { display: grid; gap: 14px; margin-top: 16px; }
.consulta-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--violet); }
.consulta-form small { font-weight: 400; color: var(--muted); }
.consulta-form input, .consulta-form select, .consulta-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.consulta-form input:focus, .consulta-form select:focus, .consulta-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.consulta-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.consulta-form .consent input { margin-top: 4px; }
.consulta-form .btn { justify-self: start; border: 0; cursor: pointer; }
.consulta-form .hp { position: absolute; left: -9999px; }
.form-error { background: #FBEBEB; color: #8A2A2A !important; border-radius: 12px; padding: 10px 14px; }
.consulta-alt { margin-top: 16px; font-size: 15px; }
.consulta-alt a { color: var(--violet); font-weight: 600; }
.consulta-gracias { max-width: 760px; }
@media (max-width: 860px) { .consulta-grid { grid-template-columns: 1fr; } }

.btn--ghost-dark { border-color: var(--violet); color: var(--violet); }

/* Celular: áreas de toque cómodas (casilla de aceptación, links de texto y pie). */
@media (max-width: 700px) {
  .consent { align-items: center; }
  .consent input, .consulta-form .consent input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--gold); }
  .text-link { display: inline-block; padding: 10px 0; }
  .footer nav { gap: 2px 18px; }
  .footer nav a { display: inline-block; padding: 10px 0; }
}
