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

/* ── Skip link (accesibilidad / teclado) ───────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --text: #f0ece4;
  --accent: #ff0100;
  --accent-2: #ff0100;
  --gap: 3px;
  /* Zonas táctiles mínimas (WCAG 2.5.5) */
  --touch-min: 44px;
}

html { background: var(--bg); }
html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

header {
  position: relative;
  top: auto;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-text {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 1;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Focus visible global (WCAG 2.4.7) ────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Quitamos el outline por defecto solo cuando hay :focus-visible */
:focus:not(:focus-visible) { outline: none; }

.sources-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #ddd;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  /* Zona táctil mínima */
  min-height: var(--touch-min);
  padding: 0 0.9rem;
  font-family: inherit;
  font-weight: inherit;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.sources-btn:hover,
.sources-btn.active {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,1,0,0.6);
  color: #ff0100;
  box-shadow: 0 0 12px rgba(255,1,0,0.15);
}
.podcast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.podcast-btn:hover {
  border-color: rgba(255,1,0,0.6);
  color: #ff0100;
  box-shadow: 0 0 12px rgba(255,1,0,0.15);
}
.podcast-btn.active {
  border-color: #ff0100;
  color: #ff0100;
  background: rgba(255, 1, 0, 0.08);
  box-shadow: 0 0 14px rgba(255,1,0,0.2);
}
.sources-btn.active #sources-btn-count {
  font-size: 1.5em;
  font-weight: 700;
}

#sources-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 1rem;
  z-index: 60;
  min-width: 250px;
  background: #171717;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  /* Animación */
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: top right;
  transition:
    opacity 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
#sources-panel.hide {
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0s 0.15s;
}

.source-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ccc;
  cursor: pointer;
  border-radius: 4px;
}
.source-row:hover { background: rgba(255,255,255,0.05); }
.source-row input {
  accent-color: #ff0100;
  cursor: pointer;
}
.source-row .src-count {
  margin-left: auto;
  opacity: 0.45;
  font-variant-numeric: tabular-nums;
}
.source-row.all {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  margin-bottom: 0.2rem;
  padding-bottom: 0.6rem;
}

#loader {
  text-align: center;
  padding: 4rem 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.2;
}

#loader.hide { display: none; }



.card {
  position: relative;
  background: var(--surface);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  will-change: transform;
  --rx: 0deg;
  --ry: 0deg;
  --tx: 0px;
  --ty: 0px;
}

.card:hover {
  z-index: 2;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.75),
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1.5px rgba(255, 1, 0, 0.7),
    0 0 40px rgba(255, 1, 0, 0.25),
    inset 0 0 0 1px rgba(255, 1, 0, 0.3);
}

.card.is-tilting {
  z-index: 2;
  transition:
    box-shadow 0.4s ease,
    z-index 0s;
  transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px) scale(1.03);
}

.card.tall { aspect-ratio: 3 / 4; }
.card.wide { aspect-ratio: 16 / 9; }
.card.square { aspect-ratio: 1 / 1; }

.card-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease;
  opacity: 0;
  transform-origin: center center;
}

.card-image.loaded { opacity: 1; }

.card:hover .card-image.loaded {
  transform: scale(1.06) translate(calc(var(--tx) * 0.4px), calc(var(--ty) * 0.4px));
}

.card.is-tilting .card-image.loaded {
  transform: scale(1.08) translate(calc(var(--tx) * -0.8px), calc(var(--ty) * -0.8px));
  transition-duration: 0.15s;
}

.card-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.card:hover .card-overlay { opacity: 1; }

.card-overlay.color {
  background: linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(255,1,0,0.22) 60%, rgba(200,0,0,0.45) 100%);
}

.card-skeleton {
  position: absolute;
  inset: 0;
  background: var(--surface);
}

.card-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 2rem 1.5rem 1.2rem;
  pointer-events: none;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  opacity: 0;
}

.card:hover .card-info {
  transform: translateY(0);
  opacity: 1;
}

.card-source {
  display: inline-block;
  background: #d0d0d0; color: #000;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: clamp(0.7rem, 1.2vw, 0.95rem);
  font-weight: 400;
  line-height: 1.3;
}

.card-title a {
  display: inline;
  background: #d0d0d0; color: #000;
  text-decoration: none;
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background 0.2s;
}

.card-title a:hover { background: #e0e0e0; }

.card-meta {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
}

.card:hover .card-meta { opacity: 1; }


.card-date {
  background: #d0d0d0; color: #000;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  align-self: center;
}

/* MODAL */
#modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
}

#modal.hide { display: none; }

#modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
}

#modal-panel {
  position: relative;
  width: 90%; max-width: 760px;
  max-height: 90vh; overflow-y: auto;
  background: #111;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  animation: modalIn 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
#modal-panel::-webkit-scrollbar { width: 5px; }
#modal-panel::-webkit-scrollbar-track { background: transparent; }
#modal-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
#modal-panel::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-tools {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.modal-tool-btn {
  background: rgba(255,255,255,0.06);
  color: rgba(240,236,228,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: inherit;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-tool-btn:hover {
  background: rgba(255,1,0,0.15);
  border-color: rgba(255,1,0,0.5);
  color: #ff0100;
}

#modal-body { padding: 2.5rem 2.5rem 2rem; }

.modal-title-group { margin-bottom: 1.5rem; }

.modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #f0ece4;
}

.modal-meta {
  display: flex; gap: 0.5rem;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.3;
}

.modal-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(240,236,228,0.85);
}

.modal-content p, .modal-article-content p { margin-bottom: 1.2rem; }

.modal-content p:last-child { margin-bottom: 0; }

.modal-content strong { color: #f0ece4; font-weight: 600; }

.modal-content em { color: rgba(240,236,228,0.7); }

.modal-swan-thumb {
  max-width: 100%; height: auto;
  display: block; margin: 1.5rem 0;
  border-radius: 2px;
}

.modal-content img, .modal-article-content img {
  max-width: 100%; height: auto;
  display: block; margin: 1.5rem 0;
  border-radius: 2px;
}

.modal-content figure, .modal-article-content figure { margin: 1.5rem 0; }

.modal-content figcaption, .modal-article-content figcaption {
  font-size: 0.7rem;
  opacity: 0.4;
  margin-top: 0.5rem;
}

.modal-content blockquote, .modal-article-content blockquote {
  border-left: 2px solid rgba(255,1,0,0.35);
  padding-left: 1.2rem;
  margin: 1.2rem 0;
  opacity: 0.7;
  font-style: italic;
}

.modal-content a, .modal-article-content a {
  background: #d0d0d0; color: #000;
  padding: 0.05rem 0.35rem; border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}
.modal-content a:hover, .modal-article-content a:hover {
  background: #e0e0e0;
}

.modal-content iframe, .modal-article-content iframe {
  max-width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0;
}

.modal-content h1, .modal-article-content h1,
.modal-content h2, .modal-article-content h2,
.modal-content h3, .modal-article-content h3,
.modal-content h4, .modal-article-content h4,
.modal-content h5, .modal-article-content h5 {
  font-weight: 400;
  margin: 1.5rem 0 0.8rem;
  color: var(--text);
}

.modal-footer {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-original {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,1,0,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.modal-original:hover { color: rgba(255,1,0,1); }

/* GALLERY */
.modal-gallery {
  display: flex; flex-direction: column;
  height: 100%; min-height: 50vh;
}

.gallery-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}

.gallery-back {
  background: none; border: none;
  color: rgba(240,236,228,0.4);
  font-family: inherit; font-size: 0.55rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0; cursor: pointer;
}

.gallery-back:hover { color: rgba(240,236,228,0.8); }

.gallery-counter {
  font-size: 0.55rem; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.3;
}

.gallery-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex: 1;
}

.gallery-nav {
  position: absolute; z-index: 2;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); border: none;
  color: rgba(255,255,255,0.6); font-size: 1.5rem;
  width: 2.5rem; height: 2.5rem;
  border-radius: 2px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.gallery-nav:hover { background: rgba(0,0,0,0.8); color: #fff; }

.gallery-prev { left: 0.5rem; }
.gallery-next { right: 0.5rem; }

.gallery-frame {
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 60vh;
  background: rgba(0,0,0,0.3);
  border-radius: 2px;
  overflow: hidden;
}

.gallery-img {
  max-width: 100%; max-height: 75vh;
  width: auto; height: auto;
  display: block; object-fit: contain;
}

.gallery-caption {
  font-size: 0.7rem;
  color: rgba(240,236,228,0.4);
  text-align: center;
  padding: 0.8rem 1rem 0.5rem;
  line-height: 1.4;
}

footer {
  max-width: 1600px;
  margin: 3rem auto 4rem;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.15;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE + ACCESIBILIDAD
   ════════════════════════════════════════════════════════ */

/* ── Grid fluido ───────────────────────────────────────── */
#entries {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--gap);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--gap);
}

/* ── Tablet (≤900px) ───────────────────────────────────── */
@media (max-width: 900px) {
  #entries {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-inner { padding: 0.75rem 1.2rem; }
  .logo-text { font-size: 1.35rem; }
}

/* ── Móvil (≤600px) ────────────────────────────────────── */
@media (max-width: 600px) {
  /* Header */
  .header-inner {
    padding: 0 1rem;
    height: 56px;
  }
  .logo-text { font-size: 1.15rem; }

  /* Botones: más grandes para touch */
  .sources-btn {
    font-size: 0.65rem;
    padding: 0 0.7rem;
    min-height: var(--touch-min);
  }

  /* Grid: 1 columna */
  #entries {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 2px;
  }

  /* Cards: siempre mostrar la info (sin hover en touch) */
  .card { aspect-ratio: 16 / 9; }
  .card.tall { aspect-ratio: 4 / 3; }

  .card-info {
    opacity: 1 !important;
    transform: none !important;
    padding: 1.8rem 0.9rem 0.9rem;
  }
  .card-meta { opacity: 1 !important; }
  .card-overlay { opacity: 1 !important; }

  /* Sin tilt 3D en táctil */
  .card, .card.is-tilting {
    transform: none !important;
    box-shadow: none !important;
  }

  /* Panel de fuentes: ancho completo */
  #sources-panel {
    position: fixed;
    top: 56px;
    left: 0; right: 0;
    width: 100%;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    border-radius: 0;
    border-left: none;
    border-right: none;
    transform-origin: top center;
  }
  .source-row {
    min-height: var(--touch-min);
    font-size: 0.8rem;
    padding: 0 0.8rem;
  }
  .source-row input {
    width: 20px;
    height: 20px;
  }

  /* Modal: pantalla completa */
  #modal-panel {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }
  #modal-body { padding: 1.2rem 1.1rem; }
  .modal-title { font-size: 1.1rem; }
  .modal-footer { flex-direction: column; gap: 0.8rem; align-items: flex-start; }

  /* Player bar: compacto */
  #podcast-player-bar {
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    transform: none;
    padding: 0.5rem 0.8rem;
  }
  #bar-img { width: 36px; height: 36px; }
  #bar-title { font-size: 0.7rem; }
  .podcast-player .podcast-time { display: none; }
  .podcast-player input[type="range"] { display: none; }

  /* Podcast del día: apilado y compacto */
  #podcast-hero { top: 0; padding: 0.5rem 2px; }
  .podcast-hero-inner {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin: 0;
    padding: 0.8rem;
  }
  #podcast-hero-img { width: 100%; height: 160px; }
  #podcast-hero-title { font-size: 1.05rem; }

  /* Footer */
  footer { padding: 0 1rem; margin-bottom: 5rem; }
}

/* ── prefers-reduced-motion (accesibilidad) ────────────── */
@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;
  }
  .card, .card.is-tilting {
    transform: none !important;
  }
  .card-image.loaded {
    transform: none !important;
  }
}

/* ── Tamaño de texto mínimo legible (WCAG 1.4.4) ─────── */
.card-source,
.card-meta,
.card-date,
.gallery-counter,
.gallery-back {
  font-size: max(0.5rem, 11px);
}

/* ── Áreas táctiles mínimas en botones del modal ─────── */
.modal-tool-btn,
.gallery-nav,
.gallery-back,
.modal-original {
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* DATE PANEL */
#date-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 1rem;
  z-index: 60;
  min-width: 220px;
  background: #171717;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: top right;
  transition:
    opacity 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
#date-panel.hide {
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0s 0.15s;
}

.date-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--touch-min);
  padding: 0 0.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ccc;
  cursor: pointer;
  border-radius: 4px;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.date-row:hover { background: rgba(255,255,255,0.05); }
.date-row.active {
  color: #ff0100;
}

/* Grid de meses (12 meses del último año) */
.date-months-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0.3rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin: 0.2rem 0;
}
.date-month-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(200,200,200,0.7);
  cursor: pointer;
  padding: 0.35rem 0.2rem;
  border-radius: 3px;
  text-align: center;
  transition: background 0.15s, color 0.15s;
  min-height: 32px;
}
.date-month-btn:hover { background: rgba(255,255,255,0.07); color: #fff; }
.date-month-btn.active {
  background: rgba(255,1,0,0.15);
  color: #ff0100;
}
.date-month-btn.has-entries { color: rgba(220,220,220,0.9); }
.date-month-btn.empty { opacity: 0.3; cursor: default; }

@media (max-width: 600px) {
  #date-panel {
    position: fixed;
    top: 56px;
    left: 0; right: 0;
    width: 100%;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    border-radius: 0;
    transform-origin: top center;
  }
  .date-months-grid { grid-template-columns: repeat(4, 1fr); }
}

/* PHOTOGRAPHERS */
.modal-photographers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3em;
  font-size: 0.55rem;
  line-height: 1;
  color: rgba(240,236,228,0.25);
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}
.photographer-label {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 0.5em;
  color: rgba(240,236,228,0.2);
}
.photographer-link {
  color: rgba(255,1,0,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.photographer-link:hover {
  color: rgba(255,1,0,1);
}
.modal-links {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.modal-link-tag {
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 0.2s;
  color: #fff;
}
.modal-link-tag:hover {
  opacity: 0.7;
}
.link-instagram { background: #833ab4; }
.link-youtube { background: #c00; }
.link-x { background: #1a1a1a; }
.link-vimeo { background: #1ab7ea; }
.link-flickr { background: #f40083; }
.link-tiktok { background: #111; }
.link-facebook { background: #1877f2; }
.link-bluesky { background: #1185fe; }
.link-threads { background: #101010; }
.link-web { background: #d0d0d0; color: #000; }
.link-web:hover { background: #e0e0e0; }

/* PODCAST CARD */
.podcast-card {
  grid-column: span 1;
  background: linear-gradient(180deg, #141414, #0f0f0f);
  border: 1px solid rgba(255,1,0,0.22);
  border-left: 3px solid #ff0100;
  border-radius: 0;
}

.podcast-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  height: 100%;
}

.podcast-art {
  height: 180px;
  min-height: 180px;
  overflow: hidden;
  background: #0a0a0a;
}
.podcast-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.podcast-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.8rem 1rem; background: #0a0a0a; position: relative; }
.podcast-body::before { content: ''; position: absolute; top: 50%; left: 20%; right: 20%; height: 60px; transform: translateY(-50%); background: radial-gradient(ellipse at center, rgba(255,1,0,0.06) 0%, transparent 70%); pointer-events: none; }

.podcast-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff0100;
}
.podcast-dot {
  width: 6px;
  height: 6px;
  background: #ff0100;
}

.podcast-title {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.podcast-context {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0.2rem 0 0.4rem;
  color: rgba(240,236,228,0.85);
}

.podcast-player {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 40px;
  margin-top: auto;
}

.podcast-player button {
  background: none;
  border: 1px solid rgba(255,1,0,0.5);
  color: #ff0100;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.podcast-player button:hover {
  background: #ff0100;
  color: #fff;
}

.podcast-player .podcast-progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.15);
  position: relative;
  cursor: pointer;
}
.podcast-player .podcast-progress-fill {
  height: 100%;
  background: #ff0100;
  width: 0%;
  pointer-events: none;
}

.podcast-player .podcast-time {
  font-size: 0.4rem;
  letter-spacing: 0.06em;
  color: rgba(240,236,228,0.5);
  min-width: 2.8rem;
  text-align: center;
  flex-shrink: 0;
}

.podcast-player input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  outline: none;
  flex-shrink: 0;
}
.podcast-player input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  background: #ff0100;
  cursor: pointer;
}
.podcast-player input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: #ff0100;
  border: none;
  cursor: pointer;
}
.podcast-player input[type="range"]::-moz-range-track {
  background: rgba(255,255,255,0.15);
  height: 3px;
}

.podcast-meta {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,236,228,0.4);
}
.podcast-meta a { color: rgba(255,1,0,0.8); text-decoration: none; }
.podcast-meta a:hover { color: #ff0100; }
.podcast-ai { color: rgba(240,236,228,0.25); font-style: italic; }

@media (max-width: 720px) {
  .podcast-player { height: 32px; }
  .podcast-player button { width: 30px; height: 30px; font-size: 0.6rem; }
  .podcast-player input[type="range"] { width: 40px; }
}

/* PODCAST DEL DÍA (portada y episodios) */
#podcast-hero {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.75rem var(--gap);
}
#podcast-hero.hide { display: none; }
.podcast-hero-inner {
  display: grid;
  grid-template-columns: 120px 1fr minmax(300px, 460px);
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0.9rem 1.2rem;
  background: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255,1,0,0.22);
  border-left: 3px solid #ff0100;
}
#podcast-hero-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
}
.podcast-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff0100;
}
#podcast-hero-title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0.35rem 0 0.5rem;
}
.podcast-hero-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,236,228,0.4);
}
.podcast-hero-meta a { color: rgba(255,1,0,0.8); text-decoration: none; }
.podcast-hero-meta a:hover { color: #ff0100; }
#podcast-hero-player {
  margin-top: 0;
}

/* FLOATING PLAYER BAR (OPTION 3) */
#podcast-player-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  max-width: 850px;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 1, 0, 0.35);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
}
#podcast-player-bar.hide {
  display: none;
}
.bar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#bar-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 auto;
}
.bar-info {
  flex: 1;
  min-width: 0;
}
#bar-badge {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff0100;
  margin-bottom: 0.1rem;
}
#bar-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#bar-player {
  flex: 1.5;
  margin-left: 0.5rem;
}
#bar-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: color 0.15s;
}
#bar-close:hover {
  color: #ff0100;
}

/* ─── BUSCADOR EN CABECERA ─────────────────────────────────────────────────── */
.search-container {
  display: flex;
  align-items: center;
  position: relative;
}
#search-input-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  min-height: var(--touch-min);
  padding: 0 0.9rem;
  transition: all 0.2s ease;
}
#search-input-wrapper:hover {
  border-color: rgba(255, 1, 0, 0.6);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 12px rgba(255, 1, 0, 0.15);
}
#search-input-wrapper:focus-within {
  border-color: #ff0100;
  background: rgba(255, 1, 0, 0.08);
  box-shadow: 0 0 14px rgba(255, 1, 0, 0.2);
}
#search-input {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0;
  width: 220px;
  outline: none;
  transition: width 0.25s ease;
}
#search-input::placeholder {
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.6rem;
}
#search-input:focus {
  width: 280px;
}
#search-clear {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 0.2rem;
  margin-left: 0.3rem;
  display: none;
}
#search-clear.visible {
  display: inline-block;
}
#search-clear:hover {
  color: #ff0100;
}

/* ─── BOTÓN DISPARADOR ESTENOPO (SUPERIOR DERECHO · CÍRCULO A PASTILLA) ─────── */
#chat-trigger-btn {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(14, 15, 18, 0.94);
  border: 1px solid rgba(255, 1, 0, 0.4);
  color: var(--text);
  height: 40px;
  width: 40px;
  border-radius: 50%;
  padding: 0;
  justify-content: flex-start;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 1, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: width 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), border-radius 0.3s ease, padding 0.3s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
  font-family: inherit;
  overflow: hidden;
  white-space: nowrap;
}
#chat-trigger-btn .estenopo-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  height: 38px;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
#chat-trigger-btn .estenopo-cover-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 1, 0, 0.5));
  display: block;
}
#chat-trigger-btn .chat-btn-text {
  max-width: 0;
  opacity: 0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f1f5f9;
  transition: max-width 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease, transform 0.2s ease;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-4px);
}
#chat-trigger-btn:hover {
  width: auto;
  padding: 0 1.1rem 0 0.15rem;
  border-radius: 22px;
  border-color: #ff0100;
  background: rgba(20, 21, 26, 0.98);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.85), 0 0 24px rgba(255, 1, 0, 0.45);
}
#chat-trigger-btn:hover .estenopo-logo-wrapper {
  transform: scale(0.95);
}
#chat-trigger-btn:hover .chat-btn-text {
  max-width: 260px;
  opacity: 1;
  transform: translateX(0);
}
#chat-trigger-btn.active {
  background: rgba(255, 1, 0, 0.15);
  color: #fff;
  border-color: #ff0100;
  width: auto;
  padding: 0 1.1rem 0 0.15rem;
  border-radius: 22px;
}
#chat-trigger-btn.active .chat-btn-text {
  max-width: 260px;
  opacity: 1;
  color: #fff;
  transform: translateX(0);
}
@media (max-width: 768px) {
  #chat-trigger-btn {
    top: 0.65rem;
    right: 0.75rem;
  }
}

/* ── Panel Lateral Vertical Estenopo (Inteligencia Visual) ──────────────────── */
#chat-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 50vw;
  min-width: 480px;
  max-width: 95vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(13, 14, 18, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: none;
  border-radius: 0;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 1, 0, 0.08);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.25s ease;
}
#chat-drawer.expanded {
  width: 75vw;
  max-width: 95vw;
}
#chat-drawer.hide {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.chat-drag-handle {
  display: none;
}

/* Intro Grid de Estenopo (Guía de Uso con Códigos de Color Semitransparentes) */
.estenopo-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.8rem;
}
@media (max-width: 980px) {
  .estenopo-intro-grid {
    grid-template-columns: 1fr;
  }
}
.estenopo-intro-card {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.22s ease;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}
.estenopo-intro-card:focus {
  outline: 1px solid rgba(255, 255, 255, 0.3);
}
.estenopo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.1rem;
}
.estenopo-card-action {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.02em;
}
.estenopo-intro-card:hover .estenopo-card-action {
  opacity: 1;
  transform: translateX(2px);
}
.estenopo-intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  opacity: 0.8;
  transition: opacity 0.2s ease, width 0.2s ease;
}
.estenopo-intro-card:hover::before {
  opacity: 1;
  width: 4px;
}
.estenopo-intro-card:hover {
  transform: translateY(-2px);
}

/* 1. Atmósferas: Ámbar / Dorado */
.estenopo-intro-card.card-atmosphere {
  background: rgba(245, 158, 11, 0.035);
  border-color: rgba(245, 158, 11, 0.16);
}
.estenopo-intro-card.card-atmosphere::before {
  background: #f59e0b;
}
.estenopo-intro-card.card-atmosphere:hover {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}
.estenopo-intro-card.card-atmosphere .estenopo-card-label {
  color: #fbbf24;
}

/* 2. Linajes: Violeta / Amatista */
.estenopo-intro-card.card-lineage {
  background: rgba(168, 85, 247, 0.035);
  border-color: rgba(168, 85, 247, 0.16);
}
.estenopo-intro-card.card-lineage::before {
  background: #a855f7;
}
.estenopo-intro-card.card-lineage:hover {
  background: rgba(168, 85, 247, 0.07);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.08);
}
.estenopo-intro-card.card-lineage .estenopo-card-label {
  color: #c084fc;
}

/* 3. Disparador Creativo: Carmín / Coral */
.estenopo-intro-card.card-spark {
  background: rgba(255, 68, 68, 0.035);
  border-color: rgba(255, 68, 68, 0.18);
}
.estenopo-intro-card.card-spark::before {
  background: #ff4444;
}
.estenopo-intro-card.card-spark:hover {
  background: rgba(255, 68, 68, 0.07);
  border-color: rgba(255, 68, 68, 0.4);
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.09);
}
.estenopo-intro-card.card-spark .estenopo-card-label {
  color: #ff6b6b;
}

/* 4. Constelaciones / Categorías: Esmeralda / Cian */
.estenopo-intro-card.card-taxonomy {
  background: rgba(20, 184, 166, 0.035);
  border-color: rgba(20, 184, 166, 0.16);
}
.estenopo-intro-card.card-taxonomy::before {
  background: #14b8a6;
}
.estenopo-intro-card.card-taxonomy:hover {
  background: rgba(20, 184, 166, 0.07);
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.08);
}
.estenopo-intro-card.card-taxonomy .estenopo-card-label {
  color: #2dd4bf;
}

.estenopo-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.1rem;
}
.estenopo-intro-card strong {
  font-size: 0.86rem;
  color: #f8fafc;
  font-weight: 600;
  line-height: 1.3;
}
.estenopo-intro-card p {
  font-size: 0.77rem;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}
.estenopo-intro-card p em {
  color: #cbd5e1;
  font-style: normal;
}
.estenopo-intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.gemini-badge-glow, .chat-badge-glow {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ff0100 0%, #ff7844 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.chat-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.chat-subtitle {
  font-size: 0.62rem;
  color: rgba(240, 236, 228, 0.55);
  letter-spacing: 0.02em;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.chat-tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}
.chat-tool-btn:hover {
  background: rgba(255, 1, 0, 0.2);
  border-color: #ff0100;
  color: #fff;
}

.chat-chips-scroll {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-chips-scroll::-webkit-scrollbar { display: none; }
.gemini-chip {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}
.gemini-chip:hover {
  background: rgba(255, 1, 0, 0.15);
  border-color: rgba(255, 1, 0, 0.5);
  color: #fff;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.chat-msg {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 100%;
  width: 100%;
}
.chat-msg.user {
  flex-direction: row-reverse;
}
.msg-avatar-gemini, .msg-avatar-estenopo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,1,0,0.25) 0%, rgba(245,158,11,0.25) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex: 0 0 auto;
}
.msg-avatar-user {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 1, 0, 0.2);
  border: 1px solid rgba(255, 1, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex: 0 0 auto;
}
.chat-msg .msg-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #f1f5f9;
  font-size: 0.86rem;
  line-height: 1.5;
  flex: 1;
}
.chat-msg.user .msg-content {
  background: rgba(255, 1, 0, 0.15);
  border-color: rgba(255, 1, 0, 0.4);
  color: #fff;
  flex: 0 1 auto;
  max-width: 85%;
}

.gemini-typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.82rem;
}
.sparkle-spin {
  display: inline-block;
  animation: spinSparkle 2s linear infinite;
}
@keyframes spinSparkle {
  0% { transform: rotate(0deg) scale(0.9); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(0.9); }
}

.gemini-lineage-banner {
  background: rgba(255, 1, 0, 0.08);
  border-left: 3px solid #ff0100;
  border-radius: 0 8px 8px 0;
  padding: 0.7rem 0.9rem;
  margin: 0.7rem 0 0.9rem;
}
.gemini-lineage-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ff6b4a;
}
.gemini-lineage-desc {
  font-size: 0.82rem;
  color: #e2e8f0;
  margin-top: 0.2rem;
  line-height: 1.4;
}

.gemini-section-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 0.85rem 0 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Lista de Enlaces Sombreados (Estilo Tarjeta Compacta Integrada al Fondo) ── */
.estenopo-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.4rem;
}
.estenopo-link-item {
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(255, 1, 0, 0.6);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.estenopo-link-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 1, 0, 0.4);
  border-left-color: #ff0100;
  transform: translateX(3px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.45);
}
.estenopo-link-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff6b4a;
}
.estenopo-link-author {
  color: #94a3b8;
  font-weight: 500;
  text-transform: none;
  font-style: italic;
}
.estenopo-link-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.estenopo-link-title:hover {
  color: #ff4444;
}
.estenopo-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0.25rem;
}
.estenopo-tag-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.estenopo-tag-badge:hover {
  background: rgba(255, 1, 0, 0.18);
  border-color: rgba(255, 1, 0, 0.5);
  color: #fff;
  transform: translateY(-1px);
}
.estenopo-tag-badge.matched {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.estenopo-link-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.15rem;
  align-items: center;
}
.estenopo-mini-btn {
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: inherit;
}
.estenopo-mini-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.estenopo-mini-btn.view {
  background: rgba(255, 1, 0, 0.14);
  border-color: rgba(255, 1, 0, 0.35);
  color: #ff6b4a;
}
.estenopo-mini-btn.view:hover {
  background: #ff0100;
  border-color: #ff0100;
  color: #fff;
}

/* Podcasts List Estilo Enlaces Sombreados */
.estenopo-podcasts-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.4rem;
}
.estenopo-podcast-item {
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid #60a5fa;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.estenopo-podcast-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(96, 165, 250, 0.4);
  border-left-color: #93c5fd;
  transform: translateX(3px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.45);
}
.estenopo-podcast-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.35;
}
.estenopo-podcast-meta {
  font-size: 0.62rem;
  color: #94a3b8;
}

/* Floating Input Row Estenopo */
.gemini-input-container {
  padding: 0.75rem 1.2rem;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.gemini-input-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: 0.2rem 0.5rem 0.2rem 0.9rem;
  transition: all 0.2s ease;
}
.gemini-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.09);
  border-color: #ff0100;
  box-shadow: 0 0 15px rgba(255, 1, 0, 0.2);
}
@keyframes estenopoInputPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 1, 0, 0.65); border-color: #ff0100; }
  70% { box-shadow: 0 0 0 8px rgba(255, 1, 0, 0); border-color: #ff0100; }
  100% { box-shadow: 0 0 0 0 rgba(255, 1, 0, 0); }
}
.gemini-input-wrapper.input-pulse {
  animation: estenopoInputPulse 0.5s ease-out;
  border-color: #ff0100;
}
.gemini-input-icon {
  font-size: 0.95rem;
  margin-right: 0.5rem;
  opacity: 0.8;
}
#chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.55rem 0;
  outline: none;
  font-family: inherit;
}
#chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
#chat-send-btn {
  background: #ff0100;
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 0 0 auto;
}
#chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 1, 0, 0.6);
  opacity: 0.95;
}

@media (max-width: 720px) {
  #chat-trigger-btn { bottom: 1rem; right: 1rem; padding: 0.5rem 0.9rem; }
  .chat-btn-text { display: none; }
  #chat-drawer { width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; }
  #search-input-wrapper { padding: 0 0.5rem; }
  #search-input { width: 110px; }
  #search-input:focus { width: 150px; }
}

