/* ==========================================================================
   hogarconectado.co — Design System
   Dark tech theme. Cyan + purple accent. Glassmorphism + bento.
   ========================================================================== */

:root {
  /* Colors */
  --bg-0: #050714;
  --bg-1: #0a0f1e;
  --bg-2: #111729;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #e6edf7;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent: #22d3ee;              /* cyan */
  --accent-2: #a855f7;            /* violet */
  --accent-glow: rgba(34, 211, 238, 0.35);
  --accent-2-glow: rgba(168, 85, 247, 0.28);

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
  --grad-text: linear-gradient(135deg, #ffffff 0%, #a5f3fc 55%, #c4b5fd 100%);
  --grad-surface: linear-gradient(180deg, rgba(34,211,238,0.06) 0%, rgba(168,85,247,0.02) 100%);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing / radius / shadows */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px;
  --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 60px -10px var(--accent-glow);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(900px 500px at 10% -10%, rgba(34,211,238,0.10), transparent 60%),
    radial-gradient(700px 500px at 95% 5%, rgba(168,85,247,0.08), transparent 60%),
    linear-gradient(180deg, #050714 0%, #0a0f1e 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

/* ========== Typography ========== */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; }
.h-display  { font-size: clamp(2.5rem, 6vw, 4.8rem); font-weight: 800; }
.h-xl       { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.h-lg       { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.h-md       { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.text-grad  { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.text-muted { color: var(--text-muted); }
.lead       { font-size: clamp(1rem, 1.35vw, 1.2rem); color: var(--text-muted); line-height: 1.7; max-width: 60ch; }

/* ========== Header / Nav ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  background: rgba(5, 7, 20, 0.6);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s var(--ease-out), background 0.3s;
}
.site-header.scrolled { padding: 12px 0; background: rgba(5, 7, 20, 0.85); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.brand-dot {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--grad-primary);
  box-shadow: 0 0 24px -4px var(--accent-glow);
  position: relative;
}
.brand-dot::after {
  content: ''; position: absolute; inset: 6px; border-radius: 4px;
  background: var(--bg-0); opacity: 0.4;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: 10px 20px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-weight: 500; font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: var(--surface-hover); transform: translateY(-1px); border-color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; }

@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
               flex-direction: column; background: var(--bg-1); padding: 20px 24px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.9;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 60%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 860px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 99px;
  font-size: 0.82rem; color: #a5f3fc; font-weight: 500;
  width: fit-content;
  opacity: 0;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }

.hero-title { opacity: 0; }
.hero-sub   { opacity: 0; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; opacity: 0; }
.hero-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--border);
  opacity: 0;
}
.metric-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metric-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-soft), box-shadow 0.3s, background 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn-primary {
  background: var(--grad-primary); color: #04131a;
  box-shadow: 0 10px 35px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -10px var(--accent-glow); }
.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--accent); transform: translateY(-2px); }

/* ========== Sections ========== */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-tag {
  display: inline-block; padding: 6px 14px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border-strong);
  font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 18px;
}

/* ========== Bento grid ========== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease-soft), border-color 0.3s, background 0.3s;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.bento-card::before {
  content: ''; position: absolute; inset: -1px;
  padding: 1px; border-radius: inherit;
  background: linear-gradient(135deg, transparent 40%, var(--accent) 80%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.bento-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-hover); }
.bento-card:hover::before { opacity: 1; }
.bento-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-grid; place-items: center;
  background: rgba(34, 211, 238, 0.1); color: var(--accent);
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(34,211,238,0.15);
}
.bento-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 10px; }
.bento-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }
.bento-link { margin-top: 18px; font-size: 0.88rem; color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.bento-link svg { transition: transform 0.3s var(--ease-soft); }
.bento-card:hover .bento-link svg { transform: translateX(4px); }

.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-6 { grid-column: span 6; }

.bento-card.feature {
  background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(168,85,247,0.05));
  border-color: rgba(34,211,238,0.2);
  min-height: 340px;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span-3, .bento-card.span-2, .bento-card.span-4, .bento-card.span-6 { grid-column: span 2; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.span-3, .bento-card.span-2, .bento-card.span-4, .bento-card.span-6 { grid-column: span 1; }
}

/* ========== Guide cards ========== */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.guide-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease-soft), border-color 0.3s;
  min-height: 360px;
}
.guide-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.guide-thumb {
  aspect-ratio: 16/9;
  background: var(--grad-primary);
  position: relative; overflow: hidden;
}
.guide-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.3), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(0,0,0,0.3), transparent 60%);
  mix-blend-mode: overlay;
}
.guide-thumb .icon-big { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,0.9); }
.guide-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.guide-cat { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 10px; }
.guide-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.guide-desc { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.guide-meta { display: flex; gap: 14px; margin-top: 18px; font-size: 0.8rem; color: var(--text-dim); }

/* ========== AdSense slots (CLAUDE.md §7.2 — reserva CLS-safe) ==========
   Clases canónicas:
     .ad-slot                   base layout
     .ad-slot-in-article        in-article fluid/display (min 280px)
     .ad-slot-sidebar           300×600 sticky desktop (min 600px)
     .ad-slot-multiplex         autorelaxed/matched content (min 400px)
     .ad-slot-leaderboard       970×90 / responsive (min 120px)
     .ad-slot-anchor            sticky bottom mobile (min 50px, hidden ≥1024px)
   Legacy .adsense-slot[data-size] se mantiene como alias para no romper otras páginas.
*/
.ad-slot,
.adsense-slot {
  width: 100%;
  min-height: 90px;
  margin: 48px auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  color: var(--text-dim); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 1px 280px;
}
.adsense-slot[data-size="wide"],
.ad-slot-leaderboard { min-height: 120px; max-width: 970px; }
.adsense-slot[data-size="inline"],
.ad-slot-in-article { min-height: 280px; aspect-ratio: auto; }
.ad-slot-sidebar { min-height: 600px; max-width: 300px; position: sticky; top: 96px; margin: 32px 0 0; }
.ad-slot-multiplex { min-height: 400px; }

/* Sidebar slot: oculto en mobile (sin sidebar). Anchor: oculto en desktop. */
@media (max-width: 1023px) {
  .ad-slot-sidebar { display: none; }
}
.ad-slot-anchor {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 50; min-height: 50px; margin: 0;
  background: var(--bg-1); border: 0; border-top: 1px solid var(--border-strong);
  border-radius: 0;
}
@media (min-width: 1024px) {
  .ad-slot-anchor { display: none; }
}

/* Disclosure de afiliación (CLAUDE.md §8.2) */
.affiliate-disclosure {
  margin: 24px auto;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.affiliate-disclosure strong { color: var(--text); }

/* Author bio + sources block (E-E-A-T) */
.author-bio,
.article-sources {
  margin-top: 48px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.author-bio h4,
.article-sources h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-sources ul { margin: 0; padding-left: 20px; color: var(--text-muted); font-size: 0.9rem; }

/* ========== Comparison ========== */
.compare {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface);
}
.compare-col { padding: 32px; border-right: 1px solid var(--border); position: relative; }
.compare-col:last-child { border-right: 0; }
.compare-col.highlight { background: linear-gradient(180deg, rgba(34,211,238,0.06), transparent 50%); }
.compare-col.highlight::before {
  content: 'Recomendado'; position: absolute; top: 14px; right: 14px;
  padding: 4px 12px; border-radius: 99px;
  background: var(--grad-primary); color: #04131a;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.compare-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 4px; }
.compare-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 22px; }
.compare-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.compare-features li { display: flex; align-items: start; gap: 10px; font-size: 0.92rem; color: var(--text-muted); }
.compare-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.compare-features li.no::before { content: '✕'; color: var(--text-dim); }

@media (max-width: 900px) {
  .compare { grid-template-columns: 1fr; }
  .compare-col { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* ========== CTA band ========== */
.cta-band {
  position: relative;
  margin: 100px auto;
  padding: 72px 48px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(168,85,247,0.08));
  border: 1px solid rgba(34,211,238,0.25);
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.15) 0%, transparent 60%);
  top: -200px; left: -100px; animation: float 10s ease-in-out infinite;
}
.cta-band::after {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 60%);
  bottom: -200px; right: -100px; animation: float 12s ease-in-out infinite reverse;
}
.cta-band > * { position: relative; z-index: 1; }

@keyframes float { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-20px)} }

/* ========== Footer ========== */
.site-footer {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); margin-top: 14px; font-size: 0.92rem; max-width: 340px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px; font-family: var(--font-sans); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.85rem;
  flex-wrap: wrap; gap: 12px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ========== Article ========== */
.article-header {
  padding: 160px 0 60px;
  background: radial-gradient(900px 500px at 50% 0, rgba(34,211,238,0.10), transparent 60%);
}
.article-body { max-width: 780px; margin-inline: auto; padding: 40px 0 80px; }
.article-body h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 48px 0 18px; position: relative; padding-left: 18px; }
.article-body h2::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; background: var(--grad-primary); border-radius: 2px; }
.article-body h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 36px 0 14px; color: var(--text); }
.article-body p { color: #cbd5e1; margin-bottom: 18px; font-size: 1.05rem; line-height: 1.8; }
.article-body ul, .article-body ol { margin: 18px 0 24px 22px; color: #cbd5e1; }
.article-body li { margin-bottom: 10px; line-height: 1.7; }
.article-body blockquote {
  margin: 32px 0; padding: 22px 28px;
  background: var(--surface); border-left: 3px solid var(--accent); border-radius: var(--r-md);
  color: var(--text); font-style: italic;
}
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(34,211,238,0.3); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--accent); }
.article-body code { background: var(--surface); padding: 2px 8px; border-radius: 6px; font-family: var(--font-mono); font-size: 0.9em; color: var(--accent); }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 32px 0;
  background: var(--surface); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border);
}
.article-body th, .article-body td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.article-body th { background: rgba(34,211,238,0.06); font-weight: 600; color: var(--text); font-size: 0.9rem; }
.article-body td { font-size: 0.95rem; color: #cbd5e1; }
.article-body tr:last-child td { border-bottom: 0; }

.toc {
  position: sticky; top: 120px;
  padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: 0.9rem;
}
.toc h4 { font-family: var(--font-sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 14px; }
.toc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc a { color: var(--text-muted); transition: color 0.2s; border-left: 2px solid transparent; padding-left: 10px; display: block; }
.toc a:hover, .toc a.active { color: var(--accent); border-left-color: var(--accent); }

.article-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; max-width: 1100px; margin-inline: auto; }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; margin-bottom: 32px; }
}

/* ========== Legal pages ========== */
.legal-body { max-width: 820px; margin-inline: auto; padding: 160px 0 80px; }
.legal-body h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.legal-body .legal-date { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
.legal-body h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 36px 0 14px; color: var(--text); }
.legal-body p { color: #cbd5e1; margin-bottom: 16px; line-height: 1.75; }
.legal-body ul { margin: 12px 0 20px 22px; color: #cbd5e1; }
.legal-body li { margin-bottom: 8px; }

/* ========== Utils ========== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); margin: 60px 0; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border-strong);
  font-size: 0.8rem; color: var(--text-muted);
}

::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Newsletter opt-in ===== */
.newsletter-cta { margin: 80px auto 40px; max-width: 920px; padding: 0 16px; }
.newsletter-cta__inner {
  background: linear-gradient(135deg, rgba(34,211,238,0.10), rgba(168,85,247,0.10));
  border: 1px solid rgba(34,211,238,0.22);
  border-radius: var(--r-xl);
  padding: 44px 40px;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(34,211,238,0.25);
}
.newsletter-cta__inner::before {
  content: ""; position: absolute; inset: -2px;
  background: radial-gradient(600px 200px at 20% 0%, rgba(34,211,238,0.18), transparent 60%);
  pointer-events: none;
}
.newsletter-cta__copy { position: relative; margin-bottom: 24px; }
.newsletter-cta__copy h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 8px 0 10px; color: #fff; }
.newsletter-cta__copy p { color: var(--text-muted); max-width: 56ch; line-height: 1.65; }
.newsletter-cta__form {
  position: relative; display: flex; gap: 10px; flex-wrap: wrap;
  background: rgba(5,7,20,0.55); border: 1px solid var(--border);
  border-radius: 14px; padding: 8px;
}
.newsletter-cta__form input[type=email] {
  flex: 1 1 240px; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: var(--text); font-family: inherit; font-size: 1rem;
  padding: 14px 14px;
}
.newsletter-cta__form input[type=email]::placeholder { color: var(--text-dim); }
.newsletter-cta__form button {
  appearance: none; border: 0; cursor: pointer;
  background: var(--accent); color: #050714;
  font-weight: 700; font-size: 0.95rem;
  padding: 14px 24px; border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
}
.newsletter-cta__form button:hover { background: #67e8f9; transform: translateY(-1px); }
.newsletter-cta__legal { position: relative; margin-top: 14px; font-size: 0.82rem; color: var(--text-dim); }
.newsletter-cta__legal a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (max-width: 600px) { .newsletter-cta__inner { padding: 32px 22px; } }

/* ==========================================================================
   PREMIUM LAYER · Ultrapro visual enhancements (additive, non-breaking)
   ========================================================================== */

/* Alias legacy class used in a few pages */
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------- Body: animated aurora + grid mesh + subtle grain ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(50% 40% at 15% 10%, rgba(34,211,238,0.18), transparent 70%),
    radial-gradient(40% 35% at 85% 0%, rgba(168,85,247,0.18), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(168,85,247,0.10), transparent 70%);
  filter: blur(40px);
  animation: auroraDrift 22s ease-in-out infinite alternate;
  opacity: 0.9;
}
body::after {
  content: "";
  position: fixed; inset: -1px;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.6;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) rotate(0deg);   }
  50%  { transform: translate3d(-3%, 2%, 0) rotate(2deg); }
  100% { transform: translate3d(3%, -2%, 0) rotate(-2deg); }
}
.site-header, main, section, footer, .container { position: relative; z-index: 1; }

/* ---------- Hero: stronger presence ---------- */
.hero { padding-top: 160px; }
.hero::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(34,211,238,0.12), rgba(168,85,247,0.10), rgba(34,211,238,0.12));
  filter: blur(60px);
  animation: heroSpin 28s linear infinite;
  z-index: 0; pointer-events: none;
}
@keyframes heroSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-title { position: relative; }
.hero-title .text-grad {
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* Metric numbers — bigger, with a soft light behind */
.metric-num { font-size: clamp(2rem, 3.6vw, 2.6rem); }
.hero-metrics > div { position: relative; transition: transform 0.5s var(--ease-soft); }
.hero-metrics > div:hover { transform: translateY(-4px); }
.hero-metrics > div::before {
  content: ""; position: absolute; inset: -10px -10px auto auto;
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.hero-metrics > div:hover::before { opacity: 0.7; }

/* ---------- Buttons: shimmer + glow + press ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.5) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 20px 60px -12px var(--accent-glow), 0 0 0 1px rgba(255,255,255,0.15) inset; }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--accent) inset, 0 10px 30px -10px var(--accent-glow); }

/* ---------- Cards: cursor-follow spotlight ---------- */
.bento-card, .guide-card, .compare-col {
  position: relative;
  --mx: 50%; --my: 50%;
}
.bento-card::after, .guide-card::after, .compare-col::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(34,211,238,0.12), transparent 40%);
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.bento-card:hover::after, .guide-card:hover::after, .compare-col:hover::after { opacity: 1; }

/* Bento feature card — extra glow */
.bento-card.feature {
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(34,211,238,0.18), transparent 60%),
    linear-gradient(135deg, rgba(34,211,238,0.10), rgba(168,85,247,0.08));
}
.bento-card.feature:hover { box-shadow: 0 30px 80px -20px var(--accent-glow); }

/* Guide card thumbs with shine */
.guide-thumb { transition: transform 0.6s var(--ease-soft); }
.guide-card:hover .guide-thumb { transform: scale(1.04); }
.guide-thumb::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,0.28) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
  z-index: 1;
}
.guide-card:hover .guide-thumb::before { transform: translateX(120%); }

/* ---------- Section rhythm: alternating subtle tint ---------- */
.section:nth-of-type(even) {
  background: linear-gradient(180deg, transparent, rgba(168,85,247,0.02) 40%, transparent);
}

/* Section head — tag with active dot */
.section-tag {
  background: linear-gradient(135deg, rgba(34,211,238,0.10), rgba(168,85,247,0.08));
  color: #a5f3fc;
  border-color: rgba(34,211,238,0.25);
}

/* Compare highlight — extra depth */
.compare-col.highlight {
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(34,211,238,0.12), transparent 60%),
    linear-gradient(180deg, rgba(34,211,238,0.06), transparent 50%);
  box-shadow: inset 0 0 0 1px rgba(34,211,238,0.25);
}

/* ---------- CTA band: pulsing conic ring ---------- */
.cta-band { background: linear-gradient(135deg, rgba(34,211,238,0.14), rgba(168,85,247,0.12)); }
.cta-band::before { animation: float 10s ease-in-out infinite, pulseGlow 4s ease-in-out infinite; }
@keyframes pulseGlow {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.55; }
}

/* ---------- Header polish on scroll ---------- */
.site-header.scrolled { box-shadow: 0 6px 30px -10px rgba(0,0,0,0.5); }

/* ---------- Tilt / lift utility (JS-powered) ---------- */
.tilt-host { transform-style: preserve-3d; transition: transform 0.2s ease-out; will-change: transform; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(34,211,238,0.4), rgba(168,85,247,0.4));
  border-radius: 10px; border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--accent), var(--accent-2)); }

/* ---------- Focus ring for keyboard users ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px; border-radius: 4px;
}

/* ---------- Coming-soon state: better visual ---------- */
.guide-card.is-soon { position: relative; }
.guide-card.is-soon::after {
  content: "Próximamente";
  position: absolute; top: 14px; right: 14px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.35);
  color: #c4b5fd; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  pointer-events: none;
}

@media (max-width: 760px) {
  body::before { filter: blur(30px); }
  .hero::before { width: 500px; height: 500px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, .hero::before, .cta-band::before { animation: none; }
  .hero-title .text-grad { animation: none; }
}
