/* =====================================================
   REELS — Estilo Instagram / TikTok adaptado al portal
   ===================================================== */

/* === PÁGINA /reels === */
.reels-page {
  min-height: 60vh;
  padding: 30px 0 60px;
}
.reels-page-header {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.reels-page-title {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  margin: 0;
  display: flex; align-items: center; gap: 12px;
}
.reels-page-title i { color: var(--red); }
.reels-page-cat {
  font-size: 13px;
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.reels-page-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin: 6px 0 0;
}

/* Pills de categoría */
.reels-cat-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ececec;
}
.reels-cat-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.18s;
  white-space: nowrap;
}
.reels-cat-pill:hover {
  background: #e5e7eb;
  color: #1f2937;
  transform: translateY(-1px);
}
.reels-cat-pill.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(227,6,19,0.3);
}

/* Secciones */
.reels-section-h {
  font-family: var(--font-title);
  font-size: 18px; font-weight: 800;
  margin: 0 0 14px;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.reels-section-h::before {
  content: '';
  width: 4px; height: 22px;
  background: var(--red);
  border-radius: 2px;
}
.reels-featured-section { margin-bottom: 36px; }
.reels-main-section { margin-bottom: 36px; }

/* Scroll horizontal (Instagram-style) */
.reels-h-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) #e5e7eb;
}
.reels-h-scroll::-webkit-scrollbar { height: 6px; }
.reels-h-scroll::-webkit-scrollbar-track { background: #e5e7eb; border-radius: 3px; }
.reels-h-scroll::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }
.reels-h-scroll > * { scroll-snap-align: start; flex: 0 0 220px; }

/* Grid vertical principal */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* === TARJETA DE REEL === */
.reel-card-pub {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s;
  text-decoration: none;
}
.reel-card-pub:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(15,23,42,0.18), 0 0 0 1px rgba(227,6,19,0.2);
}

/* COVER vertical 9:16 */
.reel-card-pub-cover {
  position: relative;
  aspect-ratio: 9 / 16;
  /* Fondo de marca (no negro): si el video o la miniatura tardan en cargar,
     se ve el degradado de la categoría en vez de un recuadro negro. */
  background: linear-gradient(150deg, #1A237E 0%, #3949AB 100%);
  overflow: hidden;
}
.reel-card-pub-cover img,
.reel-card-pub-cover video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.reel-card-pub-cover video[data-preview] {
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s;
}
/* Reels subidos sin miniatura: el primer fotograma queda visible como portada
   (antes quedaban invisibles y solo se veía el fondo). */
.reel-card-pub-cover video[data-preview].is-cover {
  opacity: 1;
}
.reel-card-pub:hover .reel-card-pub-cover img { transform: scale(1.08); }
.reel-card-pub:hover .reel-card-pub-cover video[data-preview] { opacity: 1; }

.reel-card-pub-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #E30613 100%);
}

/* Play overlay (centrado) */
.reel-card-pub-play {
  position: absolute;
  top: 50%; left: 50%;
  width: 60px; height: 60px;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.reel-card-pub-play i { color: #fff; }
.reel-card-pub:hover .reel-card-pub-play {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(227,6,19,0.85);
}

/* Badges */
.reel-card-pub-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.reel-card-pub-badge-sponsored { background: #10b981; color: #fff; }
.reel-card-pub-badge-featured { background: #FFD600; color: #5b3a00; }

.reel-card-pub-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  z-index: 4;
}
.reel-card-pub-cat {
  position: absolute;
  bottom: 10px; left: 10px;
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Body de la card */
.reel-card-pub-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reel-card-pub-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 14px; font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reel-card-pub-sponsor {
  font-size: 11.5px;
  color: #10b981;
  font-weight: 700;
}
.reel-card-pub-stats {
  display: flex; gap: 12px;
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* Empty state */
.reels-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.reels-empty h3 {
  margin: 14px 0 6px;
  font-family: var(--font-title);
  color: var(--text);
}

/* =====================================================
   MODAL DE REEL — Estilo TikTok / Facebook Reels
   Video full-height vertical, meta overlay, acciones
   laterales flotantes a la derecha.
   ===================================================== */
.reel-modal {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.reel-modal.open { display: flex; opacity: 1; }

.reel-modal-close {
  position: absolute;
  top: 16px; left: 16px;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 20px; font-weight: 700;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10002;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.reel-modal-close:hover {
  background: var(--red, #E30613);
  border-color: var(--red, #E30613);
  transform: scale(1.1);
}

/* STAGE — contenedor full-screen */
.reel-modal-stage {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* VIDEO 9:16 ocupando toda la altura */
.reel-modal-video {
  position: relative;
  height: 100vh;
  aspect-ratio: 9 / 16;
  max-width: 100vw;
  background: #000;
  overflow: hidden;
}
.reel-modal-video video,
.reel-modal-video iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

/* OVERLAY de info, superpuesto al video */
.reel-modal-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 5;
}
.reel-modal-overlay > * { pointer-events: auto; }

/* TOP: brand + categoría + sponsor */
.reel-modal-top {
  padding: 70px 80px 14px 70px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.reel-modal-brand { display: flex; align-items: center; gap: 10px; }
.reel-modal-brand-logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.reel-modal-brand-name {
  color: #fff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.reel-modal-cat {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Sponsor badge estilo flyer */
.reel-modal-sponsor {
  background: linear-gradient(135deg, #FFD600, #f59e0b);
  color: #5b3a00;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 10px rgba(245,158,11,0.4);
  display: flex; align-items: center; gap: 7px;
  max-width: 220px;
}
.reel-modal-sponsor-pill {
  background: #E30613;
  color: #fff;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.5px;
}

/* BOTTOM: título + descripción + stats */
.reel-modal-bottom {
  padding: 22px 80px 30px 70px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.65) 60%, transparent 100%);
  color: #fff;
}
.reel-modal-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reel-modal-desc-wrap { position: relative; }
.reel-modal-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.95);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  white-space: pre-wrap;
}
.reel-modal-desc.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reel-modal-desc.expanded {
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 8px;
}
.reel-modal-toggle {
  background: none;
  border: 0;
  color: #FFD600;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.reel-modal-toggle:hover { text-decoration: underline; }
.reel-modal-stats {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  font-variant-numeric: tabular-nums;
}

/* ACCIONES laterales (TikTok-style) */
.reel-modal-actions {
  position: absolute;
  right: 14px;
  bottom: 130px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 6;
}
.reel-modal-action {
  width: 52px;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: 0;
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.18s;
}
.reel-modal-action:hover { transform: scale(1.1); }
.reel-modal-action-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  font-size: 22px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.reel-modal-like:hover .reel-modal-action-icon { background: rgba(255,75,75,0.85); border-color: #ff4b4b; }
.reel-modal-share-wa .reel-modal-action-icon { background: rgba(37, 211, 102, 0.85); }
.reel-modal-share-fb .reel-modal-action-icon { background: rgba(24, 119, 242, 0.85); font-weight: 800; }
.reel-modal-open-detail .reel-modal-action-icon { background: rgba(255, 214, 0, 0.85); color: #5b3a00; }
.reel-modal-action-count,
.reel-modal-action-label {
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  font-variant-numeric: tabular-nums;
}

/* Responsive del modal */
@media (max-width: 900px) {
  .reel-modal-top    { padding: 60px 70px 14px 18px; }
  .reel-modal-bottom { padding: 22px 70px 28px 18px; }
  .reel-modal-actions { right: 10px; bottom: 110px; }
  .reel-modal-action-icon { width: 46px; height: 46px; font-size: 20px; }
  .reel-modal-title { font-size: 16px; }
  .reel-modal-video { width: 100vw; max-height: 100vh; }
}
@media (max-width: 600px) {
  .reel-modal-stage { height: 100dvh; }
  .reel-modal-top    { padding: 50px 60px 12px 14px; }
  .reel-modal-bottom { padding: 18px 60px 22px 14px; }
  .reel-modal-actions { right: 8px; bottom: 95px; gap: 14px; }
  .reel-modal-action { width: 46px; }
  .reel-modal-action-icon { width: 42px; height: 42px; font-size: 18px; }
  .reel-modal-action-label,
  .reel-modal-action-count { font-size: 10px; }
  .reel-modal-close { width: 38px; height: 38px; font-size: 18px; top: 12px; left: 12px; }
}

/* === DETALLE /reel/:slug === */
.reel-detail-page {
  padding: 30px 0 60px;
  background: linear-gradient(180deg, #1A1A1A 0%, #1a1a1a 100%);
  color: #fff;
  min-height: 80vh;
}
.reel-detail-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: start;
}
.reel-detail-video-wrap {
  width: 360px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  position: sticky;
  top: 100px;
}
.reel-detail-video, .reel-detail-iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.reel-detail-aside { color: #f0f0f0; }
.reel-detail-cat {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  margin-bottom: 14px;
}
.reel-detail-title {
  font-family: var(--font-title);
  font-size: 28px; font-weight: 900;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #fff;
}
.reel-detail-sponsor {
  background: rgba(16,185,129,0.15);
  color: #34d399;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid rgba(16,185,129,0.3);
}
.reel-detail-stats {
  display: flex; gap: 18px;
  color: rgba(255,255,255,0.7);
  font-size: 13.5px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.reel-detail-desc {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.reel-detail-share strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.7);
}
.reel-detail-share-buttons { display: flex; gap: 10px; }
.reel-detail-share-buttons a {
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.18s;
}
.reel-detail-share-buttons a:hover { transform: translateY(-2px); }
.reel-detail-share-buttons .share-wa { background: #25D366; }
.reel-detail-share-buttons .share-fb { background: #1877F2; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .reels-page-title { font-size: 26px; }
  .reels-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
  .reels-h-scroll > * { flex: 0 0 170px; }
  .reel-modal-inner { flex-direction: column; align-items: center; }
  .reel-modal-video { width: 280px; }
  .reel-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .reel-detail-video-wrap { width: 100%; max-width: 320px; margin: 0 auto; position: static; }
}
@media (max-width: 600px) {
  .reels-page-header { padding: 0 14px; }
  .reels-cat-nav { padding: 0 14px 12px; gap: 6px; }
  .reels-cat-pill { padding: 6px 12px; font-size: 12px; }
  .reels-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .reels-h-scroll > * { flex: 0 0 150px; }
  .reel-modal { padding: 12px; }
  .reel-modal-video { width: 240px; }
  .reel-modal-title { font-size: 18px; }
  .reel-modal-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 18px; }
}

/* === SECCIÓN HOME (mini-galería) ===
   Bloque con identidad de marca: fondo oscuro editorial (azul ECG → negro)
   que hace contrastar las miniaturas verticales y separa visualmente los
   reels del flujo de noticias. */
.reels-home-section {
  padding: 26px 0 30px;
  background:
    radial-gradient(circle at 88% 12%, rgba(227, 6, 19, 0.20), transparent 46%),
    linear-gradient(135deg, #101334 0%, #1A237E 52%, #0d1030 100%);
  position: relative;
  overflow: hidden;
}
/* Filete superior e inferior con los colores de la marca */
.reels-home-section::before,
.reels-home-section::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red, #E30613) 0 34%, var(--yellow, #FFD600) 34% 52%, rgba(255, 255, 255, 0.12) 52%);
}
.reels-home-section::before { top: 0; }
.reels-home-section::after  { bottom: 0; opacity: 0.55; }

.reels-home-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 2px;
  flex-wrap: wrap;
  gap: 10px;
}
.reels-home-title {
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  display: flex; align-items: center; gap: 11px;
  letter-spacing: -0.2px;
}
/* Icono en cápsula roja: refuerza la identidad y ancla el título */
.reels-home-title i {
  color: #fff;
  background: var(--red, #E30613);
  padding: 7px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.45);
  flex-shrink: 0;
}
/* Bajada explicativa: da contexto de qué son los reels */
.reels-home-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.2px;
  margin-top: 3px;
}
.reels-home-link {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  transition: all 0.2s;
  white-space: nowrap;
}
.reels-home-link:hover {
  background: var(--red, #E30613);
  border-color: var(--red, #E30613);
  transform: translateX(2px);
}
/* Tarjetas blancas sobre el fondo oscuro: máximo contraste, las miniaturas
   verticales resaltan y el título se lee sin esfuerzo. */
.reels-home-section .reel-card-pub {
  background: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s;
}
.reels-home-section .reel-card-pub:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.reels-home-section .reel-card-pub-title { color: var(--text); }

/* Estado sin reels: mensaje que invita a participar (evita el espacio vacío) */
.reels-home-empty {
  flex: 1 1 260px;
  min-width: 240px;
  height: 252px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 18px 22px;
  border-radius: 10px;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}
.reels-home-empty strong {
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}
.reels-home-empty span {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  max-width: 260px;
}

/* La portada muestra un carrusel compacto: la galería completa vive en /reels. */
.reels-home-section .reels-h-scroll {
  gap: 12px;
  padding: 0 2px 10px;
  align-items: flex-start;
}
.reels-home-section .reels-h-scroll > * {
  flex-basis: 144px;
}
.reels-home-section .reel-card-pub {
  min-height: 0;
}
.reels-home-section .reel-card-pub-cover {
  aspect-ratio: 4 / 5;
}
.reels-home-section .create-reel-card {
  aspect-ratio: auto;
  min-height: 0;
  height: 252px;
  border-radius: 8px;
}
.reels-home-section .reel-card-pub-body {
  padding: 10px 11px 12px;
  gap: 4px;
}
.reels-home-section .reel-card-pub-title {
  font-size: 13px;
  line-height: 1.28;
}
.reels-home-section .reel-card-pub-stats {
  font-size: 10.5px;
  gap: 9px;
  margin-top: 1px;
}
.reels-home-section .create-reel-card-content {
  padding: 0 12px 18px;
}
.reels-home-section .create-reel-card-plus {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-width: 2px;
}
.reels-home-section .create-reel-card-label { font-size: 14px; }
.reels-home-section .create-reel-card-sub { font-size: 10.5px; }

@media (max-width: 700px) {
  .reels-home-section { padding: 18px 0 20px; }
  .reels-home-title { font-size: 18px; }
  .reels-home-link { font-size: 12px; padding: 5px 11px; }
  .reels-home-section .reels-h-scroll { gap: 12px; }
  .reels-home-section .reels-h-scroll > * { flex-basis: 136px; }
  .reels-home-section .create-reel-card { height: 240px; }
  .reels-home-section .create-reel-card-plus { width: 46px; height: 46px; }
}

/* === Overlay transición + estados extra de hover === */
.reel-card-pub-play {
  transition: opacity 0.25s, transform 0.3s, background 0.3s;
}

/* Reels YouTube/Facebook: no hover-preview disponible — overlay siempre visible */
.reel-card-pub.no-hover-preview .reel-card-pub-play {
  opacity: 1 !important;
}
.reel-card-pub.no-hover-preview .reel-card-pub-cover::after {
  content: '▶ Click para ver';
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.reel-card-pub.no-hover-preview:hover .reel-card-pub-cover::after { opacity: 1; }

/* Estado de error (video 404 o bloqueado) */
.reel-card-pub.reel-error .reel-card-pub-cover {
  background: linear-gradient(135deg, #2a0000, #8A0000);
}
.reel-card-pub.reel-error .reel-card-pub-cover::before {
  content: '⚠ Video no disponible';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0,0,0,0.6);
  padding: 6px 12px;
  border-radius: 6px;
  z-index: 5;
}

/* === Gradientes ricos por categoría de reel (preservar diseño inicial) === */
.reel-cover-noticias   { background: linear-gradient(135deg, #7b1c00, #b33000) !important; }
.reel-cover-deportes   { background: linear-gradient(135deg, #004d30, #006641) !important; }
.reel-cover-comunidad  { background: linear-gradient(135deg, #1a1a00, #3d3d00) !important; }
.reel-cover-denuncias  { background: linear-gradient(135deg, #002060, #003090) !important; }
.reel-cover-eventos    { background: linear-gradient(135deg, #1a0a00, #4d2000) !important; }
.reel-cover-publicidad { background: linear-gradient(135deg, #400040, #660066) !important; }
.reel-cover-memoria    { background: linear-gradient(135deg, #1A1A1A, #8A0000) !important; }

/* Icono centrado en placeholder cuando no hay thumb ni video */
.reel-card-pub-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.reel-card-pub-icon i {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

/* Asegurar que el gradiente sea visible aunque haya thumbnail vacío */
.reel-card-pub-cover {
  background-color: #1a1a1a;
}

/* === Badge COMMUNITY 24h === */
.reel-card-pub-badge-community {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  font-size: 9.5px !important;
  padding: 4px 8px !important;
  display: inline-flex; align-items: center; gap: 4px;
  box-shadow: 0 3px 10px rgba(16,185,129,0.45) !important;
  animation: pulseCommunity 2.5s ease-in-out infinite;
}
@keyframes pulseCommunity {
  0%, 100% { box-shadow: 0 3px 10px rgba(16,185,129,0.45); }
  50%      { box-shadow: 0 3px 18px rgba(16,185,129,0.75); }
}

/* Pill ENVIAR REEL en nav público */
.enviar-reel-pill {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(16,185,129,0.4);
  transition: transform 0.18s;
}
.enviar-reel-pill:hover { transform: translateY(-1px); color: #fff !important; }

/* Status pills extras del community admin */
.status-pill-pending.active  { background: #f59e0b !important; border-color: #f59e0b; color: #fff; }
.status-pill-approved.active { background: #10b981 !important; border-color: #10b981; color: #fff; }
.status-pill-rejected.active { background: #ef4444 !important; border-color: #ef4444; color: #fff; }
.status-pill-expired.active  { background: #6b7280 !important; border-color: #6b7280; color: #fff; }
