/* ============================================================ */
/* CLUB VIP ZOORIGEN · NOTICIAS DEL SECTOR                       */
/* Rejilla de tarjetas tipo recorte de periódico (como Alintec): */
/* dominio y fecha con doble filete, cabecera de color SÓLIDO    */
/* con "Zoorigen Actualidad", foto 16:9 de la nota, titular en   */
/* serif, extracto justificado y "Ver resumen ampliado" con su   */
/* número de orden. Sin degradados.                              */
/* Cabeceras: verde #1F5F3A · naranja quemado · carbón + dorado. */
/* Día: papel casi blanco. Noche: superficie neutra #171B20; la  */
/* cabecera conserva su color.                                   */
/* ============================================================ */

.hoja {
  /* noche (por defecto del Club) */
  --h-papel: #171B20;
  --h-tinta: #E7EAEE;
  --h-suave: #A3ABB5;
  --h-linea: #3A424C;
  --h-titulo: #E7EAEE;
  --h-sombra: 0 8px 22px rgba(0, 0, 0, 0.35);
  --h-sombra-alta: 0 14px 30px rgba(0, 0, 0, 0.5);
  /* variante verde (la de marca) */
  --h-mast: #1F5F3A;
  --h-mast-txt: #F4EEDC;
  --h-lema: #F4EEDC;
  --h-acento: var(--zoo-acc-txt, #6FBF73);
  --h-borde-mast: #2A7A4E;
  --h-b1-bg: transparent;
  --h-b1-txt: #F4EEDC;
  --h-b2-txt: #F4EEDC;
  --h-bs: clamp(1.15rem, 8.6cqw, 1.9rem);   /* tamaño del nombre del periódico (se resuelve contra la propia tarjeta) */
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px 14px 12px;
  background: var(--h-papel);
  color: var(--h-tinta);
  border: 1px solid var(--h-linea);
  border-radius: 14px;
  box-shadow: var(--h-sombra);
  text-align: left;
}
[data-theme="light"] .hoja {
  --h-papel: #FFFEFA;
  --h-tinta: #1D1D1B;
  --h-suave: #5A5A54;
  --h-linea: rgba(0, 0, 0, 0.10);
  --h-titulo: #141414;
  --h-sombra: 0 6px 18px rgba(20, 30, 24, 0.10), 0 1px 3px rgba(20, 30, 24, 0.08);
  --h-sombra-alta: 0 14px 30px rgba(20, 30, 24, 0.18);
  --h-acento: #1F5F3A;
}

/* Variante naranja quemado: nombre en mayúsculas, en dos líneas */
.hoja--naranja {
  --h-mast: #C25100;
  --h-mast-txt: #FFFFFF;
  --h-lema: #FFFFFF;
  --h-acento: #FF9A5A;
  --h-borde-mast: #C25100;
  --h-b1-txt: #FFFFFF;
  --h-b2-txt: #FFFFFF;
}
[data-theme="light"] .hoja--naranja { --h-acento: #B04A00; }

/* Variante carbón: etiqueta dorada con "ZOORIGEN" y "ACTUALIDAD" en blanco */
.hoja--bicolor {
  --h-mast: #1B1F23;
  --h-mast-txt: #FFFFFF;
  --h-lema: #FFFFFF;
  --h-acento: #E8A317;
  --h-borde-mast: #3A424C;
  --h-b1-bg: #E8A317;
  --h-b1-txt: #1B1F23;
  --h-b2-txt: #FFFFFF;
}
[data-theme="light"] .hoja--bicolor { --h-acento: #8A5A00; --h-borde-mast: #1B1F23; }

/* Verde: en día el titular también va en verde oscuro */
[data-theme="light"] .hoja--verde { --h-titulo: #1F5F3A; }

/* ───── Línea superior: dominio (mono) y fecha (serif negrita) con doble filete ───── */
.hj-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px;
  padding-bottom: 6px; border-bottom: 3px double var(--h-tinta);
}
.hj-dom { font: 600 .75rem/1.3 ui-monospace, SFMono-Regular, Consolas, 'Courier New', monospace; color: var(--h-suave); }
.hj-fecha { margin-left: auto; font: 700 .8125rem/1.3 Georgia, 'Times New Roman', serif; color: var(--h-tinta); text-align: right; }

/* ───── Cabecera de color sólido ───── */
.hj-mast {
  min-width: 0; padding: 12px 12px 10px; background: var(--h-mast); color: var(--h-mast-txt);
  border: 1px solid var(--h-borde-mast); border-radius: 2px;
}
.hj-brand {
  margin: 0; font-family: 'Playfair Display', 'Playfair Fallback', Georgia, 'Times New Roman', serif; font-weight: 900;
  font-size: var(--h-bs); line-height: 1.05; letter-spacing: -0.01em; color: var(--h-mast-txt);
  /* siempre reserva dos renglones: así las tres cabeceras miden lo mismo y las fotos de una fila quedan alineadas */
  min-height: calc(var(--h-bs) * 2.1); display: flex; flex-wrap: wrap; align-content: center; align-items: center; column-gap: .3em;
  overflow-wrap: anywhere;
}
.hj-lema {
  margin: 8px 0 0; font: 700 .75rem/1.35 ui-monospace, SFMono-Regular, Consolas, 'Courier New', monospace;
  letter-spacing: .02em; color: var(--h-lema); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hj-lema em { font-style: normal; font-weight: 600; opacity: .92; }

.hoja--naranja .hj-brand { text-transform: uppercase; letter-spacing: 0; }
.hoja--naranja .hj-b1, .hoja--naranja .hj-b2 { flex: 0 0 100%; }
.hoja--bicolor .hj-brand { text-transform: uppercase; letter-spacing: 0; }
.hoja--bicolor .hj-b1 { flex: 0 0 auto; padding: 0 8px; background: var(--h-b1-bg); color: var(--h-b1-txt); border-radius: 2px; }
.hoja--bicolor .hj-b2 { flex: 0 0 100%; color: var(--h-b2-txt); }

/* ───── Foto de la nota: 16:9, siempre bajo la cabecera ───── */
.hoja__foto { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #d9ded6; border-radius: 2px; flex-shrink: 0; }
.hoja__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Etiqueta de la fuente: solo se ve cuando la foto es la de respaldo del sitio */
.hoja__fuente {
  display: none; position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px);
  padding: 3px 8px; border-radius: 4px; background: rgba(15, 15, 15, 0.74); color: #fff;
  font-size: .75rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hoja--respaldo .hoja__fuente { display: block; }
.hoja__foto--vacia .hoja__img { visibility: hidden; }

/* ───── Cuerpo: titular serif, fuente y extracto justificado ───── */
.hoja__cuerpo { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.hoja__titulo {
  margin: 0; font-family: 'Playfair Display', 'Playfair Fallback', Georgia, 'Times New Roman', serif; font-weight: 700;
  font-size: clamp(1.05rem, 6.2cqw, 1.3rem); line-height: 1.2; letter-spacing: -0.005em; color: var(--h-titulo);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word;
}
.hj-deck {
  margin: 0; font: 600 .75rem/1.35 ui-monospace, SFMono-Regular, Consolas, 'Courier New', monospace; color: var(--h-acento);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hoja__texto {
  margin: 2px 0 0; font-family: var(--zoo-font-body, 'Inter', system-ui, sans-serif); font-size: .8125rem; line-height: 1.55; color: var(--h-tinta);
  text-align: justify; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}

/* ───── Pie: filete, enlace y número de orden ───── */
.hj-foot {
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--h-tinta);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.hj-leer { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .8125rem/1.3 var(--zoo-font-body, 'Inter', system-ui, sans-serif); color: var(--h-acento); }
.hj-page {
  flex: none; padding: 3px 8px; background: var(--h-tinta); color: var(--h-papel); border-radius: 2px;
  font: 700 .75rem/1.3 ui-monospace, SFMono-Regular, Consolas, 'Courier New', monospace;
}

/* Con la columna angosta el justificado deja huecos grandes entre palabras: se alinea a la izquierda */
@container (max-width: 299px) { .hoja__texto { text-align: left; } }

/* Tarjeta interactiva */
.hoja--tarjeta { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.hoja--tarjeta:hover { transform: translateY(-3px); box-shadow: var(--h-sombra-alta); }
.hoja--tarjeta:hover .hj-leer { text-decoration: underline; text-underline-offset: 3px; }
.hoja--tarjeta:focus-visible { outline: 3px solid #E8A317; outline-offset: 2px; }

/* ───── Rejilla: 4 columnas con espacio amplio, 3, 2 y 1 en el teléfono (según el ancho de la sección) ───── */
.nt-seccion { container-type: inline-size; }
.hojas { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@container (min-width: 500px) { .hojas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 760px) { .hojas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 960px) { .hojas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Encabezado de sección con la etiqueta "Hoy" */
.nt-encabezado { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.nt-encabezado h2 { font-size: 1.15rem; margin: 0; }
.nt-hoy { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: rgba(232, 163, 23, 0.16); color: var(--zoo-amber); border: 1px solid rgba(232, 163, 23, 0.35); }
.nt-ver-todas { margin-left: auto; font-size: .84rem; font-weight: 700; color: var(--zoo-green-500); }
.nt-ver-todas:hover { color: var(--zoo-amber); }

.nt-vacio { display: flex; flex-direction: column; gap: 6px; text-align: center; padding: 36px 20px; border: 1px dashed var(--zoo-border-strong); border-radius: var(--zoo-radius); background: var(--zoo-bg-card); }
.nt-vacio strong { font-family: var(--zoo-font-heading); }
.nt-vacio span { color: var(--zoo-text-muted); font-size: .9rem; }

/* Chips de categoría */
.nt-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.nt-chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--zoo-border-strong); background: var(--zoo-bg-card); color: var(--zoo-text-muted); font-size: .84rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.nt-chip:hover { border-color: var(--zoo-amber); color: var(--zoo-text); }
.nt-chip.is-active { background: var(--zoo-green-900); border-color: var(--zoo-green-500); color: #fff; }

/* ───── Lectura ampliada: la misma hoja, en grande ───── */
.nt-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(6, 12, 9, 0.72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.nt-modal__cuerpo { position: relative; width: min(760px, 100%); max-height: 94vh; overflow-y: auto; border-radius: 16px; }
.nt-modal__x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(16, 16, 16, 0.78); color: #fff; font-size: 1rem; cursor: pointer; display: grid; place-items: center; }
body.nt-noscroll { overflow: hidden; }
.hoja--grande { gap: 12px; padding: 16px 20px 22px; border-radius: 16px; box-shadow: none; }
.hoja--grande .hj-mast { padding: 16px 18px 14px; }
.hoja--grande .hj-brand { font-size: clamp(1.5rem, 6cqw, 2.4rem); }
.hoja--grande .hj-lema { font-size: .8125rem; }
.hoja--grande .hoja__cuerpo { gap: 12px; }
.hoja--grande .hoja__titulo { font-size: clamp(1.35rem, 5.2cqw, 1.9rem); line-height: 1.18; display: block; -webkit-line-clamp: unset; line-clamp: unset; }
.hoja--grande .hoja__titulo--grande { font-weight: 900; }
.hoja--grande .hoja__meta { font-size: .8125rem; color: var(--h-suave); letter-spacing: .01em; }
.lectura__esencial { background: color-mix(in srgb, var(--h-tinta) 6%, transparent); border-left: 4px solid var(--h-acento); border-radius: 4px 10px 10px 4px; padding: 12px 16px; }
.lectura__etq { font: 700 .75rem/1.3 ui-monospace, SFMono-Regular, Consolas, 'Courier New', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--h-acento); margin-bottom: 6px; }
.lectura__esencial p, .lectura__lista { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--h-tinta); }
.lectura__lista { padding-left: 1.1rem; display: grid; gap: 6px; }
.lectura__aviso { font-size: .8125rem; color: var(--h-suave); margin: 0; }
.lectura__leer { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 11px 20px; border-radius: 999px; background: var(--h-mast); color: #fff; font-weight: 700; font-size: .9rem; border: 1px solid var(--h-borde-mast); }
.hoja--bicolor .lectura__leer { background: #E8A317; color: #1B1F23; border-color: #E8A317; }
.lectura__leer:hover { filter: brightness(1.1); }
.lectura__leer--sin { background: transparent; color: var(--h-suave); padding-left: 0; border-color: transparent; }
.lectura__leer:focus-visible { outline: 3px solid #E8A317; outline-offset: 2px; }

@media (max-width: 640px) {
  .hoja--grande .hoja__titulo { font-size: 1.3rem; }
  .nt-modal { padding: 8px; }
  .hoja--grande { padding: 14px 14px 18px; }
}
@media (prefers-reduced-motion: reduce) { .hoja--tarjeta { transition: none; } .hoja--tarjeta:hover { transform: none; } }

/* ============================================================ */
/* INICIO · tarjeta principal del curso (club-inicio.js)         */
/* ============================================================ */
.ini-hero {
  position: relative; overflow: hidden; border-radius: 22px; min-height: 230px; display: flex; align-items: flex-end; color: #fff; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.10); background: var(--zoo-panel, #1F5F3A);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}
.ini-hero--img::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--ini-img) center / cover no-repeat; }
.ini-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 7, 7, 0.88) 0%, rgba(7, 7, 7, 0.62) 55%, rgba(7, 7, 7, 0.25) 100%); }
.ini-hero--vacio { min-height: 150px; }
.ini-hero__cuerpo { padding: 26px 28px; max-width: 620px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ini-hero__etq { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--zoo-amber, #E8A317); }
.ini-hero__titulo { font-family: var(--zoo-font-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.15; color: #fff; margin: 0; }
.ini-hero__meta { font-size: .86rem; color: rgba(255, 255, 255, 0.78); margin: 0; }
.ini-hero__barra { width: min(380px, 100%); height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.22); overflow: hidden; margin-top: 6px; }
.ini-hero__barra i { display: block; height: 100%; border-radius: 99px; background: var(--zoo-amber, #E8A317); }
.ini-hero__avance { font-size: .8rem; color: rgba(255, 255, 255, 0.85); }
.ini-hero__cuenta { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 4px; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ini-hero__cuenta span { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.ini-hero__cuenta strong { font-size: 1.15rem; color: #F5C62E; }
.ini-hero__cuenta small { font-size: .78rem; opacity: .8; }
.ini-hero__btn { margin-top: 8px; display: inline-flex; padding: 11px 22px; border-radius: 999px; background: var(--zoo-amber, #E8A317); color: #1f1d17; font-weight: 800; font-size: .9rem; }
.ini-hero__btn:hover { filter: brightness(1.08); }
.ini-hero__btn--suave { background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.32); }
@media (max-width: 640px) { .ini-hero { min-height: 220px; } .ini-hero__cuerpo { padding: 20px 18px; } .ini-hero::after { background: linear-gradient(180deg, rgba(7, 7, 7, 0.35), rgba(7, 7, 7, 0.9)); } }

