/* ===== La Pipol EC: colores de marca (tomados del prototipo V5) ===== */
:root {
  --night: #090317;
  --navy: #110627;
  --panel: #1a0e38;
  --panel-2: #251053;
  --violet: #632bd0;
  --purple: #8e30f0;
  --yellow: #ffc400;
  --yellow-text: #250f38;
  --cyan: #1dcde3;
  --white: #ffffff;
  --muted: #d7d0e9;
  --line: #57427e;

  --radius: 18px;
  --gutter: 16px;
  --max: 1120px;
  --font: Montserrat, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, iframe { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
a { color: var(--yellow); }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.04em; text-wrap: balance; }
p { margin: 0 0 1em; }
strong { color: var(--white); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 720px; }

.mini {
  margin: 0 0 8px; color: var(--cyan);
  font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase;
}
.hl-yellow { color: var(--yellow); }
.hl-cyan { color: var(--cyan); }

/* ===== Botones (mínimo 52px de alto para tocar fácil) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  border-radius: 14px; border: 2px solid transparent;
  font: 900 15px/1.2 var(--font); text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .15s ease, filter .15s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.btn:active { transform: scale(.97); }
.btn--yellow { background: var(--yellow); color: var(--yellow-text); }
.btn--yellow:hover { filter: brightness(1.07); }
.btn--ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13px; border-radius: 10px; }
.btn--lg { min-height: 60px; font-size: 17px; width: 100%; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ===== Barra superior ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9, 3, 23, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.topbar__logo { width: 44px; height: 44px; }

/* ===== Hero ===== */
.hero {
  padding: 28px 0 44px; text-align: center;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(99, 43, 208, .55), transparent 70%),
    var(--night);
}
.hero__title { font-size: clamp(30px, 8.4vw, 60px); font-weight: 900; }
.hero__lead { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto 22px; }
.hero__note { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.video--hero { margin: 0 auto 22px; max-width: 860px; box-shadow: 0 20px 60px rgba(142, 48, 240, .35); }

/* ===== Video (se carga solo al tocar) ===== */
.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius); overflow: hidden; background: #000;
}
.video--vertical { aspect-ratio: 9 / 16; max-width: 420px; margin-inline: auto; }
.video iframe, .video__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { padding: 0; background: #000; cursor: pointer; }
.video__play img { width: 100%; height: 100%; object-fit: cover; }
.video__play::after { content: ""; position: absolute; inset: 0; background: rgba(9, 3, 23, .2); }
.video__icon {
  position: absolute; z-index: 1; top: 50%; left: 50%;
  width: 68px; height: 68px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--yellow);
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
}
.video--hero .video__icon { width: 84px; height: 84px; }
.video__icon::before {
  content: ""; position: absolute; top: 50%; left: 55%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--yellow-text);
}
.video__hint {
  position: absolute; z-index: 2; left: 12px; bottom: 12px; pointer-events: none;
  padding: 6px 12px; border-radius: 999px; background: rgba(9, 3, 23, .8);
  font-size: 12px; font-weight: 800;
}

/* ===== Secciones ===== */
.section { padding: 56px 0; }
.section__title { font-size: clamp(28px, 7vw, 48px); font-weight: 900; }
.section__lead { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 32px; }
.aportar, .videos, .faq { text-align: center; }

/* ===== Aportes ===== */
.aportar { background: linear-gradient(180deg, var(--navy), var(--night)); }
.tiers { display: grid; gap: 20px; text-align: left; }
.tier {
  position: relative; display: flex; flex-direction: column;
  padding: 20px; border-radius: var(--radius);
  background: var(--panel); border: 2px solid var(--line);
  color: var(--white); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.tier--featured { border-color: var(--yellow); background: var(--panel-2); }
.tier__badge {
  position: absolute; z-index: 1; top: -12px; right: 20px; padding: 4px 12px; border-radius: 999px;
  background: var(--yellow); color: var(--yellow-text);
  font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.tier__img {
  display: block; margin: -4px -4px 16px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #ffffff, #eee6ff);
}
.tier__img img { width: 100%; max-width: 260px; height: auto; margin: 0 auto; }
.tier__label { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.tier__name { font-size: 30px; font-weight: 900; letter-spacing: -.03em; line-height: 1.15; }
.tier__price { font-size: 18px; font-weight: 800; color: var(--yellow); margin-bottom: 8px; }
.tier__price small { font-size: 14px; font-weight: 700; color: var(--muted); }
.tier__desc { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.tier__action { margin-top: auto; }
.tier .btn { width: 100%; }
.tier--custom .tier__img { background: radial-gradient(circle at 50% 45%, var(--violet), var(--panel-2)); }
.tier--custom .tier__img img { padding: 12%; }

/* Móvil: imagen pequeña al lado del nombre para que se vean las 3 opciones rápido */
@media (max-width: 719px) {
  .tier {
    display: grid; grid-template-columns: 92px 1fr; column-gap: 14px;
    grid-template-areas: "img label" "img name" "img price" "desc desc" "btn btn";
  }
  .tier__img { grid-area: img; margin: 0; align-self: center; }
  .tier__label { grid-area: label; align-self: end; }
  .tier__name { grid-area: name; font-size: 26px; }
  .tier__price { grid-area: price; margin-bottom: 0; }
  .tier__desc { grid-area: desc; margin: 12px 0 16px; }
  .tier__action { grid-area: btn; }
  .story .story__img { max-width: 240px; }
}
/* Pago con PayPal dentro de cada tarjeta (fondo blanco para que se lean los botones y textos de PayPal) */
.tier__pay {
  min-height: 112px; padding: 12px 12px 6px; border-radius: 12px;
  background: #ffffff; color: #2b2340;
}
.tier__loading { margin: 0; padding: 8px 4px 12px; font-size: 14px; color: #4a4458; text-align: center; }
.tier__loading.is-error { color: #a33a2c; }
.tier__msg { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.tier__msg:empty { display: none; }
.tier__msg.is-error { color: #ffb4a8; }
.tier__note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* Selector "Cada mes / Una vez" */
.modo {
  display: flex; gap: 4px; min-width: 0; margin: 0 0 14px; padding: 4px;
  border: 2px solid var(--line); border-radius: 14px;
}
.modo label { position: relative; flex: 1; cursor: pointer; }
.modo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.modo label > span {
  display: flex; align-items: center; justify-content: center; min-height: 40px;
  border-radius: 10px; font-size: 14px; font-weight: 800; color: var(--muted);
}
.modo input:checked + span { background: var(--yellow); color: var(--yellow-text); }
.modo input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Monto libre */
.monto { display: block; margin: 0 0 14px; }
.monto__label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 800; }
.monto__label small { color: var(--muted); font-weight: 700; }
.monto__field {
  display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 14px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--night);
}
.monto__field:focus-within { border-color: var(--yellow); }
.monto__field > span { font-size: 20px; font-weight: 900; color: var(--yellow); }
.monto__field input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  color: var(--white); font: 900 20px var(--font); outline: none;
  -moz-appearance: textfield; appearance: textfield;
}
.monto__field input::-webkit-outer-spin-button,
.monto__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Agradecimiento después de pagar */
.thanks {
  max-width: 560px; margin: 0 auto; padding: 32px 24px;
  border-radius: var(--radius); background: var(--panel-2); border: 2px solid var(--yellow);
}
.thanks:focus { outline: none; }
.thanks__title { font-size: clamp(24px, 6vw, 34px); font-weight: 900; }
.thanks__lead { color: var(--white); font-size: 18px; font-weight: 800; }
.thanks__small { color: var(--muted); font-size: 14px; margin: 0; }

.trust { color: var(--muted); font-size: 13px; margin: 24px 0 0; }

/* ===== Quiénes somos ===== */
.story { background: var(--navy); }
.story__grid { display: grid; gap: 28px; align-items: center; }
.section__title--left { text-align: left; }
.story p { color: var(--muted); font-size: 17px; }
.story__quote {
  border-left: 4px solid var(--yellow); padding-left: 16px;
  color: var(--white) !important; font-weight: 800; font-size: 19px !important;
}
.story__img { width: 100%; max-width: 440px; margin: 0 auto; border-radius: var(--radius); }

/* ===== Historias ===== */
.group__title { font-size: 20px; font-weight: 900; margin: 8px 0 16px; text-align: left; }
.video-grid { display: grid; gap: 24px; text-align: left; }
.video-card { margin: 0; }
.video-card figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.video-card figcaption strong { display: block; font-size: 16px; margin-bottom: 2px; }
.cta-band {
  margin: 36px 0; padding: 24px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--violet), var(--purple));
}
.cta-band p { font-size: 17px; margin-bottom: 16px; }
.cta-band .btn { width: 100%; }
.more-link { margin: 32px 0 0; font-weight: 800; }
.more-link a { text-decoration: none; }

/* ===== Preguntas frecuentes ===== */
.faq { background: var(--navy); }
.faq details { border-bottom: 1px solid var(--line); text-align: left; }
.faq summary {
  position: relative; padding: 18px 36px 18px 0;
  font-weight: 800; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--yellow);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }

/* ===== Cierre ===== */
.final-cta { text-align: center; background: radial-gradient(100% 70% at 50% 100%, rgba(99, 43, 208, .5), transparent 70%), var(--night); }
.final-cta__grid { display: grid; gap: 24px; align-items: center; }
.final-cta__img { width: 100%; max-width: 320px; margin: 0 auto; border-radius: var(--radius); }
.final-cta .btn { margin-top: 12px; }

/* ===== Pie ===== */
.footer {
  padding: 40px 0 calc(100px + env(safe-area-inset-bottom));
  text-align: center; border-top: 1px solid rgba(255,255,255,.08);
}
.footer__logo { width: 72px; height: 72px; margin: 0 auto 8px; }
.footer__tag { color: var(--muted); font-weight: 700; }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0; }
.contact a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--white); font-size: 14px; font-weight: 700; text-decoration: none;
}
.contact a:hover { border-color: var(--yellow); }
.footer__copy { color: var(--muted); font-size: 13px; }

/* ===== Botón fijo en móvil ===== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(9, 3, 23, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.1);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }

/* ===== Pantallas grandes ===== */
@media (min-width: 720px) {
  .hero { padding: 56px 0 72px; }
  .btn--lg { width: auto; min-width: 320px; }
  .section { padding: 88px 0; }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .tiers--2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 32px; text-align: left; }
  .cta-band p { margin: 0; }
  .cta-band .btn { width: auto; flex-shrink: 0; }
  .story__grid { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .final-cta__grid { grid-template-columns: 1fr 1.4fr; text-align: left; }
  .final-cta .section__title { text-align: left; }
  .footer { padding-bottom: 40px; }
  .sticky-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
