@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');/* src/css/theme.css */
/* ========================================= */
/*             Header Neón Completo          */
/*     Archivo: src/css/Header.css           */
/* ========================================= */
header {
  width: 100%;
  height: 65px;
  background-color: var(--header-bg);          /* era #121212 */
  border-radius: 12px;
  border: 1px solid var(--neon-green);          /* era #00ff80 */
  box-shadow: var(--neon-glow);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 16px;
  overflow: hidden;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 0;
  gap: 12px;
}
/* ☀️🌙 Toggle tema — sustituye al status-dot, misma zona izquierda */
.theme-toggle-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin-right: 10px;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.theme-toggle-btn:hover {
  transform: scale(1.2);
  background-color: rgba(0, 255, 153, 0.1);
}
/* Título de la app (centrado — márgenes intactos) */
.app-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--neon-green);                     /* era #00ff80 */
  text-shadow: 0 0 2px var(--neon-green);
  line-height: 1.2;
  margin-left: 38px;
  transform: translateX(8px);
}
.app-title .line1 {
  font-size: 18px;
  font-weight: bold;
}
.app-title .line2 {
  font-size: 16px;
}
/* Botón del menú (derecha) */
.menu-toggle {
  display: flex;
  align-items: left;
  justify-content: left;
  height: 90%;
  width: auto;
  margin-left: 0px;
  margin-right: 4px;
}
.menu-toggle img {
  height: 80%;
  width: auto;
  object-fit: contain;
}
/* Responsive */
@media (max-width: 600px) {
  .theme-toggle-btn {
    font-size: 16px;
    width: 24px;
    height: 24px;
  }

  .app-title .line1 {
    font-size: 16px;
  }

  .app-title .line2 {
    font-size: 14px;
  }

  .menu-toggle img {
    height: 65%;
    max-width: 65%;
  }
}
@media (max-width: 400px) {
  .theme-toggle-btn {
    font-size: 14px;
    width: 20px;
    height: 20px;
  }

  .app-title .line1 {
    font-size: 14px;
  }

  .app-title .line2 {
    font-size: 12px;
  }

  .menu-toggle img {
    height: 60%;
    max-width: 60%;
  }
}
/* =============================================
 *  MODO OSCURO — default (sin clase en <html>)
 *  NO TOCAR — identidad neon intacta
 * ============================================= */
:root {
  --bg-dark:            #0f0f0f;
  --bg-surface:         #1a1a1a;
  --bg-input:           #1e1e1e;
  --bg-surface-alt:     #141414;
  --text-primary:       #ffffff;
  --text-secondary:     #aaaaaa;
  --neon-green:         #00ff99;
  --neon-glow:          0 0 10px rgba(0, 255, 153, 0.4);
  --neon-glow-strong:   0 0 20px rgba(0, 255, 153, 0.6);
  --neon-glow-subtle:   0 0 5px rgba(0, 255, 153, 0.2);
  --button-bg:          #00ff99;
  --button-text:        #000000;
  --input-bg:           #1e1e1e;
  --input-border:       #00ff99;
  --card-radius:        14px;
  --card-shadow:        0 0 20px rgba(0, 255, 153, 0.15);
  --card-border:        #00ff99;
  --card-bg:            #1a1a1a;
  --header-bg:          #0f0f0f;
  --header-border:      rgba(0, 255, 153, 0.2);
  --sidebar-bg:         #111111;
  --sidebar-item-hover: rgba(0, 255, 153, 0.08);
  --error-color:        #ff4d4d;
  --error-bg:           #2a0000;
  --font-main:          'Segoe UI', 'Roboto', sans-serif;
  --font-size-base:     16px;
  --dashboard-bg:       linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}
/* =============================================
 *  MODO CLARO — clase .light en <html>
 * ============================================= */
html.light {
  --bg-dark:            #f1f5f9;
  --bg-surface:         #ffffff;
  --bg-input:           #f8fafc;
  --bg-surface-alt:     #e2e8f0;
  --text-primary:       #0f172a;
  --text-secondary:     #64748b;
  --neon-green:         #2563eb;
  --neon-glow:          none;
  --neon-glow-strong:   none;
  --neon-glow-subtle:   none;
  --button-bg:          #0891b2;
  --button-text:        #ffffff;
  --input-bg:           #ffffff;
  --input-border:       #cbd5e1;
  --card-shadow:        0 4px 16px rgba(37, 99, 235, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  --card-border:        rgba(37, 99, 235, 0.15);
  --card-bg:            rgba(37, 99, 235, 0.06);
  --header-bg:          transparent;
  --header-border:      rgba(37, 99, 235, 0.30);
  --sidebar-bg:         rgba(255, 255, 255, 0.70);
  --sidebar-item-hover: rgba(37, 99, 235, 0.07);
  --error-color:        #dc2626;
  --error-bg:           #fef2f2;
  --dashboard-bg:       transparent;
}
/* =============================================
 *  BASE
 * ============================================= */
body {
  background-color: var(--bg-dark);
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}
html, body, #root {
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
/* =============================================
 *  COMPONENTES BASE — ambos modos
 * ============================================= */
.page-container {
  padding: 80px 20px 40px 20px;
  min-height: 100vh;
  box-sizing: border-box;
}
.neon-box {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.neon-btn {
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  font-weight: bold;
  box-shadow: var(--neon-glow);
  transition: all 0.2s ease;
  cursor: pointer;
}
.neon-btn:hover {
  filter: brightness(0.88);
  box-shadow: var(--neon-glow-strong);
  transform: scale(1.03);
}
.neon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.neon-input {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--card-radius);
  color: var(--text-primary);
  padding: 10px;
  width: 100%;
  box-shadow: inset 0 0 5px rgba(0, 255, 153, 0.1);
  transition: box-shadow 0.2s ease, background-color 0.25s ease;
}
.neon-input:focus {
  outline: none;
  box-shadow: 0 0 10px var(--neon-green);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.section-header h2 {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-primary);
  margin: 0;
}
.section-header.with-bg {
  background-color: var(--bg-surface-alt);
  padding: 1rem;
  border-bottom: 2px solid var(--neon-green);
  box-shadow: var(--neon-glow);
}
.section-header.with-bg h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--neon-green);
}
.section-header.flex-start {
  justify-content: flex-start;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--neon-green);
}
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}
.error-message {
  background-color: var(--error-bg);
  border: 1px solid var(--error-color);
  color: var(--error-color);
  padding: 10px;
  border-radius: var(--card-radius);
  margin-bottom: 1rem;
}
.pulse-border {
  animation: pulse-border 1.5s infinite;
  border: 1px solid var(--neon-green);
}
@keyframes pulse-border {
  0%   { box-shadow: 0 0 5px rgba(0, 255, 153, 0.2); }
  50%  { box-shadow: 0 0 15px rgba(0, 255, 153, 0.5); }
  100% { box-shadow: 0 0 5px rgba(0, 255, 153, 0.2); }
}
.neon-toast {
  background-color: var(--bg-surface);
  border: 1px solid var(--neon-green);
  box-shadow: var(--neon-glow);
  color: var(--text-primary);
  font-family: var(--font-main);
  border-radius: var(--card-radius);
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 400px;
  margin: 0 auto;
}
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--neon-green);
  border-radius: 20px;
  color: var(--neon-green);
  cursor: pointer;
  padding: 5px 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: var(--neon-glow-subtle);
}
.theme-toggle-btn:hover {
  background-color: var(--neon-green);
  color: #000;
  box-shadow: var(--neon-glow);
}
.live-clock {
  padding-left: 16px;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 6px;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.section-header h2,
.welcome-section h2 {
  background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
}
/* =============================================
 *  OVERRIDES MODO CLARO — UN SOLO BLOQUE LIMPIO
 *  Modo oscuro: INTACTO — ni una línea tocada
 * ============================================= */
/* ── Fondo con gradiente — glassmorphism necesita profundidad ── */
html.light body {
  background: linear-gradient(
    135deg,
    #dde8f5 0%,
    #e8f0fa 30%,
    #f0f4f8 60%,
    #e4ecf5 100%
  ) fixed !important;
}
/* ── Header — transparente con borde azul fino ── */
html.light header,
html.light .main-header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(37, 99, 235, 0.30) !important;
  box-shadow: none !important;
}
/* ── Contenedores — azul marino glass ── */
html.light .neon-box,
html.light .welcome-section,
html.light .dashboard-card,
html.light .plan-card,
html.light .settings-section,
html.light .settings-card,
html.light .settings-container,
html.light .logo-preview,
html.light .company-logo-section,
html.light .file-upload-container,
html.light .neon-modal,
html.light .auth-modal,
html.light .analytics-header,
html.light .chart-card,
html.light .shared-camera-card,
html.light .admin-stat-card,
html.light .carousel-settings {
  background: rgba(37, 99, 235, 0.06) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(37, 99, 235, 0.15) !important;
  box-shadow:
  0 4px 16px rgba(37, 99, 235, 0.08),
  0 1px 3px rgba(0, 0, 0, 0.05),
  inset 0 1px 0 rgba(255, 255, 255, 0.70) !important;
}
html.light .neon-box:hover,
html.light .dashboard-card:hover,
html.light .plan-card:hover,
html.light .camera-card:hover,
html.light .shared-camera-card:hover {
  background: rgba(37, 99, 235, 0.10) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  box-shadow:
  0 8px 24px rgba(37, 99, 235, 0.12),
  0 2px 6px rgba(0, 0, 0, 0.05),
  inset 0 1px 0 rgba(255, 255, 255, 0.80) !important;
  transform: translateY(-1px) !important;
  transition: all 0.2s ease !important;
}
/* ── Camera cards ── */
html.light .camera-card {
  background: rgba(37, 99, 235, 0.06) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(37, 99, 235, 0.15) !important;
  box-shadow:
  0 4px 16px rgba(37, 99, 235, 0.08),
  inset 0 1px 0 rgba(255, 255, 255, 0.70) !important;
}
/* ── Stat cards ── */
html.light .stat-card,
html.light .info-card,
html.light .status-card {
  background: rgba(37, 99, 235, 0.05) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(37, 99, 235, 0.12) !important;
}
/* ── Sidebar ── */
html.light .sidebar {
  background: rgba(37, 99, 235, 0.05) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-right: 1px solid rgba(37, 99, 235, 0.10) !important;
}
html.light .sidebar-nav a,
html.light .sidebar-nav .nav-item {
  color: var(--text-primary) !important;
}
html.light .sidebar-nav a:hover,
html.light .sidebar-nav .nav-item:hover,
html.light .sidebar-nav a.active,
html.light .sidebar-nav .nav-item.active {
  background: rgba(37, 99, 235, 0.10) !important;
  border-left: 3px solid #2563eb !important;
  color: #1e40af !important;
}
/* ── Fondos vistas — transparentes para ver el gradiente ── */
html.light .dashboard-container,
html.light .mi-plan-view,
html.light .camera-share-container,
html.light .shared-access-container,
html.light .private-route-container,
html.light .auth-loading {
  background: transparent !important;
}
/* ── Legal — siempre oscuro ── */
.legal-container,
html.light .legal-container {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%) !important;
  color: #e0e0e0 !important;
}
.legal-content,
html.light .legal-content {
  background: rgba(26, 26, 46, 0.95) !important;
  color: #e0e0e0 !important;
}
/* ── Footer ── */
html.light .app-footer {
  background: rgba(37, 99, 235, 0.05) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-top: 1px solid rgba(37, 99, 235, 0.15) !important;
}
html.light .footer-section h4,
html.light .logo-text { color: #2563eb !important; }
html.light .logo-sub,
html.light .footer-copyright,
html.light .footer-hours,
html.light .tech-text,
html.light .version-text { color: var(--text-secondary) !important; }
html.light .footer-links a { color: var(--text-secondary) !important; }
html.light .footer-links a:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}
/* ── Botones — cyan puro ── */
html.light .neon-btn,
html.light button.primary,
html.light .btn-primary {
  background: linear-gradient(
    160deg,
    #0e7490 0%,
    #0891b2 50%,
    #06b6d4 100%
  ) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  border: 1px solid rgba(6, 182, 212, 0.50) !important;
  border-radius: 10px !important;
  box-shadow:
  0 2px 8px rgba(8, 145, 178, 0.35),
  inset 0 1px 0 rgba(255, 255, 255, 0.30),
  inset 0 -1px 0 rgba(0, 0, 0, 0.12) !important;
  transition: all 0.2s ease !important;
  filter: none !important;
}
html.light .neon-btn:hover {
  background: linear-gradient(
    160deg,
    #0891b2 0%,
    #06b6d4 50%,
    #22d3ee 100%
  ) !important;
  box-shadow:
  0 6px 18px rgba(6, 182, 212, 0.45),
  inset 0 1px 0 rgba(255, 255, 255, 0.35),
  inset 0 -1px 0 rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px) !important;
  filter: none !important;
}
html.light .neon-btn:active {
  transform: translateY(0px) !important;
  box-shadow: 0 1px 4px rgba(8, 145, 178, 0.25),
  inset 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}
html.light .neon-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}
/* ── Inputs ── */
html.light .neon-input,
html.light input:not([type="checkbox"]):not([type="radio"]),
html.light select,
html.light textarea {
  background: rgba(255, 255, 255, 0.80) !important;
  border: 1px solid #cbd5e1 !important;
  color: var(--text-primary) !important;
}
html.light .neon-input:focus,
html.light input:focus,
html.light select:focus,
html.light textarea:focus {
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.20) !important;
  border-color: #0891b2 !important;
  outline: none !important;
}
html.light .file-upload-input {
  background: rgba(255, 255, 255, 0.80) !important;
  color: var(--text-primary) !important;
  border: 1px solid #cbd5e1 !important;
}
/* ── Carrusel inputs ── */
html.light .carousel-settings input[type="number"],
html.light .carousel-settings input[type="file"],
html.light .carousel-settings label,
html.light .carousel-settings .status-message,
html.light .carousel-settings .loading {
  color: var(--text-primary) !important;
}
html.light .carousel-settings hr {
  border-color: rgba(37, 99, 235, 0.15) !important;
}
/* ── Animaciones — desactivadas en claro ── */
html.light .neon-box::before {
  background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.25), transparent) !important;
}
html.light .neon-border-animated {
  animation: none !important;
  border: 1px solid rgba(37, 99, 235, 0.20) !important;
}
html.light .plan-card {
  animation: none !important;
}
@keyframes pulse-border-blue {
  0%   { box-shadow: 0 0 4px rgba(8, 145, 178, 0.15); }
  50%  { box-shadow: 0 0 12px rgba(8, 145, 178, 0.30); }
  100% { box-shadow: 0 0 4px rgba(8, 145, 178, 0.15); }
}
html.light .pulse-border {
  animation: pulse-border-blue 1.5s infinite !important;
  border: 1px solid rgba(8, 145, 178, 0.30) !important;
}
/* ── Títulos — azul estático en claro ── */
html.light .section-header h2,
html.light .welcome-section h2 {
  background: linear-gradient(45deg, #1e40af, #2563eb, #0891b2) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: none !important;
}
/* ── Textos ── */
html.light .welcome-date,
html.light .notification-time,
html.light .last-seen,
html.light .timestamp { color: var(--text-secondary) !important; }
html.light .welcome-section p { color: var(--text-primary) !important; }
html.light .form-group label,
html.light label { color: #475569 !important; }
/* ── Logo empresa ── */
html.light .company-logo {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  filter: none !important;
}
html.light .company-name {
  color: #1e40af !important;
  text-shadow: none !important;
}
/* ── Varios ── */
html.light .admin-stat-value { color: #1e40af !important; text-shadow: none !important; }
html.light .admin-log-item { border-left: 3px solid #0891b2 !important; }
html.light .auth-modal-header { border-bottom: 2px solid #0891b2 !important; }
html.light .mi-plan-header { border-bottom: 1px solid rgba(37, 99, 235, 0.15) !important; }
html.light .share-header,
html.light .shared-access-header { border-bottom: 1px solid rgba(37, 99, 235, 0.15) !important; box-shadow: none !important; }
html.light .plan-card.active,
html.light .plan-card.selected { border: 2px solid rgba(8, 145, 178, 0.40) !important; }
html.light .upload-drop-zone { border: 2px dashed rgba(8, 145, 178, 0.30) !important; background: rgba(8, 145, 178, 0.03) !important; }
html.light .upload-drop-zone:hover { border-color: #0891b2 !important; background: rgba(8, 145, 178, 0.06) !important; }
/* ========================================= */
/*             Header Neón Completo          */
/*     Archivo: src/css/Header.css           */
/* ========================================= */

header {
  width: 100%;
  height: 65px;
  background-color: var(--header-bg);          /* era #121212 */
  border-radius: 12px;
  border: 1px solid var(--neon-green);          /* era #00ff80 */
  box-shadow: var(--neon-glow);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 16px;
  overflow: hidden;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 0;
  gap: 12px;
}

/* ☀️🌙 Toggle tema — sustituye al status-dot, misma zona izquierda */
.theme-toggle-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin-right: 10px;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.theme-toggle-btn:hover {
  transform: scale(1.2);
  background-color: rgba(0, 255, 153, 0.1);
}

/* Título de la app (centrado — márgenes intactos) */
.app-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--neon-green);                     /* era #00ff80 */
  text-shadow: 0 0 2px var(--neon-green);
  line-height: 1.2;
  margin-left: 38px;
  transform: translateX(8px);
}

.app-title .line1 {
  font-size: 18px;
  font-weight: bold;
}

.app-title .line2 {
  font-size: 16px;
}

/* Botón del menú (derecha) */
.menu-toggle {
  display: flex;
  align-items: left;
  justify-content: left;
  height: 90%;
  width: auto;
  margin-left: 0px;
  margin-right: 4px;
}

.menu-toggle img {
  height: 80%;
  width: auto;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 600px) {
  .theme-toggle-btn {
    font-size: 16px;
    width: 24px;
    height: 24px;
  }

  .app-title .line1 {
    font-size: 16px;
  }

  .app-title .line2 {
    font-size: 14px;
  }

  .menu-toggle img {
    height: 65%;
    max-width: 65%;
  }
}

@media (max-width: 400px) {
  .theme-toggle-btn {
    font-size: 14px;
    width: 20px;
    height: 20px;
  }

  .app-title .line1 {
    font-size: 14px;
  }

  .app-title .line2 {
    font-size: 12px;
  }

  .menu-toggle img {
    height: 60%;
    max-width: 60%;
  }
}
/* ========================================= */
/*            Menú Lateral (Sidebar) - Fusión         */
/* ========================================= */

.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3) !important; /* ✅ transparencia real */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 60px;
    z-index: 50;
    box-shadow: 0 0 15px rgba(0, 255, 128, 0.2);
    transition: all 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    left: 0;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.side-menu li {
    padding: 0;
    margin: 0;
    border-left: 3px solid transparent;
}

.side-menu li a {
    display: block;
    padding: 1rem;
    color: var(--neon-green) !important; /* ✅ verde neón forzado por cascada */
    text-shadow: 0 0 2px #00ff80;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.side-menu li a:hover {
    background-color: rgba(0, 255, 128, 0.08);
    border-left: 3px solid #00ff80;
}

.side-menu li a.active {
    background-color: rgba(0, 255, 128, 0.1);
    border-left: 3px solid #00ff80;
    font-weight: 600;
}

.side-menu li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    position: relative;
}

/* ========================================= */
/*     Footer del sidebar - Mejora Nueva     */
/* ========================================= */

.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(0, 255, 128, 0.2);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8em;
}

.user-role, .user-plan {
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    font-size: 0.75em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.user-role {
    background: rgba(0, 255, 128, 0.15);
    color: var(--neon-green);
    text-shadow: 0 0 3px #00ff80;
    border: 1px solid rgba(0, 255, 128, 0.3);
}

.user-plan {
    background: rgba(255, 107, 0, 0.15);
    color: #ff6b00;
    text-shadow: 0 0 3px #ff6b00;
    border: 1px solid rgba(255, 107, 0, 0.3);
}

/* ========================================= */
/*     Separador de secciones - Mejora Nueva     */
/* ========================================= */

.sidebar-separator {
    margin: 16px 0 8px 0;
    padding: 8px 16px;
    font-size: 0.85em;
    font-weight: bold;
    color: rgba(0, 255, 128, 0.7);
    text-shadow: 0 0 2px rgba(0, 255, 128, 0.5);
    border-bottom: 1px solid rgba(0, 255, 128, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-separator span {
    position: relative;
}

.sidebar-separator span::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #00ff80;
    border-radius: 50%;
    box-shadow: 0 0 4px #00ff80;
}

/* ========================================= */
/*     Elemento de cerrar sesión especial - Mejora Nueva     */
/* ========================================= */

.logout-item {
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}

.logout-item a {
    color: #ff6b6b !important;
    text-shadow: 0 0 2px #ff6b6b !important;
    transition: all 0.3s ease;
}

.logout-item:hover {
    border-left: 3px solid #ff6b6b !important;
}

.logout-item:hover a {
    color: #ff4444 !important;
    text-shadow: 0 0 4px #ff4444 !important;
    background-color: rgba(255, 107, 107, 0.08) !important;
}

/* ========================================= */
/*     Efectos especiales para elementos - Mejoras Nuevas     */
/* ========================================= */

/* Hover effects para elementos especiales */
.side-menu li:has(.user-role) {
    border-left: none !important;
}

.side-menu li:has(.sidebar-separator) {
    border-left: none !important;
}

/* Efectos de animación para roles admin */
.side-menu li a[href*="admin"] {
    position: relative;
    overflow: hidden;
}

.side-menu li a[href*="admin"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 128, 0.1), transparent);
    transition: left 0.5s ease;
}

.side-menu li a[href*="admin"]:hover::before {
    left: 100%;
}

/* Indicador de permisos especiales */
.side-menu li a[href="/camera-share"] i::after,
.side-menu li a[href="/analytics"] i::after,
.side-menu li a[href="/recordings"] i::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background: #00ff80;
    border-radius: 50%;
    box-shadow: 0 0 4px #00ff80;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* ========================================= */
/*     Efectos adicionales para el menú activo - Mejoras Nuevas     */
/* ========================================= */

.side-menu.active .sidebar-footer {
    animation: slideUpFade 0.5s ease 0.3s both;
}

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

/* ========================================= */
/*     Scroll personalizado para el sidebar - Mejoras Nuevas     */
/* ========================================= */

.side-menu::-webkit-scrollbar {
    width: 4px;
}

.side-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.side-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 128, 0.3);
    border-radius: 2px;
}

.side-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 128, 0.5);
}

/* ========================================= */
/*     Overlay para cerrar el menú - Original     */
/* ========================================= */

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 49;
    display: none;
    transition: var(--transition);
}

.sidebar-overlay.active {
    display: block;
}

/* ========================================= */
/*     Media queries para responsividad - Original + Mejoras     */
/* ========================================= */

@media (max-width: 600px) {
    .side-menu {
        width: 200px;
        left: -200px;
    }

    .side-menu li a {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* Mejoras responsive para footer */
    .sidebar-footer {
        padding: 12px;
    }

    .user-info {
        font-size: 0.75em;
        gap: 4px;
    }

    .user-role, .user-plan {
        padding: 3px 6px;
        font-size: 0.7em;
    }

    .sidebar-separator {
        padding: 6px 12px;
        font-size: 0.8em;
        margin: 12px 0 6px 0;
    }
}

@media (max-width: 400px) {
    .side-menu {
        width: 80%;
        left: -80%;
    }

    /* Mejoras responsive para footer en móviles pequeños */
    .sidebar-footer {
        padding: 10px;
    }

    .user-info {
        font-size: 0.7em;
    }

    .sidebar-separator {
        font-size: 0.75em;
    }
}
.modal-content {
    background-color: rgba(18, 18, 18, 0.95);
    border: 2px solid #39ff14;
    box-shadow:
    0 0 12px rgba(57, 255, 20, 0.3),
    0 0 24px rgba(57, 255, 20, 0.2),
    inset 0 0 10px rgba(57, 255, 20, 0.1);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 420px;
    margin: 0 auto;
}

/* Inputs estilo neón */
.modal-content input {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border: 1px solid rgba(57, 255, 20, 0.4);
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-content input:focus {
    border-color: #39ff14;
    box-shadow: 0 0 8px #39ff14cc;
}

/* Botones con efecto neón */
.modal-content button {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    font-weight: bold;
    background-color: #39ff14;
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 0 10px #39ff14aa;
    transition: background-color 0.3s, transform 0.1s;
}

.modal-content button:hover {
    background-color: #5fff3d;
    transform: scale(1.02);
}

/* Tabs neón */
.auth-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.auth-tabs button {
    background: none;
    border: none;
    color: #39ff14;
    font-weight: bold;
    padding: 10px 16px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.auth-tabs button.active {
    border-bottom: 2px solid #39ff14;
    color: var(--text-primary);
    text-shadow: 0 0 6px #39ff14aa;
}
.btn {
    font-family: 'Segoe UI', sans-serif;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 0 6px rgba(57, 255, 20, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Variante: primary */
.btn.primary {
    background-color: #39ff14;
    color: #000;
    box-shadow: 0 0 10px #39ff14aa;
}

.btn.primary:hover {
    background-color: #5fff3d;
    transform: scale(1.03);
}

/* Variante: secondary */
.btn.secondary {
    background-color: transparent;
    border: 2px solid #39ff14;
    color: #39ff14;
}

.btn.secondary:hover {
    background-color: rgba(57, 255, 20, 0.05);
    transform: scale(1.02);
}

/* Variante: icon */
.btn.icon {
    background: none;
    border: none;
    color: #39ff14;
    padding: 6px 10px;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.icon:hover {
    color: #5fff3d;
}
/* ========================================
 *  🎯 ESTILOS ORIGINALES - NO MODIFICAR
 *  ======================================== */

.plan-status-container {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #39ff14;
    border-radius: 12px;
    padding: 16px;
    margin: 16px auto;
    color: #39ff14;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 0 15px #39ff14;
}

.plan-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.plan-details li {
    list-style: none;
    margin: 6px 0;
    font-weight: 500;
}

/* ========================================
 *  ✨ NUEVAS FUNCIONALIDADES EXTENDIDAS
 *  ======================================== */

/* Sección de uso */
.usage-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(57, 255, 20, 0.3);
}

.usage-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #39ff14;
    font-weight: 600;
}

/* Items de uso individual */
.usage-item {
    margin-bottom: 12px;
    text-align: left;
}

.usage-item:last-child {
    margin-bottom: 0;
}

.usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.usage-percentage {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #39ff14;
    font-size: 0.85rem;
}

/* Barras de progreso */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(57, 255, 20, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease-out;
    position: relative;
    background: #39ff14;
    box-shadow: 0 0 8px #39ff14;
}

/* Estados de progreso */
.progress-fill.good {
    background: #39ff14;
    box-shadow: 0 0 8px #39ff14;
}

.progress-fill.warning {
    background: linear-gradient(90deg, #39ff14, #ffaa00);
    box-shadow: 0 0 8px #ffaa00;
}

.progress-fill.critical {
    background: linear-gradient(90deg, #ffaa00, #ff4757);
    box-shadow: 0 0 8px #ff4757;
    animation: criticalPulse 1.5s ease-in-out infinite alternate;
}

@keyframes criticalPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Advertencias de uso */
.usage-warning {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #ffaa00;
    font-weight: 500;
    text-align: center;
}

/* Alerta de upgrade */
.upgrade-alert {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid #39ff14;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: upgradeGlow 2s ease-in-out infinite alternate;
}

@keyframes upgradeGlow {
    0% {
        box-shadow: 0 0 5px #39ff14;
        background: rgba(57, 255, 20, 0.1);
    }
    100% {
        box-shadow: 0 0 15px #39ff14;
        background: rgba(57, 255, 20, 0.15);
    }
}

/* ========================================
 *  📱 RESPONSIVE - MANTENER COMPATIBILIDAD
 *  ======================================== */

@media (max-width: 768px) {
    .plan-status-container {
        margin: 12px;
        padding: 12px;
        max-width: calc(100% - 24px);
    }

    .plan-title {
        font-size: 1.2rem;
    }

    .usage-title {
        font-size: 1rem;
    }

    .usage-header {
        font-size: 0.85rem;
    }

    .usage-percentage {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .usage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .usage-percentage {
        align-self: flex-end;
    }
}

/* ========================================
 *  🎯 MEJORAS DE ACCESIBILIDAD
 *  ======================================== */

@media (prefers-reduced-motion: reduce) {
    .progress-fill,
    .upgrade-alert {
        transition: none;
        animation: none;
    }

    .progress-fill.critical {
        animation: none;
    }
}

/* Mejorar contraste para accesibilidad */
@media (prefers-contrast: high) {
    .plan-status-container {
        border-width: 3px;
        background: rgba(0, 0, 0, 0.8);
    }

    .progress-bar {
        border-width: 2px;
    }
}
/* ========================================= */
/*    Dashboard Styles - Fusión              */
/* ========================================= */

.dashboard-container {
  min-height: 100vh;
  background: var(--dashboard-bg);
  color: var(--text-primary);
  padding: 0;
  overflow-x: hidden;
  /* Evitar solapamiento con header al 75% */
  padding-top: 85px;
  box-sizing: border-box;
}

.dashboard-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========================================
 *  🎯 EFECTOS NEÓN BASE
 *  ======================================== */

.neon-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow:
  0 0 20px var(--neon-glow-subtle),
  
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.neon-box:hover {
  border-color: var(--card-border);
  box-shadow:
  
  
  transform: translateY(-2px);
}

.neon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
  animation: borderGlow 3s infinite;
}

@keyframes borderGlow {
  0% { left: -100%; }
  100% { left: 100%; }
}

.neon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--neon-green);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  justify-content: center;
  min-width: 180px;
}

.neon-btn:hover {
  background: var(--bg-surface-alt);
  border-color: var(--neon-green);
  box-shadow: var(--card-shadow);
  transform: translateY(-1px);
}

.neon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.neon-btn .btn-icon {
  font-size: 1.1em;
  margin-right: 8px;
}

/* ========================================
 *  🏢 LOGO DEL PROPIETARIO
 *  ======================================== */

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
  padding-top: 10px;
}

.company-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: var(--card-shadow);
}

.company-name {
  font-size: 1.5rem;
  color: var(--neon-green);
  text-shadow: none;
  text-align: center;
}

.owner-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.owner-logo {
  max-height: 80px;
  max-width: 200px;
  width: 120px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--card-border);
  box-shadow:
  0 0 20px var(--neon-glow-subtle),
  0 0 8px var(--neon-green),
  0 0 16px rgba(0, 255, 153, 0.2),
  inset 0 0 6px rgba(0, 255, 153, 0.1);
  background-color: #111;
  transition: all 0.3s ease;
}

.owner-logo:hover {
  transform: scale(1.05);
  box-shadow: 
}

/* ========================================
 *  🏠 SECCIÓN DE BIENVENIDA
 *  ======================================== */

.welcome-section {
  text-align: center;
  background: var(--bg-surface);
  margin-bottom: 30px;
  position: relative;
}

.welcome-section h2 {
  font-size: 2.2em;
  margin: 0 0 12px 0;
  background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
  color: var(--neon-green);
}

.welcome-date {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 16px 0;
  font-size: 0.9rem;
}

.user-info {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.plan-label, .role-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 1px;
}

.plan-label {
  background: linear-gradient(135deg, #00ff00, #00aa00);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.role-label {
  background: linear-gradient(135deg, #ff6b00, #ff9500);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ========================================
 *  🔔 BANNER DE NOTIFICACIONES
 *  ======================================== */

.notifications-banner {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
  border-color: rgba(255, 193, 7, 0.4);
  animation: pulseWarning 2s ease-in-out infinite;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.notification-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #ffc107;
  font-size: 1.2em;
}

.notification-header i {
  animation: bellRing 1s ease-in-out infinite;
}

.mark-read-btn {
  background: transparent;
  border: 1px solid rgba(255, 193, 7, 0.5);
  color: #ffc107;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.mark-read-btn:hover {
  background: rgba(255, 193, 7, 0.1);
  border-color: #ffc107;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid #ffc107;
}

.notification-text {
  flex: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95em;
}

.notification-time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8em;
  white-space: nowrap;
  margin-left: 12px;
}

@keyframes pulseWarning {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.2); }
  50% { box-shadow: 0 0 30px rgba(255, 193, 7, 0.4); }
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-15deg); }
}

/* ========================================
 *  📈 RESUMEN DE ESTADO
 *  ======================================== */

.status-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0 30px 0;
}

.status-card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  min-width: 240px;
  flex: 1 1 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  transition: all 0.3s ease;
}

.status-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.status-icon {
  background-color: rgba(0, 255, 153, 0.1);
  color: var(--neon-green);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 15px;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  color: #000;
  font-size: 1.5em;
  box-shadow: var(--card-shadow);
}

.status-content {
  flex: 1;
}

.status-content h3 {
  font-size: 1.1em;
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  color: var(--text-secondary);
}

.status-value {
  font-size: 2em;
  font-weight: bold;
  margin: 0 0 4px 0;
  color: var(--neon-green);
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.8rem;
  color: var(--neon-green);
}

.limit-info {
  font-size: 0.6em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: normal;
}

.status-detail {
  margin: 0;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.warning-text {
  margin: 4px 0 0 0;
  font-size: 0.85em;
  color: #ff6b00;
  font-weight: 500;
  animation: pulseWarning 1.5s ease-in-out infinite;
}

/* ========================================
 *  ⚡ ACCIONES RÁPIDAS
 *  ======================================== */

.quick-actions {
  margin-bottom: 30px;
}

.quick-actions h3 {
  margin: 0 0 20px 0;
  font-size: 1.3em;
  color: var(--neon-green);
  margin-bottom: 15px;
  color: var(--text-color);
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
}

.action-buttons .neon-btn {
  justify-content: center;
  padding: 16px 20px;
  font-size: 1em;
  width: 100%;
  padding: 15px;
  background-color: rgba(0, 255, 153, 0.1);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.action-btn:hover {
  background-color: rgba(0, 255, 153, 0.1);
  box-shadow: var(--neon-glow);
}

.btn-icon {
  margin-right: 10px;
}

/* ========================================
 *  📹 CÁMARAS RECIENTES
 *  ======================================== */

.recent-cameras {
  margin-bottom: 30px;
}

.recent-cameras h3 {
  margin: 0 0 20px 0;
  font-size: 1.3em;
  color: var(--neon-green);
}

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

.section-header h3 {
  color: var(--text-color);
}

.view-all {
  color: var(--neon-green);
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
  color: var(--neon-green);
  font-size: 0.9rem;
}

.view-all:hover {
  color: var(--neon-green);
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.camera-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  color: var(--text-color);
  min-width: 240px;
}

.camera-card:hover {
  border-color: var(--card-border);
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.camera-thumbnail {
  width: 100%;
  height: 180px;
  position: relative;
  background-color: #000;
  overflow: hidden;
  height: 120px;
}

.camera-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.camera-card:hover .camera-thumbnail img {
  transform: scale(1.05);
}

.no-thumbnail {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
  color: rgba(255, 255, 255, 0.5);
  font-size: 3em;
  font-size: 2rem;
  color: var(--neon-green);
}

.camera-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 500;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--text-primary);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 10px;
  top: 10px;
  right: 10px;
}

.camera-status.online {
  background: rgba(0, 255, 0, 0.2);
  color: #00ff00;
  border: 1px solid rgba(0, 255, 0, 0.5);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  background-color: rgba(76, 175, 80, 0.8);
}

.camera-status.offline {
  background: rgba(255, 100, 100, 0.2);
  color: #ff6464;
  border: 1px solid rgba(255, 100, 100, 0.5);
  box-shadow: 0 0 10px rgba(255, 100, 100, 0.3);
  background-color: rgba(244, 67, 54, 0.8);
}

.camera-info {
  padding: 16px;
  padding: 15px;
}

.camera-info h4 {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  color: var(--text-primary);
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.camera-info p {
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.last-seen {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8em;
}

/* ========================================
 *  📷 ESTADO SIN CÁMARAS
 *  ======================================== */

.no-cameras {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
}

.no-cameras p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.fancy-no-cameras {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background-color: #000;
  border-radius: 12px;
  margin: 30px auto;
  padding: 40px 20px;
  box-shadow: inset 0 0 10px rgba(0, 255, 100, 0.2);
}

.tv-interference {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
  repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.02) 2px,
                            rgba(255, 255, 255, 0.02) 4px
  );
  animation: tvStatic 0.1s linear infinite;
  width: 100%;
  height: 100%;
  background-image:
  repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 100, 0.04) 0px,
                            rgba(0, 255, 100, 0.04) 2px,
                            transparent 2px,
                            transparent 4px
  ),
  linear-gradient(
    to right,
    rgba(0, 255, 150, 0.02) 0%,
                  rgba(255, 255, 255, 0.03) 50%,
                  rgba(0, 255, 150, 0.02) 100%
  );
  animation:
  flicker 1.3s infinite ease-in-out,
  scanline 5s linear infinite;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.no-camera-icon {
  position: relative;
  z-index: 1;
  color: #3ef0d5;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.no-camera-icon i {
  font-size: 4em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
  display: block;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--neon-green);
}

.no-camera-icon p {
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 30px 0;
}

.add-camera-link {
  position: relative;
  z-index: 1;
  color: var(--neon-green);
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.2s;
}

.add-camera-link:hover {
  color: var(--neon-green);
}

@keyframes tvStatic {
  0% { transform: translateY(0px); }
  100% { transform: translateY(2px); }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.15;
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* ========================================
 *  📤 SUBIDA DE CARRUSEL
 *  ======================================== */

.carousel-upload-section {
  margin-bottom: 30px;
}

.carousel-upload-section h3 {
  margin: 0 0 20px 0;
  font-size: 1.3em;
  color: var(--neon-green);
}

.upload-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upload-area input[type="file"] {
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 2px dashed var(--card-border);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area input[type="file"]:hover {
  border-color: var(--neon-green);
  background: var(--bg-surface-alt);
}

.upload-area input[type="file"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.selected-files {
  padding: 16px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--card-border);
  border-radius: 8px;
}

.selected-files p {
  margin: 0 0 12px 0;
  color: var(--neon-green);
  font-weight: 500;
}

.selected-files ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.selected-files li {
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-files li:last-child {
  border-bottom: none;
}

.upload-btn {
  align-self: flex-start;
  min-width: 180px;
}

/* ========================================
 *  🔗 ESTADO DE CONEXIÓN
 *  ======================================== */

.connection-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9em;
  backdrop-filter: blur(10px);
  border: 1px solid;
  transition: all 0.3s ease;
}

.status-indicator.online {
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  border-color: rgba(0, 255, 0, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.status-indicator.offline {
  background: rgba(255, 0, 0, 0.1);
  color: #ff4444;
  border-color: rgba(255, 0, 0, 0.3);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
  animation: pulseOffline 2s ease-in-out infinite;
}

@keyframes pulseOffline {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ========================================
 *  ⏳ ESTADOS DE CARGA
 *  ======================================== */

.loading-state {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.6);
}

.loading-state i {
  font-size: 2em;
  margin-bottom: 16px;
  color: var(--neon-green);
  animation: spin 1s linear infinite;
}

.loading-state p {
  margin: 0;
  font-size: 1.1em;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================
 *  🎨 BOTONES Y ELEMENTOS COMUNES
 *  ======================================== */

.btn {
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn.primary {
  background-color: rgba(0, 255, 153, 0.1);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
}

.btn.primary:hover {
  background-color: rgba(0, 255, 153, 0.15);
  box-shadow: var(--neon-glow);
}

/* ========================================
 *  📱 RESPONSIVE DESIGN
 *  ======================================== */

@media (max-width: 768px) {
  .dashboard-container {
    padding-top: 90px;
  }

  .dashboard-content {
    padding: 16px;
    gap: 20px;
  }

  .welcome-section h2 {
    font-size: 1.8em;
  }

  .status-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .status-card {
    padding: 16px;
  }

  .status-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3em;
  }

  .status-value {
    font-size: 1.6em;
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }

  .camera-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-template-columns: 1fr;
  }

  .notification-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .notification-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .connection-status {
    bottom: 10px;
    right: 10px;
  }

  .user-info {
    flex-direction: column;
    align-items: center;
  }

  .company-logo {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .dashboard-content {
    padding: 12px;
  }

  .neon-box {
    padding: 16px;
  }

  .welcome-section h2 {
    font-size: 1.5em;
  }

  .status-summary {
    grid-template-columns: 1fr;
  }

  .status-value {
    font-size: 1.4em;
  }

  .camera-grid {
    grid-template-columns: 1fr;
  }

  .camera-thumbnail {
    height: 150px;
  }

  .fancy-no-cameras {
    padding: 40px 16px;
  }

  .no-camera-icon i {
    font-size: 3em;
  }

  .company-logo {
    width: 120px;
    height: 120px;
  }
}
/* ==== FIX: evitar que la capa verde tape el vídeo en cards ==== */

.camera-card .camera-thumbnail::before,
.camera-card .camera-thumbnail::after,
.camera-thumbnail::before,
.camera-thumbnail::after,
.camera-thumbnail.loading::before,
.camera-thumbnail.loading::after {
  content: none !important;
  background: transparent !important;
  opacity: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.camera-thumbnail {
  position: relative;
  background: #000 !important;
  overflow: hidden;
}

.camera-thumbnail video,
.camera-thumbnail img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Títulos gradiente animado — todas las secciones ── */
.section-header h2 {
  background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
  margin: 0;
}

/* ── Títulos gradiente animado — todas las secciones ── */
.section-header h2 {
  background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
  margin: 0;
}
.gradient-title {
  background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
}
/* ============================================
📁 frontend/src/css/CameraCard.css
Estilos para el componente CameraCard
============================================ */

/* Camera Card Container */
.camera-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.camera-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: var(--neon-green);
}

/* Camera Thumbnail Container */
.camera-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background: #000;
    overflow: hidden;
}

/* Video Preview */
.camera-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
}

/* No Thumbnail Placeholder */
.no-thumbnail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-alt) 100%);
    color: rgba(255, 255, 255, 0.5);
}

.no-thumbnail i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-thumbnail p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.no-thumbnail .error-text {
    color: #dc3545;
    font-size: 0.8rem;
}

/* Live Indicator */
.live-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(220, 53, 69, 0.9);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
    animation: pulse 2s infinite;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Camera Status Badge */
.camera-status {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
    backdrop-filter: blur(10px);

    /* 👇 clave: que NO intercepte clics */
    pointer-events: none;
}

.camera-status.online {
    background: rgba(40, 167, 69, 0.9);
    color: var(--text-primary);
}

.camera-status.offline {
    background: rgba(108, 117, 125, 0.9);
    color: var(--text-primary);
}

/* Camera Indicators */
.camera-indicators {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 0.75rem;
}

.indicator.recording {
    color: #dc3545;
    animation: recording-pulse 1.5s infinite;
}

.indicator.motion {
    color: #ffc107;
}

.indicator.ai {
    color: var(--neon-green);
}

@keyframes recording-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Quick Controls */
.camera-quick-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.camera-card:hover .camera-quick-controls {
    opacity: 1;
}

.quick-control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-control-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--neon-green);
    transform: scale(1.1);
}

/* Camera Info */
.camera-info {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.camera-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.camera-location {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}

.camera-location i {
    font-size: 0.75rem;
    color: rgba(0, 255, 255, 0.7);
}

.last-seen {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

.retry-info {
    display: block;
    font-size: 0.7rem;
    color: #ffc107;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Camera Grid (parent container styles) */
.camera-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .camera-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .camera-thumbnail {
        height: 150px;
    }

    .no-thumbnail i {
        font-size: 2rem;
    }

    .camera-info {
        padding: 0.75rem;
    }

    .camera-info h4 {
        font-size: 0.9rem;
    }

    .camera-location {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .camera-grid {
        grid-template-columns: 1fr;
    }

    .camera-thumbnail {
        height: 180px;
    }
}

/* Loading animation for streams */
@keyframes stream-loading {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.camera-thumbnail.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.1),
                                transparent
    );
    background-size: 200% 100%;
    animation: stream-loading 1.5s infinite;
    z-index: 1;
}
/* ==== FIX: evitar que la capa verde tape el vídeo ==== */

/* Cualquier pseudo-elemento que pinte encima de la cámara, lo anulamos */
.camera-card .camera-thumbnail::before,
.camera-card .camera-thumbnail::after,
.camera-thumbnail::before,
.camera-thumbnail::after,
.camera-thumbnail.loading::before,
.camera-thumbnail.loading::after {
    content: none !important;
    background: transparent !important;
    opacity: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

/* Aseguramos que el vídeo está por encima de cualquier capa rara */
.camera-thumbnail {
    position: relative;
    background: #000; /* fondo neutro detrás del vídeo */
    overflow: hidden;
}

.camera-thumbnail video,
.camera-thumbnail img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Camera status dentro de la card: badge pequeño en la esquina */
.camera-card .camera-status {
    position: absolute;
    top: 10px;
    left: 10px;

    /* anulamos cualquier invento anterior */
    right: auto;
    bottom: auto;
    width: auto;
    height: auto;
    transform: none;

    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    z-index: 3;

    /* 👇 importantísimo: no bloquear clics del vídeo */
    pointer-events: none;
}

.camera-card .camera-status.online {
    background-color: rgba(40, 167, 69, 0.9);
    color: var(--text-primary);
}

.camera-card .camera-status.offline {
    background-color: rgba(220, 53, 69, 0.9);
    color: var(--text-primary);
}
/* frontend/src/css/CameraShare.css */

/* ═══════════════════════════════════════════════════════════════
 *  CONTENEDOR PRINCIPAL
 *  ═══════════════════════════════════════════════════════════════ */

.camera-share-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  padding: 0;
  padding-top: 160px; /* ✅ AUMENTADO a 160px para evitar solapamiento total */
}

.share-header {
  position: fixed;
  top: 60px; /* Debajo del header principal */
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 2px solid #00ffff;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
}

.share-header .back-button {
  background: rgba(0, 255, 255, 0.2);
  border: 2px solid #00ffff;
  border-radius: 20px;
  padding: 10px 16px;
  min-width: auto;
  width: auto;
}

.share-header h2 {
  font-size: 1.8rem;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════════
 *  CONTENIDO
 *  ═══════════════════════════════════════════════════════════════ */

.share-content {
  /* ✅ CORREGIDO: Sin max-width para ancho completo de página */
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
 *  FORMULARIO
 *  ═══════════════════════════════════════════════════════════════ */

/* Asegurar que neon-box NO tenga estilo visible - SOLO TÍTULO FLOTANTE */
.share-form.neon-box {
  background: transparent; /* ✅ SIN FONDO */
  border: none;            /* ✅ SIN BORDE */
  border-radius: 0;
  padding: 2rem;
  box-shadow: none;        /* ✅ SIN SOMBRA */
}

.share-form {
  /* Clase sin estilos adicionales */
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--neon-green);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-group label i {
  margin-right: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Duración inputs */
.duration-inputs {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1rem;
}

.duration-number {
  text-align: center;
  font-weight: 600;
}

/* Checkbox group */
.checkbox-group {
  padding: 1rem;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--neon-green);
  font-weight: 600;
}

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

.checkbox-label span i {
  margin-right: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
 *  FRANJAS HORARIAS
 *  ═══════════════════════════════════════════════════════════════ */

.time-slots-section {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-title {
  color: var(--neon-green);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  font-size: 1.4rem;
}

/* Item de franja */
.time-slot-item {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.time-slot-item:hover {
  background: rgba(0, 255, 255, 0.08);
  border-color: var(--neon-green);
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

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

.slot-number {
  color: var(--neon-green);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.remove-slot-btn {
  background: rgba(255, 0, 102, 0.2);
  border: 2px solid #ff0066;
  color: #ff0066;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remove-slot-btn:hover {
  background: rgba(255, 0, 102, 0.4);
  box-shadow: 0 0 15px rgba(255, 0, 102, 0.5);
}

/* Inputs de la franja */
.slot-inputs {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.slot-field label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

/* Botón añadir franja */
.add-slot-btn {
  width: 100%;
  background-color: rgba(0, 255, 255, 0.2);
  color: var(--neon-green);
  border: 2px dashed rgba(0, 255, 255, 0.4);
  border-radius: 20px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.add-slot-btn:hover {
  background-color: rgba(0, 255, 255, 0.3);
  border-style: solid;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  transform: scale(1.02);
}

.add-slot-btn i {
  font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════════════════════
 *  ACCIONES DEL FORMULARIO
 *  ═══════════════════════════════════════════════════════════════ */

.form-actions {
  margin-top: 2rem;
}

.generate-btn {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #00ffff 0%, #00cccc 100%);
  border: none;
  color: #000;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.4);
}

.generate-btn:hover:not(:disabled) {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.6);
}

.generate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.generate-btn i {
  font-size: 1.4rem;
}

.generate-btn .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
 *  RESUMEN DE TOKENS GENERADOS
 *  ═══════════════════════════════════════════════════════════════ */

.tokens-summary {
  background: rgba(0, 255, 255, 0.05);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 12px;
  padding: 2rem;
  animation: fadeIn 0.5s ease-in-out;
}

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

.summary-header h3 {
  color: var(--neon-green);
  font-size: 1.8rem;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.summary-header h3 i {
  color: #28a745;
  font-size: 2rem;
}

/* Info del resumen */
.summary-info {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.info-value {
  color: var(--neon-green);
  font-weight: 700;
}

.pattern-repeat {
  color: var(--neon-green);
  font-weight: 600;
  justify-content: center;
  gap: 0.5rem;
}

/* Lista de tokens */
.tokens-list h4 {
  color: var(--neon-green);
  font-size: 1.3rem;
  margin: 0 0 1.5rem 0;
  font-weight: 700;
}

.token-item {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.token-item:hover {
  border-color: var(--neon-green);
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
}

.token-item.first-slot {
  border-color: var(--neon-green);
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
}

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

.token-day {
  color: var(--neon-green);
  font-size: 1.2rem;
  font-weight: 700;
}

.qr-badge {
  background: rgba(0, 255, 255, 0.2);
  border: 1px solid #00ffff;
  color: var(--neon-green);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* URL del token */
.token-url {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.url-input {
  flex: 1;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
}

.copy-btn {
  padding: 0.75rem 1.25rem;
  background: rgba(0, 255, 255, 0.2);
  border: 2px solid #00ffff;
  color: var(--neon-green);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-btn:hover {
  background: rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* Display del QR */
.qr-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  margin-top: 1rem;
}

.qr-image {
  width: 300px;
  height: 300px;
  border: 3px solid #00ffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.qr-hint {
  color: #333;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

/* Acciones del resumen */
.summary-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.reset-btn,
.back-btn {
  flex: 1;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.reset-btn {
  background: rgba(255, 193, 7, 0.2);
  border: 2px solid #ffc107;
  color: #ffc107;
}

.reset-btn:hover {
  background: rgba(255, 193, 7, 0.4);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
  transform: scale(1.03);
}

.back-btn {
  background: rgba(0, 255, 255, 0.2);
  border: 2px solid #00ffff;
  color: var(--neon-green);
}

.back-btn:hover {
  background: rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  transform: scale(1.03);
}

/* ═══════════════════════════════════════════════════════════════
 *  RESPONSIVE
 *  ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .camera-share-container {
    padding: 1rem;
    padding-top: 190px; /* ✅ AUMENTADO a 190px para evitar solapamiento en mobile */
  }

  .share-header {
    padding: 0.75rem 1rem;
    top: 56px; /* Header mobile más bajo */
  }

  .share-header h2 {
    font-size: 1.3rem;
  }

  .share-form,
  .tokens-summary {
    padding: 1.5rem;
  }

  .duration-inputs {
    grid-template-columns: 1fr;
  }

  .slot-inputs {
    grid-template-columns: 1fr;
  }

  .summary-actions {
    flex-direction: column;
  }

  .token-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .token-url {
    flex-direction: column;
  }

  .qr-image {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .back-button {
    width: 40px;
    height: 40px;
  }

  .share-header h2 {
    font-size: 1.2rem;
  }

  .qr-image {
    width: 200px;
    height: 200px;
  }

  .generate-btn {
    font-size: 1rem;
    padding: 1rem;
  }
}
.client-view {
  padding: 0;
  margin: 0;
  background-color: black;
  color: var(--neon-green);
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client-header {
  background-color: #000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid #00ffaa66;
  width: 100%;
  justify-content: center;
}

.client-header img {
  height: 40px;
}

.client-header h1 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--neon-green);
}

.owner-logo {
  margin-top: 20px;
}

.owner-logo img {
  height: 80px;
  max-width: 180px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 12px #00ffaa55;
}

.camera-stream {
  margin: 30px 0 20px;
  width: 90%;
  max-width: 640px;
  height: 360px;
  background-color: #111;
  border: 2px solid #00ffaa88;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stream-placeholder {
  color: var(--text-secondary);
  font-size: 1rem;
  text-align: center;
  padding: 1em;
}

.carousel {
  margin-top: 30px;
  width: 90%;
  max-width: 640px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel img {
  width: 100%;
  height: auto;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid #00ffaa55;
  box-shadow: 0 0 12px #00ffaa33;
}

.camera-controls {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

.client-loading,
.client-error {
  color: var(--text-primary);
  text-align: center;
  padding: 40px;
  font-size: 1.2rem;
}
/* frontend/src/css/MiPlan.css */

.mi-plan-view {
    padding: 2rem;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header Section */
.mi-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.mi-plan-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ffff, #ffffff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    margin: 0;
}

.current-plan-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    border: 2px solid;
}

.current-plan-badge.free {
    background: linear-gradient(45deg, #ffc107, #ffb300);
    border-color: #ffc107;
    color: #000;
}

.current-plan-badge.basic {
    background: linear-gradient(45deg, #28a745, #20c997);
    border-color: #28a745;
    color: var(--text-primary);
}

.current-plan-badge.premium {
    background: linear-gradient(45deg, #00ffff, #0099cc);
    border-color: var(--neon-green);
    color: #000;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.plan-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}

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

.plan-card.current {
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.plan-card.current::before {
    opacity: 1;
}

.plan-card.recommended {
    border-color: #28a745;
    position: relative;
}

.plan-card.recommended::after {
    content: 'RECOMENDADO';
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: var(--text-primary);
    padding: 0.25rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Plan Header */
.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.plan-name.free { color: #ffc107; }
.plan-name.basic { color: #28a745; }
.plan-name.premium { color: var(--neon-green); }

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px currentColor;
}

.plan-period {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.plan-description {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Features List */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.plan-feature {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.plan-feature:hover {
    background: rgba(0, 255, 255, 0.05);
    border-radius: 8px;
    border-bottom-color: transparent;
}

.plan-feature:last-child {
    border-bottom: none;
}

.plan-feature-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.plan-feature-icon.included { color: #28a745; }
.plan-feature-icon.not-included { color: #dc3545; }
.plan-feature-icon.limited { color: #ffc107; }

.plan-feature-text {
    flex: 1;
    font-size: 1rem;
}

.plan-feature-text.not-included {
    opacity: 0.5;
    text-decoration: line-through;
}

/* Plan Actions */
.plan-actions {
    margin-top: 2rem;
}

.plan-btn {
    width: 100%;
    padding: 1rem 2rem;
    border: 2px solid;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.plan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.plan-btn:hover::before {
    left: 100%;
}

.plan-btn.current {
    border-color: #6c757d;
    color: #6c757d;
    cursor: not-allowed;
}

.plan-btn.free {
    border-color: #ffc107;
    color: #ffc107;
}

.plan-btn.free:hover {
    background: #ffc107;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.5);
}

.plan-btn.basic {
    border-color: #28a745;
    color: #28a745;
}

.plan-btn.basic:hover {
    background: #28a745;
    color: var(--text-primary);
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.5);
}

.plan-btn.premium {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.plan-btn.premium:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

/* Current Usage Section */
.current-usage {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.usage-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--neon-green);
    text-align: center;
}

.usage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.usage-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.usage-stat:hover {
    border-color: var(--neon-green);
    transform: translateY(-2px);
}

.usage-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 0.5rem;
}

.usage-stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.usage-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.usage-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #00ffff);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.usage-progress-bar.warning {
    background: linear-gradient(90deg, #ffc107, #ff6b35);
}

.usage-progress-bar.danger {
    background: linear-gradient(90deg, #dc3545, #ff1744);
}

/* FAQ Section */
.faq-section {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.faq-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: rgba(0, 255, 255, 0.1);
}

.faq-answer {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0.8;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--neon-green);
}

.faq-icon.open {
    transform: rotate(180deg);
}

/* Contact Support */
.contact-support {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
}

.contact-support h3 {
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.contact-support p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.contact-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(45deg, #00ffff, #0099cc);
    color: #000;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mi-plan-view {
        padding: 1rem;
    }

    .mi-plan-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .mi-plan-title {
        font-size: 2rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .plan-card {
        padding: 1.5rem;
    }

    .usage-stats {
        grid-template-columns: 1fr;
    }

    .plan-price {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .mi-plan-title {
        font-size: 1.8rem;
    }

    .plan-card {
        padding: 1rem;
    }

    .plan-price {
        font-size: 2rem;
    }

    .current-plan-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    }
}

.plan-card.current {
    animation: glow 2s ease-in-out infinite;
}

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

.plan-card {
    animation: slideIn 0.6s ease-out forwards;
}

.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.2s; }
.plan-card:nth-child(3) { animation-delay: 0.3s; }
/* ============================================
 *  📊 frontend/src/views/Analytics/analytics.css
 *  Estilos para todos los componentes de Analytics
 *  ============================================ */

/* ============================================
 *  CONTENEDOR PRINCIPAL
 *  ============================================ */
.analytics-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* ============================================
 *  HEADER
 *  ============================================ */
.analytics-header {
    margin-bottom: 30px;
}

.analytics-header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: var(--text-primary);
}

.analytics-subtitle {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

/* ============================================
 *  CONTROLES
 *  ============================================ */
.analytics-controls {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-group label {
    font-weight: 600;
    font-size: 13px;
    color: #495057;
}

.analytics-select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.analytics-select:hover,
.analytics-select:focus {
    border-color: #80bdff;
    outline: none;
}

/* ============================================
 *  SECCIONES
 *  ============================================ */
.analytics-section {
    margin-bottom: 35px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.analytics-section h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #212529;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 12px;
}

.analytics-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #495057;
}

/* ============================================
 *  KPIs
 *  ============================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.2rem;
    background: var(--bg-surface, #1a1a2e);
    border: 1px solid rgba(0, 255, 153, 0.15);
    border-radius: var(--card-radius, 12px);
    color: var(--text-primary, #ffffff);
    transition: box-shadow 0.2s, transform 0.2s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow-subtle, 0 0 12px rgba(0,255,153,0.15));
}

.kpi-card.kpi-primary {
    border-color: var(--neon-green, #00ff99);
    box-shadow: var(--neon-glow-subtle, 0 0 12px rgba(0,255,153,0.2));
}

.kpi-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.kpi-content {
    flex: 1;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.kpi-card.kpi-primary .kpi-value {
    color: var(--neon-green, #00ff99);
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--text-secondary, rgba(255,255,255,0.6));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.stat-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.stat-value {
    color: #212529;
    font-weight: 600;
    font-size: 14px;
}

/* ============================================
 *  TABLA DE CÁMARAS
 *  ============================================ */
.camera-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.camera-table {
    width: 100%;
    border-collapse: collapse;
}

.camera-table th,
.camera-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.camera-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.camera-table tbody tr {
    transition: background 0.2s;
}

.camera-table tbody tr:hover {
    background: #f8f9fa;
}

.camera-table tbody tr.status-underutilized {
    background: #fff3cd;
}

.camera-table tbody tr.status-critical {
    background: #d1ecf1;
}

.camera-name {
    font-weight: 600;
}

.camera-status {
    font-weight: 600;
    white-space: nowrap;
}

/* Barra de porcentaje */
.percentage-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.percentage-bar {
    position: relative;
    flex: 1;
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.3s ease;
    border-radius: 12px;
}

.percentage-text {
    font-weight: 600;
    font-size: 13px;
    color: #212529;
    min-width: 45px;
}

/* Resumen de cámaras */
.camera-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-stat {
    font-size: 14px;
}

.summary-stat.warning {
    color: #856404;
}

.summary-stat.success {
    color: #155724;
}

.summary-hint {
    display: block;
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}

/* ============================================
 *  DISTRIBUCIÓN HORARIA
 *  ============================================ */
.peak-hours-container {
    margin-bottom: 25px;
}

.peak-hours-grid {
    display: flex;
    gap: 15px;
}

.peak-hour-card {
    flex: 1;
    padding: 18px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.peak-rank {
    font-size: 13px;
    font-weight: 700;
    color: #d63031;
    margin-bottom: 8px;
}

.peak-time {
    font-size: 22px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 5px;
}

.peak-sessions {
    font-size: 13px;
    color: #636e72;
}

/* Gráfico de barras */
.hourly-chart {
    display: flex;
    align-items: flex-end;
    height: 250px;
    gap: 2px;
    padding: 20px 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 15px;
}

.hour-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hour-bar-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.hour-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    min-height: 2px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

.hour-bar:hover {
    transform: scaleY(1.05);
}

.hour-bar-label {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
}

.intensity-high {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.intensity-medium {
    background: linear-gradient(180deg, #f093fb 0%, #f5576c 100%);
}

.intensity-low {
    background: linear-gradient(180deg, #ffecd2 0%, #fcb69f 100%);
}

.intensity-minimal {
    background: #e9ecef;
}

.hour-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

/* Leyenda */
.chart-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Tabla detallada */
.hourly-details {
    margin-top: 20px;
}

.hourly-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    user-select: none;
}

.hourly-details summary:hover {
    background: #e9ecef;
}

.hourly-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

.hourly-table th,
.hourly-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.hourly-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* ============================================
 *  SESIONES INDIVIDUALES
 *  ============================================ */
.sessions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.session-card {
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.2s;
}

.session-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
}

.session-camera {
    font-size: 14px;
}

.session-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.session-active {
    background: #d4edda;
    color: #155724;
}

.session-completed {
    background: #cce5ff;
    color: #004085;
}

.session-interrupted {
    background: #fff3cd;
    color: #856404;
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-detail {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.detail-label {
    color: #6c757d;
}

.detail-value {
    font-weight: 600;
    color: #212529;
}

.sessions-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.sessions-loading,
.sessions-error,
.sessions-empty {
    padding: 40px;
    text-align: center;
    color: #6c757d;
}

.sessions-error .hint {
    font-size: 13px;
    color: #856404;
    background: #fff3cd;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

/* ============================================
 *  INSIGHTS
 *  ============================================ */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insight {
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.insight-message {
    margin-bottom: 6px;
}

.insight-message strong {
    font-size: 15px;
}

.insight-recommendation {
    font-size: 14px;
    opacity: 0.9;
}

.insight-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.insight-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.insight-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* ============================================
 *  UPSELL
 *  ============================================ */
.analytics-upsell {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.upsell-hero {
    text-align: center;
    margin-bottom: 50px;
}

.upsell-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
}

.upsell-hero h1 {
    margin: 0 0 12px 0;
    font-size: 36px;
    color: var(--text-primary);
}

.upsell-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.upsell-features,
.upsell-benefits {
    margin-bottom: 40px;
}

.upsell-features h2,
.upsell-benefits h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #212529;
}

.feature-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.benefits-list strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    color: #212529;
}

.benefits-list p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.upsell-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.upsell-cta h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
}

.upsell-cta p {
    margin: 0 0 25px 0;
    font-size: 16px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cta-button-main,
.cta-button-secondary {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 700;
}

.cta-note {
    font-size: 14px;
    opacity: 0.9;
}

.upsell-testimonial {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.upsell-testimonial blockquote {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-style: italic;
    color: #495057;
}

.upsell-testimonial cite {
    font-style: normal;
    color: #6c757d;
    font-size: 14px;
}

/* ============================================
 *  ESTADOS
 *  ============================================ */
.analytics-loading,
.analytics-error,
.analytics-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 20px;
}

.analytics-error h3 {
    color: #dc3545;
    margin: 0;
}

.analytics-footer {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.analytics-footer small {
    color: #6c757d;
    font-size: 13px;
}

.empty-state {
    padding: 40px;
    text-align: center;
    color: #6c757d;
}

/* ============================================
 *  RESPONSIVE
 *  ============================================ */
@media (max-width: 768px) {
    .analytics-container {
        padding: 15px;
    }

    .analytics-header h1 {
        font-size: 24px;
    }

    .analytics-controls {
        flex-direction: column;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .peak-hours-grid {
        flex-direction: column;
    }

    .hourly-chart {
        height: 200px;
        gap: 1px;
    }

    .hour-label {
        font-size: 9px;
    }

    .sessions-list {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .camera-table {
        font-size: 13px;
    }

    .camera-table th,
    .camera-table td {
        padding: 10px 8px;
    }
}
/* ═══════════════════════════════════════════════════════════════
 *  frontend/src/views/Analytics/analytics.css — ESTILOS NUEVOS
 *  Solo clases que no existen arriba. Duplicados eliminados.
 * ═══════════════════════════════════════════════════════════════ */

/* ── Layout raíz ─────────────────────────────────────────── */
.analytics-root {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Filtros ─────────────────────────────────────────────── */
.analytics-filters {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.filter-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Badge de periodo ────────────────────────────────────── */
.period-badge {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-surface-alt);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
}

/* ── Spinner de carga ────────────────────────────────────── */
.analytics-spinner {
    font-size: 2rem;
    color: var(--neon-green);
}

/* ── Insights ─────────────────────────────────────────────── */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid;
}

.insight-warning {
    background: rgba(255, 180, 0, 0.08);
    border-color: rgba(255, 180, 0, 0.3);
}

.insight-info {
    background: rgba(0, 200, 255, 0.07);
    border-color: rgba(0, 200, 255, 0.25);
}

.insight-success {
    background: rgba(0, 255, 153, 0.07);
    border-color: rgba(0, 255, 153, 0.25);
}

.insight-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.insight-msg {
    font-size: 0.88rem;
    color: var(--text-primary);
    margin: 0;
}

.insight-rec {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0;
}

/* ── Franjas excluidas ──────────────────────────────────── */
.excluded-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    background: var(--bg-surface-alt);
    border-radius: 8px;
    border: 1px solid var(--input-border);
    width: fit-content;
}

/* ── Metadatos footer ─────────────────────────────────────── */
.analytics-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
    padding: 0 0.25rem;
}

/* ── Modo claro (glassmorphism) ───────────────────────────── */
html.light .kpi-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 100, 180, 0.2);
    backdrop-filter: blur(10px);
}

html.light .kpi-card.kpi-primary {
    border-color: var(--accent, #0ea5e9);
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.2);
}

html.light .kpi-card.kpi-primary .kpi-value {
    color: var(--accent, #0ea5e9);
}

html.light .insight-success {
    background: rgba(14, 165, 233, 0.07);
    border-color: rgba(14, 165, 233, 0.25);
}

html.light .analytics-filters {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

/* ═══════════════════════════════════════════════════════════════
 *  ESTILOS: AnalyticsClientBreakdown
 * ═══════════════════════════════════════════════════════════════ */

/* Grid de dos paneles lado a lado */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.breakdown-panel h3 {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary, rgba(255,255,255,0.6));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.breakdown-row {
    display: grid;
    grid-template-columns: 1.4rem 5rem 1fr 2.5rem 2.8rem;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.breakdown-icon {
    text-align: center;
    font-size: 1rem;
}

.breakdown-name {
    color: var(--text-primary, #fff);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Barra de progreso del breakdown */
.breakdown-bar-track {
    height: 8px;
    background: var(--bg-surface-alt, rgba(255,255,255,0.08));
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.breakdown-pct {
    text-align: right;
    font-weight: 600;
    color: var(--text-primary, #fff);
    font-size: 0.82rem;
}

.breakdown-count {
    color: var(--text-secondary, rgba(255,255,255,0.45));
    font-size: 0.78rem;
}

/* ── Badges de conversión en tabla de cámaras ─────────────── */
.conv-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.conv-high  { background: rgba(0,255,153,0.12); color: var(--neon-green, #00ff99); }
.conv-mid   { background: rgba(102,126,234,0.15); color: #a5b4fc; }
.conv-low   { background: rgba(255,180,0,0.12); color: #fbbf24; }
.conv-none  { color: var(--text-secondary, rgba(255,255,255,0.4)); }

/* ── KPI sub-label ────────────────────────────────────────── */
.kpi-sub {
    font-size: 0.7rem;
    color: var(--text-secondary, rgba(255,255,255,0.45));
    margin-top: 0.15rem;
}

/* ── Responsive breakdown ─────────────────────────────────── */
@media (max-width: 600px) {
    .breakdown-row {
        grid-template-columns: 1.4rem 4rem 1fr 2.2rem 2.4rem;
        font-size: 0.82rem;
    }
    .breakdown-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Modo claro ───────────────────────────────────────────── */
html.light .breakdown-bar-track {
    background: rgba(0, 0, 0, 0.08);
}
html.light .conv-high  { background: rgba(14,165,233,0.1); color: #0ea5e9; }
html.light .conv-mid   { background: rgba(99,102,241,0.1); color: #6366f1; }
html.light .conv-low   { background: rgba(234,179,8,0.1);  color: #ca8a04; }
.recordings-view {
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid #39ff14;
    border-radius: 12px;
    padding: 16px;
    margin-top: 24px;
    color: #39ff14;
    box-shadow: 0 0 20px #39ff14;
    font-family: 'Orbitron', sans-serif;
}

.recordings-view h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    text-align: center;
    text-shadow: 0 0 4px #39ff14;
}

.recordings-view p {
    text-align: center;
    margin-bottom: 12px;
    font-weight: bold;
}

.recordings-view ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recordings-view li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 255, 0, 0.05);
    border-bottom: 1px solid #39ff14;
    padding: 10px 12px;
    transition: background 0.2s;
}

.recordings-view li:hover {
    background: rgba(0, 255, 0, 0.1);
}

.recordings-view input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.recordings-view button {
    background: transparent;
    border: 1px solid #39ff14;
    color: #39ff14;
    padding: 4px 10px;
    margin-left: 6px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recordings-view button:hover {
    background: #39ff14;
    color: #000;
}

.recordings-view button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.plan-activation-container {
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.plan-activation-container h2 {
    text-align: center;
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
    margin-bottom: 1.5rem;
}

.plan-info p {
    margin: 0.5rem 0;
}
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader {
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1rem;
}

.loader-message {
  color: var(--neon-green);
  font-size: 1rem;
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* frontend/src/views/PublicStreamView.css - OPTIMIZADO CON LAYOUT LATERAL */

/* ========================================
 *  CONTENEDOR PRINCIPAL
 *  ======================================== */
.public-stream-container {
    min-height: calc(100vh - 60px);
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
 *  HEADER
 *  ═══════════════════════════════════════════════════════════════ */
.shared-header {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid #00ffff;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.system-logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

/* ========================================
 *  LOADING Y ERROR STATES
 *  ======================================== */
.loading-box {
    text-align: center;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 255, 0.3);
    border-top: 4px solid #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-box p {
    color: #00ffff;
    font-size: 1.2em;
    margin: 0;
}

.error-box {
    text-align: center;
    background: rgba(255, 0, 102, 0.1);
    border: 2px solid #ff0066;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(255, 0, 102, 0.3);
}

.error-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.error-box h2 {
    color: #ff0066;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 0, 102, 0.5);
}

.error-box p {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════════
 *  LAYOUT LATERAL (Desktop: 3 columnas)
 *  ═══════════════════════════════════════════════════════════════ */
.lateral-layout {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 1.5rem;
    width: 100%;
    max-width: 1400px;
    align-items: start;
}

/* ========================================
 *  COLUMNAS LATERALES: Carrusel
 *  ======================================== */
.lateral-carousel {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    height: auto;
    max-height: 800px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    position: sticky;
    top: 80px;
    padding: 1rem;
}

.lateral-carousel img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: 8px;
}

.lateral-carousel img:hover {
    transform: scale(1.05);
}

/* ========================================
 *  COLUMNA CENTRAL: Logo + Video/Countdown
 *  ======================================== */
.central-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Logo del propietario */
.owner-logo-section {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.offered-by-title {
    color: #00ffff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.owner-logo-img {
    max-width: 300px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
}

/* ========================================
 *  STREAM PLACEHOLDER / COUNTDOWN
 *  ======================================== */
.stream-placeholder {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* ✅ Efecto de carga shimmer */
.stream-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.1),
                                transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ✅ COUNTDOWN BOX */
.countdown-box {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 255, 136, 0.1) 100%);
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
    }
}

.countdown-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.countdown-box h3 {
    color: #00ffff;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.countdown-timer {
    font-size: 3.5rem;
    font-weight: 800;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
}

.countdown-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

/* Información de franjas compacta */
.time-windows-compact {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.time-windows-compact p {
    color: #00ffff;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.time-slot {
    background: rgba(0, 255, 255, 0.15);
    color: #00ffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.4);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ========================================
 *  VIDEO CONTAINER (cuando stream activo)
 *  ======================================== */
.video-container {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.camera-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.camera-title h2 {
    color: #00ffff;
    margin: 0;
    font-size: 1.3em;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.live-badge {
    background: #ff0066;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: bold;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.access-badge {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    border: 1px solid #00ff88;
    font-size: 0.8em;
    font-weight: bold;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-footer {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

.stream-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    color: #00ffff;
    font-size: 1em;
    font-weight: 600;
}

/* ========================================
 *  WATERMARK
 *  ======================================== */
.watermark {
    text-align: center;
    padding: 1rem;
    opacity: 0.6;
}

.watermark p {
    color: rgba(0, 255, 255, 0.8);
    font-size: 0.85em;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
 *  RESPONSIVE DESIGN
 *  ═══════════════════════════════════════════════════════════════ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .lateral-layout {
        grid-template-columns: 180px 1fr 180px;
        gap: 1rem;
    }

    .lateral-carousel {
        min-height: 500px;
    }

    .countdown-timer {
        font-size: 2.5rem;
    }
}

/* Mobile (<768px) - COLUMNA ÚNICA */
@media (max-width: 768px) {
    .public-stream-container {
        padding: 0.5rem;
    }

    /* ✅ Layout móvil: 1 columna */
    .lateral-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* ✅ Ocultar carruseles laterales en móvil */
    .lateral-carousel {
        display: none;
    }

    .central-content {
        gap: 1rem;
    }

    .owner-logo-section {
        padding: 1rem;
    }

    .offered-by-title {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .owner-logo-img {
        max-width: 200px;
        max-height: 80px;
    }

    .stream-placeholder {
        min-height: 350px;
        padding: 1.5rem;
    }

    .countdown-box {
        padding: 1.5rem;
    }

    .countdown-icon {
        font-size: 3rem;
    }

    .countdown-box h3 {
        font-size: 1.2rem;
    }

    .countdown-timer {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .countdown-info {
        font-size: 0.95rem;
    }

    .time-windows-compact {
        padding: 1rem;
    }

    .time-slots {
        gap: 0.5rem;
    }

    .time-slot {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* ✅ Carrusel horizontal al final (solo en móvil) */
    .mobile-carousel {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding: 1rem 0;
        scroll-snap-type: x mandatory;
    }

    .mobile-carousel img {
        flex: 0 0 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
        border: 2px solid rgba(0, 255, 255, 0.3);
        scroll-snap-align: center;
    }

    .video-header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .camera-title {
        flex-direction: column;
        gap: 0.5rem;
    }

    .camera-title h2 {
        font-size: 1.1em;
    }

    .stream-info {
        grid-template-columns: 1fr;
    }
}

/* Mobile pequeño (<480px) */
@media (max-width: 480px) {
    .shared-header {
        padding: 0.5rem 1rem;
    }

    .system-logo img {
        height: 35px;
    }

    .owner-logo-section {
        padding: 0.75rem;
    }

    .offered-by-title {
        font-size: 0.9rem;
    }

    .owner-logo-img {
        max-width: 150px;
        max-height: 60px;
    }

    .countdown-timer {
        font-size: 1.8rem;
    }

    .countdown-box h3 {
        font-size: 1rem;
    }

    .video-header {
        padding: 0.75rem;
    }

    .camera-title h2 {
        font-size: 1rem;
    }

    .live-badge,
    .access-badge {
        font-size: 0.7em;
        padding: 0.25rem 0.6rem;
    }

    .watermark p {
        font-size: 0.75em;
    }
}
/* src/css/Legal.css - Estilos para páginas legales */

.legal-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  padding: 2rem 1rem;
  color: #e0e0e0;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(26, 26, 46, 0.95);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.2);
}

/* Header */
.legal-header {
  border-bottom: 2px solid #39ff14;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.legal-title {
  color: #39ff14;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.legal-date {
  color: #888;
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
}

/* Body */
.legal-body {
  line-height: 1.8;
  font-size: 1rem;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  color: #39ff14;
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(57, 255, 20, 0.3);
}

.legal-section h3 {
  color: #4eff4e;
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem 0;
}

.legal-section p {
  margin: 0.75rem 0;
  color: #d0d0d0;
}

.legal-section ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.legal-section li {
  margin: 0.5rem 0;
  color: #c0c0c0;
}

.legal-section li strong {
  color: #39ff14;
}

.legal-section a {
  color: #39ff14;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.legal-section a:hover {
  border-bottom-color: #39ff14;
}

/* Tables */
.legal-table,
.plan-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(15, 15, 30, 0.5);
  border-radius: 8px;
  overflow: hidden;
}

.legal-table th,
.plan-table th {
  background: rgba(57, 255, 20, 0.1);
  color: #39ff14;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #39ff14;
}

.legal-table td,
.plan-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #d0d0d0;
}

.legal-table tbody tr:last-child td,
.plan-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table tbody tr:hover,
.plan-table tbody tr:hover {
  background: rgba(57, 255, 20, 0.05);
}

/* Acceptance box */
.legal-acceptance {
  background: rgba(57, 255, 20, 0.1);
  border: 2px solid #39ff14;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.legal-acceptance p {
  color: #39ff14;
  font-weight: 600;
  margin: 0;
  font-size: 1.1rem;
}

/* Version footer */
.legal-version {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #666;
  font-size: 0.875rem;
}

.legal-version p {
  margin: 0.25rem 0;
}

/* Footer */
.legal-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(57, 255, 20, 0.2);
  text-align: center;
}

.legal-back-btn {
  background: linear-gradient(135deg, #39ff14 0%, #32cd32 100%);
  color: #0a0a0a;
  border: none;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(57, 255, 20, 0.3);
}

.legal-back-btn:hover {
  background: linear-gradient(135deg, #32cd32 0%, #39ff14 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(57, 255, 20, 0.5);
}

.legal-back-btn:active {
  transform: translateY(0);
}

/* Contract specific styles */
.contract-notice {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.contract-notice p {
  margin: 0;
  color: #ffc107;
  font-weight: 600;
}

.architecture-highlight {
  background: rgba(57, 255, 20, 0.1);
  border: 2px solid #39ff14;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.architecture-highlight p {
  margin: 0;
  color: #39ff14;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.6;
}

.parties-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}

.party {
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid rgba(57, 255, 20, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
}

.party h3 {
  color: #39ff14 !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  border-bottom: 1px solid rgba(57, 255, 20, 0.3);
  padding-bottom: 0.5rem;
}

.party p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.signature-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #39ff14;
}

.signatures-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.signature-block {
  text-align: center;
}

.signature-block p {
  margin: 0.5rem 0;
}

.signature-line {
  height: 80px;
  border-bottom: 2px solid #666;
  margin: 2rem 0 1rem 0;
}

.signature-date {
  text-align: center;
  margin-top: 2rem;
  font-style: italic;
  color: #888;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-content {
    padding: 2rem 1.5rem;
  }

  .legal-title {
    font-size: 2rem;
  }

  .legal-section h2 {
    font-size: 1.5rem;
  }

  .legal-section h3 {
    font-size: 1.2rem;
  }

  .legal-table,
  .plan-table table {
    font-size: 0.875rem;
  }

  .legal-table th,
  .legal-table td,
  .plan-table th,
  .plan-table td {
    padding: 0.75rem;
  }

  .parties-container,
  .signatures-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .legal-container {
    padding: 1rem 0.5rem;
  }

  .legal-content {
    padding: 1.5rem 1rem;
  }

  .legal-title {
    font-size: 1.75rem;
  }

  .legal-section h2 {
    font-size: 1.3rem;
  }

  .legal-section ul {
    padding-left: 1.5rem;
  }

  .legal-table,
  .plan-table table {
    font-size: 0.8rem;
  }
}
/* src/css/Footer.css */

.app-footer {
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
  border-top: 2px solid rgba(57, 255, 20, 0.3);
  padding: 2rem 1rem 1rem 1rem;
  margin-top: auto;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-section h4 {
  color: #39ff14;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Brand section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #39ff14;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.logo-sub {
  font-size: 0.9rem;
  color: #888;
  font-weight: 400;
}

.footer-copyright {
  color: #888;
  font-size: 0.875rem;
  margin: 0;
}

/* Links sections */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #39ff14;
  transform: translateX(5px);
}

.footer-hours {
  color: #888;
  font-size: 0.875rem;
  font-style: italic;
}

/* Version section */
.footer-version {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.version-text {
  color: #666;
  font-size: 0.875rem;
  font-family: 'Courier New', monospace;
  margin: 0;
}

.tech-text {
  color: #888;
  font-size: 0.75rem;
  margin: 0;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-version {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-legal,
  .footer-contact,
  .footer-version {
    align-items: center;
  }

  .footer-logo {
    align-items: center;
  }

  .footer-links a:hover {
    transform: none;
  }

  .footer-version {
    text-align: center;
  }
}


/* ========================================= */
/*           Importación de Fuentes         */
/* ========================================= */
/* ========================================= */
/*         Variables Globales (Unificadas)   */
/* ========================================= */
:root {
    /* Esquema de colores principal (Vista Oscura) */
    --neon-green: #39ff14;
    --dark-background: var(--bg-dark);
    --card-background: var(--bg-surface);
    --card-background-lighter: #2a2a2a;
    --text-color: var(--text-primary);
    --text-secondary: #b0b0b0;

    /* Colores complementarios del segundo sistema */
    --primary-color: #1976d2;
    --primary-dark: #0d47a1;
    --primary-light: #4791db;
    --secondary-color: #f50057;
    --secondary-dark: #c51162;
    --background-color: #f5f5f5; /* No usado en body para preservar la vista oscura */
    --card-color: var(--text-primary);

    /* Colores de estados */
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;

    /* Bordes y sombras */
    --border-radius: 15px;
    --border-radius-sm: 8px;
    --shadow-color: rgba(57, 255, 20, 0.3);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 15px rgba(0, 0, 0, 0.2);

    /* Transiciones */
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s ease;
}
/* ========================================= */
/*               Reset General              */
/* ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ========================================= */
/*                Estilos Base               */
/* ========================================= */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-background);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.app-container {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    overflow-y: auto;
    position: relative;
}
/* ========================================= */
/*                 Header                    */
/* ========================================= */
header {
    background-color: rgba(57, 255, 20, 0.1);
    color: var(--text-primary);
    width: 100%;
    z-index: 100;
    position: fixed;
    top: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}
.app-title {
    font-size: 1.5rem;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}
.connection-status {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    margin-right: 15px;
}
.status-indicator {
    margin-right: 5px;
    font-size: 1.2rem;
}
.status-indicator.online {
    color: var(--neon-green);
}
.status-indicator.offline {
    color: var(--error-color);
}
/* Menú Toggle con Logo */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    cursor: pointer;
    position: relative;
}
.menu-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* ========================================= */
/*            Menús de Navegación            */
/* ========================================= */
/* Menú Lateral */
.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: var(--card-background);
    padding-top: 60px;
    z-index: 50;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.side-menu.active {
    left: 0;
}
.side-menu ul {
    list-style: none;
}
.side-menu li {
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
    color: var(--text-color);
}
.side-menu li:hover {
    background-color: rgba(57, 255, 20, 0.1);
}
.side-menu li.active {
    background-color: rgba(57, 255, 20, 0.1);
    border-left: 3px solid var(--neon-green);
    font-weight: 500;
}
/* Logo Intercambiable Container */
.logo-container {
    margin: 10px auto 0 auto; /* Reduce margen superior */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5px;
}
.company-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,255,100,0.3);
}
.company-name {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #3ef0d5;
    text-align: center;
    text-shadow: 0 0 4px rgba(0,255,100,0.5);
}
/* ========================================= */
/*          Modales y Formularios            */
/* ========================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal.hidden {
    display: none;
}
.modal-content {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 20px var(--shadow-color);
}
/* Auth Modal */
.tab-container {
    display: flex;
    margin-bottom: 20px;
}
.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
}
.tab.active {
    color: var(--neon-green);
    border-bottom: 2px solid var(--neon-green);
}
.form-container {
    display: none;
}
.form-container.active {
    display: block;
}
/* Campos de formulario */
.input-field,
input,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: var(--card-background-lighter);
    border: 1px solid #333;
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}
.input-field:focus,
input:focus,
select:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 5px rgba(57, 255, 20, 0.3);
}
.form-group {
    margin-bottom: 1rem;
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}
/* ========================================= */
/*                 Botones                   */
/* ========================================= */
/* Botones de acción principal */
.action-btn,
.btn.primary {
    width: 100%;
    padding: 12px;
    background-color: rgba(57, 255, 20, 0.2);
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}
.action-btn:hover,
.action-btn:active,
.btn.primary:hover,
.btn.primary:active {
    background-color: rgba(57, 255, 20, 0.4);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}
/* Botones secundarios */
.small-action-btn,
.btn.secondary {
    padding: 8px 12px;
    background-color: transparent;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.small-action-btn:hover,
.btn.secondary:hover {
    background-color: rgba(57, 255, 20, 0.2);
}
.btn-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}
/* Botón de retroceso */
.back-btn,
.btn.back {
    background: none;
    border: none;
    color: var(--neon-green);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
/* Botón de icono */
.btn.icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
}
.btn.icon img {
    width: 24px;
    height: 24px;
}
/* ========================================= */
/*               Streaming                   */
/* ========================================= */
/* Container de Stream */
.stream-container,
.video-container {
    background-color: var(--card-background-lighter);
    border-radius: var(--border-radius);
    overflow-y: auto;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
#stream-player,
.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--neon-green);
}
/* Controles PTZ */
.ptz-controls {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    background-color: var(--card-background-lighter);
}
.ptz-directions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.5rem;
    width: 120px;
    height: 120px;
}
.ptz-directions button {
    background-color: rgba(57, 255, 20, 0.2);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}
.ptz-directions button:hover,
.ptz-directions button:active {
    background-color: rgba(57, 255, 20, 0.4);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}
.ptz-up {
    grid-column: 2;
    grid-row: 1;
}
.ptz-left {
    grid-column: 1;
    grid-row: 2;
}
.ptz-right {
    grid-column: 3;
    grid-row: 2;
}
.ptz-down {
    grid-column: 2;
    grid-row: 3;
}
/* Zoom Controls */
.zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.zoom-controls button {
    background-color: rgba(57, 255, 20, 0.2);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    border-radius: var(--border-radius-sm);
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}
.zoom-controls button:hover {
    background-color: rgba(57, 255, 20, 0.4);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}
/* Controles de cámara */
.camera-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
}
.control-btn {
    background-color: rgba(57, 255, 20, 0.2);
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
    text-align: center;
}
.control-btn:hover,
.control-btn:active {
    background-color: rgba(57, 255, 20, 0.4);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}
/* ========================================= */
/*              QR y Compartir               */
/* ========================================= */
/* Share Container */
.share-container {
    background-color: var(--card-background-lighter);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin: 0 1rem;
}
.share-container h3 {
    margin-bottom: 15px;
    color: var(--neon-green);
}
.share-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.share-options .form-group {
    flex: 1;
    min-width: 200px;
}
#qr-result {
margin-top: 1.5rem;
text-align: center;
}
#qr-code,
#qr-code-container {
margin: 0 auto 1rem;
padding: 1rem;
background-color: var(--text-primary);
display: inline-block;
border-radius: var(--border-radius);
}
.qr-info {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
#qr-code canvas {
border-radius: 4px;
padding: 5px;
background-color: var(--text-primary);
}
/* ========================================= */
/*            Accesos compartidos            */
/* ========================================= */
.shared-list {
    background-color: var(--card-background-lighter);
    border-radius: var(--border-radius);
    overflow-y: auto;
    box-shadow: var(--shadow);
    margin: 0 1rem;
}
.shared-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.shared-item:last-child {
    border-bottom: none;
}
.shared-camera {
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.shared-details {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.shared-active {
    color: var(--neon-green);
    font-weight: 500;
}
.shared-expired {
    color: var(--error-color);
}
/* ========================================= */
/*                Configuración              */
/* ========================================= */
.settings-list {
    background-color: var(--card-background-lighter);
    border-radius: var(--border-radius);
    overflow-x: hidden;
    box-shadow: var(--shadow);
    margin: 0 1rem;
}
.setting-item {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.setting-item:last-child {
    border-bottom: none;
}
.setting-item h3 {
    margin-bottom: 15px;
    color: var(--neon-green);
}
/* ========================================= */
/*                Carousel                   */
/* ========================================= */
/* Estilos básicos para el carrusel */
.advertising-carousel {
    position: relative;
    height: 150px;
    overflow-x: auto;
    margin: 10px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
/* Estilos originales para modo estático */
.ad-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.ad-slide.active {
    opacity: 1;
}
.ad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Estilos para Swiper */
.swiper {
    width: 100%;
    height: 100%;
}
.swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.7);
}
.swiper-pagination-bullet-active {
    background-color: var(--neon-green);
}
/* ========================================= */
/*         Configuración de carousel         */
/* ========================================= */
.carousel-settings {
    padding: 15px;
    margin-bottom: 15px;
    background-color: var(--card-background-lighter);
    border-radius: var(--border-radius);
}
.carousel-images {
    padding: 15px;
    background-color: var(--card-background-lighter);
    border-radius: var(--border-radius);
}
.carousel-images h3 {
    margin-bottom: 15px;
    color: var(--neon-green);
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}
.image-item {
    border-radius: var(--border-radius-sm);
    overflow-x: hidden;
    position: relative;
    aspect-ratio: 16/9;
}
.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
}
.image-actions button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.image-actions button:hover {
    background-color: rgba(57, 255, 20, 0.7);
}
/* ========================================= */
/*             Loading Overlay               */
/* ========================================= */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* Evita scroll cuando el overlay está activo */
.no-scroll {
    overflow-x: hidden;
}
/* ========================================= */
/*           Toast Notificaciones            */
/* ========================================= */
.custom-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.85);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(57, 255, 20, 0.4);
    max-width: 90%;
    text-align: center;
}
.custom-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.custom-toast.success {
    background-color: #4CAF50;
}
.custom-toast.error {
    background-color: #f44336;
}
.custom-toast.warning {
    background-color: #FF9800;
}
.custom-toast.info {
    background-color: #2196F3;
}
/* Estilos para overlay persistente */
.persistent-overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
}
.persistent-overlay-container > * {
  pointer-events: auto;
}
/* Estilos para los nuevos overlays Preact */
.preact-persistent-overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000; 
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}
/* Estilos para overlays persistentes */
.preact-overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Estilos mejorados para overlays persistentes */
.preact-overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}
/* Importar estilos de overlay */
/* Estilos para indicador de carga global */
.global-loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.loading-content {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 15px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loading-text {
  color: #333;
  font-weight: bold;
}
.view {
  padding-top: 80px;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* ==== FIX TEMPORAL: desactivar overlays legacy que tapan el dashboard ==== */
.persistent-overlay-container,
.preact-persistent-overlay-container,
.preact-overlay-container {
    display: none !important;
    pointer-events: none !important;
    background: transparent !important;
}
