/* ============================================================
   GoTV Media — diseño (dark + acento morado, coherente con el grupo)
   ============================================================ */
:root {
  --bg: #0d0d13;
  --surface: #16161f;
  --surface-2: #1d1d29;
  --border: #2a2a3a;
  --fg: #f2f2f7;
  --muted: #9c9cb0;
  --accent: #7b5cff;
  --accent-2: #a78bfa;
  --success: #2ecc71;
  --error: #ff5c72;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

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

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 18px rgba(123, 92, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(123, 92, 255, 0.5); }
.btn-outline { border-color: var(--accent); color: var(--accent-2); background: transparent; }
.btn-outline:hover { background: rgba(123, 92, 255, 0.12); }
.btn-ghost { background: var(--surface-2); color: var(--fg); border-color: var(--border); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 19, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.logo { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.5px; }
.logo span { color: var(--accent-2); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--muted); font-size: 0.92rem; transition: color 0.15s; }
.nav a:not(.btn):hover { color: var(--fg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(45% 55% at 85% 10%, rgba(123, 92, 255, 0.16), transparent 60%),
    radial-gradient(35% 45% at 5% 90%, rgba(167, 139, 250, 0.10), transparent 60%);
  padding: 88px 0 0;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent-2); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.15; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--accent-2), #e0d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 52ch; margin-bottom: 26px; }
.lead strong { color: var(--fg); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-points { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.hero-points li::before { content: "✓ "; color: var(--success); font-weight: 700; }

.hero-card { position: relative; }
.hero-card::after {
  content: "";
  position: absolute; inset: -18px -18px auto auto;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.35), transparent 70%);
  z-index: -1;
}
.mock-screen {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.mock-top { height: 10px; width: 120px; border-radius: 6px; background: var(--border); margin-bottom: 16px; }
.mock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-tile { aspect-ratio: 16 / 10; border-radius: 8px; background: linear-gradient(140deg, var(--surface-2), var(--border)); }
.mock-tile.wide { grid-column: span 2; }
.mock-tile.tall { grid-row: span 2; aspect-ratio: auto; }
.mock-caption { color: var(--muted); font-size: 0.8rem; text-align: center; }

.stats-band { border-top: 1px solid var(--border); margin-top: 64px; background: rgba(22, 22, 31, 0.6); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 0; text-align: center; }
.stat strong { display: block; font-size: 1.5rem; color: var(--accent-2); }
.stat span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-title { font-size: 1.9rem; margin-bottom: 10px; }
.section-sub { color: var(--muted); max-width: 62ch; margin-bottom: 40px; }
.section-head { margin-bottom: 8px; }

/* ---------- Servicios (2 tarjetas grandes) ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.service-icon { font-size: 2rem; margin-bottom: 12px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.section-alt .feature { background: var(--bg); }
.feature-icon { font-size: 1.5rem; margin-bottom: 10px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.plan:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.plan-featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(123, 92, 255, 0.10), var(--surface) 55%); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; letter-spacing: 0.5px;
}
.plan-tier { color: var(--accent-2); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 6px; }
.plan-name { font-size: 1.25rem; margin-bottom: 14px; }
.plan-price { font-size: 2rem; font-weight: 800; margin-bottom: 18px; }
.plan-price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan-list { list-style: none; display: grid; gap: 9px; margin-bottom: 24px; color: var(--muted); font-size: 0.93rem; }
.plan-list li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.plan .btn { margin-top: auto; }

/* ---------- Combo ---------- */
.combo-band {
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.22), rgba(167, 139, 250, 0.08));
  border-block: 1px solid var(--accent);
}
.combo-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0; flex-wrap: wrap; }
.combo-inner h2 { font-size: 1.5rem; margin-bottom: 6px; }
.combo-inner p { color: var(--muted); max-width: 60ch; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 48px; }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step-num {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.93rem; }

.devices-title { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.85rem;
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] { border-color: var(--accent); }
.faq details p { color: var(--muted); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--muted); font-size: 0.9rem; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a:hover { color: var(--fg); }

/* ---------- Modal ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 10, 0.7); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 92vh; overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--muted);
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--fg); }
.modal-panel h2 { margin-bottom: 6px; }
.modal-sub { color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }
#checkout-form { display: grid; gap: 14px; }
#checkout-form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
#checkout-form input, .modal-select {
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 0.95rem;
  font-family: inherit;
}
#checkout-form input:focus, .modal-select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-error { color: var(--error); font-size: 0.9rem; min-height: 1.2em; }
.modal-note { color: var(--muted); font-size: 0.8rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .features, .plans, .steps { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .plan-featured { order: -1; }
}
@media (max-width: 620px) {
  .btn-nav { display: none; }
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .section { padding: 60px 0; }
}
