/* ==========================================================
   SISTEMA DE DISEÑO - CARTELERÍA DIGITAL / SMART TV & ADMIN
   Estilo Premium Glassmorphism, Dark Mode & Touch-Friendly
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Paleta de Colores Primarios */
  --bg-main: #0b0f19;
  --bg-card: rgba(22, 30, 49, 0.75);
  --bg-card-hover: rgba(30, 41, 67, 0.9);
  --bg-glass: rgba(15, 23, 42, 0.65);
  
  --primary: #10b981; /* Verde esmeralda fresco */
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.35);
  
  --accent: #3b82f6; /* Azul vívido */
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  --accent-red: #ef4444;
  --accent-yellow: #f59e0b;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.5);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--primary-glow);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.8) 0px, transparent 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ================= HUB / INDEX ================= */
.hub-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hub-header {
  text-align: center;
  margin-bottom: 48px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hub-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.hub-header p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.hub-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition);
}

.hub-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.4);
}

.hub-card:hover::before {
  opacity: 1;
}

.hub-card.admin-card:hover::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.hub-card.tv-card:hover::before {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

.admin-card .card-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3));
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.tv-card .card-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.3));
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.hub-card h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hub-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.admin-card .card-footer-btn {
  color: #34d399;
}

.tv-card .card-footer-btn {
  color: #60a5fa;
}

.hub-card:hover .card-footer-btn {
  transform: translateX(6px);
}

.hub-info-box {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.info-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.info-stat-text .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-stat-text .value {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

/* ================= PANEL ADMIN (MÓVIL / DESKTOP) ================= */
.admin-layout {
  max-width: 680px; /* Ancho optimizado estilo smartphone / tablet */
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 100px;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
}

.admin-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Botones genéricos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Barra de Resumen / Métricas */
.admin-stats-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 20px;
}

.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-pill .num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.stat-pill .desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

/* Buscador y Controles */
.admin-toolbar {
  padding: 0 20px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  flex-grow: 1;
  position: relative;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 42px;
  color: white;
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 1rem;
}

/* Lista de Diapositivas */
.slides-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slide-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  position: relative;
  user-select: none;
}

.slide-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.slide-item.dragging {
  opacity: 0.5;
  border-color: var(--primary);
}

.slide-handle {
  color: var(--text-subtle);
  cursor: grab;
  padding: 6px;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
}

.slide-handle:active {
  cursor: grabbing;
}

.slide-thumb {
  width: 72px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: #1e293b;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-order-badge {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: rgba(0, 0, 0, 0.85);
  color: #34d399;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.slide-info {
  flex-grow: 1;
  min-width: 0;
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.meta-chip.duration {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  cursor: pointer;
}

.meta-chip.price {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.slide-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.action-btn-sm:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.action-btn-sm.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Botón flotante para móvil */
.fab-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
  transition: var(--transition);
  z-index: 40;
}

/* Modales */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

/* Simulador de Smart TV en Modal de Vista Previa */
.simulated-tv-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-lg);
  border: 4px solid #1e293b;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.simulated-tv-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.simulated-tv-logo {
  position: absolute;
  top: 10px;
  left: 12px;
  max-height: 38px;
  max-width: 140px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.simulated-tv-logo img {
  max-height: 28px;
  max-width: 100%;
  object-fit: contain;
}

.simulated-tv-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 36px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(5, 8, 16, 0.98) 100%);
  border-top: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 10;
}

.simulated-tv-ticker-track {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.simulated-tv-ticker-text {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  padding-left: 100%;
  animation: ticker-scroll 25s linear infinite;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}


.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 16px;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
}

.upload-dropzone .icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.dropzone-preview {
  max-width: 100%;
  max-height: 180px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-top: 10px;
  display: none;
}

/* ================= SMART TV PLAYER (/pantalla) ================= */
.tv-body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #000000;
  user-select: none;
  cursor: none;
  font-family: var(--font-body);
}

.tv-body.show-cursor {
  cursor: default;
}

.tv-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.tv-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
  box-sizing: border-box;
}

#slides-wrapper.has-ticker .tv-slide {
  height: calc(100vh - clamp(85px, 8.5vh, 115px));
}

.tv-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.tv-slide-backdrop {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.28);
  transform: scale(1.1);
  z-index: 1;
  pointer-events: none;
}

.tv-slide img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ajusta completamente la imagen sin recortar ni truncar partes */
  background: transparent;
  filter: drop-shadow(0 15px 45px rgba(0, 0, 0, 0.85));
}


/* Barra de progreso de la diapositiva activa */
.tv-progress-bar-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.4);
  z-index: 30;
}

.tv-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Widget de Reloj & Estado en TV */
.tv-corner-widget {
  position: absolute;
  top: 20px;
  right: 25px;
  z-index: 30;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
}

.live-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Controles de TV flotantes al mover cursor */
.tv-controls-hud {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tv-body.show-cursor .tv-controls-hud {
  opacity: 1;
  pointer-events: auto;
}

.tv-hud-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.tv-hud-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--primary);
}

/* ================= SECCIONES DE CONFIGURACIÓN ADMIN ================= */
.admin-settings-section {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.settings-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.settings-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.settings-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.logo-preview-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.logo-thumb-img {
  max-width: 140px;
  max-height: 50px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
}

.ticker-textarea {
  width: 100%;
  min-height: 75px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: white;
  font-family: var(--font-body);
  font-size: 0.92rem;
  resize: vertical;
  outline: none;
  margin-bottom: 12px;
  line-height: 1.4;
}

.ticker-textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ================= TV FLOATING LOGO & TICKER ================= */

/* Logotipo Flotante en Pantalla TV */
.tv-floating-logo {
  position: absolute;
  top: 25px;
  left: 30px;
  z-index: 30;
  max-height: 90px;
  max-width: 280px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 10px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.tv-floating-logo img {
  max-height: 65px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

/* Badge 'Powered by' en Pantalla Smart TV (Inferior Derecha) */
.tv-powered-by {
  position: absolute;
  bottom: calc(clamp(85px, 8.5vh, 115px) + 14px);
  right: 28px;
  z-index: 32;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.powered-by-text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.tv-powered-by img {
  max-height: 26px;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

/* Marquesina / Cintillo Inferior de TV (Ancho Completo y Tamaño 100% Mayor) */
.tv-ticker-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: clamp(85px, 8.5vh, 115px);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(5, 8, 16, 0.98) 100%);
  backdrop-filter: blur(18px);
  border-top: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  z-index: 35;
  overflow: hidden;
}

.tv-ticker-track {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
}

.tv-ticker-content {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.6rem); /* 100% más grande */
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  padding-left: 100vw;
  animation: ticker-scroll 32s linear infinite;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.9), 0 0 20px rgba(16, 185, 129, 0.3);
}

@keyframes ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Notificación Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  border: 1px solid var(--border-color);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s ease forwards;
}

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

