/* =========================================================
   ESENCIA DE GRACIA
   Estética: fondo negro, foto de estudio a sangre, naranja
   como único acento. El neón vive DENTRO de la escena.
   ========================================================= */

:root {
  --black: #000000;
  --panel: #0d0d0d;
  --line: #232323;
  --white: #ffffff;
  --grey: #a8a29b;
  --grey-dim: #6f6a65;

  --orange: #f2a058;
  --orange-2: #e07f2e;
  --orange-soft: #f6b378;

  --neon: #63e3d2;
  --neon-glow: rgba(99, 227, 210, 0.75);
  --gold: #f0c96b;

  /* Celeste del botón de consultas. Va aparte del naranja a propósito:
     es la única cosa de la pantalla que pide que la toques, así que no
     tiene que confundirse con los botones de leer o ver el episodio. */
  --celeste: #2aa9ea;
  --celeste-2: #1489cf;
  --celeste-soft: #62c6f5;
  --celeste-glow: rgba(42, 169, 234, 0.85);

  --wood-1: #8a5f3a;
  --wood-2: #4e3320;
  --wood-3: #2a1a0f;

  /* Paleta de la cabecera, tomada del diseño original */
  --cream: #f8f8f0;
  --red: #d84028;
  --yellow: #efd83f;

  --font: "Poppins", -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-neon: "Monoton", cursive;

  --r-card: 12px;

  /* Margen lateral de la cabecera: lo comparten la barra y el hero, así el
     logo y el título grande arrancan siempre en la misma vertical. */
  --edge: clamp(22px, 5vw, 120px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* =========================================================
   BARRA SUPERIOR
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--black);
}
.topbar-inner {
  /* A todo lo ancho, con el mismo margen que el hero (5vw): así el logo
     queda a plomo con el título grande de abajo, en vez de arrancar
     centrado a 1240px y quedar despegado del borde. */
  padding: 10px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo y etiqueta van pegados, como una sola marca */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.logo-tag {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.logo-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 32%, #3d2a19, #150d06);
  border: 2px solid var(--gold);
  color: var(--gold);
  box-shadow: 0 0 14px rgba(240, 201, 107, 0.28);
}
.logo-badge svg { width: 17px; height: auto; }
.logo-img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, var(--orange-soft), var(--orange-2));
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.btn-subscribe:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-subscribe svg { width: 20px; height: 20px; }

/* Contador de visitas: misma píldora naranja que tenía "Suscribirse",
   más chica y sin hover, porque es un dato y no un botón. */
.views-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  background: linear-gradient(180deg, var(--orange-soft), var(--orange-2));
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.views-chip svg { width: 16px; height: 16px; opacity: 0.9; }
/* Ancho mínimo para que la píldora no salte cuando llega el número */
.views-n { min-width: 2ch; font-variant-numeric: tabular-nums; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(90px, 14vh, 150px) var(--edge) clamp(150px, 26vh, 260px);
}

/* Sin perspectiva acá: la foto es un retrato y rotarla deformaría la cara.
   Las variables quedan por si vuelve un fondo con líneas de fuga. */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 32%;   /* mantiene la cara dentro del recorte */
  z-index: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* la izquierda se cierra a negro: ahí apoya el título crema */
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 32%, rgba(0, 0, 0, 0) 62%),
    /* base oscura para la firma y el botón, y empalme con el fondo negro */
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.5) 78%, rgba(0, 0, 0, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  /* Tope en 54%: más ancho que eso y el título se metería sobre la cara */
  max-width: min(54%, 960px);
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(52px, 9.6vw, 152px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.hero-dot { color: var(--red); }

/* Pie del hero: firma a la izquierda, acciones a la derecha */
.hero-foot {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: clamp(26px, 8%, 74px);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.hero-eyebrow {
  margin: 0;
  max-width: 46ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(15px, 1.55vw, 22px);
  line-height: 1.45;
  color: var(--white);
  text-align: right;   /* la firma cuelga a la derecha, como en el diseño */
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* En pantalla angosta no entra la fila: se apila y se centra */
@media (max-width: 860px) {
  .hero { align-items: flex-start; }
  .hero-content { max-width: 100%; }
  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero-eyebrow { max-width: 100%; text-align: left; }
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: 999px;
  padding: 17px 38px;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(180deg, var(--orange-soft), var(--orange-2));
  box-shadow: 0 12px 34px -14px rgba(224, 127, 46, 0.9);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.btn-play:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-play svg { width: 19px; height: 19px; }

/* =========================================================
   LIBRO NUEVO
   ========================================================= */
.libro-nuevo {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.libro-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

/* Tapa dibujada con CSS: no hace falta una imagen y escala sin perder nitidez */
.libro-tapa {
  /* Tamaño del título de tapa. --tapa-t lo fija el largo del texto y
     --tapa-k lo reduce donde la tapa se muestra más chica (la biblioteca). */
  --tapa-t: 38px;
  --tapa-k: 1;

  display: flex;
  flex-direction: column;
  aspect-ratio: 2 / 3;
  /* Red de contención: pase lo que pase, nada se sale de la tapa. */
  overflow: hidden;
  padding: 34px 26px;
  border-radius: 4px 10px 10px 4px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.5) 0 9px, rgba(255,255,255,0.09) 9px 12px, transparent 12px),
    linear-gradient(160deg, #2c2723, #14110f);
  border: 1px solid #342d26;
  box-shadow: 18px 22px 46px -20px rgba(0, 0, 0, 0.95);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.libro-tapa:hover { transform: translateY(-5px); box-shadow: 22px 28px 54px -20px rgba(0,0,0,1); }
.libro-tapa-serie {
  margin-left: 14px;
  color: var(--yellow);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.libro-tapa-t {
  margin: auto 0 0 14px;
  font-family: var(--font-serif);
  font-size: calc(var(--tapa-t) * var(--tapa-k));
  font-weight: 700;
  line-height: 1.08;
  color: var(--cream);
  overflow-wrap: break-word;   /* una palabra larga se parte antes de desbordar */
  hyphens: auto;
}
/* Títulos largos: menos cuerpo para que entren completos */
.libro-tapa--media { --tapa-t: 27px; }
.libro-tapa--larga { --tapa-t: 20px; }
.libro-tapa-s {
  margin: 12px 0 0 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.3;
  color: #b9b2a6;
}
.libro-tapa-a {
  margin: 22px 0 0 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #8d8578;
}

.libro-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.libro-titulo {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.04;
  color: var(--cream);
}
.libro-texto {
  margin: 0 0 28px;
  max-width: 60ch;
  color: var(--grey);
  font-size: 16px;
  line-height: 1.7;
}
.libro-acciones {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
}
/* "Leer el libro" y "Infograma" van en columna, uno debajo del otro */
.libro-botones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Botón de texto: sin relleno ni contorno, subrayado al pasar. No compite
   con el botón principal que tiene justo encima. */
.btn-infografia {
  background: none;
  border: none;
  padding: 2px 0;
  color: var(--orange);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
.btn-infografia:hover { color: var(--orange-soft); text-decoration-thickness: 2px; }

/* ---------- Ventana de la infografía ---------- */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.94);
}
.info-modal[hidden] { display: none; }

.info-barra {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px var(--edge);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.info-t {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
}
.info-ayuda {
  margin-left: auto;
  color: var(--grey-dim);
  font-size: 12.5px;
}
.info-cerrar {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--white);
  font-size: 15px;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s;
}
.info-cerrar:hover { border-color: var(--orange); background: rgba(242, 160, 88, 0.12); }

.info-caja {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: auto;
}
.info-caja img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  border-radius: 6px;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
}
/* Ampliada: tamaño real y la caja se desplaza */
.info-caja.zoom { align-items: flex-start; justify-content: flex-start; }
.info-caja.zoom img {
  max-width: none;
  max-height: none;
  width: 1536px;
  cursor: zoom-out;
}

@media (max-width: 560px) {
  .info-barra { padding: 11px 14px; gap: 10px; }
  .info-t { font-size: 12px; }
  .info-ayuda { display: none; }
  .info-caja { padding: 10px; }
}

.libro-proximo { color: var(--grey-dim); font-size: 14px; }
.libro-proximo b { color: var(--grey); font-weight: 600; }

/* Botón secundario: contorno en vez de relleno, para no competir con
   "Leer el libro". Va al extremo derecho de la fila. */
.btn-libros {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.btn-libros svg { width: 17px; height: 17px; transition: transform 0.2s ease; }
.btn-libros:hover {
  border-color: var(--orange);
  background: rgba(242, 160, 88, 0.08);
  transform: translateY(-1px);
}
.btn-libros:hover svg { transform: translateX(3px); }
@media (max-width: 760px) { .btn-libros { margin-left: 0; } }

/* =========================================================
   BIBLIOTECA (libros.html)
   ========================================================= */
.bib { padding: 62px 0 90px; }
.bib-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 600;
}
.bib-titulo {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 700;
  line-height: 1.03;
  color: var(--cream);
}
.bib-cuenta { margin: 0 0 46px; color: var(--grey-dim); font-size: 14px; }

.bib-lista { display: grid; gap: 26px; }

/* Cada ficha: tapa a la izquierda, datos a la derecha */
.bib-item {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.bib-item:hover { border-color: #3a332b; transform: translateY(-3px); }
a.bib-item:hover .libro-tapa { transform: translateY(-4px); }
.bib-item--espera { opacity: 0.6; }

/* La tapa dentro de la ficha va más chica que en la portada: en vez de
   redefinir cada cuerpo, se reduce el factor y todo escala junto. */
.bib-item .libro-tapa { --tapa-k: 0.68; padding: 20px 15px; }
.bib-item .libro-tapa-serie { font-size: 7.5px; margin-left: 9px; line-height: 1.35; }
.bib-item .libro-tapa-t { margin-left: 9px; }
.bib-item .libro-tapa-s { font-size: 10.5px; margin: 7px 0 0 9px; }
.bib-item .libro-tapa-a { font-size: 8.5px; margin: 12px 0 0 9px; padding-top: 9px; }

.bib-info { display: block; }
.bib-estado {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.es-listo { background: rgba(216, 64, 40, 0.16); color: #f08c74; }
.es-espera { background: rgba(255, 255, 255, 0.07); color: var(--grey-dim); }

.bib-t {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--cream);
}
.bib-s {
  display: block;
  margin-top: 5px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--grey);
}
.bib-r {
  display: block;
  margin-top: 14px;
  max-width: 62ch;
  color: var(--grey);
  font-size: 15px;
  line-height: 1.65;
}
.bib-meta {
  display: block;
  margin-top: 14px;
  color: var(--grey-dim);
  font-size: 13px;
}
.bib-cta {
  display: inline-block;
  margin-top: 18px;
  color: var(--orange);
  font-size: 15px;
  font-weight: 600;
}
a.bib-item:hover .bib-cta { text-decoration: underline; }

.bib-nota {
  margin: 44px 0 0;
  max-width: 70ch;
  color: var(--grey-dim);
  font-size: 13px;
  line-height: 1.7;
}
.bib-vacio { color: var(--grey-dim); padding: 40px 0; }

@media (max-width: 700px) {
  .bib-item { grid-template-columns: 128px minmax(0, 1fr); gap: 20px; padding: 18px; }
}
/* En pantallas angostas la tapa dejaba menos de 180px para el texto y el
   título caía en siete líneas. Se reduce la tapa y se bajan los cuerpos. */
@media (max-width: 560px) {
  .bib { padding: 40px 0 60px; }
  .bib-cuenta { margin-bottom: 28px; }
  .bib-lista { gap: 18px; }
  .bib-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 15px;
    padding: 15px;
    align-items: start;
  }
  .bib-item .libro-tapa { --tapa-k: 0.5; padding: 13px 10px; }
  .bib-item .libro-tapa-serie { font-size: 6px; margin-left: 6px; }
  .bib-item .libro-tapa-t { margin-left: 6px; }
  .bib-item .libro-tapa-s { font-size: 8px; margin: 5px 0 0 6px; }
  .bib-item .libro-tapa-a { font-size: 6.5px; margin: 8px 0 0 6px; padding-top: 6px; }
  .bib-estado { margin-bottom: 10px; padding: 4px 9px; font-size: 9.5px; }
  .bib-t { font-size: 20px; }
  .bib-s { font-size: 14px; }
  .bib-r { margin-top: 10px; font-size: 13.5px; line-height: 1.55; }
  .bib-meta { margin-top: 10px; font-size: 12px; }
  .bib-cta { margin-top: 12px; font-size: 14px; }
}

@media (max-width: 760px) {
  .libro-grid { grid-template-columns: 1fr; gap: 30px; }
  .libro-tapa { max-width: 200px; }
}
/* En celular una tapa de 230px ocupaba 345px de alto: media pantalla sólo
   para la portada. Se achica y los botones pasan a ancho completo. */
@media (max-width: 560px) {
  .libro-nuevo { padding: 44px 0 40px; }
  .libro-grid { gap: 24px; }
  .libro-tapa { max-width: 148px; }
  .libro-texto { font-size: 15px; }
  .libro-acciones { gap: 14px; }
  .libro-acciones .btn-play,
  .btn-libros {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
    font-size: 15px;
  }
  .libro-proximo { font-size: 13px; order: 3; }
}

/* =========================================================
   PRESENTACIÓN DEL EPISODIO
   ========================================================= */
.intro { padding: 46px 0 10px; }
.intro-kicker {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 600;
}
.intro-title {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.intro-text {
  margin: 0;
  max-width: 780px;
  color: var(--grey);
  font-size: 16px;
}

/* =========================================================
   GRILLA DE EPISODIOS
   ========================================================= */
.episodes { padding: 66px 0 90px; }
.episodes-title {
  margin: 0 0 30px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 26px;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* Cada tarjeta es un enlace real: se puede abrir en pestaña nueva con el
   botón del medio y el teclado la enfoca sola. */
.card { display: block; cursor: pointer; }

/* Sello de la plataforma en la esquina de la miniatura */
.card-red {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Cuando no hay miniatura (TikTok e Instagram no la publican) */
.card-sinfoto {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #1d1a17, #0c0b0a);
  color: var(--grey-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #161616;
  transition: transform 0.25s ease;
}
.card:hover .card-thumb { transform: translateY(-4px); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover .card-thumb::after { opacity: 1; }
.card-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover .card-play { opacity: 1; }
.card-play span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--orange-soft), var(--orange-2));
  color: #fff;
}
.card-play svg { width: 20px; height: 20px; margin-left: 2px; }

.card-title {
  margin: 14px 0 2px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.card-meta { color: var(--grey-dim); font-size: 13px; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--grey-dim);
  font-size: 14px;
  padding: 56px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--r-card);
}

/* =========================================================
   CONSEJOS PARA EL DÍA
   ========================================================= */
/* Ahora va entre el libro y la presentación del episodio: lleva un filete
   abajo para separarse del bloque siguiente, que antes no hacía falta
   porque cerraba la página. */
.daily {
  padding: 58px 0 56px;
  border-bottom: 1px solid var(--line);
}
.daily-kicker {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 600;
}
.daily-title {
  margin: 0 0 34px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--cream);
}

/* El salmo va en cursiva con un filete al costado: se lee como cita y no
   se confunde con las declaraciones de abajo. */
.daily-verse {
  margin: 0 0 40px;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--red);
  max-width: 62ch;
}
.daily-verse p {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 1.62;
  color: #e8e4dc;
}
.daily-verse cite {
  color: var(--grey);
  font-size: 14px;
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.daily-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 62ch;
}
.daily-list li {
  position: relative;
  padding-left: 26px;
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
}
.daily-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

/* =========================================================
   SOBRE
   ========================================================= */
.about { padding: 20px 0 90px; }
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 46px;
  align-items: center;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }

.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  background: linear-gradient(160deg, #211611, #0e0b08);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-dim);
  font-size: 13px;
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-title {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.about-text { margin: 0; color: var(--grey); font-size: 16px; max-width: 620px; }

/* =========================================================
   PIE
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding: 28px 0 34px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--grey-dim);
  font-size: 13px;
}
/* Crédito del estudio: un tono más apagado que el copyright, para que se
   lea como firma y no compita con el nombre del sitio. */
.footer-by { color: var(--grey-dim); }

.footer-admin {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 12px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-admin:hover { color: var(--orange); border-color: var(--orange); }

/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */
.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.7);
  transition: transform 0.18s ease;
}
.whatsapp:hover { transform: scale(1.06); }
.whatsapp svg { width: 32px; height: 32px; }


/* =========================================================
   PANEL DE ADMINISTRACIÓN
   ========================================================= */
.admin-shell { min-height: 100vh; background: var(--black); color: var(--white); }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}
.admin-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }
.admin-main { max-width: 900px; margin: 0 auto; padding: 44px 24px 110px; }

.admin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  margin-bottom: 26px;
}
.admin-card h2 { margin: 0 0 4px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.hint { color: var(--grey-dim); font-size: 13px; margin: 0 0 20px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--grey); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.btn-solid {
  background: linear-gradient(180deg, var(--orange-soft), var(--orange-2));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 14px;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--grey);
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 14px;
}
.btn-danger { color: #e8724a; border-color: #402018; }

.admin-video-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.admin-video-row:last-child { border-bottom: none; }
.admin-video-row img { width: 88px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.admin-video-info { flex: 1; min-width: 0; }
.admin-video-info .t { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.admin-video-info .a { color: var(--grey-dim); font-size: 12px; }
.admin-video-actions { display: flex; gap: 8px; }
.admin-video-actions button {
  background: none;
  border: 1px solid var(--line);
  color: var(--grey);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
}

.login-box {
  max-width: 390px;
  margin: 80px auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
}
.login-box h1 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.error-msg { color: #e8724a; font-size: 13px; margin-top: 10px; min-height: 16px; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(180deg, var(--orange-soft), var(--orange-2));
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* =========================================================
   MÓVIL
   ========================================================= */
@media (max-width: 620px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: 78vh; padding: 80px var(--edge) 200px; }
  /* En vertical el encuadre se cierra sobre la cara, si no queda demasiado
     aire negro y el retrato se pierde. */
  .hero-photo { object-position: 74% 26%; }
  .logo-tag { font-size: 11px; }
  .btn-subscribe { padding: 10px 18px; font-size: 14px; }
  .views-chip { padding: 7px 13px; font-size: 12px; gap: 6px; }
  .views-chip svg { width: 14px; height: 14px; }
  /* Sin margen lateral la caja de login quedaba pegada a los bordes */
  .login-box { margin: 40px 18px; padding: 24px; }
  .admin-main { padding: 30px 18px 80px; }
}


/* =========================================================
   CONSULTAS — llamada en la portada
   ========================================================= */
.consulta {
  padding: 64px 0 72px;
  border-top: 1px solid var(--line);
}
.consulta-caja {
  max-width: 620px;
  text-align: center;
}
.consulta-kicker {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.consulta-titulo {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.consulta-texto {
  color: var(--grey);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 26px;
}
.consulta-nota {
  color: var(--grey-dim);
  font-size: 12.5px;
  margin: 16px 0 0;
}

/* =========================================================
   CONSULTAS — botón flotante
   ========================================================= */
/* Una columna en la esquina. Los botones no llevan posición propia:
   los ubica el contenedor, así se agregan o se sacan sin recalcular
   a mano a qué altura va cada uno. */
.flotantes {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
}

.flotante {
  position: relative;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.7);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.flotante:hover { transform: scale(1.06); filter: brightness(1.06); }
.flotante svg { width: 27px; height: 27px; }

.flotante-consulta {
  background: linear-gradient(180deg, var(--celeste-soft), var(--celeste-2));
  box-shadow: 0 10px 26px -8px var(--celeste-glow);
}

/* ---------- Que se mueva y llame la atención ----------
   Tres movimientos, todos en el lugar: un aro que sale del botón,
   la carita que se asoma y los ojos que parpadean.

   Los tres duran 6 segundos y están quietos la mayor parte del
   tiempo: se mueven en tandas cortas y después descansan. Un ícono
   que se sacude sin parar cansa a los tres minutos y se termina
   ignorando, que es lo contrario de lo que se busca.

   No hace falta apagarlos para quien pide menos movimiento: arriba
   de todo, este mismo archivo ya frena toda animación cuando el
   sistema tiene activado "reducir movimiento". */

/* El aro que se expande y se desvanece */
.flotante-consulta::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid var(--celeste);
  animation: flo-aro 6s ease-out infinite;
  pointer-events: none;
}
@keyframes flo-aro {
  0% { transform: scale(1); opacity: 0.6; }
  22% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* La carita se asoma: se agranda un poco y se balancea */
.flotante-consulta .cara {
  animation: flo-saludo 6s ease-in-out infinite;
}
@keyframes flo-saludo {
  0%, 58%, 100% { transform: rotate(0deg) scale(1); }
  63% { transform: rotate(-12deg) scale(1.12); }
  69% { transform: rotate(10deg) scale(1.12); }
  75% { transform: rotate(-7deg) scale(1.06); }
  81% { transform: rotate(4deg) scale(1.03); }
  87% { transform: rotate(0deg) scale(1); }
}

/* El parpadeo. transform-box: fill-box es lo que hace que el ojo se
   achate sobre sí mismo y no sobre la esquina del dibujo. */
.cara-ojo {
  transform-box: fill-box;
  transform-origin: center;
  animation: flo-parpadeo 6s ease-in-out infinite;
}
.cara-ojo--der { animation-delay: 0.04s; }
@keyframes flo-parpadeo {
  0%, 32%, 37%, 44%, 49%, 100% { transform: scaleY(1); }
  34.5%, 46.5% { transform: scaleY(0.12); }
}

/* Al pasar el mouse se queda quieta y sonriendo: ya llamó la atención,
   no tiene que seguir sacudiéndose encima. Se corta la animación y se
   fija la posición derecha; con "paused" quedaría congelada torcida,
   en la mitad del balanceo. */
.flotante-consulta:hover .cara {
  animation: none;
  transform: rotate(0deg) scale(1);
}
.flotante-consulta:hover .cara-ojo {
  animation: none;
  transform: scaleY(1);
}
.flotante-consulta:hover::before { animation: none; opacity: 0; }

/* Cartelito al costado, para que el ícono no quede a adivinar.
   Aparece al pasar el mouse o al llegar con el teclado. */
.flotante::after {
  content: attr(data-nombre);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.flotante:hover::after,
.flotante:focus-visible::after { opacity: 1; }

/* En el celular no hay "pasar por encima" y el cartel taparía media
   pantalla, así que ahí no va. */
@media (hover: none) {
  .flotante::after { display: none; }
}

@media (max-width: 560px) {
  .flotantes { right: 16px; bottom: 16px; }
  .flotante { width: 54px; height: 54px; }
  .flotante svg { width: 25px; height: 25px; }
}

/* =========================================================
   CONSULTAS — ventana emergente
   ========================================================= */
.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(3px);
  overflow-y: auto;
}
.cs-modal[hidden] { display: none; }

.cs-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  /* La ventana nunca tapa más alto que la pantalla: si el formulario
     no entra, se desplaza adentro y no arrastra el sitio de atrás. */
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 32px 30px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}

.cs-cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--line);
  color: var(--grey);
  font-size: 14px;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cs-cerrar:hover {
  border-color: var(--orange);
  color: var(--white);
  background: rgba(242, 160, 88, 0.12);
}

.cs-kicker {
  color: var(--orange);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.cs-titulo {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.cs-bajada {
  color: var(--grey);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.cs-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* El select no estaba en la regla de foco de los otros campos */
.cs-panel .field select:focus { outline: none; border-color: var(--orange); }
.cs-panel .field select { cursor: pointer; }
.cs-codigo-otro { margin-top: 10px; }

/* Teléfono: el código del país queda pegado y no se puede escribir,
   así nadie lo repite adentro del número. */
.cs-tel {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
  overflow: hidden;
}
.cs-tel:focus-within { border-color: var(--orange); }
.cs-tel-codigo {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  background: #0b0b0b;
  color: var(--grey);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.cs-tel input {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.cs-tel input:focus { outline: none; }

.cs-ayuda {
  color: var(--grey-dim);
  font-size: 12px;
  margin: 7px 0 0;
}
.cs-cuenta { text-align: right; }

/* Campo con error: se marca el borde, no sólo el cartel de arriba */
.cs-mal { border-color: var(--red) !important; }

.cs-error {
  background: rgba(216, 64, 40, 0.12);
  border: 1px solid rgba(216, 64, 40, 0.45);
  border-radius: 8px;
  padding: 11px 13px;
  color: #f3a08c;
  font-size: 13.5px;
  margin: 0 0 16px;
}
.cs-error[hidden] { display: none; }
.cs-error a { color: var(--orange); text-decoration: underline; }

.cs-enviar {
  width: 100%;
  justify-content: center;
  padding: 15px 26px;
  font-size: 16px;
}
.cs-enviar:disabled { opacity: 0.6; }

.cs-legal {
  color: var(--grey-dim);
  font-size: 11.5px;
  line-height: 1.55;
  text-align: center;
  margin: 16px 0 0;
}

/* El campo trampa no se muestra, pero tampoco se saca del formulario:
   tiene que existir para que el robot lo encuentre y lo complete. */
.cs-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Pantallas de cierre (enviada / frenada) ---------- */
.cs-final { text-align: center; padding: 18px 0 6px; }
.cs-final .cs-bajada { margin-bottom: 26px; }
.cs-tilde, .cs-alto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}
.cs-tilde { background: rgba(99, 227, 210, 0.14); color: var(--neon); }
.cs-alto { background: rgba(216, 64, 40, 0.14); color: #f3a08c; }

/* Atajo de WhatsApp de la pantalla de "enviada". Va en verde y no en
   naranja para que se lea como lo que es: otra vía, no el botón
   principal. El de cerrar queda abajo, más apagado. */
.cs-wa-directo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  border-radius: 999px;
  background: #25d366;
  color: #05320f;
  font-size: 15.5px;
  font-weight: 700;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.cs-wa-directo:hover { transform: translateY(-2px); filter: brightness(1.05); }
.cs-wa-directo[hidden] { display: none; }
.cs-wa-directo svg { width: 21px; height: 21px; }
.cs-wa-nota { text-align: center; margin-top: 9px; }
.cs-wa-nota[hidden] { display: none; }

/* Con el atajo arriba, "Cerrar" pasa a segundo plano. El :not([hidden])
   importa: si no hay número cargado y el atajo no se muestra, "Cerrar"
   tiene que seguir siendo el botón principal. */
.cs-wa-directo:not([hidden]) ~ #cs-cerrar-2 {
  margin-top: 18px;
  background: none;
  border: 1px solid var(--line);
  color: var(--grey);
  box-shadow: none;
  padding: 12px 30px;
  font-size: 14.5px;
}

@media (max-width: 560px) {
  .cs-modal { padding: 0; }
  .cs-panel {
    max-width: none;
    min-height: 100vh;
    max-height: none;
    border: none;
    border-radius: 0;
    padding: 60px 20px 34px;
  }
  .cs-fila { grid-template-columns: 1fr; gap: 0; }
  .cs-titulo { font-size: 26px; }

  /* iPhone agranda la pantalla solo al tocar un campo cuya letra mida
     menos de 16px, y después el sitio queda corrido. Con 16px no lo
     hace. Se sube el cuerpo en el teléfono en vez de bloquear el zoom
     con maximum-scale: bloquearlo le saca el acercamiento con los
     dedos a quien ve poco. */
  .field input,
  .field select,
  .field textarea,
  .cs-tel input {
    font-size: 16px;
  }
}

/* =========================================================
   PANEL — a dónde llegan las consultas
   ========================================================= */
.dest-via {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
  background: #080808;
}
.dest-via:last-child { margin-bottom: 0; }

.dest-via-cab {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.dest-n {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 160, 88, 0.14);
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}
.dest-t { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.dest-s { margin: 0; color: var(--grey-dim); font-size: 12.5px; }

.dest-p {
  color: var(--grey);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.dest-p b { color: var(--white); }
.dest-p--flojo { color: var(--grey-dim); font-size: 12.5px; margin: 12px 0 0; }

.dest-pasos {
  color: var(--grey);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0;
  padding-left: 20px;
}
.dest-pasos b { color: var(--cream); }
.dest-pasos a { color: var(--orange); text-decoration: underline; }

.dest-estado {
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 18px;
}
.dest-estado.es-puesto {
  background: rgba(99, 227, 210, 0.08);
  border: 1px solid rgba(99, 227, 210, 0.3);
  color: #9fded4;
}
.dest-estado.es-vacio {
  background: rgba(239, 216, 63, 0.08);
  border: 1px solid rgba(239, 216, 63, 0.32);
  color: #d8c98a;
}
.dest-estado b { color: var(--white); }

.dest-salida {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.dest-salida[hidden] { display: none; }

/* La línea para pegar en el archivo. Se muestra tal cual va escrita,
   con su sangría, para que se pueda reemplazar sin pensar. */
.dest-codigo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px 12px 14px;
  margin: 10px 0;
}
.dest-codigo code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: pre;
  color: var(--neon);
  font-size: 13.5px;
}
.dest-codigo button { flex-shrink: 0; padding: 8px 14px; font-size: 12.5px; }

/* =========================================================
   CONSULTAS — bandeja del panel
   ========================================================= */
.cs-aviso-modo {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.cs-aviso-modo b { color: var(--white); }
.cs-aviso-modo.es-prueba {
  background: rgba(239, 216, 63, 0.08);
  border: 1px solid rgba(239, 216, 63, 0.32);
  color: #d8c98a;
}
.cs-aviso-modo.es-vivo {
  background: rgba(99, 227, 210, 0.08);
  border: 1px solid rgba(99, 227, 210, 0.3);
  color: #9fded4;
}
.cs-aviso-modo a { color: var(--orange); text-decoration: underline; }

.cs-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  background: #080808;
}
.cs-item.es-respondida { opacity: 0.55; }
.cs-item.es-revisar { border-color: rgba(239, 216, 63, 0.4); }

.cs-item-cab {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.cs-nom { font-weight: 600; font-size: 14.5px; }
.cs-dato { color: var(--grey-dim); font-size: 12.5px; }
.cs-badge {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
}
.cs-badge.es-revisar { background: rgba(239, 216, 63, 0.16); color: var(--yellow); }
.cs-badge.es-ok { background: rgba(99, 227, 210, 0.14); color: var(--neon); }

.cs-msj {
  color: var(--cream);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 14px;
}

.cs-acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-acciones button, .cs-acciones a {
  background: none;
  border: 1px solid var(--line);
  color: var(--grey);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cs-wa {
  border-color: rgba(37, 211, 102, 0.45) !important;
  color: #25d366 !important;
}
.cs-wa:hover { background: rgba(37, 211, 102, 0.1); }
.cs-wa svg { width: 15px; height: 15px; }
