/* ===== ESCUELA DE SHIT TEST — estilo Hotmart ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f4f1;
  --bg-dark: #191c1f;
  --card: #ffffff;
  --card-border: #e9e4df;
  --accent: #f04e23;          /* naranja Hotmart */
  --accent-dark: #c93a15;
  --accent-soft: #fdeae4;
  --accent-glow: rgba(240, 78, 35, .25);
  --text: #191c1f;
  --muted: #61676d;
  --ok: #0f9d58;
  --font-body: "Inter", system-ui, sans-serif;
}

/* anillo de nota animable */
@property --pct {
  syntax: "<number>";
  initial-value: 0;
  inherits: false;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}
.hidden { display: none !important; }
.accent { color: var(--accent); }
.muted { color: var(--muted); font-size: .9rem; }
::selection { background: var(--accent); color: #fff; }

/* ===== ANIMACIONES ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-16px, 14px) scale(1.06); }
}
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 5%;
  background: #ffffff;
  border-bottom: 1px solid var(--card-border);
  transition: background .3s, box-shadow .3s;
}
.nav.nav-scrolled {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(25,28,31,.06);
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  color: var(--text); text-decoration: none;
  white-space: nowrap; margin-right: 1.2rem;
}
.logo-mark {
  flex-shrink: 0; width: 46px; height: 46px; object-fit: contain;
  margin: -6px -4px -6px -6px; /* compensa el aire interno del rayo */
  filter: drop-shadow(0 3px 8px var(--accent-glow));
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text em {
  font-style: normal; font-size: .6rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted);
}
.logo-text strong {
  font-size: 1.06rem; font-weight: 900; letter-spacing: -.3px; color: var(--text);
}
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 600;
  transition: color .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--card-border);
  color: var(--text); font-size: 1.2rem; padding: .2rem .6rem; border-radius: 10px; cursor: pointer;
}
.user-chip {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-alt); border: 1px solid var(--card-border);
  padding: .25rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
}
.user-chip img { width: 24px; height: 24px; border-radius: 50%; }
.user-chip button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .8rem; }
.user-chip button:hover { color: var(--accent); }

/* ===== BOTONES (pastilla Hotmart) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.8rem; border-radius: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-glow);
}
.btn-outline {
  background: #fff; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--accent-dark); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.btn-ghost-white {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.85);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-sm { padding: .5rem 1.1rem; font-size: .82rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-full { width: 100%; margin-top: 1.3rem; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ===== HERO (fondo rojo Hotmart) ===== */
.hero {
  padding: 7.5rem 5% 0;
  background: linear-gradient(115deg, #f04e23 0%, #e0431b 55%, #c93a15 100%);
  overflow: hidden;
}
.hero-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.hero-copy { animation: fadeUp .8s ease both; padding-bottom: 4.5rem; }
.hero h1 {
  font-weight: 900; letter-spacing: -1.5px;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.12;
  margin-bottom: 1.2rem;
  color: #fff;
}
.hero h1 .accent { color: #ffd9c4; }
.hero-sub { color: rgba(255,255,255,.88); font-size: 1.12rem; max-width: 540px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-contador {
  margin-top: 1.6rem; color: rgba(255,255,255,.85); font-size: .95rem; font-weight: 600;
}
.hero-contador strong { color: #fff; font-weight: 900; font-size: 1.15rem; }
.hero-stats { display: flex; gap: 2.8rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1.15; }
.hero-stats span { color: rgba(255,255,255,.75); font-size: .84rem; }

.hero-media {
  position: relative; animation: fadeUp .8s .2s ease both;
  align-self: end;
}
.hero-media img {
  display: block;
  width: 100%; max-width: 520px; margin: 0 auto;
  aspect-ratio: 4 / 4.4; object-fit: cover; object-position: top;
  -webkit-mask-image: radial-gradient(ellipse 68% 82% at 50% 42%, black 52%, transparent 76%);
  mask-image: radial-gradient(ellipse 68% 82% at 50% 42%, black 52%, transparent 76%);
}

/* ===== SECCIONES ===== */
.section { padding: 5.5rem 4%; }
.section > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #f4f2f0; }
.section-dark .section-sub { color: #b9bcbf; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 900; letter-spacing: -1px;
}
.section-sub { color: var(--muted); max-width: 660px; margin: 1rem auto 0; font-size: 1.02rem; }

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px; padding: 1.8rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card h4 { font-size: 1.05rem; margin-bottom: .5rem; font-weight: 800; letter-spacing: -.2px; }
.card p { color: var(--muted); font-size: .92rem; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(25,28,31,.10); border-color: #dcd4cd; }

/* ===== CARRUSEL ===== */
.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 1.2rem; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .4rem .2rem 1.1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 calc((100% - 2.4rem) / 3); scroll-snap-align: start; }
@media (max-width: 900px) {
  .carousel > * { flex-basis: calc((100% - 1.2rem) / 2); }
}
@media (max-width: 640px) {
  .carousel > * { flex-basis: 85%; }
}
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--text);
  border: 1px solid var(--card-border);
  font-size: 1.5rem; font-weight: 700; line-height: 1; padding-bottom: 4px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(25,28,31,.14);
  transition: transform .2s, background .2s, color .2s;
}
.car-btn:hover { background: var(--accent); color: #fff; transform: translateY(-50%) scale(1.08); }
.car-btn.prev { left: -16px; }
.car-btn.next { right: -16px; }

/* ===== METERS ===== */
.meter {
  width: 100%; height: 9px; border-radius: 999px; overflow: hidden;
  background: #ece7e2;
}
.section-dark .meter, .resultado .meter { background: #ece7e2; }
.meter-lg { height: 15px; }
.meter-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ff8a3d, var(--accent));
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(.2,.8,.2,1);
}
.impact { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.impact .meter { flex: 1; }
.impact span {
  font-size: .76rem; font-weight: 800; color: var(--accent-dark); white-space: nowrap;
  letter-spacing: .3px;
}

/* ===== FÓRMULA ===== */
.formula { margin-bottom: 2.4rem; }
.formula h3 { font-size: 1.25rem; font-weight: 900; letter-spacing: -.3px; margin-bottom: .4rem; }
.formula-sub { margin-bottom: 1.5rem; }
.formula-sub strong { color: var(--accent-dark); }
.formula-bars { display: flex; flex-direction: column; gap: 1.05rem; }
.f-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-bottom: .35rem; font-size: .92rem; color: var(--muted);
}
.f-label strong { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.f-king .f-label span { color: var(--text); font-weight: 700; }
.f-king .f-label strong { font-size: 1.55rem; font-weight: 900; color: var(--accent); }
.formula-note {
  margin-top: 1.4rem; font-size: .9rem !important;
  background: var(--accent-soft); color: var(--accent-dark) !important;
  padding: .8rem 1.1rem; border-radius: 12px;
}

/* triggers */
.t-num {
  display: inline-block; font-weight: 900; font-size: .85rem;
  color: var(--accent); background: var(--accent-soft);
  padding: .25rem .7rem; border-radius: 999px; margin-bottom: .9rem;
}

/* reglas */
.reglas-grid { margin-top: 4.5rem; }
.reglas-title {
  text-align: center; margin-bottom: 1.8rem;
  font-size: 1.45rem; font-weight: 900; letter-spacing: -.4px;
}
.mini { position: relative; }
.mini .num {
  font-weight: 900; font-size: 2.4rem; line-height: 1;
  color: var(--accent-soft);
  -webkit-text-stroke: 1.5px var(--accent);
  position: absolute; top: 1.2rem; right: 1.3rem;
}
.mini h4 { padding-right: 3rem; }

/* ===== LOGIN GATE ===== */
.login-gate { max-width: 460px; text-align: center; padding: 2.6rem 2rem; }
.login-gate h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: .6rem; }
.login-gate p { color: var(--muted); font-size: .93rem; margin-bottom: 1.5rem; }
.error-msg { color: #d43535; font-size: .85rem; margin-top: 1rem; }

/* ===== ANALIZADOR (formulario + historial lado a lado en escritorio) ===== */
.analyzer {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.4rem;
  align-items: start;
}
.analyzer-form { width: 100%; }
.analyzer .resultado { grid-column: 1 / -1; }
.analyzer-form label {
  display: block; font-weight: 700; font-size: .9rem; margin: 1.2rem 0 .45rem;
}
.analyzer-form label:first-child { margin-top: 0; }
.req { color: var(--accent); font-weight: 600; font-size: .8rem; }
.opt { color: var(--muted); font-weight: 500; font-size: .8rem; }
.analyzer-form .form-tip {
  display: flex; align-items: center; gap: .45rem;
  margin: .5rem 0 0; padding: .5rem .75rem;
  background: #eef4ff; border: 1px solid #cfe0ff; border-radius: 10px;
  color: #2456b8; font-size: .8rem; font-weight: 500;
}
.form-tip::before {
  content: "💡"; font-size: .95rem; line-height: 1;
}
.form-tip b { color: #17408f; font-weight: 800; }
/* pestañas de modo (analizar / sugerir) */
.mode-tabs {
  display: flex; gap: .4rem; background: var(--bg-alt);
  border: 1px solid var(--card-border); border-radius: 12px;
  padding: .35rem; margin-bottom: 1.3rem;
}
.mode-tab {
  flex: 1; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  color: var(--muted); padding: .6rem .5rem; border-radius: 8px;
  transition: background .2s, color .2s;
}
.mode-tab:hover { color: var(--accent); }
.mode-tab.active { background: var(--accent); color: #fff; }

/* tarjetas de sugerencias */
.sug-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; }
.sug-sub { font-weight: 600; font-size: .82rem; color: var(--accent-dark); }
.sug-item {
  border: 1px solid var(--card-border); border-radius: 14px;
  padding: 1.1rem 1.2rem; margin-bottom: 1rem; background: #fff;
}
.sug-item:last-child { margin-bottom: 0; }
.sug-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; flex-wrap: wrap; }
.sug-num { font-weight: 800; font-size: .8rem; color: var(--accent); background: var(--accent-soft); padding: .2rem .7rem; border-radius: 8px; }
.sug-estilo { font-weight: 600; font-size: .82rem; color: var(--muted); }
.sug-nota { margin-left: auto; font-weight: 900; font-size: .95rem; color: var(--ok); }
.sug-texto {
  background: #eafaf1; border-left: 3px solid var(--ok);
  padding: .8rem 1rem; border-radius: 0 10px 10px 0;
  font-size: 1.02rem; color: #14522e; font-style: italic; font-weight: 500;
  margin-bottom: .5rem;
}
.sug-porque { color: var(--muted); font-size: .88rem; }

.analyzer-form textarea, .analyzer-form select {
  width: 100%; background: #fff; border: 1.5px solid var(--card-border);
  border-radius: 14px; color: var(--text); padding: .85rem 1.05rem;
  font-family: var(--font-body); font-size: .93rem; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.analyzer-form textarea:focus, .analyzer-form select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* --- dashboard resultado --- */
.res-dashboard { display: grid; grid-template-columns: 320px 1fr; gap: 2.2rem; }
.res-left {
  border-right: 1px solid var(--card-border); padding-right: 2.2rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.nota-ring {
  --pct: 0; --ring: var(--accent);
  width: 132px; height: 132px; border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--pct) * 1%), #ece7e2 0);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: --pct 1.2s cubic-bezier(.2,.8,.2,1);
}
.nota-inner {
  width: 106px; height: 106px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--card-border);
}
.nota-inner span { font-size: 2.5rem; font-weight: 900; color: var(--ring-color, var(--accent)); letter-spacing: -1px; }
.nota-inner small { color: var(--muted); font-size: .8rem; margin-left: 3px; }
.res-tipo {
  font-size: .74rem; font-weight: 800; letter-spacing: 1.5px;
  color: var(--accent); text-transform: uppercase;
}
.res-veredicto { font-size: 1.05rem; font-weight: 800; margin-top: .2rem; letter-spacing: -.2px; }
.res-conquista {
  margin-top: .5rem; font-size: .9rem; font-weight: 700;
  color: var(--accent-dark); background: var(--accent-soft);
  padding: .45rem .9rem; border-radius: 10px; display: inline-block;
}
.res-reaccion {
  margin-top: .55rem; font-size: .92rem; font-weight: 700; font-style: italic;
  color: #14522e; background: #eafaf1; border: 1px solid #bfe8d0;
  padding: .45rem .9rem; border-radius: 10px; display: inline-block;
}
.res-reaccion.reaccion-mala {
  color: #8f1d1d; background: #fdecec; border-color: #f3c2c2;
}

/* puntajes negativos (antijuego) */
.meter-fill.neg {
  background: linear-gradient(90deg, #e23b3b, #8f1d1d);
}
.m-label strong.val-neg { color: #d43535 !important; }

.metricas { width: 100%; margin-top: 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.metrica { text-align: left; }
.m-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .84rem; margin-bottom: .32rem; color: var(--muted); font-weight: 600;
}
.m-label strong { font-weight: 900; color: var(--text); font-size: .95rem; }
.metrica.destaca .m-label { font-size: .9rem; color: var(--text); font-weight: 700; }
.metrica.destaca .m-label strong { font-size: 1.15rem; color: var(--accent); }
.metrica.destaca .meter { height: 13px; }
.m-divider {
  font-size: .68rem; letter-spacing: 2.5px; font-weight: 800; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-top: .4rem;
  display: flex; align-items: center; gap: .7rem;
}
.m-divider::before, .m-divider::after { content: ""; flex: 1; height: 1px; background: var(--card-border); }

.res-block { margin-bottom: 1.4rem; }
.res-block:last-child { margin-bottom: 0; }
.res-block h4 { font-size: .95rem; font-weight: 800; margin-bottom: .5rem; }
.res-block ul { padding-left: 1.2rem; color: var(--muted); font-size: .93rem; }
.res-block li { margin-bottom: .4rem; }
.res-block p { color: var(--muted); font-size: .93rem; }
.res-mejora blockquote {
  background: #eafaf1; border: 1px solid #bfe8d0;
  padding: 1rem 1.2rem; border-radius: 14px;
  font-size: 1.02rem; color: #14522e; font-style: italic; font-weight: 500;
}
.res-regla p { color: var(--accent-dark); font-weight: 600; }

/* colores según nota */
.nota-mala   { --ring: #e23b3b; --ring-color: #e23b3b; }
.nota-media  { --ring: #f0a223; --ring-color: #d9820a; }
.nota-buena  { --ring: var(--ok); --ring-color: var(--ok); }

/* historial */
.historial { width: 100%; }
.historial h4 { font-weight: 800; margin-bottom: .8rem; }
.historial summary {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none; user-select: none;
}
.historial summary::-webkit-details-marker { display: none; }
.hist-title { font-weight: 800; font-size: 1.05rem; }
.hist-count { color: var(--muted); font-weight: 600; font-size: .9rem; }
.hist-arrow { color: var(--accent); font-size: 1rem; transition: transform .25s; }
.historial[open] .hist-arrow { transform: rotate(180deg); }
.historial[open] summary { margin-bottom: .8rem; }
.historial #historialLista { max-height: 420px; overflow-y: auto; }
.hist-item {
  border-top: 1px solid var(--card-border); padding: .85rem 0;
  display: flex; gap: .9rem; align-items: flex-start; font-size: .88rem;
}
.hist-nota {
  font-weight: 900; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2.5px solid var(--ring, var(--accent));
  color: var(--ring-color, var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.hist-item .hist-test { color: var(--text); font-weight: 600; }
.hist-item .hist-resp { color: var(--muted); font-size: .83rem; }
.hist-item .hist-atr { color: var(--accent-dark); font-size: .78rem; font-weight: 800; }

/* ===== EXAMEN ===== */
.exam-setup { max-width: 720px; margin: 0 auto 1.4rem; text-align: center; }
.exam-setup h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 1rem; }
.nivel-btns {
  display: inline-flex; gap: .5rem; flex-wrap: wrap; justify-content: center;
  background: var(--bg-alt); border: 1px solid var(--card-border);
  padding: .4rem; border-radius: 12px; margin-bottom: 1rem;
}
.nivel-btn {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: .92rem;
  color: var(--muted); padding: .55rem 1.4rem; border-radius: 8px;
  transition: background .2s, color .2s;
}
.nivel-btn:hover { color: var(--accent); }
.nivel-btn.active { background: var(--accent); color: #fff; }
.nivel-desc { color: var(--muted); font-size: .92rem; margin-bottom: 1.4rem; min-height: 2.6em; }
.exam-list { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: .4rem; }
.exam-q { text-align: left; }
.exam-q-num {
  display: inline-block; font-weight: 900; font-size: .8rem;
  color: var(--accent); background: var(--accent-soft);
  padding: .2rem .7rem; border-radius: 8px; margin-bottom: .6rem;
}
.exam-q-text { font-size: 1.05rem; font-weight: 700; margin-bottom: .8rem; }
.exam-q textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--card-border);
  border-radius: 12px; color: var(--text); padding: .8rem 1rem;
  font-family: var(--font-body); font-size: .93rem; resize: vertical; min-height: 64px;
  transition: border-color .2s, box-shadow .2s;
}
.exam-q textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
#examenPreguntas { max-width: 860px; margin: 0 auto; }
.exam-resultado { max-width: 860px; margin: 1.4rem auto 0; }
.exam-res-head {
  display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.6rem; flex-wrap: wrap;
}
.nota-ring-sm { width: 104px; height: 104px; margin-bottom: 0; }
.nota-ring-sm .nota-inner { width: 82px; height: 82px; }
.nota-ring-sm .nota-inner span { font-size: 1.9rem; }
.exam-res-item {
  border-top: 1px solid var(--card-border);
  padding: 1.3rem 0;
  display: grid; grid-template-columns: 56px 1fr; gap: 1rem;
}
.exam-res-nota {
  font-weight: 900; width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid var(--ring, var(--accent)); color: var(--ring-color, var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.exam-res-item h5 { font-size: 1rem; font-weight: 800; margin-bottom: .3rem; }
.exam-res-item .tu-resp { color: var(--muted); font-size: .9rem; font-style: italic; margin-bottom: .5rem; }
.exam-res-item ul { padding-left: 1.1rem; color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.exam-res-item .mejora {
  background: #eafaf1; border: 1px solid #bfe8d0; border-radius: 10px;
  padding: .6rem .9rem; font-size: .93rem; color: #14522e; font-style: italic;
  margin-bottom: .4rem;
}
.exam-res-item .comentario { font-size: .88rem; color: var(--accent-dark); }
#btnOtroExamen { margin-top: 1.2rem; }
#btnCompartir { margin-top: 1.3rem; }

/* ===== BANNER CON FOTO ===== */
.media-banner {
  position: relative; border-radius: 24px; overflow: hidden;
  margin-bottom: 2.2rem;
  box-shadow: 0 24px 50px rgba(25,28,31,.16);
}
.media-banner img { width: 100%; height: 320px; object-fit: cover; display: block; }
.media-banner-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 2rem 1.6rem;
  background: linear-gradient(transparent, rgba(15,10,8,.85));
  color: #fff;
}
.media-banner-text h3 { font-size: 1.35rem; font-weight: 900; letter-spacing: -.4px; }
.media-banner-text p { color: #e8ddd6; font-size: .95rem; margin-top: .2rem; }

/* ===== LUGARES ===== */
.lugares-list { display: flex; flex-direction: column; gap: 1.2rem; }
.lugar-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .7rem; flex-wrap: wrap; }
.lugar-head h3 { font-size: 1.15rem; font-weight: 900; letter-spacing: -.3px; }
.l-tag {
  font-size: .74rem; font-weight: 700; color: var(--accent-dark);
  background: var(--accent-soft);
  padding: .2rem .75rem; border-radius: 999px;
}
.l-ejemplos { margin-top: .6rem; font-size: .86rem !important; }
.l-ejemplos strong { color: var(--text); }
.lugar-guia { margin-top: 2rem; }
.lugar-guia h3 { font-size: 1.25rem; font-weight: 900; margin-bottom: 1rem; letter-spacing: -.3px; }
.check-list { list-style: none; }
.check-list li {
  padding: .6rem 0 .6rem 1.7rem; position: relative;
  color: var(--muted); font-size: .93rem;
  border-bottom: 1px dashed var(--card-border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .95rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}
.check-list strong { color: var(--text); }

/* ===== ETAPAS (banda oscura) ===== */
.etapas-timeline { display: flex; flex-direction: column; gap: 1.2rem; }
.section-dark .card {
  background: #22262a; border-color: #33383d;
}
.section-dark .card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.4); border-color: #4a5057; }
.section-dark .card p { color: #b9bcbf; }
.etapa { position: relative; padding-left: 4.6rem; }
.etapa-num {
  position: absolute; left: 1.3rem; top: 1.7rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-weight: 900; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.etapa h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: .5rem; color: #fff; letter-spacing: -.3px; }
.etapa-sub { font-weight: 500; font-size: .85rem; color: #9aa0a6; }
.etapa strong { color: #ffb9a3; }
.etapa-err {
  margin-top: .8rem; font-size: .86rem !important;
  color: #ffb9a3 !important; background: rgba(240,78,35,.12);
  padding: .65rem 1rem; border-radius: 12px;
}

/* ===== MODO ANIMAL ===== */
.animal h4 { color: var(--text); }
.manifiesto {
  margin-top: 2.2rem; text-align: center; padding: 2.6rem;
  background: linear-gradient(135deg, #fff4ef, #fdeae4);
  border-color: #f6cdbc;
}
.manifiesto h3 {
  font-size: 1.3rem; font-weight: 900; letter-spacing: -.3px;
  margin-bottom: 1rem; color: var(--accent-dark);
}
.manifiesto p { max-width: 720px; margin: 0 auto; color: #5b4238; font-size: 1rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark); color: #f4f2f0;
  text-align: center; padding: 3rem 5%;
}
.footer-logo {
  font-weight: 900; font-size: 1.05rem; letter-spacing: -.2px;
  display: inline-flex; align-items: center; gap: .3rem;
}
.footer-logo span { color: var(--accent); }
.footer-logo-mark { width: 34px; height: 34px; object-fit: contain; }
.footer-note { color: #9aa0a6; font-size: .82rem; max-width: 560px; margin: .8rem auto 0; }

/* ===== PRUEBA SOCIAL ===== */
.contador-grande {
  display: inline-block;
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -1.5px;
  color: var(--accent); line-height: 1.2; margin-bottom: .2rem;
}
.testimonio { display: flex; flex-direction: column; justify-content: space-between; }
.t-quote { color: var(--text) !important; font-size: .96rem !important; font-style: italic; }
.t-autor {
  margin-top: 1rem; font-weight: 800; font-size: .85rem !important;
  color: var(--accent-dark) !important;
}

/* ===== CUPOS / PLAN ===== */
.cupo-info {
  text-align: center; color: var(--muted); font-size: .82rem;
  margin-top: .7rem; font-weight: 600;
}
.cupo-info.cupo-premium { color: var(--accent-dark); }

/* ===== MODAL AVISO DE PAGO ===== */
.modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(25,28,31,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-card {
  max-width: 500px; width: 100%; position: relative;
  text-align: center; padding: 2.4rem 2rem 2rem;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.modal-close {
  position: absolute; top: .9rem; right: 1.1rem;
  background: none; border: none; font-size: 1.05rem; cursor: pointer;
  color: var(--muted);
}
.modal-close:hover { color: var(--accent); }
.modal-card h3 { font-size: 1.35rem; font-weight: 900; letter-spacing: -.4px; margin-bottom: .5rem; }
.paywall-sub { color: var(--muted); font-size: .93rem; margin-bottom: 1.3rem; }
.paywall-sub strong { color: var(--text); }
.paywall-plan {
  background: var(--accent-soft); border: 1px solid #f6cdbc;
  border-radius: 14px; padding: 1.2rem 1.4rem; text-align: left;
  margin-bottom: 1.3rem;
}
.paywall-plan h4 { color: var(--accent-dark); font-weight: 900; margin-bottom: .6rem; }
.paywall-plan ol { padding-left: 1.2rem; color: #5b4238; font-size: .92rem; }
.paywall-plan li { margin-bottom: .35rem; }
.paywall-plan strong { color: var(--accent-dark); }
.paywall-nota { font-size: .82rem; color: #8a6a5c; margin-top: .6rem; }

/* ===== PANEL DEL DUEÑO ===== */
.admin-head-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap;
}
.admin-head-row h4 { font-weight: 800; }
.admin-row {
  display: grid; grid-template-columns: 1.3fr 1.1fr auto;
  gap: 1rem; align-items: center;
  border-top: 1px solid var(--card-border); padding: .9rem 0;
  font-size: .9rem;
}
.admin-user { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.admin-user strong { overflow: hidden; text-overflow: ellipsis; }
.admin-uso { color: var(--muted); font-size: .8rem; }
.admin-suscripcion { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.admin-fechas { font-size: .78rem; }
.admin-estado {
  font-weight: 900; font-size: .78rem; letter-spacing: .5px;
  padding: .25rem .7rem; border-radius: 8px; text-align: center;
}
.admin-estado.es-premium { background: var(--accent); color: #fff; }
.admin-estado.es-vencido { background: #fdecec; color: #c0392b; border: 1px solid #f3c2c2; }
.admin-estado.es-gratis { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--card-border); }
.admin-btns { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) {
  .admin-row { grid-template-columns: 1fr; }
  .admin-btns { justify-content: flex-start; }
}

/* ===== SPINNER ===== */
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-media { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .res-dashboard { grid-template-columns: 1fr; }
  .res-left { border-right: none; padding-right: 0; border-bottom: 1px solid var(--card-border); padding-bottom: 1.7rem; }
  .analyzer { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: #fff; padding: 1.2rem 5%;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 18px 30px rgba(25,28,31,.08);
  }
  .nav-links.open { display: flex; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .etapa { padding-left: 1.7rem; padding-top: 4.3rem; }
  .etapa-num { top: 1.3rem; left: 1.7rem; }
  .hero-stats { gap: 1.6rem; }
  .media-banner img { height: 220px; }
  .car-btn.prev { left: 4px; }
  .car-btn.next { right: 4px; }
}

/* accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
