/* ==========================================================
   EMBUDO — componentes añadidos sobre styles.css
   Solo usa los tokens de :root (ver DESIGN.md)
   ========================================================== */
:root {
  --ok: #8fc9a0;
  --danger: #e59a8e;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 72px; --s7: 112px;
}
.muted { color: var(--text-muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--bg-deep); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* cabecera con navegación */
.site-header { gap: var(--s3); background: color-mix(in srgb, var(--bg-deep) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.top-nav { display: none; gap: var(--s3); margin-inline: auto; }
.top-nav a { color: var(--text-muted); text-decoration: none; font-size: var(--fs-small); padding: 6px 2px; border-bottom: 1px solid transparent; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
@media (min-width: 960px) { .top-nav { display: flex; } .menu-btn { display: none; } }
@media (max-width: 520px) { .site-header { padding: 14px 16px; } .logo { font-size: 1.3rem; } }
.btn { cursor: pointer; font: inherit; background: transparent; color: var(--text); }
.btn.solid { color: var(--bg-deep); }
.btn.current { opacity: .7; cursor: default; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font: inherit; padding: 0; }

/* pie */
.foot { display: grid; gap: var(--s1); }
.foot-links a:first-child { margin-left: 0; }
.foot-note { color: var(--text-muted); flex-basis: 100%; }

/* páginas internas */
.page-head { position: relative; text-align: center; padding: 130px 0 var(--s4);
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), var(--bg); }
.page-head h1 { font-size: var(--fs-hero); }
.page-head p { color: var(--text-muted); max-width: 60ch; margin-inline: auto; font-size: 1.1rem; }
.section { padding: var(--s4) 0; }
.section h2 { font-size: var(--fs-h2); text-align: center; }
.section .lead { text-align: center; color: var(--text-muted); max-width: 58ch; margin: 0 auto var(--s4); }
.kicker { color: var(--accent-warm); font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; }

/* hero: llamadas a la acción */
.hero-sub { max-width: 52ch; text-align: center; color: var(--text-muted); font-size: 1.15rem; margin: var(--s1) auto var(--s3); position: relative; }
.hero-cta { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: center; position: relative; margin-bottom: var(--s2); }
.hero-title { margin-bottom: var(--s1); }

/* pasos */
.steps { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: paso; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: paso; border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--s4) var(--s3); background: var(--surface); }
.steps li::before { content: counter(paso); display: grid; place-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-warm); font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: var(--s2); }
.steps h3 { font-size: var(--fs-h3); }
.steps p { color: var(--text-muted); margin: 0; }

/* insignias de plan */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .75rem; color: var(--text-muted); font-family: var(--font-body); vertical-align: middle; }
.badge.free { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.badge.chispa, .badge.circulo { color: var(--accent-warm); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.arch { position: relative; }
.arch .badge { position: absolute; top: 10px; left: 50%; translate: -50% 0; background: var(--bg-deep); z-index: 2; }

/* oráculos */
.oracles { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.oracle { display: grid; gap: var(--s1); align-content: start; border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--s4) var(--s3); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .2s; }
.oracle:hover { border-color: var(--accent); }
.oracle h3 { font-size: var(--fs-h3); margin: 0; }
.oracle p { color: var(--text-muted); margin: 0; }
.oracle .go { color: var(--accent); margin-top: var(--s1); }

/* planes */
.plans { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; max-width: 1040px; margin-inline: auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--s1); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--s4) var(--s3); background: var(--surface); }
.plan { transition: transform .25s cubic-bezier(.23,1,.32,1), border-color .25s, box-shadow .3s; }
@media (hover: hover) and (pointer: fine) { .plan:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); } }
.plan.featured { border-color: var(--accent); background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%), var(--surface); box-shadow: 0 0 44px -10px rgba(236,208,143,.28); }
.page-head .glyph-rule { margin-top: 6px; margin-bottom: 18px; }
.plan-tag { position: absolute; top: -13px; left: var(--s3); background: var(--accent); color: var(--bg-deep); font-size: .75rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.9rem; margin: 0; }
.plan-price { margin: 0; }
.plan-price strong { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 400; color: var(--accent-warm); }
.plan-price span { color: var(--text-muted); }
.plan ul { list-style: none; padding: 0; margin: var(--s1) 0 var(--s2); display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { padding-left: 26px; position: relative; color: var(--text-muted); font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); rotate: -45deg; }
.plan .btn { text-align: center; }
.demo-note { grid-column: 1 / -1; text-align: center; border: 1px dashed var(--accent); border-radius: 12px; padding: var(--s2); color: var(--accent-warm); }

/* formularios */
.field { display: grid; gap: 6px; margin-bottom: var(--s2); }
.field label, .check { font-size: var(--fs-small); color: var(--text-muted); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 16px; border-radius: 14px; background: var(--bg-deep); color: var(--text); border: 1px solid var(--line); font: inherit; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--s1); }
.check input { margin-top: 4px; accent-color: var(--accent); }
.form-note { min-height: 1.4em; font-size: var(--fs-small); margin: var(--s1) 0 0; }
.form-note.ok, .ok { color: var(--ok); }
.form-note.bad, .bad { color: var(--danger); }
.panel { border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--s4); background: var(--surface); }
.narrow { max-width: 480px; margin-inline: auto; }
.mid { max-width: 760px; margin-inline: auto; }
.tabs { display: flex; gap: 8px; margin-bottom: var(--s3); }
.tabs button { flex: 1; padding: 10px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text-muted); cursor: pointer; font: inherit; }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg-deep); }

/* avisos */
.notice { border: 1px solid var(--line); border-radius: 14px; padding: var(--s2) var(--s3); background: var(--bg-deep); margin: var(--s2) 0; }
.notice.upsell { border-color: var(--accent); }
.notice.bad { border-color: var(--danger); color: var(--text); }
.notice h3 { font-size: 1.4rem; margin-bottom: 6px; }
.notice p { margin: 0 0 var(--s1); color: var(--text-muted); }
.usage { text-align: center; font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--s2); }

/* lectura: texto de la IA */
.reading-text { border: 1px solid var(--accent); border-radius: var(--radius-panel); padding: var(--s4); background: var(--surface); margin: var(--s3) 0; }
.reading-text h3 { font-size: 1.5rem; }
.reading-text p { white-space: pre-line; max-width: 65ch; margin: 0 auto; }
.spread-tabs a .lock { margin-left: 6px; font-size: .7rem; opacity: .8; }
.spread-tabs a.locked { border-style: dashed; }

/* chat */
.chat { display: grid; grid-template-rows: 1fr auto; height: min(70vh, 640px); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); overflow: hidden; }
.chat-log { overflow-y: auto; padding: var(--s3); display: grid; gap: 12px; align-content: start; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 18px; white-space: pre-line; }
.msg.bot { background: var(--bg-deep); border: 1px solid var(--line); border-top-left-radius: 4px; justify-self: start; }
.msg.me { background: var(--accent); color: var(--bg-deep); border-top-right-radius: 4px; justify-self: end; }
.msg.sys { justify-self: center; color: var(--text-muted); font-size: var(--fs-small); text-align: center; }
.chat-form { display: flex; gap: 10px; padding: var(--s2); border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; background: var(--bg-deep); color: var(--text); border: 1px solid var(--line); font: inherit; }

/* cuenta */
.hist { display: grid; gap: var(--s2); list-style: none; padding: 0; margin: 0; }
.hist li { border: 1px solid var(--line); border-radius: 14px; padding: var(--s2) var(--s3); background: var(--bg-deep); }
.hist time { color: var(--text-muted); font-size: var(--fs-small); }
.hist details summary { cursor: pointer; color: var(--accent); }
.hist p { white-space: pre-line; color: var(--text-muted); }
.grid2 { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.meter { height: 8px; border-radius: 999px; background: var(--bg-deep); border: 1px solid var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }

/* legal */
.legal { max-width: 70ch; margin-inline: auto; }
.legal h2 { font-size: 2rem; text-align: left; margin-top: var(--s5); }
.legal p, .legal li { color: var(--text-muted); }

/* newsletter */
.lead-form { max-width: 520px; margin-inline: auto; }

/* resultado numerología */
.numbers { display: flex; gap: var(--s3); justify-content: center; margin: var(--s2) 0; }
.numbers div { text-align: center; }
.numbers strong { display: block; font-family: var(--font-heading); font-size: 3.4rem; font-weight: 400; color: var(--accent-warm); line-height: 1; }
.numbers span { color: var(--text-muted); font-size: var(--fs-small); }

/* hero: que el título y los botones entren en la primera pantalla */
.hero { --wheel-h: clamp(250px, calc(100svh - 470px), 340px); --wheel-w: min(1040px, 100vw - 32px); padding-top: 84px; }
.wheel { width: var(--wheel-w); height: var(--wheel-h); aspect-ratio: auto; }
.hero-card { width: calc(var(--wheel-h) * .52); margin-top: calc(var(--wheel-h) * .38); }
/* móvil: las etiquetas vuelven a un abanico compacto */
@media (max-width: 760px) {
  .hero { --wheel-h: 440px; }
  .hero-card { width: calc(var(--wheel-w) * .22); margin-top: 150px; }
  .hero-title { margin-top: var(--s2); }
  .wheel-link[href$="tipo=tarot"] { left: 13% !important; top: 36% !important; }
  .wheel-link[href$="tipo=amor"] { left: 28% !important; top: 21% !important; }
  .wheel-link[href$="tipo=sino"] { left: 43% !important; top: 14% !important; }
  .wheel-link[href$="tipo=diario"] { left: 58% !important; top: 14% !important; }
  .wheel-link[href$="tipo=una"] { left: 73% !important; top: 21% !important; }
  .wheel-link[href$="tipo=tres"] { left: 87% !important; top: 36% !important; }
  .wheel-link.pill { left: 50% !important; top: 30% !important; }
}
.hero-title { margin-top: calc(var(--wheel-h) * .38); font-size: clamp(2rem, 4.2vw, 3.6rem); }
@media (max-width: 760px) { .hero-title { margin-top: var(--s2); } }
.hero-hint { margin-top: 4px; }

@media (max-width: 520px) { .moon { display: none; } }

/* Ingreso con Google (botón claro, con el logo de color como pide Google) */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: 999px; border: 1px solid #dadce0; background: #fff; color: #1f1f1f; font: inherit; font-weight: 500; cursor: pointer; transition: box-shadow .2s, background .2s; }
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 6px rgba(0,0,0,.35); }
.btn-google:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.or { display: flex; align-items: center; gap: 12px; margin: var(--s3) 0; color: var(--text-muted); font-size: .9rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.consent { display: grid; gap: var(--s2); margin-bottom: var(--s3); }
