:root {
  --bg: #0b0b17;
  --bg-2: #121225;
  --bg-alt: rgba(255, 255, 255, 0.06);
  --card: rgba(255, 255, 255, 0.1);
  --card-strong: rgba(0, 0, 0, 0.42);
  --text: #f8f8ff;
  --muted: rgba(255, 255, 255, 0.76);
  --muted-soft: rgba(255, 255, 255, 0.6);
  --accent: #ffd700;
  --accent-2: #ff8c00;
  --accent-3: #25d366;
  --ring: rgba(255, 255, 255, 0.16);
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.36);
  --radius: 20px;
  --radius-sm: 14px;
}

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

html, body {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 215, 0, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(255, 140, 0, 0.11), transparent 18%),
    linear-gradient(135deg, #0f0c29, #302b63 48%, #24243e);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.22)),
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.05), transparent 20%);
  pointer-events: none;
  z-index: -1;
}

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

a {
  color: inherit;
}

hr {
  display: none;
}

.container {
  max-width: 1240px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.muted {
  color: var(--muted-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 14px 0;
  backdrop-filter: blur(14px);
  background: rgba(8, 8, 20, 0.48);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand-copy span {
  color: var(--accent);
  font-size: 0.82rem;
}

.site-nav {
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  transition: .25s ease;
}

.nav-links a:hover {
  border-color: rgba(255,215,0,0.35);
  background: rgba(255,255,255,0.09);
  color: #fff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--ring);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.hero {
  padding: 34px 0 22px;
}

.hero-shell,
.section-shell,
.trust-grid {
  animation: fadeInUp .7s ease both;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 28px;
}

.hero-panel,
.section-shell,
.trust-card,
.site-footer,
.category,
.vpn-card,
.guide-card,
.price-card,
.device-card,
.comments-shell,
.guide-full,
.faq,
.table-wrap {
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-panel,
.section-shell,
.comments-shell,
.guide-full {
  border-radius: 26px;
}

.hero-copy,
.hero-showcase {
  padding: 34px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.18);
  color: #ffe79a;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  margin: 18px 0 14px;
}

.hero-counter {
  margin-bottom: 10px;
}

.lead,
.section-copy {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 24px;
}

.pill {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff3c8;
  font-size: .92rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: .25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-xl {
  min-height: 54px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1200;
  box-shadow: 0 10px 25px rgba(255, 180, 0, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(255, 180, 0, 0.34);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
}

.btn-success {
  background: linear-gradient(135deg, #30d97a, #0fa958);
  color: #fff;
  box-shadow: 0 10px 25px rgba(17, 173, 92, 0.28);
}

.icon-btn,
.glass-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 999px;
  padding: 11px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .25s ease;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.14);
}

.hero-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-badge {
  position: static;
  z-index: 2;
  align-self: flex-end;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,215,0,0.95), rgba(255,140,0,0.92));
  color: #251800;
  font-weight: 800;
  font-size: .86rem;
  box-shadow: 0 10px 25px rgba(255,166,0,0.28);
}

.hero-img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat-card {
  padding: 16px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.stat-card strong {
  display: block;
  color: #ffe497;
  margin-bottom: 4px;
}

.section {
  padding: 20px 0 22px;
}

.section-shell {
  padding: 28px;
}

.section.alt .section-shell,
.alt .comments-shell {
  background: rgba(255,255,255,0.06);
}

.premium-head,
.section-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.premium-center {
  align-items: center;
  text-align: center;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  margin-top: 12px;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  max-width: 560px;
}

.searchbar input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 1rem;
}

.searchbar input::placeholder {
  color: var(--muted-soft);
}

.trust-strip {
  padding-top: 8px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-card {
  border-radius: 22px;
  padding: 24px 22px;
  text-align: center;
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.trust-card h3 {
  margin-bottom: 8px;
  color: #ffe497;
}

.promo-banner {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.promo-media img {
  border-radius: 20px;
}

.promo-copy h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.promo-copy p {
  color: var(--muted);
  margin-bottom: 18px;
}

.shine-title {
  background: linear-gradient(135deg, #fff2b7, #ffd700, #ff9f1c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer {
  margin: 24px auto 26px;
  border-radius: 26px;
  padding: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr .8fr;
  gap: 18px;
  align-items: center;
}

.footer-brand h3 {
  margin-bottom: 8px;
  color: #ffe497;
}

.footer-social > p,
.footer-copy p:last-child {
  color: var(--muted-soft);
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.social a {
  display: inline-flex;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: .25s ease;
}

.social a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
}

.floating-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  border-radius: 999px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #231600;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 180, 0, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.floating-btn.show {
  opacity: 1;
  transform: translateY(0);
}

.floating-btn.secondary {
  bottom: 82px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  max-width: 92%;
  max-height: 92%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: -42px;
  right: -6px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color .2s;
  z-index: 1001;
}

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

.img-zoom {
  cursor: zoom-in;
  transition: transform 0.2s;
}

.img-zoom:hover {
  transform: scale(1.025);
}

@keyframes blink {
  50% { opacity: .55; }
}

.blink {
  animation: blink 1.2s step-end infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== VISTAS SIN RECARGA ===== */
.app-shell {
  padding-bottom: 24px;
}

.section-view {
  display: none;
}

.section-view.is-active {
  display: block;
  animation: fadeInUp .35s ease both;
}

.nav-links a.is-active,
.quick-nav-card.is-active {
  background: linear-gradient(135deg, rgba(255,215,0,.95), rgba(255,140,0,.95));
  color: #1f1400;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(255, 166, 0, 0.22);
}

.quick-nav-shell {
  display: grid;
  gap: 22px;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-nav-card {
  display: grid;
  gap: 6px;
  text-decoration: none;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.quick-nav-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,215,0,0.3);
}

.quick-nav-card strong {
  font-size: 1rem;
}

.quick-nav-card span {
  color: var(--muted);
  font-size: .92rem;
}
