:root {
  --bg: #f7f8ff;
  --bg-soft: #eef2ff;
  --panel: rgba(255, 255, 255, .78);
  --panel-strong: rgba(255, 255, 255, .94);
  --border: rgba(72, 85, 126, .16);
  --border-strong: rgba(99, 102, 241, .35);
  --text: #172033;
  --muted: #5f6b85;
  --muted-2: #7b859b;
  --accent: #5b5ff4;
  --accent-2: #e84f95;
  --cyan: #0891b2;
  --green: #16a34a;
  --warning: #d97706;
  --shadow: 0 22px 70px rgba(38, 52, 91, .14);
  --soft-shadow: 0 12px 36px rgba(38, 52, 91, .10);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(91, 95, 244, .18), transparent 34%),
    radial-gradient(circle at 92% 5%, rgba(8, 145, 178, .16), transparent 31%),
    radial-gradient(circle at 50% 100%, rgba(232, 79, 149, .12), transparent 40%),
    linear-gradient(180deg, #f7f8ff 0%, #eef2ff 52%, #fff7fb 100%);
  overflow-x: hidden;
}

body.locked { overflow: hidden; }
a { color: inherit; }

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(247, 248, 255, .86);
  backdrop-filter: blur(18px);
}

.age-gate.hidden { display: none; }

.age-card {
  width: min(450px, 100%);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  text-align: center;
}

.age-badge {
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 24px;
  font-weight: 1000;
}

.age-card h2 { margin: 0 0 10px; font-size: 28px; color: var(--text); }
.age-card p { margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.age-card button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(91, 95, 244, .24);
}
.age-card a { display: inline-block; margin-top: 14px; color: var(--muted); font-size: 14px; }

.app-shell {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.hero {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  box-shadow: var(--soft-shadow);
}


.top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(91, 95, 244, .18);
  border-radius: 999px;
  background: rgba(255,255,255,.80);
  color: #3538a8;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(38, 52, 91, .07);
}

.language-picker select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.language-picker select option {
  color: #172033;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
  padding: 7px 11px;
  border: 1px solid rgba(91, 95, 244, .18);
  border-radius: 999px;
  background: rgba(91, 95, 244, .08);
  color: #3538a8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(22,163,74,.13);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: .98;
  letter-spacing: -1.8px;
  color: var(--text);
}

h1 span {
  background: linear-gradient(90deg, #24245a, #5b5ff4, #e84f95);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  margin: 9px 0 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.52;
  font-size: 15px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(91, 95, 244, .08);
  color: #424b78;
  font-size: 12px;
  font-weight: 850;
}

.hero-stats strong { color: #222a46; }

.main-cta,
.card-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 17px;
  border: 1px solid rgba(91, 95, 244, .18);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 38px rgba(91, 95, 244, .22);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}

.main-cta:hover,
.card-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 20px 46px rgba(91, 95, 244, .30);
}

.tools {
  display: grid;
  gap: 12px;
  margin: 16px 0 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 8px 28px rgba(38, 52, 91, .07);
}

.search-wrap { position: relative; }
.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  fill: rgba(95, 107, 133, .75);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  font-size: 16px;
  padding: 0 16px 0 43px;
}

.search-wrap input::placeholder { color: rgba(95, 107, 133, .70); }
.search-wrap input:focus { border-color: rgba(91,95,244,.48); box-shadow: 0 0 0 4px rgba(91,95,244,.12); }

.filters {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #303954;
  background: rgba(255, 255, 255, .86);
  padding: 10px 13px;
  font-weight: 950;
  font-size: 13px;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.filter-chip:hover,
.filter-chip.active {
  transform: translateY(-1px);
  border-color: rgba(91,95,244,.38);
  background: rgba(91,95,244,.11);
  color: #292d91;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 14px 2px 14px;
  color: var(--muted);
  font-size: 14px;
}
.summary-row strong { color: var(--text); }

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

.channel-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--soft-shadow);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.channel-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: #fff;
  box-shadow: var(--shadow);
}

.cover {
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 25% 10%, rgba(255,255,255,.52), transparent 32%),
    linear-gradient(135deg, rgba(91,95,244,.75), rgba(232,79,149,.44), rgba(8,145,178,.30));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cover-photo {
  position: relative;
  z-index: 2;
  width: 1px;
  height: 1px;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(28,32,58,.22));
}

.cover-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 24px;
  background: rgba(255,255,255,.30);
  backdrop-filter: blur(12px);
  font-size: 38px;
  box-shadow: 0 18px 40px rgba(38, 52, 91, .18);
}

.category-badge,
.featured-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.40);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.62);
  color: #24314e;
  font-size: 11px;
  font-weight: 950;
}
.category-badge { left: 12px; }
.featured-badge { right: 12px; color: #9a5a00; background: rgba(255, 245, 204, .72); }

.card-body { padding: 15px; }
.card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.card-title-row h2 { margin: 0; font-size: 19px; line-height: 1.12; letter-spacing: -.4px; color: var(--text); }
.rating { flex: 0 0 auto; color: #b7791f; font-size: 12px; font-weight: 950; }
.description { min-height: 66px; margin: 0 0 13px; color: var(--muted); font-size: 14px; line-height: 1.46; }
.meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.meta span { display: inline-flex; align-items: center; padding: 6px 8px; border-radius: 999px; background: rgba(91,95,244,.08); color: #4c5878; font-size: 11px; font-weight: 850; }
.card-link { width: 100%; min-height: 44px; padding: 11px 14px; }

.empty-state,
.notice {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,.70);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  box-shadow: 0 8px 28px rgba(38, 52, 91, .06);
}
.empty-state h2 { margin: 0 0 8px; color: var(--text); }
.notice { text-align: left; border-color: rgba(217,119,6,.24); background: rgba(255, 251, 235, .82); color: #6f4b12; line-height: 1.55; font-size: 13px; }
.notice strong { color: #8a4f00; }

.site-footer {
  width: min(var(--max), calc(100% - 28px));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,.70);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 960px) {
  .channels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .top-actions { align-items: stretch; }
  .eyebrow, .language-picker { width: 100%; justify-content: center; }
  .language-picker select { flex: 1; text-align: center; }
  .app-shell { width: min(100% - 18px, var(--max)); padding-top: 10px; }
  .hero { position: relative; top: 0; grid-template-columns: 1fr; border-radius: 22px; gap: 10px; }
  h1 { font-size: 31px; letter-spacing: -1px; }
  .hero-copy { display: none; }
  .hero-stats { margin-top: 10px; }
  .main-cta { width: 100%; min-height: 42px; }
  .tools { padding: 10px; border-radius: 20px; }
  .search-wrap input { height: 46px; font-size: 14px; }
  .summary-row { font-size: 13px; }
  .channels-grid { grid-template-columns: 1fr; gap: 12px; }
  .channel-card { display: grid; grid-template-columns: 116px 1fr; min-height: 160px; }
  .cover { height: 100%; min-height: 160px; }
  .cover-icon { width: 58px; height: 58px; border-radius: 18px; font-size: 30px; }
  .card-body { padding: 12px; }
  .card-title-row h2 { font-size: 16px; }
  .rating { font-size: 11px; }
  .description { min-height: auto; font-size: 13px; line-height: 1.35; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .meta { margin-bottom: 10px; gap: 5px; }
  .meta span { font-size: 10px; padding: 5px 7px; }
  .card-link { min-height: 38px; font-size: 13px; }
  .category-badge, .featured-badge { font-size: 10px; padding: 6px 8px; }
  .featured-badge { display: none; }
  .site-footer { flex-direction: column; text-align: center; }
}


.channel-number {
  position: absolute;
  top: 14px;
  left: 14px;
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(91, 95, 244, .24);
  color: var(--accent);
  font-weight: 1000;
  box-shadow: 0 10px 28px rgba(38, 52, 91, .16);
  z-index: 2;
}

.card-visual {
  position: relative;
}


/* Banner inferior para promocionar el bot */
.bot-banner {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 80;
  width: min(780px, calc(100% - 24px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(91, 95, 244, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 60px rgba(38, 52, 91, .20);
  backdrop-filter: blur(16px);
}

.bot-banner.hidden {
  display: none;
}

.bot-banner-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(91, 95, 244, .22);
}

.bot-banner-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bot-banner-text strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.15;
}

.bot-banner-text span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bot-banner-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(91, 95, 244, .20);
  transition: transform .18s ease, filter .18s ease;
}

.bot-banner-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.bot-banner-close {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 32, 51, .08);
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.bot-banner-close:hover {
  background: rgba(23, 32, 51, .12);
  color: var(--text);
}

@media (max-width: 640px) {
  .bot-banner {
    bottom: 10px;
    grid-template-columns: auto 1fr auto;
    border-radius: 22px;
    padding: 10px;
    gap: 9px;
  }

  .bot-banner-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .bot-banner-text strong {
    font-size: 13px;
  }

  .bot-banner-text span {
    display: none;
  }

  .bot-banner-cta {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .bot-banner-close {
    position: absolute;
    top: -10px;
    right: -5px;
    width: 28px;
    height: 28px;
    font-size: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 18px rgba(38, 52, 91, .16);
  }
}

/* SEO content blocks */
.internal-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.internal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #27324f;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.internal-links a:hover {
  border-color: var(--border-strong);
  color: #2f31a6;
}
.seo-content {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(255,255,255,.82);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 8px 28px rgba(38, 52, 91, .06);
  color: var(--muted);
  line-height: 1.65;
}
.seo-content h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.8px;
}
.seo-content h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
}
.seo-content p { margin: 0 0 14px; }
.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 16px;
}
.seo-grid article {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(247,248,255,.85);
  padding: 16px;
}
.seo-grid a, .category-page a {
  color: #3b3dd7;
  font-weight: 900;
  text-decoration: none;
}
.faq-section details {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.faq-section summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 950;
}
.category-page {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto 28px;
}
.breadcrumbs {
  margin: 18px 0;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumbs a { color: #3b3dd7; font-weight: 900; text-decoration: none; }
.category-hero {
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255,255,255,.86);
  padding: clamp(22px, 5vw, 44px);
  box-shadow: var(--soft-shadow);
}
.category-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -1.8px;
  color: var(--text);
}
.category-hero p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 820px;
}
.static-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin-top: 20px;
}
.static-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.9);
  box-shadow: var(--soft-shadow);
}
.static-cover {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.static-card-body { padding: 15px; }
.static-card h2 { margin: 0 0 8px; font-size: 19px; color: var(--text); }
.static-card p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.static-card .card-link { margin-top: 10px; }
@media (max-width: 760px) {
  .seo-grid, .static-grid { grid-template-columns: 1fr; }
}
