/* ==========================================================================
   DigitalPlex — Estilos globales (mobile first)
   Paleta: fondo oscuro, acentos cyan / azul, cards tipo streaming premium
   ========================================================================== */

:root {
  --bg-deep: #070a12;
  --bg: #0c101c;
  --surface: #12182a;
  --surface-2: #1a2238;
  --border: rgba(148, 163, 184, 0.12);
  --text: #e8edf7;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.15);
  --accent-2: #38bdf8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(34, 211, 238, 0.08), transparent 50%),
    radial-gradient(900px 500px at 90% 0%, rgba(56, 189, 248, 0.06), transparent 45%), var(--bg-deep);
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   Tipografía utilitaria
   -------------------------------------------------------------------------- */

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Header fijo
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.logo--footer {
  display: inline-block;
  margin-bottom: 0.35rem;
}

.site-nav {
  display: flex;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(7, 10, 18, 0.96);
    padding: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    align-items: flex-start;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .site-nav__list a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav__list li:last-child a.btn {
    border-bottom: none;
    margin-top: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn--small {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn--large {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--primary {
  background: linear-gradient(135deg, #0891b2, #2563eb);
  color: #fff;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: var(--accent-dim);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.4);
}

.btn--outline:hover {
  background: var(--accent-dim);
}

.btn--wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  box-shadow: 0 12px 40px rgba(18, 140, 126, 0.35);
}

.btn--wa:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn__icon {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  flex-shrink: 0;
}

.btn__icon::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-top-color: transparent;
  transform: rotate(-35deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 4rem 0 3.5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0 4rem;
  }
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.14), transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero__trust li {
  position: relative;
  padding-left: 1.1rem;
}

.hero__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* --------------------------------------------------------------------------
   Secciones genéricas
   -------------------------------------------------------------------------- */

.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

.section__head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section__subtitle {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Beneficios
   -------------------------------------------------------------------------- */

.benefits__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .benefits__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.benefit-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.25);
}

.benefit-card__icon {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.benefit-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.benefit-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Planes — grid y cards
   -------------------------------------------------------------------------- */

.plans-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .plans-grid--featured {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

@media (min-width: 640px) {
  .plans-grid--page {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .plans-grid--page {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.plan-card__head {
  margin-bottom: 1rem;
}

.plan-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.plan-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.plan-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-stats {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.plan-stats li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.15);
}

.plan-stats li span {
  color: var(--muted);
}

.plan-stats li strong {
  font-weight: 600;
}

.plan-prices {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.plan-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
  color: var(--muted);
}

.plan-price-row strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.plan-card__cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* Acentos por plan (borde superior sutil + glow) */
.plan-card--rosa {
  border-top: 3px solid #f472b6;
}
.plan-card--azul {
  border-top: 3px solid #38bdf8;
  box-shadow: 0 24px 80px rgba(56, 189, 248, 0.12);
}
.plan-card--gris {
  border-top: 3px solid #94a3b8;
}
.plan-card--dorado {
  border-top: 3px solid #eab308;
}
.plan-card--negro {
  border-top: 3px solid #64748b;
}
.plan-card--celeste {
  border-top: 3px solid #22d3ee;
}
.plan-card--verde {
  border-top: 3px solid #4ade80;
}

.plans-section__footer {
  margin-top: 2rem;
  text-align: center;
}

.plans-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

/* --------------------------------------------------------------------------
   Filtros (planes.html)
   -------------------------------------------------------------------------- */

.plan-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.35);
}

.filter-btn.is-active {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq__item {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 800;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   CTA final + page hero
   -------------------------------------------------------------------------- */

.cta-final {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.04));
}

.cta-final__inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.cta-final__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.cta-final__text {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.page-hero {
  padding: 3rem 0 1rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 4rem 0 1.5rem;
  }
}

.page-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
}

.page-hero__lead {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: #05070d;
}

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    text-align: left;
    align-items: start;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
  }
}

.site-footer__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 22rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

@media (min-width: 720px) {
  .site-footer__nav {
    justify-content: flex-end;
  }
}

.site-footer__nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__nav a:hover {
  color: var(--accent);
}

.site-footer__legal {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Accesibilidad: foco visible
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible,
.filter-btn:focus-visible,
.nav-toggle:focus-visible {
  outline-offset: 3px;
}
