/* TEV+ · Landing de la comunidad
   Tema oscuro fijo (marca). Acento: #6ab94c (rojo #e5534b solo para velas bajistas). Radio único: 10px. */

:root {
  --bg: #0b0c0b;
  --bg-2: #131513;
  --bg-3: #1a1d1a;
  --text: #f4f5f1;
  --muted: #a6aaa2;
  --line: rgb(255 255 255 / 0.1);
  --g: #6ab94c;
  --g-hover: #7cc95e;
  --g-soft: rgb(106 185 76 / 0.14);
  --red: #e5534b;
  --on-g: #0b0c0b;
  --r: 10px;
  --wrap: 1120px;
  --pad: clamp(32px, 5vw, 40px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--g); color: var(--on-g); padding: 10px 16px; border-radius: var(--r);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

main, .foot { position: relative; z-index: 1; }

/* ---------- Tipografía ---------- */

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.9rem, 7.4vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.display--md { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
.display--sm { font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.05; }
.display > span { display: block; }
.g { color: var(--g); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.body { color: var(--muted); max-width: 60ch; }
.body--sm { font-size: 0.925rem; }

/* Máscara para que las líneas del titular suban desde abajo sin cortar tildes */
.line-mask { display: block; overflow: hidden; padding-top: 0.12em; margin-top: -0.12em; }
.line-mask > span { display: block; }

/* ---------- Botones y links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0 26px;
  background: var(--g); color: var(--on-g);
  border: 1px solid var(--g); border-radius: var(--r);
  font: 700 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--g-hover); border-color: var(--g-hover); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn .ph { font-size: 1.15em; transition: transform 0.25s var(--ease); }
.btn:hover .ph-arrow-right { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--text); border-color: rgb(255 255 255 / 0.22); }
.btn--ghost:hover { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.4); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.925rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.85; }

.link {
  display: inline-flex; align-items: center; gap: 0.35em;
  color: var(--g); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid rgb(106 185 76 / 0.4); padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}
.link:hover { border-color: var(--g); }
.link--btn { background: none; border: 0; border-bottom: 1px solid rgb(106 185 76 / 0.4); font: 700 0.95rem var(--sans); cursor: pointer; padding: 0 0 2px; margin: 4px auto 0; }

/* ---------- Línea de tendencia ---------- */

.trend {
  position: absolute; top: 0; left: 0; width: 100%; height: 0;
  pointer-events: none; z-index: 0; overflow: visible;
}
.trend path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.trend__ghost { stroke: rgb(106 185 76 / 0.12); stroke-width: 1.5; }
.trend__line { stroke: var(--g); stroke-width: 2; }
.trend__head { fill: var(--g); opacity: 0; }
.trend.is-ready .trend__head { opacity: 1; }
.trend__head { filter: drop-shadow(0 0 6px rgb(106 185 76 / 0.55)); }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: rgb(11 12 11 / 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand img { width: auto; height: 30px; }

/* ---------- Hero ---------- */

.hero { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 88px)); padding-bottom: clamp(56px, 8vw, 104px); min-height: min(100dvh, 920px); display: flex; align-items: center; }
.hero__grid { display: grid; grid-template-columns: 1.35fr 0.65fr; align-items: center; gap: 40px; }
.hero__copy { display: grid; gap: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__mark { justify-self: end; width: min(100%, 380px); }
/* "TeV+" respeta la mayúscula del logo y va más grande que el resto del titular */
.brand { text-transform: none; font-size: 1.35em; line-height: 1; }

/* Gráfico de velas del hero */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart__grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.chart__candles line { stroke-width: 2; stroke-linecap: round; }
.chart__candles rect { rx: 2; }
.chart__candles .up line { stroke: var(--g); }
.chart__candles .up rect { fill: var(--g); }
.chart__candles .down line { stroke: var(--red); }
.chart__candles .down rect { fill: var(--red); }
.chart__line { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linejoin: round; stroke-opacity: 0.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart__head { fill: var(--g); filter: drop-shadow(0 0 8px rgb(106 185 76 / 0.8)); }

/* En loop: las velas suben una a una, se dibuja la línea, queda un rato y vuelve a empezar */
@media (prefers-reduced-motion: no-preference) {
  .chart__candles > g { transform-box: fill-box; transform-origin: 50% 100%; animation: candle 7s var(--ease) infinite both; animation-delay: calc(var(--i) * 0.12s); }
  .chart__line { animation: draw 7s var(--ease) infinite both; }
  .chart__head { animation: head 7s var(--ease) infinite both, pulse 1.2s ease-in-out infinite; }
}
@keyframes candle {
  0% { transform: scaleY(0); opacity: 0; }
  8%, 86% { transform: scaleY(1); opacity: 1; }
  96%, 100% { transform: scaleY(1); opacity: 0; }
}
@keyframes draw {
  0%, 12% { stroke-dashoffset: 1; opacity: 1; }
  38%, 86% { stroke-dashoffset: 0; opacity: 1; }
  96%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes head {
  0%, 36% { opacity: 0; transform: scale(0); }
  42%, 86% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes pulse { 50% { filter: drop-shadow(0 0 2px rgb(106 185 76 / 0.3)); } }
.chart__head { transform-box: fill-box; transform-origin: center; }

/* Logo como última línea del titular */
.hero__logo img { width: clamp(200px, 22vw, 290px); height: auto; margin-top: 0.08em; }

/* ---------- Cifras ---------- */

.stats { padding-bottom: clamp(72px, 10vw, 128px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 20px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__n { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--g); font-variant-numeric: tabular-nums; }
.stat__n span { color: var(--text); }
.stat__l { margin-top: 10px; color: var(--muted); font-size: 0.925rem; max-width: 18ch; }

/* ---------- Soy Max ---------- */

.max { padding-block: clamp(72px, 10vw, 136px); }
.max__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 80px); }
/* La columna se estira hasta el final de las pruebas y el bloque se apoya abajo,
   así el dato de abajo queda a la altura de los retiros */
.max__copy { display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; }
.max__photo { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; border: 2px solid var(--g); background: var(--bg-2); }
.badge { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.badge img { width: 40px; height: 40px; flex: none; }
/* margin-bottom = alto de la leyenda de los retiros (gap de .proof + una línea de figcaption) */
.fact { margin-top: 12px; margin-bottom: calc(14px + 0.95rem * 1.6); padding-top: 22px; border-top: 1px solid var(--line); }
.fact__n { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--g); }
.fact__l { margin-top: 8px; color: var(--muted); }
.proofs { display: grid; gap: clamp(36px, 5vw, 56px); }
.proof { display: grid; gap: 14px; }
.proof figcaption { color: var(--muted); font-size: 0.95rem; }
.proof figcaption strong { color: var(--text); font-weight: 700; }
.proof img { border-radius: var(--r); border: 1px solid var(--line); width: 100%; height: auto; background: var(--bg-2); }
.payouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
/* Columnas proporcionales a cada certificado para que queden a la misma altura */
.certs { display: grid; grid-template-columns: 1.413fr 0.747fr; gap: 10px; }

/* ---------- Beneficios ---------- */

.perks { padding-block: clamp(72px, 10vw, 136px); }
.perks__grid { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; row-gap: 48px; }
.perk { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 10px; align-content: start; }
.perk .ph { font-size: 1.75rem; color: var(--g); }
.perk h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; letter-spacing: 0.01em; }
.perk p { color: var(--muted); max-width: 34ch; }

/* ---------- Sorteos ---------- */

.draws { padding-block: clamp(72px, 10vw, 136px); overflow-x: clip; }
.marquee { background: var(--g); color: var(--on-g); overflow: hidden; padding-block: 14px; transform: rotate(-1.5deg); margin-inline: -2vw; }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1; padding-inline: 28px; white-space: nowrap; }
.marquee__track span::after { content: "/"; margin-left: 56px; opacity: 0.45; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.draws__inner { margin-top: clamp(56px, 8vw, 96px); text-align: center; display: grid; justify-items: center; gap: 24px; }
.draws__inner .lead { max-width: 40ch; }

/* ---------- Acceso en 3 pasos ---------- */

.access { padding-block: clamp(72px, 10vw, 128px); }
.access > .wrap > .body { margin-top: 20px; }
.access__card {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  background: var(--bg-2); border: 1px solid var(--line); border-top: 2px solid var(--g); border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.access__card.is-reached { border-color: rgb(106 185 76 / 0.55); border-top-color: var(--g); box-shadow: 0 0 0 6px var(--g-soft); }

.access__steps { padding: clamp(28px, 4vw, 48px); display: grid; align-content: start; }
.astep { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.astep + .astep { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.astep__n { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--g); }
.astep__body { display: grid; gap: 10px; justify-items: start; }
.astep h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; }
.astep p { color: var(--muted); max-width: 40ch; }
.astep strong { color: var(--text); }
.astep__note { font-size: 0.875rem; }

.exchange {
  margin-top: 8px; width: min(100%, 240px); min-height: 76px; padding: 0 22px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid rgb(255 255 255 / 0.18); border-radius: var(--r); background: var(--bg);
  text-decoration: none; color: var(--text);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.exchange:hover { border-color: var(--g); background: var(--g-soft); }
.exchange:active { transform: scale(0.985); }
.exchange img { width: 104px; height: auto; }
.exchange .ph { color: var(--g); font-size: 1.2rem; }

.why { margin-top: 4px; }
.why summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; }
.why summary::-webkit-details-marker { display: none; }
.why summary .ph { font-size: 1.15rem; color: var(--g); }
.why summary:hover { color: var(--g); }
.why__body { margin-top: 14px; padding: 16px 18px; border-left: 2px solid var(--g); background: var(--g-soft); border-radius: 0 var(--r) var(--r) 0; display: grid; gap: 10px; }
.why__body p { font-size: 0.9rem; color: var(--text); }

.access__enter {
  padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; align-content: start;
  border-left: 1px solid var(--line);
  background: radial-gradient(circle at 85% 0%, rgb(106 185 76 / 0.16), transparent 55%), var(--bg-3);
}
.access__hint { text-align: center; color: var(--muted); font-size: 0.85rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:hover { background: var(--g); border-color: var(--g); }

.access__form, .result { display: grid; gap: 18px; }
.access__form[hidden], .result[hidden] { display: none; }
form { display: grid; gap: 20px; margin-top: 8px; }

.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input {
  min-height: 52px; width: 100%; padding: 0 16px;
  background: var(--bg); color: var(--text);
  border: 1px solid rgb(255 255 255 / 0.2); border-radius: var(--r);
  font: 600 1.1rem var(--sans); letter-spacing: 0.04em;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:hover { border-color: rgb(255 255 255 / 0.35); }
.field input:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 4px var(--g-soft); }
.field input[aria-invalid="true"] { border-color: #e8756b; }
.field input::placeholder { color: rgb(255 255 255 / 0.28); font-weight: 400; letter-spacing: 0; }
.field__help { color: var(--muted); font-size: 0.875rem; }
.field__error { color: #f08a80; font-size: 0.9rem; font-weight: 600; }
.field__error--center { text-align: center; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--muted); font-size: 0.925rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--g); cursor: pointer; }
.check a { color: var(--text); }

.btn .spinner { width: 100px; height: 4px; border-radius: 4px; background: rgb(11 12 11 / 0.25); overflow: hidden; position: relative; }
.btn .spinner::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--on-g); border-radius: inherit; animation: load 1s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.access__safe { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: 0.85rem; text-align: center; }
.access__safe .ph { color: var(--g); }

.result { text-align: center; justify-items: center; outline: none; }
.result .body { margin-inline: auto; }
.result__icon { font-size: 3rem; color: var(--g); }
.result__icon--muted { color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { padding-block: clamp(72px, 10vw, 136px); }
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font-family: var(--display); font-size: 1.6rem; color: var(--g); transition: rotate 0.3s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); padding: 0 44px 24px 0; max-width: 60ch; }
.faq details p a { color: var(--g); font-weight: 700; }

/* ---------- Reseñas ---------- */

.reviews { padding-block: clamp(72px, 10vw, 136px); }
.reviews__grid { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
/* 3 arriba y 2 abajo, centradas */
.review { grid-column: span 2; }
.review:nth-child(4) { grid-column: 2 / span 2; }
.review {
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color 0.3s var(--ease);
}
.review:hover { border-color: rgb(106 185 76 / 0.45); }
.review__stars { display: flex; gap: 3px; color: var(--g); font-size: 1.05rem; }
.review blockquote { margin: 0; color: var(--text); line-height: 1.65; flex: 1; }
.review__who { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 0.95rem; }
.review__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--g-soft); color: var(--g); border: 1px solid rgb(106 185 76 / 0.4);
  font-size: 0.8rem; letter-spacing: 0.04em;
}

/* ---------- Pie ---------- */

.foot { padding-block: 24px 48px; }
.signoff { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.signoff::before, .signoff::after { content: ""; flex: 1; height: 1px; background: rgb(255 255 255 / 0.4); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 28px; }
.foot__row a { color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; font-size: 0.925rem; }
.foot__row a:hover { color: var(--text); }
.foot__legal { margin: 28px auto 0; max-width: 72ch; text-align: center; color: #80847d; font-size: 0.8rem; line-height: 1.55; }

/* ---------- Apariciones (solo con JS y movimiento permitido) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); }
  .js:not(.anim) .reveal-lines { visibility: hidden; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1023px) {
  .perks__grid { grid-template-columns: repeat(2, 1fr); }
  .max__grid, .faq__grid { grid-template-columns: 1fr; }
  .fact { margin-bottom: 0; }
  .access__card { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr 1fr; }
  .review, .review:nth-child(4) { grid-column: auto; }
  .review:nth-child(5) { grid-column: 1 / -1; }
  .access__enter { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Celular ---------- */

@media (max-width: 767px) {
  :root { --nav-h: 60px; }
  .wrap { padding-left: 36px; padding-right: 20px; }
  .nav .wrap { padding-left: 20px; }
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__mark { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 12px 24px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .payouts { grid-template-columns: 1fr 1fr; }
  .perks__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .access__steps, .access__enter { padding: 28px 20px; }
  .astep { grid-template-columns: 44px 1fr; }
  .astep__n { font-size: 1.6rem; }
  .exchange { width: 100%; }
  .reviews__grid { grid-template-columns: 1fr; }
  .review:nth-child(5) { grid-column: auto; }
  .review { padding: 24px 20px; }
  .draws__inner { text-align: left; justify-items: start; }
}

/* ---------- Páginas legales ---------- */

.legal { max-width: 760px; padding-block: 48px 96px; display: grid; gap: 16px; }
.legal .link { justify-self: start; margin-bottom: 24px; }
.legal h2 { font-size: 1.1rem; margin-top: 20px; }
.legal p { color: var(--muted); }
