/*
 * tws.css — The Welcome Site Design System
 * All pages reference this file. Page-specific overrides go inline.
 *
 * TABLE OF CONTENTS
 * 01. Tokens
 * 02. Reset
 * 03. Grain overlay
 * 04. Layout
 * 05. Typography
 * 06. Skip link
 * 07. Button
 * 08. Nav
 * 09. Hero
 * 10. Steps
 * 11. Video / Lightbox
 * 12. Cards
 * 13. Demo / QR
 * 14. Counter (EF + 404)
 * 15. List row
 * 16. Footer
 * 17. Animations
 * 18. Responsive
 */

/* ── 01. TOKENS ─────────────────────────────── */
:root {
  --bg:        #0f0f10;
  --surface:   #161618;
  --border:    rgba(255,255,255,0.07);
  --border-md: rgba(255,255,255,0.12);
  --text:      #e8e6e3;
  --muted:     rgba(232,230,227,0.45);
  --faint:     rgba(232,230,227,0.2);
  --radius:    4px;
  --max:       560px;
  --ease:      cubic-bezier(0.6, 0, 0, 1);
  --dur:       1.2s;
}

/* ── 02. RESET ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── 03. GRAIN ──────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── 04. LAYOUT ─────────────────────────────── */
.section {
  padding: 112px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-sm { padding: 80px 24px; }
.inner    { width: 100%; max-width: var(--max); }
.centered { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* scroll snapping — opt-in per element */
.snap-stop {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ── 05. TYPOGRAPHY ─────────────────────────── */
.overline {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 22px;
}
.display {
  font-size: clamp(30px, 6.5vw, 50px);
  font-weight: bold;
  line-height: 1.04;
  letter-spacing: -.022em;
  color: var(--text);
  margin-bottom: 18px;
}
.title {
  font-size: clamp(22px, 4.5vw, 32px);
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: -.018em;
  color: var(--text);
  margin-bottom: 18px;
}
.lead {
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
  margin-bottom: 14px;
}
.caption {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.small {
  font-size: 12px;
  line-height: 1.6;
  color: var(--faint);
}
.handle {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .07em;
  color: var(--faint);
  margin-top: 14px;
}

/* ── 06. SKIP LINK ──────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .03em;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ── 07. BUTTON ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .03em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 12px 22px;
  cursor: pointer;
  transition: border-color .4s var(--ease), background .4s var(--ease);
  white-space: nowrap;
}
.btn:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.btn .arrow {
  display: inline-block;
  font-style: normal;
  transition: transform .5s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ── 08. NAV ────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,16,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-logo          { flex-shrink: 0; }
.nav-logo img      { height: 16px; width: auto; }
.nav-btn           { flex-shrink: 0; }

/* ── 09. HERO ───────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
}
.hero .inner { max-width: 440px; }

/* ── 10. STEPS ──────────────────────────────── */
.steps { width: 100%; display: flex; flex-direction: column; }
.step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-size: 10px;
  font-weight: bold;
  color: var(--faint);
  letter-spacing: .08em;
  padding-top: 3px;
  flex-shrink: 0;
  width: 22px;
}
.step-title { font-size: 14px; font-weight: bold; color: var(--text); margin-bottom: 4px; }
.step-desc  { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ── 11. VIDEO / LIGHTBOX ───────────────────── */
.video-outer {
  width: 100%;
  max-width: var(--max);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}
.thumb-inner {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
}
.thumb-inner img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .6;
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.video-outer:hover .thumb-inner img { opacity: .75; transform: scale(1.02); }
.play-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-wrap span {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(232,230,227,.22);
  background: rgba(15,15,16,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 15px;
  padding-left: 3px;
  backdrop-filter: blur(6px);
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.video-outer:hover .play-wrap span { border-color: rgba(232,230,227,.45); transform: scale(1.08); }

/* invitacion-style thumb (inside .thumb-wrap) */
.thumb {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: #000;
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .6;
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.thumb:hover img { opacity: .75; transform: scale(1.02); }
.play-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-ring span {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(232,230,227,.22);
  background: rgba(15,15,16,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 15px;
  padding-left: 3px;
  backdrop-filter: blur(6px);
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.thumb:hover .play-ring span { border-color: rgba(232,230,227,.45); transform: scale(1.08); }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10,10,11,0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: background .7s var(--ease), opacity .7s var(--ease);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
  background: rgba(10,10,11,.97);
}
.lightbox-inner {
  width: min(90vw, 900px);
  aspect-ratio: 16/9;
  transform: scale(.94);
  transition: transform var(--dur) var(--ease);
}
.lightbox.open .lightbox-inner { transform: scale(1); }
.lightbox-inner iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease) .3s,
              border-color .3s var(--ease),
              color .3s var(--ease);
}
.lightbox.open .lightbox-close { opacity: 1; pointer-events: all; }
.lightbox-close:hover { border-color: var(--text); color: var(--text); }

/* ── 12. CARDS ──────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: var(--max);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color .5s var(--ease), background .5s var(--ease);
}
.card:hover {
  border-color: rgba(255,255,255,.14);
  background: #1b1b1d;
}
.card-title {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.card-list { list-style: none; }
.card-list li {
  font-size: 13px;
  color: var(--muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}
.card-list li:last-child { border-bottom: none; }
.card-note {
  font-size: 12px;
  color: var(--faint);
  margin-top: 14px;
  font-style: italic;
}

/* Pricing card additions (card-label, card-price, card-price-sub, card-divider) */
.card-label {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.card-price {
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 2px;
}
.card-price-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 20px;
}
.card-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0 16px;
}

/* ── BILLING ROW — OPCIONES DE PAGO ─────────── */
.billing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: var(--max);
}
.billing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color .5s var(--ease), background .5s var(--ease);
}
.billing-card.featured {
  border-color: rgba(255,255,255,.18);
}
.billing-card:hover {
  border-color: rgba(255,255,255,.14);
  background: #1b1b1d;
}
.billing-tag {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.billing-tag.highlight { color: var(--text); }
.billing-name {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 10px;
}
.billing-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── MODAL GRID — MODALIDADES DE PARTICIPACIÓN ─ */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: var(--max);
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color .5s var(--ease), background .5s var(--ease);
}
.modal-card.ef {
  border-color: rgba(255,255,255,.18);
}
.modal-card:hover {
  border-color: rgba(255,255,255,.14);
  background: #1b1b1d;
}
.modal-label {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.modal-name {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: -.01em;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
}
.modal-list { list-style: none; margin-bottom: 16px; }
.modal-list li {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}
.modal-list li:first-child { border-top: 1px solid var(--border); }
.modal-note {
  font-size: 12px;
  color: var(--faint);
  font-style: italic;
  line-height: 1.55;
}

/* ── 13. DEMO / QR ──────────────────────────── */
.demo-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 100%;
  max-width: var(--max);
}
.qr-block { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-block img {
  width: 108px; height: 108px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ── 14. COUNTER ────────────────────────────── */
.ef-counter,
.counter {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 14px;
  margin-bottom: 28px;
}
.ef-counter strong,
.counter strong {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1;
}
.ef-list {
  width: 100%;
  max-width: var(--max);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.ef-list li {
  list-style: none;
  font-size: 13px;
  color: var(--muted);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.ef-list li:last-child { border-bottom: none; }

/* ── 15. LIST ROW ───────────────────────────── */
.rule-list { width: 100%; list-style: none; max-width: var(--max); }
.rule-list li {
  font-size: 14px;
  color: var(--muted);
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.rule-list li:first-child { border-top: 1px solid var(--border); }

/* ── 16. FOOTER ─────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 24px 48px;
}
.footer-inner {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 36px;
}
.footer-inner img { height: 14px; opacity: .3; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .04em;
  transition: color .3s var(--ease);
}
.footer-links a:hover { color: var(--muted); }
.footer-bottom {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: right;
}
.footer-copy {
  font-size: 10px;
  color: var(--faint);
  letter-spacing: .04em;
  opacity: .5;
}

/* ── 17. ANIMATIONS ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.stagger.in > *:nth-child(1) { transition-delay: .04s; opacity:1; transform:none; }
.stagger.in > *:nth-child(2) { transition-delay: .12s; opacity:1; transform:none; }
.stagger.in > *:nth-child(3) { transition-delay: .20s; opacity:1; transform:none; }
.stagger.in > *:nth-child(4) { transition-delay: .28s; opacity:1; transform:none; }
.stagger.in > *:nth-child(5) { transition-delay: .36s; opacity:1; transform:none; }

/* ── 18. RESPONSIVE ─────────────────────────── */
@media (max-width: 500px) {
  .two-col      { grid-template-columns: 1fr; gap: 20px; }
  .billing-row  { grid-template-columns: 1fr; gap: 16px; }
  .modal-grid   { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 600px) {
  .section    { padding: 80px 20px; }
  .section-sm { padding: 64px 20px; }
  .hero       { padding: 80px 20px; }
}

@media (max-width: 400px) {
  .nav-btn            { font-size: 11px; padding: 10px 14px; gap: 6px; }
  .nav-btn .arrow     { display: none; }
}
