/* ==========================================================================
   IPTV Ecuador — Pro Theme "Equinoccio Lab"
   Architecture: Split Editorial Hero + Asymmetric Bento Grid +
                 Dark Highlight Band + Compact Accordion FAQ
   Personality:  Sleek Tech Hardware Lab
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Tokens & Reset
   -------------------------------------------------------------------------- */
:root {
  --nieve: #f4f6fb;
  --papel: #ffffff;
  --niebla: #e7ecf6;
  --noche: #0b1530;
  --noche2: #13214a;
  --noche3: #07102a;
  --ink: #0b1530;
  --ink2: #2c3a5a;
  --cobalto: #0a3d91;
  --cobalto-d: #072a66;
  --cielo: #3b7be0;
  --girasol: #ffcc1a;
  --girasol-d: #c99400;
  --rojo: #d4202f;
  --volcan: #e2552b;
  --paramo: #1f8a63;
  --cacao: #6b3e26;
  --mut: #5f6b85;
  --line: rgba(11, 21, 48, 0.12);
  --line-strong: rgba(11, 21, 48, 0.22);
  --line-dark: rgba(255, 255, 255, 0.13);
  --wa: #25d366;
  --font-head: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-card: 0 18px 40px -30px rgba(11, 21, 48, 0.45);
  --shadow-lift: 0 26px 52px -26px rgba(11, 21, 48, 0.52);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--nieve);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

:where(a, button, summary, input, select):focus-visible {
  outline: 3px solid var(--girasol-d);
  outline-offset: 2px;
}

a {
  color: var(--cobalto);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--papel);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--cobalto);
  z-index: 999;
}

.is-hidden {
  display: none !important;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 26px; }
.mt-4 { margin-top: 38px; }
.mb-2 { margin-bottom: 18px; }
.pt-compact { padding-top: 24px; }
.link-gold { color: var(--girasol); }
.link-gold:hover { color: #ffe27a; }
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 22px;
}
.center-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* --------------------------------------------------------------------------
   02. Typography & Containers
   -------------------------------------------------------------------------- */
.sec {
  padding: 84px 0;
  position: relative;
}

.sec.alt {
  background: var(--papel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec.dark {
  background: var(--noche);
  color: #c9d3ea;
}

.sec.dark h2,
.sec.dark h3,
.sec.dark h4 {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cobalto);
  font-weight: 600;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--girasol) 0 50%, var(--cobalto) 50% 75%, var(--rojo) 75%);
}

.sec.dark .eyebrow,
.band-dark .eyebrow {
  color: var(--girasol);
}

.sh {
  max-width: 780px;
  margin-bottom: 40px;
}

.sh h2 {
  font-size: clamp(30px, 4.2vw, 48px);
}

.sh p {
  font-size: 18px;
  color: var(--ink2);
  margin-top: 14px;
}

.sec.dark .sh p {
  color: #b6c1db;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.crumbs {
  font-size: 13.5px;
  color: var(--mut);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.crumbs a {
  color: var(--mut);
  font-weight: 600;
}

.crumbs a:hover {
  color: var(--cobalto);
}

.crumbs span {
  opacity: 0.55;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d1600;
  background: var(--girasol);
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--niebla);
  color: var(--cobalto-d);
  border: 1px solid rgba(10, 61, 145, 0.14);
}

.spec-chip--ok {
  background: #e6f4ee;
  color: #135e43;
  border-color: rgba(31, 138, 99, 0.25);
}

.spec-chip--gold {
  background: rgba(255, 204, 26, 0.22);
  color: #5b4100;
  border-color: rgba(201, 148, 0, 0.35);
}

.spec-chip--dark {
  background: rgba(255, 255, 255, 0.09);
  color: #e6ecf9;
  border-color: rgba(255, 255, 255, 0.18);
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.pill-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--papel);
  border: 1.5px solid var(--line);
  color: var(--ink2);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.pill-nav a:hover {
  background: var(--noche);
  border-color: var(--noche);
  color: #ffffff;
  text-decoration: none;
}

/* 12-column structured hardware-lab grid */
.bento-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* --------------------------------------------------------------------------
   03. Header & Navigation
   -------------------------------------------------------------------------- */
.flagbar {
  height: 6px;
  background: linear-gradient(90deg, var(--girasol) 0 50%, var(--cobalto) 50% 75%, var(--rojo) 75%);
}

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 246, 251, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.hdr .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.logo .mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.logo b {
  color: var(--cobalto);
}

.logo sup {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--mut);
  letter-spacing: 0;
  margin-left: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14.5px;
}

.nav a {
  color: var(--ink2);
  font-weight: 700;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--cobalto);
  border-bottom-color: var(--girasol);
  text-decoration: none;
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--papel);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 48, 0.56);
  backdrop-filter: blur(4px);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--noche);
  color: #e2e8f6;
  z-index: 90;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  border-left: 1px solid var(--line-dark);
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
}

.drawer-head .logo {
  color: #ffffff;
}

.drawer-head .logo b {
  color: var(--girasol);
}

.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-links a {
  color: #dbe3f6;
  font-size: 16px;
  font-weight: 700;
  padding: 11px 12px;
  border-radius: 10px;
}

.drawer-links a:hover,
.drawer-links a[aria-current="page"] {
  background: rgba(255, 204, 26, 0.14);
  color: var(--girasol);
  text-decoration: none;
}

.drawer-section {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8e9bbb;
  margin-top: 8px;
  padding: 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  border-radius: 13px;
  padding: 12px 21px;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  line-height: 1.25;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-wa {
  background: var(--wa);
  color: #03230f;
}

.btn-wa:hover {
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.7);
}

.btn-gold {
  background: var(--girasol);
  color: #1d1600;
  box-shadow: 0 4px 0 var(--girasol-d);
}

.btn-gold:hover {
  box-shadow: 0 7px 0 var(--girasol-d);
}

.btn-dark {
  background: var(--noche);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--cobalto);
}

.btn-ghost {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-ghost--light {
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  background: transparent;
}

.btn-sm {
  padding: 9px 15px;
  font-size: 14px;
  border-radius: 11px;
}

.wa-ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

/* --------------------------------------------------------------------------
   04. Hero & Alternating Bands
   -------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 500px at 82% 8%, rgba(255, 204, 26, 0.22), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(59, 123, 224, 0.35), transparent 60%),
    linear-gradient(180deg, #0b1530 0%, #0f1f47 70%, #13295c 100%);
  color: #c9d3ea;
  position: relative;
  overflow: hidden;
  padding: 78px 0 0;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hgrid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 52px;
  align-items: center;
  padding-bottom: 146px;
}

.coord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #ffe27a;
  border: 1px solid rgba(255, 204, 26, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
  background: rgba(255, 204, 26, 0.06);
}

.coord i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d5a;
  box-shadow: 0 0 0 0 rgba(255, 77, 90, 0.7);
  animation: live 1.8s infinite;
  font-style: normal;
}

@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 90, 0.7); }
  100% { box-shadow: 0 0 0 12px rgba(255, 77, 90, 0); }
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(38px, 6vw, 76px);
  letter-spacing: -0.035em;
  line-height: 0.99;
}

.hero h1 .y {
  color: var(--girasol);
}

.hero h1 small {
  display: block;
  font-size: 0.42em;
  letter-spacing: -0.01em;
  color: #b6c1db;
  font-weight: 700;
  margin-top: 14px;
  line-height: 1.24;
}

.hero .lead {
  font-size: 19px;
  margin-top: 20px;
  max-width: 620px;
  color: #c9d3ea;
}

.hero .lead strong {
  color: #ffffff;
}

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

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.tbadges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.tbadges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 13px 6px 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: #eef3fb;
}

.tbadges svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--girasol);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tbadges svg.cc {
  width: 32px;
  height: 20px;
  stroke: none;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.hisp {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #cfd9ea;
}

.hisp small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--girasol);
  margin-right: 6px;
}

.tv {
  background: linear-gradient(160deg, #16244f, #0b1530);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8e9bbb;
  margin-bottom: 12px;
}

.tv-top b {
  color: #ffffff;
  font-weight: 600;
}

.tv-screen {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 120%, #1f8a63 0, #14603f 45%, #0d3b29 100%);
}

.tv-screen svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tv-live {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--rojo);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 6px;
}

.tv-q {
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--girasol);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
}

.tv-score {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: rgba(11, 21, 48, 0.88);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  display: flex;
  gap: 10px;
  align-items: center;
}

.tv-score em {
  font-style: normal;
  color: var(--girasol);
  font-family: var(--font-mono);
}

.epg {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.epg div {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}

.epg div.on {
  background: rgba(255, 204, 26, 0.1);
  border-color: rgba(255, 204, 26, 0.35);
}

.epg time {
  font-family: var(--font-mono);
  color: #8e9bbb;
  font-size: 12px;
}

.epg strong {
  color: #ffffff;
  font-weight: 700;
}

.epg span {
  font-size: 11.5px;
  color: #8e9bbb;
}

.andes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  z-index: 1;
  pointer-events: none;
}

.andes svg {
  width: 100%;
  height: 100%;
  display: block;
}

.equator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 114px;
  z-index: 1;
  border-top: 2px dashed rgba(212, 32, 47, 0.7);
}

.equator span {
  position: absolute;
  right: 24px;
  top: -26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #ff8a93;
}

/* Split Editorial Hero for Stage 1 Landing Pages */
.page-hero {
  padding: 58px 0 54px;
  background:
    radial-gradient(760px 360px at 94% -18%, rgba(255, 204, 26, 0.28), transparent 60%),
    radial-gradient(680px 340px at -6% 115%, rgba(59, 123, 224, 0.22), transparent 60%),
    linear-gradient(175deg, #fbfcff 0%, #e7ecf6 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.split-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-hero .lead {
  font-size: 18.5px;
  color: var(--ink2);
  margin-top: 16px;
  max-width: 680px;
}

.hero-specs {
  background: var(--noche);
  color: #d6dff2;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 54px -28px rgba(11, 21, 48, 0.75);
}

.hero-specs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--girasol);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 14px;
}

.hero-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-spec-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 13px 14px;
}

.hero-spec-item b {
  display: block;
  font-family: var(--font-head);
  font-size: 24px;
  color: #ffffff;
  line-height: 1.1;
}

.hero-spec-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #a6b4d0;
  margin-top: 4px;
}

/* Dark Highlight Band */
.band-dark {
  background:
    radial-gradient(760px 360px at 90% 0%, rgba(255, 204, 26, 0.18), transparent 60%),
    linear-gradient(155deg, var(--noche) 0%, var(--noche2) 100%);
  color: #d0daf0;
  border-radius: var(--radius-xl);
  padding: 40px 34px;
  border: 1px solid var(--line-dark);
}

.band-dark h2,
.band-dark h3 {
  color: #ffffff;
}

/* Cinema Showcase & Poster Carousel */
.cine {
  background: linear-gradient(180deg, var(--noche3), var(--noche));
  color: #c9d3ea;
}

.cine h2,
.cine h3 {
  color: #ffffff;
}

.cine .sh p {
  color: #a9b4cc;
}

.cine .eyebrow {
  color: var(--girasol);
}

.poster-carousel {
  list-style: none;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 26px 0 32px;
  padding: 14px 4px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--girasol) rgba(255, 255, 255, 0.08);
}

.poster-carousel + .vnote {
  margin: -16px 0 32px;
}

.poster-carousel::-webkit-scrollbar {
  height: 8px;
}

.poster-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.poster-carousel::-webkit-scrollbar-thumb {
  background: var(--girasol);
  border-radius: 999px;
}

.poster-carousel:focus-visible {
  outline: 3px solid rgba(255, 204, 26, 0.6);
  outline-offset: 4px;
  border-radius: 12px;
}

.poster-carousel li {
  flex: 0 0 clamp(200px, 26vw, 285px);
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: #111f45;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.poster-carousel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.poster-carousel li:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 28px 50px -16px rgba(0, 0, 0, 0.92), 0 0 0 2px var(--girasol);
}

.poster-carousel li:hover img {
  transform: scale(1.06);
}

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

.vcard {
  position: relative;
  border-radius: 22px;
  padding: 24px 22px 22px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  isolation: isolate;
  transition: transform 0.25s;
}

.vcard:hover {
  transform: translateY(-5px);
}

.vcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.vcard::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 150px;
  height: 150px;
  z-index: -1;
  opacity: 0.16;
  background: repeating-linear-gradient(0deg, #fff 0 3px, transparent 3px 14px);
  border-radius: 50%;
}

.v-act::before { background: linear-gradient(145deg, #d4202f 0%, #5e0a14 100%); }
.v-thr::before { background: linear-gradient(145deg, #26345a 0%, #050b1e 100%); }
.v-sci::before { background: linear-gradient(145deg, #3b7be0 0%, #0a1a45 100%); }
.v-fam::before { background: linear-gradient(145deg, #ffe27a 0%, #ffcc1a 55%, #e2a400 100%); }
.v-doc::before { background: linear-gradient(145deg, #1f8a63 0%, #0a3326 100%); }
.v-dra::before { background: linear-gradient(145deg, #e2552b 0%, var(--cacao) 100%); }

.vcard svg {
  width: 42px;
  height: 42px;
  margin-bottom: auto;
  stroke: #ffffff;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v-fam svg { stroke: #2a1f00; }
.cine .vcard h3 { color: #ffffff; font-size: 22px; margin: 22px 0 6px; }
.cine .v-fam h3,
.v-fam p { color: #2a1f00 !important; }
.vcard p { font-size: 14.5px; color: rgba(255, 255, 255, 0.88); line-height: 1.5; }
.vtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.vtags b { font: 600 11px var(--font-mono); letter-spacing: 0.06em; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.28); color: #ffffff; }
.v-fam .vtags b { background: rgba(42, 31, 0, 0.14); color: #2a1f00; }
.vtags b:first-child { background: var(--girasol); color: #1d1600; }
.v-fam .vtags b:first-child { background: #ffffff; }

.vodstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.vodstats span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #a9b4cc;
}

.vodstats b {
  display: block;
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--girasol);
}

.vnote {
  margin-top: 16px;
  font-size: 13.5px;
  color: #8e9bbb;
}

/* Metrics & Pillars */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric {
  background: var(--nieve);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 18px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--girasol) 0 50%, var(--cobalto) 50% 75%, var(--rojo) 75%);
}

.metric b {
  display: block;
  font: 800 clamp(28px, 3.6vw, 42px) / 1.05 var(--font-head);
  color: var(--cobalto);
  letter-spacing: -0.03em;
}

.metric:nth-child(2) b { color: var(--rojo); }
.metric:nth-child(3) b { color: var(--paramo); }
.metric:nth-child(4) b { color: var(--volcan); }

.metric span {
  display: block;
  margin-top: 8px;
  font: 600 12px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mut);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.pillar {
  background: var(--nieve);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.pillar .pi {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--noche), var(--cobalto));
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.pillar .pi svg {
  width: 28px;
  height: 28px;
  stroke: var(--girasol);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.pillar p {
  color: var(--ink2);
  font-size: 15.5px;
}

.pillar ul {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pillar li {
  font: 600 11.5px var(--font-mono);
  background: var(--niebla);
  color: var(--cobalto);
  border-radius: 6px;
  padding: 4px 8px;
}

/* Network Topology */
.net {
  background: var(--noche2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  padding: 26px;
  overflow: hidden;
}

.net svg {
  width: 100%;
  height: auto;
  display: block;
}

.net text {
  font-family: var(--font-body);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px;
  font-size: 14px;
  color: #b6c1db;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend i {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  display: inline-block;
}

.leg-y { background: var(--girasol); }
.leg-b { background: var(--cielo); }
.leg-g { background: var(--wa); }
.leg-grad { background: linear-gradient(90deg, var(--girasol), var(--cielo)); }

.hops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 12px;
  margin-top: 22px;
}

.hop {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 15px;
}

.hop b {
  display: block;
  font-family: var(--font-mono);
  color: var(--girasol);
  font-size: 19px;
}

.hop span {
  font-size: 13.5px;
  color: #b6c1db;
}

@keyframes dash {
  to { stroke-dashoffset: -40; }
}

.flow {
  stroke-dasharray: 6 8;
  animation: dash 1.6s linear infinite;
}

/* Final CTA Banner */
.final {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(255, 204, 26, 0.28), transparent 60%),
    linear-gradient(135deg, var(--cobalto-d), var(--noche));
  color: #d7def0;
  text-align: center;
  border-radius: 30px;
  padding: 58px 28px;
  position: relative;
  overflow: hidden;
}

.final h2 {
  color: #ffffff;
  font-size: clamp(28px, 4.2vw, 46px);
  max-width: 820px;
  margin: 0 auto 14px;
}

.final p {
  max-width: 640px;
  margin: 0 auto 26px;
  font-size: 17.5px;
}

.final .row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.final .btn-ghost {
  border-color: #ffffff;
  color: #ffffff;
}

.final::before {
  content: "0°00′00″";
  position: absolute;
  left: 24px;
  bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   05. Pricing Plans & Cards
   -------------------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  background: var(--papel);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s, border-color 0.22s;
}

.plan:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 61, 145, 0.35);
}

.plan h3 {
  font-size: 21px;
}

.plan .price {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin: 14px 0 4px;
}

.plan .price sup {
  font-size: 0.45em;
  vertical-align: top;
  position: relative;
  top: 0.25em;
  margin-right: 2px;
}

.plan .per {
  font-size: 14px;
  color: var(--mut);
  margin-bottom: 16px;
  font-weight: 600;
}

.plan ul {
  list-style: none;
  margin-bottom: 22px;
  flex: 1;
}

.plan li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 14.5px;
  border-bottom: 1px dashed var(--line);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--paramo);
  border-bottom: 2.5px solid var(--paramo);
  transform: rotate(-45deg);
}

.plan .btn {
  width: 100%;
}

.plan.hot,
.plan--featured {
  background: linear-gradient(170deg, var(--cobalto) 0%, var(--noche) 100%);
  border-color: var(--cobalto);
  color: #d7def0;
  transform: translateY(-8px);
  box-shadow: 0 34px 60px -28px rgba(10, 61, 145, 0.85);
}

.plan.hot:hover,
.plan--featured:hover {
  transform: translateY(-12px);
}

.plan.hot h3,
.plan.hot .price,
.plan--featured h3,
.plan--featured .price {
  color: #ffffff;
}

.plan.hot .per,
.plan--featured .per {
  color: var(--girasol);
}

.plan.hot li,
.plan--featured li {
  border-color: rgba(255, 255, 255, 0.14);
}

.plan.hot li::before,
.plan--featured li::before {
  border-color: var(--girasol);
}

.badge {
  position: absolute;
  top: -13px;
  left: 22px;
  background: var(--rojo);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.badge.alt {
  background: var(--girasol);
  color: #1d1600;
}

.paynote {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin-top: 32px;
  font-size: 14.5px;
  color: var(--ink2);
  align-items: center;
}

.paynote .card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  background: var(--papel);
  border-radius: 8px;
  padding: 5px 12px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.paynote .card.v { color: #1a1f71; }
.paynote .card.m { color: #eb001b; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.trust-item {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-item svg {
  width: 24px;
  height: 24px;
  flex: none;
  stroke: var(--cobalto);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

.trust-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.trust-item span {
  display: block;
  font-size: 13.5px;
  color: var(--mut);
  margin-top: 3px;
  line-height: 1.45;
}

/* Compact 4-plan strip (used in city pages & articles) */
.plans-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 26px;
}

.plan-mini {
  background: var(--papel);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-mini.hot {
  background: linear-gradient(165deg, var(--cobalto), var(--noche));
  border-color: var(--cobalto);
  color: #ffffff;
}

.plan-mini h3,
.plan-mini h4 {
  font-size: 15px;
  color: var(--mut);
  font-family: var(--font-body);
  font-weight: 700;
}

.plan-mini.hot h3,
.plan-mini.hot h4,
.plan-mini.hot .p {
  color: #ffffff;
}

.plan-mini .p {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
}

.plan-mini .p small {
  font-size: 13.5px;
  color: var(--mut);
  font-family: var(--font-body);
  font-weight: 600;
}

.plan-mini.hot .p small {
  color: var(--girasol);
}

.plan-mini .sub {
  font-size: 13px;
  color: var(--mut);
  margin-bottom: 6px;
}

.plan-mini.hot .sub {
  color: #c9d3ea;
}

.plan-mini .btn {
  width: 100%;
  margin-top: auto;
  padding: 10px 12px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   06. Bento / Device / App Grids & Comparison Tables
   -------------------------------------------------------------------------- */
.bento-card {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(10, 61, 145, 0.3);
}

.bento-card--dark {
  background: linear-gradient(160deg, var(--noche), var(--noche2));
  border-color: var(--line-dark);
  color: #d0daf0;
}

.bento-card--dark h3,
.bento-card--dark a {
  color: #ffffff;
}

.bento-card--dark .bento-kicker {
  color: var(--girasol);
}

.bento-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalto);
}

.bento-card h3 {
  font-size: 21px;
  line-height: 1.2;
}

.bento-card p {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.55;
}

.bento-card--dark p {
  color: #b6c1db;
}

.bento-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--cobalto);
}

.bento-card--dark .bento-link {
  color: var(--girasol);
}

.bento-ico {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--niebla);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.bento-ico svg {
  width: 26px;
  height: 26px;
  stroke: var(--cobalto);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-card--dark .bento-ico {
  background: rgba(255, 204, 26, 0.12);
  border-color: rgba(255, 204, 26, 0.3);
}

.bento-card--dark .bento-ico svg {
  stroke: var(--girasol);
}

/* OS Filter Bar & Device Cards */
.os-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 26px;
}

.filter-pill {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--papel);
  color: var(--ink2);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.filter-pill:hover {
  border-color: var(--cobalto);
  color: var(--cobalto);
}

.filter-pill[aria-pressed="true"] {
  background: var(--noche);
  border-color: var(--noche);
  color: #ffffff;
}

.filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mut);
}

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

.device-card {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
}

.device-card:hover {
  transform: translateY(-4px);
  border-color: var(--cobalto);
}

.device-ico {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--noche), var(--cobalto));
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.device-ico svg {
  width: 32px;
  height: 32px;
  stroke: var(--girasol);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device-card h3 {
  font-size: 19px;
}

.device-card p {
  font-size: 14.5px;
  color: var(--ink2);
  line-height: 1.52;
}

.device-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--mut);
}

.device-meta strong {
  color: var(--ink);
}

/* App Cards with Gradient SVG Icon Tiles */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.app-card {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s, box-shadow 0.22s;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-tile {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  flex: none;
  overflow: hidden;
  box-shadow: 0 12px 24px -10px rgba(11, 21, 48, 0.55);
}

.app-tile svg {
  width: 100%;
  height: 100%;
  display: block;
}

.app-head h3 {
  font-size: 21px;
}

.app-head span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mut);
  margin-top: 3px;
}

.app-card p {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.55;
}

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

.rec-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px;
}

.rec-item small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--girasol);
  margin-bottom: 6px;
}

.rec-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 6px;
}

.rec-item p {
  font-size: 14.5px;
  color: #b6c1db;
  line-height: 1.5;
}

/* Comparison Tables */
.cmpwrap,
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--papel);
  box-shadow: var(--shadow-card);
}

.cmp {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}

.cmp th,
.cmp td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cmp thead th {
  background: var(--noche);
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 15px;
  white-space: nowrap;
}

.cmp thead th.us {
  background: var(--cobalto);
}

.cmp td.us {
  background: rgba(255, 204, 26, 0.12);
  font-weight: 800;
}

.cmp tr:last-child td {
  border-bottom: 0;
}

.yes { color: var(--paramo); font-weight: 800; }
.no { color: var(--rojo); font-weight: 800; }

/* Glossary, Methodology, Author Profile & City Scorecards */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.term-card {
  background: var(--papel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cobalto);
  border-radius: var(--radius-lg);
  padding: 24px;
  scroll-margin-top: 90px;
  box-shadow: var(--shadow-card);
}

.term-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.term-card .term-tip {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--nieve);
  border-left: 4px solid var(--girasol-d);
  font-size: 14.5px;
  color: var(--ink2);
}

.term-card .term-tip p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink2);
}

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

.method-card {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}

.method-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--noche), var(--cobalto));
  display: grid;
  place-items: center;
  flex: none;
}

.method-ico svg {
  width: 26px;
  height: 26px;
  stroke: var(--girasol);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.method-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.method-card p {
  font-size: 15px;
  color: var(--ink2);
}

.profile-card {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.avatar-svg {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 34px -16px rgba(11, 21, 48, 0.55);
}

.avatar-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

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

.scorecard {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
}

.scorecard h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.score-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--cobalto);
  line-height: 1.05;
}

.scorecard p {
  font-size: 14px;
  color: var(--ink2);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   07. Interactive Calculator & Filters
   -------------------------------------------------------------------------- */
.tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.panel h2,
.panel h3 {
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--ink);
}

.sec.alt .panel {
  background: var(--nieve);
}

.panel h3 {
  font-size: 21px;
  margin-bottom: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label,
.field .lbl {
  display: block;
  font-weight: 800;
  font-size: 14.5px;
  margin-bottom: 8px;
}

.field select,
.field input[type="number"],
.field input[type="search"],
.field input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.field select:focus,
.field input:focus {
  outline: 3px solid rgba(255, 204, 26, 0.6);
  border-color: var(--cobalto);
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seg button {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink2);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.seg button[aria-pressed="true"] {
  background: var(--noche);
  border-color: var(--noche);
  color: #ffffff;
}

.range {
  display: flex;
  align-items: center;
  gap: 14px;
}

.range input {
  flex: 1;
  accent-color: var(--cobalto);
}

.range output {
  font-family: var(--font-mono);
  font-weight: 600;
  min-width: 44px;
  text-align: right;
}

.result {
  background: var(--noche);
  color: #c9d3ea;
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result h2,
.result h3 {
  color: #ffffff;
  font-size: 22px;
}

.calc-isp-box {
  background: rgba(255, 204, 26, 0.09);
  border: 1px solid rgba(255, 204, 26, 0.34);
  border-radius: 14px;
  padding: 14px 16px;
}

.calc-isp-box span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--girasol);
}

.calc-isp-box b {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
  line-height: 1.4;
}

.gauge {
  position: relative;
  height: 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.gauge i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--paramo), var(--girasol), var(--volcan));
  transition: width 0.45s;
}

.big {
  font-family: var(--font-head);
  font-size: 50px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.big small {
  font-size: 17px;
  color: #9ba8c6;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}

.calc-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.calc-kpi {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 14px 12px;
}

.calc-kpi span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ba8c6;
}

.calc-kpi b {
  display: block;
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--girasol);
  margin-top: 4px;
}

.verdict {
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  background: rgba(31, 138, 99, 0.2);
  color: #bff0dc;
  border: 1px solid rgba(31, 138, 99, 0.55);
}

.verdict.mid {
  background: rgba(255, 204, 26, 0.14);
  color: #ffe9a3;
  border-color: rgba(255, 204, 26, 0.45);
}

.verdict.bad {
  background: rgba(212, 32, 47, 0.18);
  color: #ffc2c7;
  border-color: rgba(212, 32, 47, 0.55);
}

.rlist {
  list-style: none;
  font-size: 14.5px;
}

.rlist li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.rlist li b {
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
}

.tips {
  font-size: 14px;
  color: #b6c1db;
}

.tips li {
  margin: 6px 0 6px 18px;
}

/* Setup Tabs & UPS Controls */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tabs button {
  font: inherit;
  font-weight: 800;
  font-size: 14.5px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--papel);
  color: var(--ink2);
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  background: var(--cobalto);
  color: #ffffff;
  border-color: var(--cobalto);
}

.tabpanel {
  display: none;
}

.tabpanel.on {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.steps {
  counter-reset: s;
  list-style: none;
}

.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 18px 52px;
  margin-bottom: 4px;
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--girasol);
  color: #1d1600;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
}

.steps li::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}

.steps li:last-child::after {
  display: none;
}

.steps strong {
  display: block;
}

.stepck {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.stepck input {
  width: 18px;
  height: 18px;
  accent-color: var(--paramo);
  flex: none;
}

.steps li.done strong {
  text-decoration: line-through;
  text-decoration-color: var(--paramo);
  color: var(--paramo);
}

.creds {
  background: var(--noche);
  border-radius: 20px;
  padding: 24px;
  color: #c9d3ea;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.creds h3,
.creds h4 {
  font-family: var(--font-head);
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 14px;
}

.creds div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}

.creds div b {
  color: var(--girasol);
  font-weight: 600;
}

.creds p {
  font-family: var(--font-body);
  font-size: 14px;
  margin-top: 14px;
  color: #8e9bbb;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--niebla);
  margin: 6px 0 20px;
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--girasol), var(--cobalto));
  transition: width 0.35s;
}

.dev {
  display: grid;
  gap: 10px;
}

.dev label {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
}

.dev label small {
  display: block;
  font-weight: 500;
  color: var(--mut);
  font-size: 12.5px;
}

.dev input {
  width: 19px;
  height: 19px;
  accent-color: var(--cobalto);
}

.dev em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cobalto);
  font-weight: 600;
}

.battery {
  display: flex;
  gap: 4px;
  height: 32px;
  margin: 4px 0;
}

.battery i {
  flex: 1;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
}

.battery i.f { background: var(--paramo); }
.battery i.f.w { background: var(--girasol); }
.battery i.f.r { background: var(--rojo); }

/* --------------------------------------------------------------------------
   08. Editorial Articles, Hub & Legal Pages
   -------------------------------------------------------------------------- */
.ahero {
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 380px at 95% -20%, rgba(255, 204, 26, 0.32) 0%, transparent 60%),
    radial-gradient(760px 360px at -8% 120%, rgba(59, 123, 224, 0.26) 0%, transparent 62%),
    linear-gradient(175deg, #fbfcff 0%, #e7ecf6 100%);
  border-bottom: 1px solid var(--line);
}

.ahero::before {
  content: "0°00′00″ LATITUD";
  position: absolute;
  right: 20px;
  top: calc(50% - 22px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--rojo);
  opacity: 0.5;
}

.ahero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1.5px dashed rgba(212, 32, 47, 0.28);
  pointer-events: none;
}

.ahero .wrap {
  position: relative;
  z-index: 1;
}

.ahero h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  max-width: 960px;
}

.ahero .lead {
  font-size: 18.5px;
  color: var(--ink2);
  max-width: 840px;
  margin-top: 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--mut);
}

.meta strong {
  color: var(--ink);
  font-weight: 700;
}

.meta a {
  color: var(--cobalto);
}

.agrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  padding: 36px 0 72px;
}

.prose h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 48px 0 14px;
  padding-top: 8px;
  scroll-margin-top: 88px;
  position: relative;
}

.prose h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--girasol) 0 50%, var(--cobalto) 50% 75%, var(--rojo) 75%);
  margin-bottom: 12px;
}

.prose h3 {
  font-size: 21px;
  margin: 28px 0 10px;
  color: var(--cobalto-d);
}

.prose p {
  margin: 0 0 18px;
  color: #1f2b47;
}

.prose ul,
.prose ol {
  margin: 0 0 20px 22px;
  color: #1f2b47;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--ink);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--niebla);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
  color: #9b1c27;
}

.prose pre {
  background: var(--noche);
  border-radius: 14px;
  padding: 18px;
  overflow: auto;
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: #ffd95a;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15px;
  display: block;
  overflow-x: auto;
  background: var(--papel);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.prose th,
.prose td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--noche);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.prose tr:hover td {
  background: rgba(10, 61, 145, 0.05);
}

.prose figure {
  margin: 0 0 24px;
}

.prose figure img {
  border-radius: 14px;
  box-shadow: 0 18px 40px -22px rgba(11, 21, 48, 0.6);
}

.prose figcaption {
  font-size: 13.5px;
  color: var(--mut);
  margin-top: 8px;
}

.toc {
  background: var(--papel);
  border: 1px solid var(--line);
  border-top: 5px solid var(--girasol);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 28px;
}

.toc strong {
  font-family: var(--font-head);
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.toc ol {
  margin: 0 0 0 20px;
}

.toc li {
  margin: 6px 0;
  font-size: 15.5px;
}

.box {
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  background: var(--papel);
}

.box.tip { border-left: 6px solid var(--paramo); background: #e6f4ee; }
.box.warn { border-left: 6px solid var(--rojo); background: #fdecee; }
.box.expert { border-left: 6px solid var(--cobalto); background: #e9effb; }
.box p:last-child { margin: 0; }
.box-t {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
  font-size: 17.5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 0 0 26px;
}

.stat {
  background: var(--noche);
  border-radius: 16px;
  padding: 16px;
  color: #c9d3ea;
}

.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 23px;
  color: var(--girasol);
}

.stat span {
  font-size: 13.5px;
}

.cta {
  margin: 38px 0;
  border-radius: 24px;
  padding: 34px 28px;
  background:
    radial-gradient(520px 230px at 100% 0%, rgba(255, 204, 26, 0.3), transparent 70%),
    linear-gradient(135deg, var(--noche) 0%, var(--cobalto-d) 100%);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta h2,
.cta h3 {
  margin: 0 0 10px !important;
  color: #ffffff;
  font-size: clamp(24px, 3.2vw, 32px);
}

.cta h2::before {
  display: none !important;
}

.cta p {
  color: #d7def0;
  margin: 0 auto 18px;
  max-width: 600px;
}

.cta a:not(.btn) {
  color: #ffffff;
  text-decoration: underline;
}

.cta .row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn-ghost {
  border-color: #ffffff;
  color: #ffffff;
}

/* Compact Accordion FAQ */
.faq {
  max-width: 920px;
  margin: 0 auto;
}

.prose .faq {
  max-width: none;
  margin: 0 0 24px;
}

.faq details {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 15px;
  margin-bottom: 10px;
  padding: 0 20px;
  transition: border-color 0.2s;
}

.faq details[open] {
  border-color: rgba(10, 61, 145, 0.32);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 16.5px;
}

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

.faq summary::after {
  content: "+";
  color: var(--cobalto);
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding-bottom: 16px;
  color: var(--ink2);
  margin: 0;
  font-size: 15.5px;
}

.faq-group-title {
  font-size: 22px;
  margin: 34px 0 14px;
  scroll-margin-top: 90px;
}

.author {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin-top: 38px;
}

.author .av {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(155deg, var(--noche), var(--cobalto));
  border: 2px solid var(--girasol);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  color: var(--girasol);
  font-weight: 800;
  font-size: 18px;
  flex: none;
}

.author p {
  font-size: 14.5px;
  margin: 4px 0 0;
  color: var(--mut);
}

.aside .stick {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.side.buy {
  background: var(--noche);
  color: #dbe2f2;
  border: 0;
}

.side.buy h4,
.side.buy .aside-title,
.side.buy .price {
  color: #ffffff;
}

.side h4,
.side .aside-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}

.side ul {
  list-style: none;
}

.side li {
  margin: 9px 0;
  font-size: 14.5px;
  line-height: 1.45;
}

.side .price {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
}

.side .price small {
  font-size: 14px;
  color: #a9b4cc;
  font-family: var(--font-body);
}

.side .btn {
  width: 100%;
  margin-top: 12px;
}

.cards-ico {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: #a9b4cc;
  align-items: center;
  flex-wrap: wrap;
}

.cards-ico span {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 700;
  color: #ffffff;
}

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin-top: 16px;
}

.related a {
  display: block;
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 16.5px;
  line-height: 1.3;
  border-left: 5px solid var(--girasol);
}

.related a:hover {
  border-left-color: var(--cobalto);
  text-decoration: none;
}

.related a small {
  display: block;
  font-family: var(--font-mono);
  color: var(--cobalto);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Guides Hub & Editorial Cards */
.guides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

.gcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px 22px;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gcard::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 5px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(90deg, var(--girasol) 0 50%, var(--cobalto) 50% 75%, var(--rojo) 75%);
}

.gcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.gmeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.gcat {
  font: 600 11px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--noche);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 999px;
}

.gread {
  font: 600 12px var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--rojo);
}

.gcard h3 {
  font-size: 19.5px;
  line-height: 1.24;
}

.gcard h3 a {
  color: var(--ink);
}

.gcard h3 a:hover {
  text-decoration: none;
  color: var(--cobalto);
}

.gcard h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
}

.gcard p {
  font-size: 14.5px;
  color: var(--ink2);
  font-weight: 500;
  line-height: 1.55;
}

.gcard .more {
  margin-top: auto;
  color: var(--cobalto);
  font-weight: 800;
  font-size: 14.5px;
}

.hhero {
  padding: 58px 0 44px;
  background:
    radial-gradient(800px 380px at 92% -20%, rgba(255, 204, 26, 0.34), transparent 60%),
    radial-gradient(700px 320px at -5% 120%, rgba(59, 123, 224, 0.24), transparent 60%),
    linear-gradient(175deg, #fbfcff, #e7ecf6);
  border-bottom: 1px solid var(--line);
}

.hhero .k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalto);
  font-weight: 600;
}

.hhero h1 {
  font-size: clamp(32px, 4.8vw, 54px);
  margin: 10px 0 14px;
  max-width: 900px;
}

.hhero p {
  font-size: 18.5px;
  color: var(--ink2);
  max-width: 780px;
}

.hstats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--mut);
}

.hstats b {
  font-family: var(--font-head);
  font-size: 25px;
  color: var(--ink);
  display: block;
}

.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 30px 0 22px;
}

.filters button {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--papel);
  color: var(--ink2);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  padding-bottom: 30px;
}

.card {
  position: relative;
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 5px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(90deg, var(--girasol) 0 50%, var(--cobalto) 50% 75%, var(--rojo) 75%);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card .cat {
  background: var(--noche);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.card .rt {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--rojo);
}

.card h2 {
  font-size: 20.5px;
  line-height: 1.25;
}

.card h2 a {
  color: var(--ink);
}

.card h2 a:hover {
  text-decoration: none;
  color: var(--cobalto);
}

.card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
}

.card p {
  font-size: 15px;
  color: var(--ink2);
}

.card .m {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--mut);
  font-weight: 600;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.card .m b {
  color: var(--cobalto);
}

.hub-cta {
  margin: 28px 0 64px;
  border-radius: 24px;
  padding: 36px 28px;
  background: linear-gradient(135deg, var(--ink), var(--cobalto-d));
  color: #ffffff;
  text-align: center;
}

.hub-cta h2 {
  color: #ffffff;
  font-size: 29px;
  margin-bottom: 10px;
}

.hub-cta p {
  color: #d7def0;
  max-width: 640px;
  margin: 0 auto 18px;
}

.hub-cta .row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Legal Layout */
.lhero {
  padding: 52px 0 32px;
  background: linear-gradient(175deg, #fbfcff, #e7ecf6);
  border-bottom: 1px solid var(--line);
}

.lhero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
}

.lhero p {
  color: var(--mut);
  margin-top: 10px;
}

.legal {
  max-width: 860px;
  padding: 38px 20px 80px;
}

.legal h2 {
  font-size: 24px;
  margin: 34px 0 12px;
}

.legal p,
.legal li {
  color: #1f2b47;
  margin-bottom: 12px;
}

.legal ul,
.legal ol {
  margin: 0 0 16px 22px;
}

.legal .box {
  background: var(--papel);
  border: 1px solid var(--line);
  border-left: 6px solid var(--cobalto);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 20px 0;
}

.legal nav.lnk {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.legal nav.lnk a {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  background: var(--papel);
}

.seo-text {
  columns: 2;
  column-gap: 40px;
  font-size: 16px;
  color: var(--ink2);
}

.seo-text p {
  margin-bottom: 14px;
  break-inside: avoid;
}

/* --------------------------------------------------------------------------
   09. Footer, Sticky CTA & WhatsApp Float
   -------------------------------------------------------------------------- */
.ftr {
  background: var(--noche);
  padding: 60px 0 110px;
  font-size: 14.5px;
  color: #a9b4cc;
  position: relative;
}

.ftr::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--girasol) 0 50%, var(--cobalto) 50% 75%, var(--rojo) 75%);
}

.ftr .logo {
  color: #ffffff;
}

.ftr .logo b {
  color: var(--girasol);
}

.ftr-desc {
  margin-top: 14px;
  max-width: 360px;
  line-height: 1.6;
}

.fgrid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 30px;
}

.ftr h5,
.ftr .ftr-title {
  font-family: var(--font-head);
  font-weight: 800;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.ftr ul {
  list-style: none;
}

.ftr li {
  margin: 7px 0;
}

.ftr a {
  color: #a9b4cc;
  font-weight: 500;
}

.ftr a:hover {
  color: #ffffff;
}

.fbot {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.ftr-disc {
  margin-top: 14px;
  font-size: 12.5px;
  opacity: 0.78;
}

/* Floating Sticky CTA (non-homepage pages) */
#cta-sticky {
  position: fixed;
  left: 18px;
  bottom: 22px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(11, 21, 48, 0.94);
  color: #ffffff;
  border: 1.5px solid rgba(255, 204, 26, 0.45);
  border-radius: 999px;
  padding: 8px 10px 8px 18px;
  box-shadow: 0 18px 36px -12px rgba(11, 21, 48, 0.65);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

#cta-sticky.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#cta-sticky span {
  font-size: 14px;
  font-weight: 700;
  color: #eef3fb;
  white-space: nowrap;
}

#cta-sticky strong {
  color: var(--girasol);
}

#cta-sticky a {
  background: var(--girasol);
  color: #1d1600;
  font-size: 13.5px;
  font-weight: 800;
  padding: 8px 15px;
  border-radius: 999px;
  white-space: nowrap;
}

#cta-sticky a:hover {
  background: #ffe27a;
  text-decoration: none;
}

/* WhatsApp Floating Action Button */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  filter: drop-shadow(0 14px 26px rgba(11, 21, 48, 0.42));
  transition: transform 0.25s;
}

.wa-float:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.wa-float .wa-pill {
  position: relative;
  display: block;
  background: #25d366;
  color: #03230f;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.35;
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.wa-float .wa-pill::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #25d366;
  border-radius: 2px;
  transform: translateY(-50%) rotate(45deg);
}

.wa-float .wa-circ {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #4ee38a, #25d366 55%, #16a34a);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2);
}

.wa-float .wa-circ::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ping 2.2s infinite;
  pointer-events: none;
}

.wa-float .wa-circ svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

.wa-float:hover .wa-pill,
.wa-float:hover .wa-pill::after {
  background: #2ee072;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* --------------------------------------------------------------------------
   10. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .hgrid,
  .split-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hgrid {
    padding-bottom: 120px;
  }
  .plans,
  .plans-compact,
  .device-grid,
  .trust-strip,
  .scorecard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-grid,
  .rec-grid,
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .col-4,
  .col-5,
  .col-7,
  .col-8 {
    grid-column: span 6;
  }
  .agrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .aside {
    display: none;
  }
  .tool,
  .tabpanel.on {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .sec {
    padding: 64px 0;
  }
  .vgrid,
  .vodstats,
  .app-grid,
  .rec-grid,
  .pillars,
  .glossary-grid,
  .method-grid,
  .fgrid {
    grid-template-columns: 1fr;
  }
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8 {
    grid-column: span 12;
  }
  .seo-text {
    columns: 1;
  }
  .profile-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .calc-kpis {
    grid-template-columns: 1fr;
  }
  #cta-sticky {
    left: 12px;
    right: 12px;
    bottom: 92px;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .plans,
  .plans-compact,
  .device-grid,
  .trust-strip,
  .scorecard-grid,
  .hero-specs-grid {
    grid-template-columns: 1fr;
  }
  .plan.hot,
  .plan--featured {
    transform: none;
  }
  .band-dark {
    padding: 28px 20px;
  }
  .wa-float {
    right: 12px;
    bottom: 12px;
    gap: 10px;
  }
  .wa-float .wa-pill {
    font-size: 13px;
    padding: 10px 15px;
  }
  .wa-float .wa-circ {
    width: 50px;
    height: 50px;
  }
  .wa-float .wa-circ svg {
    width: 26px;
    height: 26px;
  }
  #cta-sticky {
    bottom: 76px;
    padding: 7px 9px 7px 14px;
    gap: 8px;
    max-width: calc(100vw - 24px);
  }
  #cta-sticky span {
    font-size: 13px;
    white-space: normal;
    line-height: 1.25;
  }
}

@media (max-width: 480px) {
  .hdr .btn-wa {
    padding: 9px 13px;
    font-size: 13.5px;
  }
  .logo {
    font-size: 18.5px;
  }
  .logo sup {
    display: none;
  }
}

@media (max-width: 340px) {
  .wa-float .wa-pill {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
