/* ==========================================================================
   MiauMillonario — Landing Page Oficial (Estática 100 % sin dependencias)
   Estética: Wall Street Noir Editorial Pro (carbón profundo + verde crecimiento + oro)
   ========================================================================== */

:root {
  --bg-base: #070a10;
  --bg-elevated: #0d121c;
  --bg-card: #111726;
  --bg-card-hover: #161f33;
  --border-subtle: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #f5f7fb;
  --text-secondary: #b4bfd2;
  --text-muted: #7f8ca3;

  --emerald: #10b981;
  --emerald-bright: #34d399;
  --lime-accent: #c4f82a;
  --gold: #fdbc01;
  --yt-red: #ff1f3d;
  --yt-red-hover: #e11430;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif-accent: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.42);
  --shadow-glow-green: 0 0 0 1px rgba(16, 185, 129, 0.35), 0 16px 36px rgba(16, 185, 129, 0.12);
  --shadow-glow-yt: 0 12px 30px rgba(255, 31, 61, 0.28);

  --transition-fast: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 960px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-base);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--emerald-bright);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -64px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--emerald);
  color: #04130d;
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* Fondo atmosférico Wall Street Noir */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.055) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.25) 75%, transparent 100%);
}

.ambient-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
}

.ambient-glow-emerald {
  top: -160px;
  left: 50%;
  width: min(760px, 120vw);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0) 70%);
}

.ambient-glow-gold {
  top: 260px;
  right: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(253, 188, 1, 0.08) 0%, rgba(253, 188, 1, 0) 72%);
}

.page-shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.main-stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ==========================================================================
   A. CABECERA Y PRESENTACIÓN DEL PERSONAJE
   ========================================================================== */

.site-header {
  margin-bottom: 28px;
}

.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 28px 20px 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(22, 29, 46, 0.88) 0%, rgba(11, 15, 25, 0.94) 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald), var(--gold), transparent);
  opacity: 0.8;
}

.hero-avatar-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.hero-avatar-halo {
  position: absolute;
  inset: -10px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(253, 188, 1, 0.22) 0%, rgba(16, 185, 129, 0.14) 48%, transparent 72%);
  filter: blur(10px);
}

.hero-avatar-frame {
  position: relative;
  width: 128px;
  height: 152px;
  padding: 8px 8px 14px;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 25%, #1d273c 0%, #0b101b 85%);
  border: 1.5px solid rgba(253, 188, 1, 0.42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.avatar-fallback {
  align-self: center;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.04em;
  color: var(--gold);
}

.avatar-ticker {
  position: relative;
  margin-top: -12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0b1814;
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: var(--emerald-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 60ch;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--emerald-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-title {
  margin: 12px 0 4px;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
}

.brand-tagline {
  margin: 0 0 10px;
  font-family: var(--font-serif-accent);
  font-style: italic;
  font-size: clamp(1.3rem, 3.8vw, 1.6rem);
  line-height: 1.2;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.brand-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
}

.header-socials {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.social-icon-btn:hover {
  transform: translateY(-2px);
  color: var(--text-primary);
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.14);
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   B. ÚLTIMO VÍDEO DE YOUTUBE (HERO SPOTLIGHT)
   ========================================================================== */

.latest-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, #141b2c 0%, #0b0f19 100%);
  border: 1px solid rgba(16, 185, 129, 0.34);
  box-shadow: var(--shadow-card), 0 0 42px rgba(16, 185, 129, 0.08);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.latest-card:hover {
  border-color: rgba(16, 185, 129, 0.58);
}

.latest-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #06090f;
  overflow: hidden;
}

.latest-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.latest-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.15) 0%, rgba(7, 10, 16, 0.05) 55%, rgba(7, 10, 16, 0.65) 100%);
  pointer-events: none;
}

.latest-media-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.latest-media-tag svg {
  color: var(--yt-red);
}

.latest-play-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 31, 61, 0.92);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.14);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.latest-media:hover .latest-play-pill {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--yt-red);
}

.latest-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.latest-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.34);
  color: var(--emerald-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--lime-accent);
  box-shadow: 0 0 10px var(--lime-accent);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

.latest-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.latest-title {
  margin: 0;
  font-size: clamp(1.22rem, 3.2vw, 1.52rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.latest-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.latest-actions {
  margin-top: 4px;
}

.btn-primary-yt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--yt-red) 0%, #c8102b 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-glow-yt);
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary-yt:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(255, 31, 61, 0.36);
}

/* ==========================================================================
   ENCABEZADOS DE SECCIÓN
   ========================================================================== */

.section-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-bright);
}

.section-title {
  margin: 0;
  font-size: clamp(1.35rem, 3.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   C. ACCESO A CONTENIDOS (TARJETAS DE REDES)
   ========================================================================== */

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

.channel-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.channel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(155deg, var(--bg-card-hover) 0%, #101624 100%);
  box-shadow: var(--shadow-glow-green);
}

.channel-card--featured {
  background: linear-gradient(135deg, rgba(255, 31, 61, 0.14) 0%, rgba(17, 23, 38, 0.96) 58%, rgba(16, 185, 129, 0.1) 100%);
  border-color: rgba(255, 31, 61, 0.36);
}

.channel-card--featured:hover {
  border-color: rgba(255, 31, 61, 0.72);
  box-shadow: 0 14px 34px rgba(255, 31, 61, 0.16);
}

.channel-icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--brand-color, var(--emerald-bright));
}

.channel-icon-badge svg {
  width: 24px;
  height: 24px;
}

.channel-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.channel-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-name {
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--text-primary);
}

.channel-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 31, 61, 0.16);
  border: 1px solid rgba(255, 31, 61, 0.36);
  color: #ff8e9e;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.channel-desc {
  font-size: 0.89rem;
  color: var(--text-secondary);
}

.channel-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.channel-card:hover .channel-chevron {
  transform: translateX(3px);
  color: var(--emerald-bright);
}

/* ==========================================================================
   D. SECCIONES DE CONTENIDO (BLOQUES TEMÁTICOS)
   ========================================================================== */

.topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-card) 0%, #0b101a 100%);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.topic-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: var(--shadow-glow-green);
}

.topic-visual {
  position: relative;
  height: 126px;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.18), rgba(11, 16, 26, 0.96) 72%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-visual svg {
  width: 100%;
  height: 100%;
}

.topic-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--emerald-bright);
}

.topic-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 18px;
}

.topic-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
}

.topic-desc {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.topic-link-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--emerald-bright);
}

.topic-card:hover .topic-link-cta svg {
  transform: translateX(3px);
}

.topic-link-cta svg {
  transition: transform var(--transition-fast);
}

/* ==========================================================================
   E. LLAMADA A LA ACCIÓN (BANNER DE SUSCRIPCIÓN)
   ========================================================================== */

.cta-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, #111827 48%, rgba(253, 188, 1, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.42);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.cta-pill {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(253, 188, 1, 0.14);
  border: 1px solid rgba(253, 188, 1, 0.35);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cta-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 1.78rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-primary);
}

.cta-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.btn-subscribe-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--emerald) 0%, #059669 100%);
  color: #03150e;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-subscribe-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

/* ==========================================================================
   F. PIE DE PÁGINA Y AVISO LEGAL
   ========================================================================== */

.site-footer {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand strong {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.86rem;
  color: var(--text-muted);
}

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

.footer-socials .social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-disclaimer {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
}

.disclaimer-lead {
  margin: 0 0 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.disclaimer-body {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-legal-links a,
.cookie-prefs-btn {
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.24);
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover,
.cookie-prefs-btn:hover {
  color: var(--emerald-bright);
}

/* ==========================================================================
   BANNER DE COOKIES Y MODAL LEGAL ACCESIBLE
   ========================================================================== */

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(13, 18, 28, 0.97);
  border: 1px solid var(--border-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.cookie-banner-text strong {
  color: var(--text-primary);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

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

.cookie-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.cookie-btn-accept {
  background: var(--emerald);
  border-color: transparent;
  color: #04140e;
}

.cookie-btn-accept:hover {
  background: var(--emerald-bright);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 20px;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #101624;
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
}

.modal-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-body p {
  margin: 0 0 12px;
}

.modal-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   DISEÑO RESPONSIVE (TABLET Y ESCRITORIO)
   ========================================================================== */

@media (min-width: 640px) {
  .page-shell {
    padding: 36px 24px 56px;
  }

  .header-socials {
    gap: 10px;
  }

  .social-icon-btn {
    width: 44px;
    height: 44px;
  }

  .channels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .channel-card--featured {
    grid-column: 1 / -1;
  }

  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 780px) {
  .brand-card {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 28px;
    padding: 32px 34px;
  }

  .brand-copy {
    align-items: flex-start;
  }

  .header-socials {
    justify-content: flex-start;
  }

  .latest-card {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    gap: 24px;
    padding: 20px;
  }

  .latest-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
  }

  .latest-body {
    min-width: 0;
    padding: 6px 8px 6px 0;
  }

  .btn-primary-yt {
    width: auto;
  }

  .topics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px 34px;
  }

  .cta-action-wrap {
    flex-shrink: 0;
  }

  .btn-subscribe-cta {
    width: auto;
    min-width: 250px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
