/* ============================================================================
   GLOBAL.CSS - MitikLive Wallapop
   ============================================================================
   
   Archivo CSS consolidado - Incluye:
   - Variables CSS (tema oscuro + admin)
   - Reset y base
   - Tipografía
   - Layout (header, footer, contenedores)
   - Componentes (botones, cards, badges, tablas, formularios)
   - Modales
   - Loaders
   - Auth (login/registro)
   - Download page
   - Pricing page
   - Monitoring system
   - Utilidades
   - Responsive
   
   Última actualización: Nov 2025
   ============================================================================ */

:root {

  /* Backgrounds */
  --bg-elevated: #334155;
  --bg-secondary: #0f172a;
  --bg-card: #2d3748;
  --bg-dark: #1e293b;
  --bg-darker: #0f172a;
  --bg-light: #334155;

  /* Texto */
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-muted: #94a3b8;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-sm: 0.875rem;
  --text-xl: 1.25rem;
  --text-xs: 0.75rem;

  /* Primary */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #818cf8;

  /* Success */
  --success: #10b981;
  --success-light: #4ade80;

  /* Warning */
  --warning: #f59e0b;
  --warning-light: #fbbf24;

  /* Danger */
  --danger: #ef4444;
  --danger-light: #f87171;

  /* Info */
  --info: #3b82f6;
  --info-light: #60a5fa;

  /* Violet */
  --violet: #8b5cf6;
  --violet-light: #a78bfa;

  /* Gradientes */
  --gradient-blue: #3182ce;
  --gradient-coral: #f5576c;
  --gradient-cyan: #4facfe;
  --gradient-gold: #ffd700;
  --gradient-green: #38a169;
  --gradient-pink: #f093fb;
  --gradient-purple: #764ba2;
  --gradient-teal: #00f2fe;

  /* Bordes */
  --border-color: #475569;

  /* Sombras */
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);

  /* Espaciado */
  --spacing-lg: 1.5rem;
  --spacing-md: 1rem;
  --spacing-sm: 0.5rem;
  --spacing-xl: 2rem;
  --spacing-xs: 0.25rem;

  /* Radios */
  --radius-lg: 0.75rem;
  --radius-md: 0.5rem;
  --radius-sm: 0.375rem;

  /* Transiciones */
  --transition-base: 200ms ease;
  --transition-fast: 150ms ease;
  --transition-slow: 300ms ease;

  /* Header */
  --header-height: 64px;

  /* Footer */
  --footer-height: 60px;

  /* Admin theme */
  --admin-bg-card: var(--bg-card, #1e293b);
  --admin-bg-header: #1e293b;
  --admin-bg-main: var(--bg, #0f172a);
  --admin-bg-sidebar: #0f172a;
  --admin-border: #e2e8f0;
  --admin-danger: #ef4444;
  --admin-info: #3b82f6;
  --admin-primary: #4f46e5;
  --admin-secondary: #64748b;
  --admin-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --admin-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --admin-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --admin-success: #10b981;
  --admin-text-light: #94a3b8;
  --admin-text-primary: var(--text-primary, #f1f5f9);
  --admin-text-secondary: var(--text-muted, #94a3b8);
  --admin-warning: #f59e0b;

  /* Colores de acento */
  --color-accent: #5bbbf7;
  --color-primary: #4f46e5;

  /* Otros */
  --divider: #334155;
}

/**
 * ============================================================================
 * MITIKLIVE WALLAPOP - GLOBAL STYLES
 * ============================================================================
 * 
 * Archivo CSS único para toda la aplicación
 * - Páginas públicas (landing, login, registro)
 * - Panel de usuario
 * - Panel de administrador
 * 
 * Basado en el tema oscuro de la extensión Chrome
 * ============================================================================
 */

/* ============================================================================
   RESET Y BASE
   ============================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: 64px; /* Compensar header fijo */
}

/* ============================================================================
   LAYOUT PRINCIPAL
   ============================================================================ */

/* Header - Ya está perfecto, solo aseguramos altura */
header.site {
  height: var(--header-height);
  min-height: var(--header-height);
  flex-shrink: 0;
}

/* Main content - Ocupa espacio restante */
main.container {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* Footer fijo */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--footer-height);
  min-height: var(--footer-height);
  flex-shrink: 0;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-md);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

/* Ajustar el body para que tenga espacio para el footer */
body {
  padding-bottom: var(--footer-height);
}

footer .container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

footer a:hover {
  color: var(--primary);
}

/* Footer compacto */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.8rem;
  text-align: center;
}

.footer-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.footer-group a {
  white-space: nowrap;
}

.footer-group a:not(:last-child)::after {
  content: '·';
  margin-left: 4px;
  color: var(--text-muted);
}

.footer-separator {
  color: var(--text-muted);
}

.footer-copyright {
  white-space: nowrap;
}

.footer-copyright::after {
  content: '·';
  margin-left: 4px;
  color: var(--text-muted);
}

/* Desktop: todo en una línea */
@media (min-width: 992px) {
  .footer-content {
    flex-wrap: nowrap;
    gap: 8px;
  }
}

/* Tablet: 2 líneas */
@media (max-width: 991px) and (min-width: 576px) {
  .footer-separator {
    display: none;
  }
  .footer-content {
    gap: 2px 6px;
    font-size: 0.75rem;
  }
}

/* Mobile: muy compacto, 1-2 líneas */
@media (max-width: 575px) {
  footer {
    height: auto;
    min-height: 40px;
    padding: 8px var(--spacing-sm);
  }
  
  body {
    padding-bottom: 50px;
  }
  
  .footer-content {
    gap: 2px 4px;
    font-size: 0.65rem;
  }
  
  .footer-separator {
    display: none;
  }
  
  .footer-group a:not(:last-child)::after {
    margin-left: 2px;
  }
  
  /* Ocultar algunos enlaces en móvil muy pequeño */
  .footer-platforms a[href*="milanuncios"],
  .footer-platforms a[href*="facebook"] {
    display: none;
  }
  
  .footer-links a[href*="guias"],
  .footer-links a[href*="manual"] {
    display: none;
  }
}

/* ============================================================================
   TIPOGRAFÍA
   ============================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-hover);
}

/* Excluir botones del color de hover de enlaces */
a.btn:hover,
a.btn.btn-primary:hover,
a.btn.btn-success:hover,
a.btn.btn-danger:hover {
  color: white;
}

/* ============================================================================
   BOTONES
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
  color: white;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--text-base);
}

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

/* ============================================================================
   CARDS
   ============================================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.card-header {
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--divider);
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card-body {
  color: var(--text-secondary);
}

/* ============================================================================
   FORMULARIOS
   ============================================================================ */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.form-control,
.form-select {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: var(--text-base);
  background: var(--bg-darker);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* ============================================================================
   TABLAS
   ============================================================================ */
.table-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

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

.table th {
  background: var(--bg-darker);
  padding: var(--spacing-md);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-color);
}

.table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--divider);
  color: var(--text-primary);
}

.table tr:hover {
  background: var(--bg-light);
}

.table tr:last-child td {
  border-bottom: none;
}

/* ============================================================================
   BADGES
   ============================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

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

.badge-info {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-primary {
  background: rgba(79, 70, 229, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(79, 70, 229, 0.3);
}

/* ============================================================================
   ALERTS
   ============================================================================ */
.alert {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  border-left: 4px solid;
  display: flex;
  align-items: start;
  gap: var(--spacing-md);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
  color: #6ee7b7;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning);
  color: #fbbf24;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: #f87171;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--info);
  color: #60a5fa;
}

/* ============================================================================
   STATS CARDS (Dashboard)
   ============================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid var(--border-color);
  border-left: 4px solid;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-card.primary { border-left-color: var(--primary); }
.stat-card.success { border-left-color: var(--success); }
.stat-card.warning { border-left-color: var(--warning); }
.stat-card.danger { border-left-color: var(--danger); }
.stat-card.info { border-left-color: var(--info); }

.stat-card .icon {
  position: absolute;
  right: var(--spacing-lg);
  top: var(--spacing-lg);
  font-size: 3rem;
  opacity: 0.1;
}

.stat-card .label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.stat-card .value {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}

.stat-card .description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================================================
   BREADCRUMB
   ============================================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-xl);
  list-style: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.breadcrumb-item a {
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: var(--text-muted);
}

/* ============================================================================
   SPINNER / LOADING
   ============================================================================ */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 0.25rem solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2rem;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 768px) {
  
  
  main.container {
    padding: var(--spacing-md);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================================
   SCROLL PERSONALIZADO
   ============================================================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color);
}

/* ============================================================================
   UTILIDADES GLOBALES - Clases reutilizables en toda la aplicación
   ============================================================================ */

/* --- Espaciado (Margin) --- */
.m-0 { margin: 0; }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mx-md { margin-left: var(--spacing-md); margin-right: var(--spacing-md); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.my-xs { margin-top: var(--spacing-xs); margin-bottom: var(--spacing-xs); }
.my-sm { margin-top: var(--spacing-sm); margin-bottom: var(--spacing-sm); }
.my-md { margin-top: var(--spacing-md); margin-bottom: var(--spacing-md); }
.my-lg { margin-top: var(--spacing-lg); margin-bottom: var(--spacing-lg); }
.my-xl { margin-top: var(--spacing-xl); margin-bottom: var(--spacing-xl); }

/* --- Texto (Alineación y Color) --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-muted { color: var(--text-muted); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.line-relaxed { line-height: 1.8; }
.line-normal { line-height: 1.6; }

/* --- Iconos (Colores) --- */
.icon-success { color: var(--success); }
.icon-warning { color: var(--warning); }
.icon-danger { color: var(--danger); }
.icon-info { color: var(--info); }
.icon-primary { color: var(--primary); }

/* --- Display --- */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* --- Responsive visibility --- */
.desktop-only { display: inline-flex; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
}

.flex-center { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.flex-between { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}

.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* --- Width --- */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* --- Botones block (ancho completo) --- */
.btn-block {
  display: block;
  width: 100%;
  margin-top: var(--spacing-sm);
}

/* --- Componentes comunes --- */
.section-title {
  margin-bottom: var(--spacing-lg);
  font-size: var(--text-xl, 1.25rem);
  font-weight: 600;
  color: var(--text-primary);
}

.section-title i {
  margin-right: var(--spacing-sm);
  color: var(--primary);
}

.lead-text {
  font-size: var(--text-lg);
  margin: 0;
}

.admin-protected-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --- Estados de botones --- */
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Links con colores semánticos --- */
.link-success {
  color: var(--success);
  text-decoration: underline;
}

.link-success:hover {
  color: #0ea572;
}

.link-primary {
  color: var(--primary);
  text-decoration: underline;
}

/* --- Highlight boxes (info, warning, success) --- */
.highlight-box {
  background: rgba(79, 70, 229, 0.1);
  border-left: 4px solid var(--primary);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  border-radius: var(--radius-md);
}

.highlight-box strong {
  color: var(--primary-light);
}

.highlight-box-primary {
  background: rgba(79, 70, 229, 0.1);
  border-left: 4px solid var(--primary);
}

.highlight-box-warning {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--danger);
}

.highlight-box-success {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--success);
}

/* --- Inline code --- */
.code-inline {
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--success);
  font-family: 'Courier New', monospace;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.code-lg {
  font-size: var(--text-lg);
}

/* --- Action highlight (para botones destacados en texto) --- */
.action-highlight {
  background: rgba(79, 70, 229, 0.2);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  display: inline-block;
  font-size: var(--text-lg);
  font-weight: 600;
}

/* ============================================================================
   BOTONES FLOTANTES (WhatsApp + Volver Arriba)
   ============================================================================ */

/* Botón WhatsApp flotante */
/* ============================================================================
   WHATSAPP FLOTANTE EXPANDIBLE
   ============================================================================ */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 1100;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4),
              0 8px 24px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.whatsapp-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5),
              0 12px 32px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn .whatsapp-icon {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-btn .whatsapp-close-icon {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-float.open .whatsapp-btn .whatsapp-icon {
  opacity: 0;
  transform: rotate(90deg);
}

.whatsapp-float.open .whatsapp-btn .whatsapp-close-icon {
  opacity: 1;
  transform: rotate(0);
}

/* Burbuja expandible */
.whatsapp-bubble {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  background: var(--bg-card, #1e293b);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s ease;
}

.whatsapp-float.open .whatsapp-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.whatsapp-bubble-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #25D366;
  border-radius: 16px 16px 0 0;
  color: white;
  font-weight: 600;
}

.whatsapp-status {
  width: 10px;
  height: 10px;
  background: #90EE90;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.whatsapp-bubble-close {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  line-height: 1;
}

.whatsapp-bubble-close:hover {
  opacity: 1;
}

.whatsapp-bubble-body {
  padding: 16px;
}

.whatsapp-bubble-body > p {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.9375rem;
  margin: 0 0 16px 0;
}

.whatsapp-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.whatsapp-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary, #f1f5f9);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.whatsapp-option:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.3);
  color: #25D366;
}

.whatsapp-option i {
  font-size: 1.1rem;
  color: #25D366;
  width: 20px;
  text-align: center;
}

/* Botón Volver Arriba */
.back-to-top {
  position: fixed;
  right: 90px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, 
              transform 0.3s ease,
              background 0.2s ease,
              box-shadow 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
  transform: translateY(0);
}

/* Responsive WhatsApp */
@media (max-width: 768px) {
  .whatsapp-float {
    right: 16px;
    bottom: 20px;
  }
  
  .whatsapp-btn {
    width: 54px;
    height: 54px;
  }
  
  .whatsapp-bubble {
    width: 290px;
    right: -10px;
  }
  
  .back-to-top {
    right: 80px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .whatsapp {
    right: 12px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
  
  .whatsapp svg {
    width: 28px;
    height: 28px;
  }
  
  .back-to-top {
    right: 70px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
  
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================================================
   ADMIN PANEL STYLES (fusionado de admin-v3.css)
   ============================================================================ */
/**
 * ADMIN V3 STYLES - Organizado y Profesional
 * Esquema de colores mejorado - No tan blanco
 */

/* ========================================
   LAYOUT GENERAL
   ======================================== */
body.admin-page {
    background: var(--admin-bg-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--admin-text-primary);
}

/* ========================================
   HEADER ADMIN - MEJORADO
   ======================================== */
.admin-header {
    background: var(--admin-bg-header);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--admin-shadow-lg);
}

.admin-header .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

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

.admin-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.admin-brand i {
    font-size: 2rem;
    color: var(--admin-primary);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-user-email {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.admin-logout-btn {
    background: var(--admin-danger);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.admin-logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.admin-logout-btn i {
    margin-right: 0.5rem;
}

.admin-breadcrumb {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.admin-breadcrumb .breadcrumb {
    margin: 0;
    background: transparent;
}

.admin-breadcrumb .breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
}

.admin-breadcrumb .breadcrumb-item.active {
    color: white;
}

.admin-breadcrumb .breadcrumb-item a {
    color: var(--admin-primary);
    text-decoration: none;
}

/* ========================================
   STATS CARDS - ADMIN (tema claro)
   ======================================== */
body.admin-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

body.admin-page .stats-grid-compact {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

body.admin-page .stat-card {
    background: var(--bg-card, #1e293b);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

body.admin-page .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--admin-shadow-lg);
}

body.admin-page .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 0%, currentColor 100%);
    opacity: 0.05;
    border-radius: 0 12px 0 100%;
}

body.admin-page .stat-card.primary { border-color: var(--admin-primary); color: var(--admin-primary); }
body.admin-page .stat-card.success { border-color: var(--admin-success); color: var(--admin-success); }
body.admin-page .stat-card.warning { border-color: var(--admin-warning); color: var(--admin-warning); }
body.admin-page .stat-card.danger { border-color: var(--admin-danger); color: var(--admin-danger); }
body.admin-page .stat-card.info { border-color: var(--admin-info); color: var(--admin-info); }

body.admin-page .stat-card .icon {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 3rem;
    opacity: 0.15;
}

.stat-card .label {
    font-size: 0.75rem;
    color: var(--text-secondary, #cbd5e1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card .description {
    font-size: 0.875rem;
    color: var(--text-muted, #94a3b8);
}

/* ========================================
   TABS - MEJORADOS
   ======================================== */
.custom-tabs {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: var(--admin-shadow-md);
}

.custom-tabs .nav-tabs {
    border-bottom: 2px solid var(--admin-border);
    padding: 0 1.5rem;
}

.custom-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--admin-text-secondary);
    font-weight: 500;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.custom-tabs .nav-link:hover {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
    background: rgba(79, 70, 229, 0.05);
}

.custom-tabs .nav-link.active {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
    background: transparent;
}

.custom-tabs .tab-content {
    padding: 2rem 1.5rem;
}

/* Admin Tabs Container */
.admin-tabs-container {
    background: var(--bg-card, #2d3748);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    margin-bottom: var(--spacing-lg, 1.5rem);
}

/* Admin Tabs Navigation */
.admin-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--divider, #334155);
    padding: 0 var(--spacing-md, 1rem);
    margin: 0;
    list-style: none;
    background: var(--bg-elevated, #334155);
}

.admin-tab-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-tab-btn {
    border: none;
    background: none;
    padding: var(--spacing-md, 1rem) var(--spacing-lg, 1.5rem);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary, #cbd5e1);
    font-weight: 500;
    transition: all var(--transition-base, 0.2s) ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm, 0.5rem);
    font-size: var(--text-sm, 0.875rem);
    white-space: nowrap;
}

.admin-tab-btn:hover {
    color: var(--text-primary, #f1f5f9);
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
    border-bottom-color: var(--color-primary, #4f46e5);
    color: var(--text-primary, #f1f5f9);
    font-weight: 600;
}

.admin-tab-btn i {
    font-size: 1rem;
    color: var(--color-accent, #5bbbf7);
}

.admin-tab-btn.active i {
    color: var(--color-primary, #4f46e5);
}

/* Mi Panel Tab - Alineado a la derecha */
.admin-tab-item.mi-panel-tab {
    margin-left: auto;
}

.admin-tab-btn.mi-panel-link {
    text-decoration: none;
    background: rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-sm, 6px) var(--radius-sm, 6px) 0 0;
    color: var(--success-light, #4ade80);
}

.admin-tab-btn.mi-panel-link:hover {
    background: rgba(16, 185, 129, 0.25);
    color: var(--success, #10b981);
}

.admin-tab-btn.mi-panel-link i {
    color: var(--success, #10b981);
}

/* Admin Tab Content */
.admin-tab-content {
    padding: var(--spacing-xl, 2rem);
}

/* ========================================
   SYSTEM STATUS CARD - Estado del Sistema
   ======================================== */
.system-status-card {
    margin-bottom: var(--spacing-lg, 1.5rem);
    background: linear-gradient(135deg, #1a1d29 0%, #0f1419 100%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: var(--spacing-lg, 1.5rem);
}

.system-status-title {
    color: #fbbf24;
    margin-bottom: var(--spacing-md, 1rem);
    font-size: var(--text-lg, 1.125rem);
}

.system-status-title i {
    margin-right: var(--spacing-sm, 0.5rem);
}

.system-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg, 1.5rem);
}

.system-status-item {
    text-align: center;
}

.system-status-label {
    font-size: var(--text-xs, 0.75rem);
    color: #9ca3af;
    margin-bottom: var(--spacing-xs, 0.25rem);
}

.system-status-value {
    font-size: var(--text-lg, 1.125rem);
    font-weight: 600;
}

.system-status-value.text-info {
    color: #60a5fa;
}

/* ========================================
   OVERVIEW CARDS GRID - Grid de tarjetas
   ======================================== */
.overview-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg, 1.5rem);
}

/* ========================================
   STATS LIST - Lista de estadísticas
   ======================================== */
.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-list li {
    margin-bottom: var(--spacing-sm, 0.5rem);
    padding: var(--spacing-xs, 0.25rem) 0;
    color: var(--text-secondary, #cbd5e1);
    font-size: var(--text-sm, 0.875rem);
}

.stats-list li:last-child {
    margin-bottom: 0;
}

.stats-list strong {
    color: var(--color-accent, #5bbbf7);
    font-weight: 600;
}

/* ========================================
   TAB PANES - Paneles de contenido
   ======================================== */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ========================================
   LOADING PLACEHOLDER - Spinner centrado
   ======================================== */
.loading-placeholder {
    text-align: center;
    padding: var(--spacing-xl, 2rem) 0;
}

/* ========================================
   ALERT STATES - Estados de alerta
   ======================================== */
.alert-empty,
.alert-error,
.alert-success-state {
    text-align: center;
    padding: var(--spacing-xl, 2rem);
    border-radius: var(--radius-md, 8px);
}

.alert-empty {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.alert-error {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-success-state {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-icon {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: var(--spacing-md, 1rem);
}

.alert-icon.text-info { color: #3b82f6; }
.alert-icon.text-warning { color: #f59e0b; }
.alert-icon.text-success { color: #10b981; }

/* ========================================
   BADGES - Estados de usuario
   ======================================== */
.badge-banned {
    background: #ef4444;
    color: white;
}

.badge-suspended {
    background: #f59e0b;
    color: white;
}

.btn-unban {
    background: #10b981;
    color: white;
}

.btn-suspend {
    background: #f59e0b;
    color: white;
}

.btn-ban {
    background: #ef4444;
    color: white;
}

/* ========================================
   MODAL - Overlay y contenido
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999 !important;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #1e293b;
    padding: var(--spacing-xl, 2rem);
    border-radius: var(--radius-lg, 16px);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.modal-title {
    margin: 0 0 var(--spacing-lg, 1.5rem);
    color: white;
    font-size: var(--text-xl, 1.25rem);
}

.modal-info {
    padding: var(--spacing-md, 1rem);
    border-radius: var(--radius-md, 8px);
    margin-bottom: var(--spacing-lg, 1.5rem);
}

.modal-info strong {
    color: white;
}

.modal-info-danger {
    background: rgba(239, 68, 68, 0.1);
}

.modal-info-warning {
    background: rgba(245, 158, 11, 0.1);
}

.modal-label {
    display: block;
    margin-bottom: var(--spacing-sm, 0.5rem);
    color: white;
}

.modal-select {
    width: 100%;
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    margin-bottom: var(--spacing-md, 1rem);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md, 8px);
    color: white;
}

.modal-textarea {
    width: 100%;
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    min-height: 100px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md, 8px);
    color: white;
    font-family: inherit;
    resize: vertical;
}

.modal-actions {
    margin-top: var(--spacing-lg, 1.5rem);
    display: flex;
    gap: var(--spacing-md, 1rem);
    justify-content: flex-end;
}

.btn-modal-cancel {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md, 8px);
    color: white;
    cursor: pointer;
    transition: background var(--transition-base, 0.2s);
}

.btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-modal-danger {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
    background: #ef4444;
    border: none;
    border-radius: var(--radius-md, 8px);
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-base, 0.2s);
}

.btn-modal-danger:hover {
    background: #dc2626;
}

.btn-modal-warning {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
    background: #f59e0b;
    border: none;
    border-radius: var(--radius-md, 8px);
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-base, 0.2s);
}

.btn-modal-warning:hover {
    background: #d97706;
}

/* Status indicators */
.status-on { color: #10b981; }
.status-off { color: #6b7280; }

/* ========================================
   CONFIG GRID - Configuración del sistema
   ======================================== */
.config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg, 1.5rem);
}

.config-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md, 8px);
    padding: var(--spacing-md, 1rem);
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm, 0.5rem);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm, 0.5rem);
}

.toggle-title {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    color: #e5e7eb;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #374151;
    transition: var(--transition-base, 0.2s);
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-base, 0.2s);
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #10b981;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.config-description {
    font-size: var(--text-xs, 0.75rem);
    color: #9ca3af;
    margin: var(--spacing-sm, 0.5rem) 0;
    line-height: 1.4;
}

.config-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm, 4px);
    font-size: 11px;
    font-weight: 600;
    margin-top: var(--spacing-xs, 0.25rem);
}

.config-status.on {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.config-status.off {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.version-display {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-sm, 6px);
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    margin-top: var(--spacing-md, 1rem);
    font-size: var(--text-sm, 0.875rem);
    color: #60a5fa;
}

.input-group {
    margin-top: var(--spacing-md, 1rem);
}

.input-group label {
    display: block;
    font-size: var(--text-xs, 0.75rem);
    color: #9ca3af;
    margin-bottom: var(--spacing-xs, 0.25rem);
}

.input-with-button {
    display: flex;
    gap: var(--spacing-sm, 0.5rem);
}

.input-with-button input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm, 6px);
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    color: #e5e7eb;
    font-size: var(--text-sm, 0.875rem);
}

.input-with-button input:focus {
    outline: none;
    border-color: #fbbf24;
}

.btn-update {
    background: #fbbf24;
    color: #000;
    border: none;
    border-radius: var(--radius-sm, 6px);
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base, 0.2s);
    white-space: nowrap;
}

.btn-update:hover {
    background: #f59e0b;
    transform: translateY(-1px);
}

/* ========================================
   TABLES - MEJORADAS
   ======================================== */
.custom-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--admin-shadow-md);
}

.custom-table table {
    margin: 0;
}

.custom-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.custom-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--admin-text-secondary);
    padding: 1.25rem 1rem;
    border: none;
}

.custom-table td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-top: 1px solid var(--admin-border);
}

.custom-table tr:hover {
    background: rgba(79, 70, 229, 0.02);
}

/* ========================================
   BADGES - MEJORADOS
   ======================================== */
.badge-custom {
    padding: 0.4rem 0.875rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-active { 
    background: #d1fae5; 
    color: #065f46; 
}

.badge-inactive { 
    background: #fee2e2; 
    color: #991b1b; 
}

.badge-pending { 
    background: #fef3c7; 
    color: #92400e; 
}

/* ========================================
   FILTERS
   ======================================== */
.filters-row {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.filters-row .form-control,
.filters-row .form-select {
    border: 2px solid var(--admin-border);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: border-color 0.2s;
}

.filters-row .form-control:focus,
.filters-row .form-select:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ========================================
   BUTTONS
   ======================================== */
.action-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.875rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--admin-shadow-md);
}

.action-btn.primary { 
    background: var(--admin-primary); 
    color: white; 
}

.action-btn.primary:hover { 
    background: #4338ca; 
}

.action-btn.success { 
    background: var(--admin-success); 
    color: white; 
}

.action-btn.success:hover { 
    background: #059669; 
}

.action-btn.danger { 
    background: var(--admin-danger); 
    color: white; 
}

.action-btn.danger:hover { 
    background: #dc2626; 
}

/* ========================================
   LOADING OVERLAY
   ======================================== */
.admin-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999 !important;
    align-items: center;
    justify-content: center;
}

.admin-loading-overlay.active {
    display: flex;
}

.admin-spinner {
    text-align: center;
}

/* ========================================
   ALERTS
   ======================================== */
.alert-item {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--admin-shadow-sm);
    transition: all 0.2s;
}

.alert-item:hover {
    box-shadow: var(--admin-shadow-md);
}

.alert-item.critical { border-color: var(--admin-danger); }
.alert-item.warning { border-color: var(--admin-warning); }
.alert-item.info { border-color: var(--admin-info); }

.alert-item .alert-content {
    flex: 1;
}

.alert-item .alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--admin-text-primary);
}

.alert-item .alert-desc {
    font-size: 0.875rem;
    color: var(--admin-text-secondary);
}

/* ========================================
   BÚSQUEDA GLOBAL
   ======================================== */
.global-search {
    position: relative;
    margin-bottom: 2rem;
}

.global-search input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid var(--admin-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.global-search input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.global-search .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-text-secondary);
    font-size: 1.25rem;
}

/* ========================================
   ADMIN USERS - Gestión de usuarios
   ======================================== */
.search-box {
    margin: 20px 0;
}

.search-input {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md, 8px);
    background: var(--bg-card, #2d3748);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: var(--text-sm, 0.875rem);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary, #4f46e5);
}

.table-wrapper {
    max-height: 600px;
    overflow-y: auto;
}

/* Clases adicionales para tablas */
.table-message {
    text-align: center;
    padding: var(--spacing-xl, 2rem);
}

.table-error {
    color: #ef4444;
}

/* Status badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-banned {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.status-suspended {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* Action buttons */
.btn-action {
    padding: 6px 12px;
    border-radius: var(--radius-sm, 6px);
    font-size: var(--text-xs, 0.75rem);
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: all var(--transition-base, 0.2s);
}

.btn-action:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Modal info variants */
.modal-info-primary {
    background: rgba(59, 130, 246, 0.1);
}

.modal-info-success {
    background: rgba(16, 185, 129, 0.1);
}

/* Modal text */
.modal-text {
    margin-bottom: var(--spacing-md, 1rem);
    color: rgba(255, 255, 255, 0.85);
}

/* Modal button success */
.btn-modal-success {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
    background: #10b981;
    border: none;
    border-radius: var(--radius-md, 8px);
    color: white;
    cursor: pointer;
    font-weight: 600;
}

.btn-modal-success:hover {
    background: #059669;
}

/* NOTE: Clases utilitarias globales (.text-*, .mt-*, .my-*, etc.) están en global.css */

/* Admin-specific utilities */
.incident-empty {
    text-align: center;
    padding: var(--spacing-xl, 2rem);
}

/* ========================================
   RESPONSIVE (tablets y móviles)
   ======================================== */
@media (max-width: 1200px) {
    .config-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Stats grid a una columna */
    .stats-grid {
        grid-template-columns: 1fr ;
    }
    
    /* Admin stats grid responsive */
    body.admin-page .stats-grid,
    body.admin-page .stats-grid-compact {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Config grid a una columna */
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    /* Header admin */
    .admin-header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .admin-user-info {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .admin-user-email {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .admin-logout-btn {
        padding: 0.5rem 1rem;
        font-size: 0.813rem;
    }
    
    /* Tablas responsive */
    .custom-table,
    .table-container,
    table {
        display: block;
        overflow-x: auto ;
        -webkit-overflow-scrolling: touch ;
        max-width: 100%;
    }
    
    .custom-table th,
    .custom-table td {
        padding: 0.875rem 0.625rem;
        font-size: 0.813rem;
        white-space: nowrap;
    }
    
    /* Filtros */
    .filters-row {
        padding: 1rem;
    }
    
    .filters-row .row {
        gap: 0.75rem;
    }
    
    /* Grids inline de 3 columnas → 1 columna */
    div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr ;
    }
    
    /* Monitoring grids */
    .monitoring-metrics-grid {
        grid-template-columns: 1fr ;
    }
}

/* ========================================
   RESPONSIVE MÓVILES (< 576px)
   ======================================== */
@media (max-width: 576px) {
    /* ====== ADMIN TABS - Tarjetas verticales ====== */
    .admin-tabs-nav {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm, 0.5rem);
        padding: var(--spacing-md, 1rem) ;
        border: none;
        background: var(--bg-secondary, #0f172a) ;
    }
    
    .admin-tab-item {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .admin-tab-btn {
        width: 100%;
        padding: var(--spacing-md, 1rem) ;
        font-size: var(--text-sm, 0.875rem) ;
        font-weight: 500 ;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: var(--spacing-sm, 0.5rem);
        text-align: left;
        background: var(--bg-card, #2d3748) ;
        border-radius: var(--radius-md, 8px) ;
        border: 1px solid var(--border-color, #475569) ;
        border-left: 4px solid var(--border-color, #475569) ;
        box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.3)) ;
        color: var(--text-secondary, #cbd5e1) ;
    }
    
    .admin-tab-btn:hover {
        background: var(--bg-elevated, #334155) ;
        border-left-color: var(--color-accent, #5bbbf7) ;
        color: var(--text-primary, #f1f5f9) ;
    }
    
    .admin-tab-btn.active {
        background: var(--bg-elevated, #334155) ;
        border-left-color: var(--color-primary, #4f46e5) ;
        color: var(--text-primary, #f1f5f9) ;
        font-weight: 600 ;
        box-shadow: var(--shadow-md, 0 4px 6px rgba(0,0,0,0.4)) ;
    }
    
    .admin-tab-btn i {
        font-size: 1.25rem ;
        width: 28px ;
        flex-shrink: 0 ;
    }
    
    /* ====== SYSTEM STATUS CARD ====== */
    .system-status-grid {
        grid-template-columns: 1fr ;
        gap: var(--spacing-sm, 0.5rem);
    }
    
    .system-status-item {
        padding: var(--spacing-sm, 0.5rem);
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--radius-sm, 6px);
    }
    
    /* ====== OVERVIEW CARDS GRID ====== */
    .overview-cards-grid {
        grid-template-columns: 1fr ;
    }
    
    /* ====== ADMIN TAB CONTENT ====== */
    .admin-tab-content {
        padding: var(--spacing-md, 1rem) ;
    }
    
    /* ====== CARD GENERAL ====== */
    .card {
        border-radius: var(--radius-lg, 12px) ;
        margin-left: 0 ;
        margin-right: 0 ;
        overflow: visible ;
    }
    
    .admin-tabs-container {
        margin-bottom: var(--spacing-md, 1rem) ;
    }
    
    /* ====== STAT CARDS ====== */
    .stat-card {
        padding: var(--spacing-md, 1rem) ;
    }
    
    .stat-card .value {
        font-size: 1.75rem ;
    }
    
    .stat-card .icon {
        font-size: 2rem ;
        right: 1rem ;
        top: 1rem ;
    }
    
    /* ====== MONITORING ====== */
    .monitoring-card {
        padding: var(--spacing-md, 1rem) ;
    }
    
    .monitoring-metrics-grid,
    .monitoring-section {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm, 0.5rem);
    }
    
    .metric-box {
        width: 100%;
    }
    
    /* ====== CONFIG GRID ====== */
    .config-grid {
        grid-template-columns: 1fr ;
    }
    
    .input-with-button {
        flex-direction: column;
    }
    
    .input-with-button input,
    .btn-update {
        width: 100%;
    }
    
    /* ====== MODAL ====== */
    .modal-content {
        padding: var(--spacing-md, 1rem);
        margin: var(--spacing-md, 1rem);
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-modal-cancel,
    .btn-modal-danger,
    .btn-modal-warning {
        width: 100%;
        text-align: center;
    }
    
    /* ====== CONTENEDOR PRINCIPAL ====== */
    main.container,
    .container {
        padding-left: var(--spacing-sm, 0.5rem) ;
        padding-right: var(--spacing-sm, 0.5rem) ;
    }
    
    /* ====== SECTION TITLE ====== */
    .section-title {
        font-size: var(--text-lg, 1.125rem) ;
        margin-bottom: var(--spacing-md, 1rem) ;
    }
}

/* ========================================
   HEADER STICKY EN MÓVIL
   ======================================== */
@media (max-width: 768px) {
    header.site {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
    }
    
    /* Compensar espacio del header fijo */
    body {
        padding-top: 60px !important;
    }
}

/* ============================================================================
   ADMIN MODAL COMPONENT (fusionado de admin-modal-component.css)
   ============================================================================ */
/**
 * MODAL COMPONENT - Sistema de modales reutilizable
 * Integrado con admin-v3.css usando variables existentes
 * Responsive y accesible
 */

/* ========================================
   MODAL PRINCIPAL
   ======================================== */
.admin-modal {
    background: #1a1d29;
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

/* ========================================
   HEADER DEL MODAL
   ======================================== */
.admin-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.admin-modal-icon.success { color: var(--admin-success); }
.admin-modal-icon.warning { color: var(--admin-warning); }
.admin-modal-icon.danger { color: var(--admin-danger); }
.admin-modal-icon.info { color: var(--admin-info); }

.admin-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
}

/* ========================================
   BODY DEL MODAL
   ======================================== */
.admin-modal-body {
    padding: 1.5rem;
}

.admin-modal-message {
    font-size: 0.9375rem;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   FOOTER DEL MODAL
   ======================================== */
.admin-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ========================================
   BOTONES
   ======================================== */
.admin-modal-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.admin-modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.admin-modal-btn:active {
    transform: translateY(0);
}

.admin-modal-btn-primary {
    background: #fbbf24;
    color: #000;
}

.admin-modal-btn-primary:hover {
    background: #f59e0b;
}

.admin-modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.admin-modal-btn-success {
    background: var(--admin-success);
    color: white;
}

.admin-modal-btn-success:hover {
    background: #059669;
}

.admin-modal-btn-danger {
    background: var(--admin-danger);
    color: white;
}

.admin-modal-btn-danger:hover {
    background: #dc2626;
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .admin-modal {
        max-width: 95%;
        margin: 1rem;
    }
    
    .admin-modal-header {
        padding: 1.25rem;
    }
    
    .admin-modal-body {
        padding: 1.25rem;
    }
    
    .admin-modal-footer {
        padding: 1rem 1.25rem;
        flex-direction: column-reverse;
    }
    
    .admin-modal-btn {
        width: 100%;
        padding: 0.75rem;
    }
}

/* ========================================
   ACCESIBILIDAD
   ======================================== */
.admin-modal:focus {
    outline: 2px solid var(--admin-primary);
    outline-offset: 2px;
}

/* Reducir movimiento para usuarios con preferencias */
@media (prefers-reduced-motion: reduce) {
    .modal-overlay,
    .admin-modal {
        animation: none;
    }
    
    .admin-modal-btn:hover {
        transform: none;
    }
}

/* ============================================================================
   HEADER - Sistema de navegación principal
   Versión limpia y consolidada - Sin  innecesarios
   ============================================================================ */

/* Header principal */
header.site {
    background: var(--surface-dark, #1e293b);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    width: 100%;
    min-height: 64px;
}

header.site .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow: visible; /* Importante para dropdowns */
}

header.site .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Brand/Logo */
header.site .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

header.site .brand:hover {
    color: white;
}

header.site .brand .logo {
    width: 32px;
    height: 32px;
    background: var(--primary, #4f46e5);
    border-radius: 6px;
    flex-shrink: 0;
}

/* Navegación */
header.site nav,
header.site .main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

/* Links de navegación base */
header.site .nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

header.site .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

header.site .nav-link.active {
    color: var(--primary, #6366f1);
    background: rgba(99, 102, 241, 0.1);
}

header.site .nav-link i {
    font-size: 0.9rem;
    opacity: 0.7;
}

header.site .nav-link:hover i {
    opacity: 1;
}

/* Separador visual entre grupos */
.nav-separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0.5rem;
}

/* Spacer para empujar elementos a la derecha */
.nav-spacer {
    flex: 1;
}

/* ============================================================================
   BOTÓN LOGIN - Estilo outline elegante
   ============================================================================ */
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.nav-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

.nav-login-btn i {
    font-size: 0.9rem;
}

/* ============================================================================
   DROPDOWN Y MEGA MENÚ
   ============================================================================ */
.nav-dropdown {
    position: relative;
    display: inline-flex;
}

.nav-dropdown-trigger {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.nav-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-dropdown-trigger i:first-child {
    color: var(--primary, #6366f1);
    font-size: 0.9rem;
}

.nav-dropdown-trigger .dropdown-arrow {
    font-size: 0.6rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown simple (para Recursos, etc.) */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface-dark, #1e293b);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 10000;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 0.875rem;
    border-radius: 6px;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-dropdown-menu a i {
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.nav-dropdown-menu a:hover i {
    color: var(--primary, #6366f1);
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 6px 0;
}

/* ============================================================================
   MEGA MENÚ AMPLIADO (estilo Fiverr)
   ============================================================================ */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 900px;
    max-width: 95vw;
    background: var(--surface-dark, #1e293b);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 10000;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.nav-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.mega-menu-section {
    padding: 24px 20px;
    border-right: 1px solid rgba(255,255,255,0.06);
    background: transparent;
    transition: background 0.2s ease;
}

.mega-menu-section:last-child {
    border-right: none;
}

.mega-menu-section:hover {
    background: rgba(255,255,255,0.02);
}

/* Header de sección con imagen */
.mega-menu-section-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mega-menu-section-header .section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.mega-menu-section-header .section-icon.web {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: #3b82f6;
}

.mega-menu-section-header .section-icon.apps {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: #10b981;
}

.mega-menu-section-header .section-icon.software {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    color: #8b5cf6;
}

.mega-menu-section-header .section-icon.automation {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #f59e0b;
}

.mega-menu-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    margin: 0 0 4px 0;
}

.mega-menu-section .section-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    margin: 0;
}

/* Links de servicios */
.mega-menu-section .service-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-menu-section .service-link {
    display: block;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.15s ease;
    margin: 0 -10px;
}

.mega-menu-section .service-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding-left: 14px;
}

.mega-menu-section .service-link.featured {
    color: var(--primary, #6366f1);
    font-weight: 500;
}

.mega-menu-section .service-link.featured:hover {
    color: #818cf8;
}

/* Sección especial MitikLive */
.mega-menu-mitiklive {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    grid-column: span 4;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mega-menu-mitiklive .mitik-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mega-menu-mitiklive .mitik-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-menu-mitiklive .mitik-logo i {
    font-size: 1.5rem;
    color: white;
}

.mega-menu-mitiklive .mitik-text h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
}

.mega-menu-mitiklive .mitik-text p {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    margin: 0;
}

.mega-menu-mitiklive .platform-badges {
    display: flex;
    gap: 8px;
}

.mega-menu-mitiklive .platform-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.mega-menu-mitiklive .platform-badge:hover {
    opacity: 1;
    transform: scale(1.1);
}

.mega-menu-mitiklive .platform-badge.wallapop { background-image: url('/assets/img/platforms/wallapop.png'); }
.mega-menu-mitiklive .platform-badge.milanuncios { background-image: url('/assets/img/platforms/milanuncios.png'); }
.mega-menu-mitiklive .platform-badge.facebook { background-image: url('/assets/img/platforms/facebook.png'); }
.mega-menu-mitiklive .platform-badge.vinted { background-image: url('/assets/img/platforms/vinted.png'); }

.mega-menu-mitiklive .btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mega-menu-mitiklive .btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* ============================================================================
   BOTÓN CTA - Descargar (MUY destacado)
   ============================================================================ */
.nav-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), 
                0 0 0 0 rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: cta-glow 2s ease-in-out infinite;
}

@keyframes cta-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6), 0 0 0 4px rgba(16, 185, 129, 0.1); }
}

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

.nav-btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    color: white;
    animation: none;
}

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

.nav-btn-cta i {
    font-size: 1rem;
}

/* ============================================================================
   PRICE TAGS en dropdown
   ============================================================================ */
.price-tag {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: auto;
    text-transform: uppercase;
}

.price-tag.hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    animation: pulse-hot 2s infinite;
}

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

/* ============================================================================
   USER SECTION - Email y logout
   ============================================================================ */
.user-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.user-email-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 400;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email-badge i {
    color: #6366f1;
    font-size: 0.875rem;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

/* ============================================================================
   MENÚ HAMBURGUESA - Solo móvil
   ============================================================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación X cuando está abierto */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================================
   HEADER MÓVIL - Área derecha con login/user + hamburguesa
   ============================================================================ */
.header-mobile-right {
    display: none;
    align-items: center;
    gap: 8px;
}

/* Botón login móvil */
.mobile-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--primary, #6366f1);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mobile-login-btn:hover {
    background: var(--primary-dark, #4f46e5);
    color: white;
    transform: translateY(-1px);
}

.mobile-login-btn i {
    font-size: 1rem;
}

/* Botón usuario móvil (logueado) */
.mobile-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary, #6366f1);
    border-radius: 50%;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-user-btn:hover {
    background: var(--primary, #6366f1);
    color: white;
}

/* Botón logout móvil */
.mobile-logout-form {
    margin: 0;
}

.mobile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-logout-btn:hover {
    background: #ef4444;
    color: white;
}

.mobile-logout-btn i {
    font-size: 0.9rem;
}

/* Nav links estilo unificado */
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-secondary, #cbd5e1);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link i {
    font-size: 1rem;
    opacity: 0.8;
}

/* Desktop only */
.desktop-only {
    display: flex;
}

/* Footer fijo móvil */
.mobile-nav-footer {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-footer .nav-btn-cta {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
}

/* ============================================================================
   RESPONSIVE - TABLET Y MÓVIL
   ============================================================================ */
@media (max-width: 768px) {
    /* Mostrar área derecha móvil */
    .header-mobile-right {
        display: flex;
        order: 2;
    }
    
    /* Ocultar elementos desktop */
    .desktop-only {
        display: none !important;
    }
    
    /* Ocultar texto en nav en móvil pequeño */
    .mobile-login-btn span {
        display: inline;
    }
    
    /* Mostrar hamburguesa */
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    /* Header más compacto */
    header.site {
        padding: 0.75rem 0;
        min-height: auto;
    }
    
    header.site .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative;
    }
    
    /* Brand más pequeño */
    header.site .brand {
        font-size: 1.1rem;
        gap: 0.5rem;
        order: 1;
    }
    
    header.site .brand .logo {
        width: 28px;
        height: 28px;
    }
    
    /* Nav principal - menú lateral */
    header.site .main-nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: calc(100vh - 60px);
        background: var(--surface-dark, #1e293b);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 9998;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        border-left: 1px solid rgba(255,255,255,0.1);
    }
    
    header.site .main-nav.active,
    header.site .main-nav.open {
        right: 0;
    }
    
    /* Links en menú móvil */
    header.site .main-nav > a,
    header.site .main-nav > .nav-btn {
        padding: 1rem 1.5rem;
        border-radius: 0;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 0.9375rem;
    }
    
    header.site .main-nav > a:hover {
        background: rgba(255,255,255,0.08);
    }
    
    /* Dropdown en móvil */
    .nav-dropdown {
        width: 100%;
        flex-direction: column;
    }
    
    .nav-dropdown-trigger {
        width: 100%;
        padding: 1rem 1.5rem;
        justify-content: space-between;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        background: transparent;
        border-left: none;
        border-right: none;
        border-top: none;
    }
    
    .nav-dropdown-trigger .dropdown-arrow {
        transition: transform 0.3s ease;
    }
    
    /* Dropdown simple en móvil */
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(0,0,0,0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        min-width: auto;
    }
    
    /* Mega menú en móvil - se convierte en lista vertical */
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(0,0,0,0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        padding: 0;
        min-width: auto;
        width: 100%;
    }
    
    .mega-menu-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .mega-menu-section {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 16px 0;
    }
    
    .mega-menu-section:last-child {
        border-bottom: none;
    }
    
    .mega-menu-section-header {
        padding: 0 1.5rem 12px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .mega-menu-section-header .section-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .mega-menu-section h4 {
        font-size: 0.85rem;
        margin: 0;
    }
    
    .mega-menu-section .section-subtitle {
        display: none;
    }
    
    .mega-menu-section .service-links {
        padding: 0 1rem;
    }
    
    .mega-menu-section .service-link {
        padding: 10px 1.5rem;
        margin: 0;
        font-size: 0.85rem;
    }
    
    .mega-menu-section .service-link:hover {
        padding-left: 1.75rem;
    }
    
    /* Sección MitikLive en móvil */
    .mega-menu-mitiklive {
        flex-direction: column;
        padding: 16px 1.5rem;
        gap: 12px;
        text-align: center;
    }
    
    .mega-menu-mitiklive .mitik-info {
        flex-direction: column;
        text-align: center;
    }
    
    .mega-menu-mitiklive .mitik-text h5 {
        font-size: 0.9rem;
    }
    
    .mega-menu-mitiklive .mitik-text p {
        font-size: 0.7rem;
    }
    
    .mega-menu-mitiklive .platform-badges {
        justify-content: center;
    }
    
    .mega-menu-mitiklive .btn-explore {
        width: 100%;
        justify-content: center;
    }
    
    /* Cuando está activo el dropdown */
    .nav-dropdown.active .nav-dropdown-menu,
    .nav-dropdown.active .mega-menu {
        max-height: 1500px;
        padding: 0.5rem 0;
    }
    
    .nav-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .nav-dropdown-menu a {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }
    
    .nav-dropdown-menu a:hover {
        background: rgba(255,255,255,0.05);
    }
    
    .nav-dropdown-divider {
        margin: 0.25rem 1rem;
    }
    
    /* User section en móvil */
    .user-section {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0;
        border: none;
    }
    
    .user-email-badge {
        padding: 1rem 1.5rem;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        max-width: none;
        justify-content: flex-start;
    }
    
    .btn-logout {
        padding: 1rem 1.5rem;
        border-radius: 0;
        border: none;
        background: transparent;
        justify-content: flex-start;
        font-size: 0.9375rem;
    }
    
    .btn-logout:hover {
        background: rgba(239, 68, 68, 0.1);
    }
    
    /* Mostrar footer móvil */
    .mobile-nav-footer {
        display: block;
    }
    
    /* Ocultar CTA en nav (está en footer) */
    header.site .main-nav > .nav-btn-cta {
        display: none;
    }
    
    /* Overlay oscuro */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9997;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    header.site .brand span {
        display: none;
    }
    
    header.site .brand .logo {
        width: 32px;
        height: 32px;
    }
    
    .mobile-login-btn span,
    .mobile-logout-btn span {
        display: inline;
    }
    
    .mobile-login-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .mobile-logout-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .hamburger-line {
        width: 20px;
    }
    
    header.site .main-nav {
        top: 56px;
        height: calc(100vh - 56px);
    }
}
/* ============================================================================
   ESTADOS VACÍOS Y TABLA HELPERS
   ============================================================================ */
/* Celda vacía centrada */
.td-empty {
  text-align: center;
  padding: 40px ;
  color: var(--text-muted);
}

.td-empty-error {
  text-align: center;
  padding: 40px ;
  color: var(--danger);
}

/* Descripción secundaria */
.text-description {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Paginación centrada */
.pagination-center {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* ============================================================================
   LOADERS - Sistema de loaders reutilizable
   (Consolidado desde loader.css)
   ============================================================================ */

/* Loader Global - Overlay completo */
.global-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
  opacity: 0;
  animation: loaderFadeIn 0.3s ease forwards;
}

@keyframes loaderFadeIn {
  to { opacity: 1; }
}

.global-loader.fadeOut {
  animation: loaderFadeOut 0.3s ease forwards;
}

@keyframes loaderFadeOut {
  to { opacity: 0; }
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Spinner animado */
.loader-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(79, 70, 229, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loader-spinner.small {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

.loader-spinner.medium {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

.loader-text {
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.loader-subtext {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-align: center;
  margin: 0.5rem 0 0 0;
  max-width: 300px;
}

/* Loader con puntos animados */
.loader-dots {
  display: inline-flex;
  gap: 6px;
  margin-left: 4px;
}

.loader-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: dotPulse 1.4s infinite ease-in-out;
}

.loader-dots span:nth-child(1) { animation-delay: 0s; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 60%, 100% { transform: scale(0.8); opacity: 0.5; }
  30% { transform: scale(1.2); opacity: 1; }
}

/* Loader inline */
.loader-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.loader-inline .loader-spinner {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* Payment Loader - Stripe/Pagos */
.payment-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
  opacity: 0;
  animation: loaderFadeIn 0.3s ease forwards;
}

.payment-loader-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.payment-loader-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border: 4px solid rgba(16, 185, 129, 0.2);
  border-top-color: var(--success);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.payment-loader-title {
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.payment-loader-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin: 0 0 1rem 0;
}

.payment-loader-message {
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin: 1.5rem 0 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.payment-loader-secure {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--success);
  font-size: var(--text-sm);
  margin-top: 1rem;
}

.payment-loader-secure svg {
  width: 20px;
  height: 20px;
}

/* Botón con loader */
.btn.loading {
  position: relative;
  color: transparent ;
  pointer-events: none;
  cursor: not-allowed;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Variaciones de color */
.loader-primary .loader-spinner { border-top-color: var(--primary); }
.loader-success .loader-spinner { border-top-color: var(--success); }
.loader-warning .loader-spinner { border-top-color: var(--warning); }
.loader-danger .loader-spinner { border-top-color: var(--danger); }

/* ============================================================================
   AUTH - Estilos para páginas de autenticación
   (Consolidado desde auth.css)
   ============================================================================ */

.auth-container {
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Fondos difuminados para efecto glassmorphism */
.auth-bg {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
}

.auth-bg-1 {
  background: #6366f1;
  top: -150px;
  left: -150px;
}

.auth-bg-2 {
  background: #10b981;
  bottom: -150px;
  right: -150px;
}

.auth-card {
  position: relative;
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 440px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-icon-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.auth-card h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
}

/* Botón principal de Google - Hero */
.btn-google-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 18px 24px;
  background: white;
  border: none;
  border-radius: 14px;
  color: #1f2937;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-google-hero:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
  color: #1f2937;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #475569;
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-form {
  margin-bottom: 0;
}

.auth-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.auth-input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.auth-input::placeholder {
  color: #64748b;
}

.btn-login {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  color: white;
}

/* Checkbox Recuérdame */
.auth-remember {
  margin: 16px 0;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.9rem;
  user-select: none;
}

.auth-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
  cursor: pointer;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.auth-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

/* Legacy auth-links para compatibilidad */
.auth-links {
  text-align: center;
  margin-top: var(--spacing-lg);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
}

.auth-links a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Responsive loaders y auth */
@media (max-width: 768px) {
  .loader-spinner {
    width: 56px;
    height: 56px;
  }
  
  .payment-loader-content {
    margin: 0 1rem;
    padding: 2rem 1.5rem;
  }
  
  .payment-loader-icon {
    width: 64px;
    height: 64px;
  }
  
  .loader-text {
    font-size: var(--text-base);
  }
  
  .auth-container {
    padding: 20px;
  }
  
  .auth-card {
    padding: 32px 24px;
    border-radius: 20px;
  }
  
  .auth-icon-circle {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }
  
  .auth-card h2 {
    font-size: 1.5rem;
  }
  
  .auth-bg {
    width: 250px;
    height: 250px;
  }
  
  .btn-google-hero {
    padding: 16px 20px;
    font-size: 1rem;
  }
  
  .auth-input {
    padding: 14px 16px;
  }
  
  .btn-login {
    padding: 14px 20px;
  }
}

/* ============================================================================
   DOWNLOAD PAGE - Estilos para página de descarga
   (Consolidado desde download.css)
   ============================================================================ */

.download-page {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px;
}

.download-hero {
  text-align: center;
  margin-bottom: 60px;
}

.download-hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.download-hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.platforms-compatible {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: var(--spacing-xl);
}

.platforms-compatible .platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: transparent;
  transition: transform 0.2s ease;
  background-size: cover;
  background-position: center;
  text-indent: -9999px;
  overflow: hidden;
}

.platforms-compatible .platform-icon:hover {
  transform: scale(1.1);
}

.platforms-compatible .platform-icon.wallapop { background-image: url('/assets/img/platforms/wallapop.png'); }
.platforms-compatible .platform-icon.milanuncios { background-image: url('/assets/img/platforms/milanuncios.png'); }
.platforms-compatible .platform-icon.facebook { background-image: url('/assets/img/platforms/facebook.png'); }
.platforms-compatible .platform-icon.vinted { background-image: url('/assets/img/platforms/vinted.png'); }

.download-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--spacing-xl) 0;
}

.download-buttons .btn {
  font-size: 1.1rem;
  padding: var(--spacing-md) var(--spacing-xl);
  min-width: 200px;
}

/* Nota debajo del botón de Chrome Web Store */
.download-store-note {
  text-align: center;
  color: var(--success-600);
  font-size: 0.95rem;
  margin-top: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.download-store-note i {
  font-size: 1rem;
}

/* Steps Container */
.steps-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 60px;
}

.steps-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.step {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: 48px;
  align-items: flex-start;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--violet) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.step-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-sm);
}

.step-highlight {
  background: rgba(79, 70, 229, 0.1);
  border-left: 4px solid var(--primary);
  padding: var(--spacing-md);
  margin-top: var(--spacing-sm);
  border-radius: var(--radius-md);
}

.step-highlight strong {
  color: var(--primary);
  font-weight: 600;
}

.step-code-center {
  text-align: center;
  margin: 20px 0;
}

/* Warning y Success boxes */
.warning-box {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--danger);
  padding: 20px;
  margin-top: 40px;
  border-radius: var(--radius-md);
}

.warning-box h4 {
  color: var(--danger);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.warning-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
}

.success-box {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--success);
  padding: 20px;
  margin-top: 40px;
  border-radius: var(--radius-md);
}

.success-box h4 {
  color: var(--success);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.success-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Version Badge */
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--success);
  border-radius: 30px;
  padding: 8px 20px;
  margin-bottom: var(--spacing-lg);
}

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

.version-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--success);
}

/* Browsers Compatible */
.browsers-compatible {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.browser-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.browser-item i {
  font-size: 1.25rem;
}

/* Sistemas operativos compatibles */
.os-compatible {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0;
}

.os-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.7;
}

.os-item i {
  font-size: 1.1rem;
}

.os-item i.fa-windows {
  color: #00a4ef;
}

.os-item i.fa-apple {
  color: #a2aaad;
}

.os-item i.fa-linux {
  color: #f9a825;
}

/* Browser Selector */
.browser-selector {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.browser-selector-label {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.browser-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.browser-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.browser-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.browser-btn.active {
  background: rgba(79, 70, 229, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.browser-btn i {
  font-size: 1.1rem;
}

/* Browser-specific content (hidden by default) */
.browser-url,
.edge-content,
.brave-content,
.opera-content {
  display: none;
}

.browser-url.active,
.chrome-content.active,
.edge-content.active,
.brave-content.active,
.opera-content.active {
  display: block;
}

span.edge-content,
span.chrome-content,
span.brave-content,
span.opera-content {
  display: none;
}

span.edge-content.active,
span.chrome-content.active,
span.brave-content.active,
span.opera-content.active {
  display: inline;
}

/* Copy button */
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  margin-left: var(--spacing-sm);
  transition: all var(--transition-base);
}

.copy-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.copy-btn.copied {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

/* Step highlight variants */
.step-highlight.warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: var(--warning);
}

.step-highlight.warning strong {
  color: var(--warning);
}

.step-highlight.success {
  background: rgba(16, 185, 129, 0.1);
  border-left-color: var(--success);
}

.step-highlight.success strong {
  color: var(--success);
}

/* Inline icon */
.inline-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin: 0 4px;
}

/* Download responsive */
@media (max-width: 768px) {
  .download-hero h1 {
    font-size: 2rem;
  }
  
  .browsers-compatible {
    gap: var(--spacing-md);
  }
  
  .browser-buttons {
    gap: var(--spacing-xs);
  }
  
  .browser-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  
  .steps-container {
    padding: var(--spacing-lg);
  }
  
  .step {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* FAQ Section - Download page */
.download-faq {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.download-faq-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.download-faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.download-faq-item h4 {
  margin: 0 0 var(--spacing-sm);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.download-faq-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === SECCIONES DE DESCARGA (App + Extensión) === */
.download-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  overflow: hidden;
}

.download-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.download-section-header.android-header {
  background: linear-gradient(135deg, rgba(61, 220, 132, 0.15) 0%, rgba(0, 169, 86, 0.1) 100%);
}

.download-section-header.extension-header {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.download-section-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.android-header .download-section-icon {
  background: linear-gradient(135deg, #3DDC84 0%, #00A956 100%);
  color: white;
}

.extension-header .download-section-icon {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: white;
}

.download-section-info h2 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
}

.download-section-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.download-section-body {
  padding: 1.5rem;
}

.download-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.download-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.download-feature i {
  color: #3DDC84;
  width: 18px;
}

.download-buttons-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.btn-android {
  background: linear-gradient(135deg, #3DDC84 0%, #00A956 100%);
  color: white;
  border: none;
}

.btn-android:hover {
  background: linear-gradient(135deg, #00A956 0%, #008744 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 220, 132, 0.4);
}

.download-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-align: center;
}

.download-note.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--text-secondary);
}

.download-note.warning i {
  color: var(--warning);
}

/* Instrucciones de instalación APK */
.install-instructions {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0,0,0,0.2);
}

.install-instructions h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.install-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.install-step:last-of-type {
  margin-bottom: 0;
}

.install-step-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3DDC84 0%, #00A956 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.install-step-content {
  flex: 1;
}

.install-step-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.install-step-content p {
  margin: 0 0 0.5rem 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.install-tip {
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.install-note-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* FAQ mini */
.download-faq-mini {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.download-faq-mini .download-faq-item {
  padding: 0 0 1rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  border-radius: 0;
}

.download-faq-mini .download-faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Intro text SEO */
.download-intro-text {
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}
.download-intro-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.download-intro-text p:last-child {
  margin-bottom: 0;
}

/* Plataformas soportadas */
.download-platforms-note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(61, 220, 132, 0.08);
  border: 1px solid rgba(61, 220, 132, 0.2);
  border-radius: var(--radius-md);
}
.download-platforms-note h4 {
  font-size: var(--text-sm);
  color: #3DDC84;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.platforms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.platform-supported {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(61, 220, 132, 0.2);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #3DDC84;
}
.platform-coming-soon {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.platform-coming-soon small {
  font-style: italic;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 640px) {
  .download-features-grid {
    grid-template-columns: 1fr;
  }
  
  .download-section-header {
    flex-direction: column;
    text-align: center;
  }
  
  .install-step {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Modal: Dispositivo móvil */
.mobile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
  padding: var(--spacing-lg);
}

.mobile-modal-overlay.active {
  display: flex;
}

.mobile-modal {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  max-width: 400px;
  text-align: center;
}

.mobile-modal-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
}

.mobile-modal h2 {
  font-size: 1.5rem;
  margin: 0 0 var(--spacing-md);
  color: var(--text-primary);
}

.mobile-modal p {
  color: var(--text-muted);
  margin: 0 0 var(--spacing-sm);
  line-height: 1.6;
}

.mobile-modal-hint {
  font-size: 0.9rem;
  color: var(--primary) ;
  margin-top: var(--spacing-md) ;
}

.mobile-modal-btn {
  margin-top: var(--spacing-lg);
  background: var(--primary);
  color: white;
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  width: 100%;
}

.mobile-modal-btn:hover {
  background: var(--primary-hover);
}

/* ============================================================================
   BLOG / GUÍAS - Estilos para artículos de blog
   (Consolidado desde vistas individuales)
   ============================================================================ */

.blog-post {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 40px;
}

.blog-header {
  margin-bottom: 48px;
  padding-bottom: var(--spacing-lg);
  border-bottom: 3px solid rgba(79, 70, 229, 0.3);
  text-align: center;
}

.blog-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary);
}

.blog-meta {
  display: flex;
  gap: var(--spacing-md);
  color: var(--text-muted);
  font-size: var(--text-sm);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.blog-content {
  line-height: 1.9;
  font-size: 1.05rem;
}

.blog-content section {
  margin-bottom: 56px;
}

.blog-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  margin: 56px 0 28px;
  color: var(--primary-light);
  font-weight: 600;
  padding-left: 20px;
  border-left: 5px solid var(--primary);
}

.blog-content h3 {
  font-size: 1.35rem;
  margin: 36px 0 18px;
  color: var(--text-primary);
  font-weight: 600;
  padding-left: var(--spacing-md);
  border-left: 3px solid rgba(79, 70, 229, 0.5);
}

.blog-content p {
  margin-bottom: var(--spacing-lg);
  color: var(--text-secondary);
}

.blog-content ul,
.blog-content ol {
  margin: var(--spacing-lg) 0;
  padding-left: 32px;
  color: var(--text-secondary);
}

.blog-content li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

/* Blog - Cajas destacadas */
.blog-highlight {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(118, 75, 162, 0.15));
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg) 28px;
  margin: var(--spacing-xl) 0;
}

.blog-highlight p {
  margin-bottom: var(--spacing-sm);
}

.blog-highlight p:last-child {
  margin-bottom: 0;
}

.blog-highlight.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Blog - Cajas de advertencia */
.blog-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg) 28px;
  margin: var(--spacing-xl) 0;
}

.blog-warning ul {
  margin-bottom: 0;
  padding-left: var(--spacing-lg);
}

/* Blog - CTA Box */
.blog-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-purple) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}

.blog-cta h3 {
  border: none;
  padding: 0;
  margin: 0 0 var(--spacing-md);
  color: white;
  font-size: 1.5rem;
}

.blog-cta p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-lg);
}

.blog-cta .btn {
  margin-bottom: var(--spacing-md);
}

.blog-cta-note {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Blog - Tabla de contenidos */
.blog-toc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.blog-toc-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

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

.blog-toc-list li {
  margin-bottom: var(--spacing-sm);
}

.blog-toc-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.blog-toc-list a:hover {
  color: var(--primary);
}

.blog-toc-list a::before {
  content: "→";
  color: var(--primary);
  opacity: 0.5;
}

/* Blog - Tabla comparativa */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
}

.blog-table th {
  background: rgba(79, 70, 229, 0.2);
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.blog-table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-table tr:last-child td {
  border-bottom: none;
}

/* Blog - Responsive */
@media (max-width: 768px) {
  .blog-post {
    padding: 0 20px;
    margin: 40px auto;
  }
  
  .blog-content h2 {
    margin: 40px 0 20px;
  }
  
  .blog-cta {
    padding: 28px 20px;
  }
  
  .blog-toc {
    padding: var(--spacing-md);
  }
}

/* ============================================================================
   PÁGINA DE GUÍAS - Índice de todas las guías
   ============================================================================ */

.guias-page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 24px;
}

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

.guias-header h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

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

/* Intro SEO para índice de guías */
.guias-intro {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}
.guias-intro p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.guias-intro p:last-child {
  margin-bottom: 0;
}

/* Features grid en guías */
.guia-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.guia-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.guia-feature i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.guia-feature h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text-primary);
}
.guia-feature p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
}

/* Checklist en guías */
.guia-checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.guia-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}
.guia-checklist li i {
  color: var(--primary);
}

/* FAQ en guías */
.guias-faq {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.guias-faq h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.faq-item {
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}
.faq-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Screenshots en guías */
.guia-screenshot {
  margin: 1.5rem 0;
  text-align: center;
}
.guia-screenshot img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  border: 1px solid var(--border-color);
}
.guia-screenshot-caption {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}
.guia-screenshot-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Screenshots en grid (2 columnas) */
.guia-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.guia-screenshots-grid .guia-screenshot {
  margin: 0;
}
.guia-screenshots-grid img {
  max-width: 280px;
}

@media (max-width: 640px) {
  .guia-screenshot img {
    max-width: 280px;
  }
  .guia-screenshots-grid {
    grid-template-columns: 1fr;
  }
  .guia-screenshots-grid img {
    max-width: 250px;
  }
}

.guias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: 48px;
}

.guia-card {
  display: flex;
  gap: var(--spacing-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-decoration: none;
  transition: all var(--transition-base);
}

.guia-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.guia-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

/* Guía - Iconos por color */
.guia-icon-purple {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.guia-icon-orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.guia-icon-green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.guia-icon-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.guia-icon-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.guia-icon-pink {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.guia-icon-teal {
  background: linear-gradient(135deg, #09b1ba, #078a91);
}

.guia-content {
  flex: 1;
  min-width: 0;
}

.guia-content h2 {
  font-size: 1.1rem;
  margin: 0 0 var(--spacing-sm);
  color: var(--text-primary);
}

.guia-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 var(--spacing-sm);
  line-height: 1.5;
}

.guia-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.guia-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.guia-time i {
  margin-right: 4px;
}

.guia-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.guia-tag.tag-essential {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

.guia-tag.tag-popular {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.guia-tag.tag-advanced {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.guia-tag.tag-beginner {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.guia-tag.tag-tips {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
}

.guias-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-purple) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.guias-cta h3 {
  font-size: 1.5rem;
  margin: 0 0 var(--spacing-sm);
  color: white;
}

.guias-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 var(--spacing-lg);
}

.guias-cta .btn {
  font-size: 1rem;
}

/* ==========================================================================
   GUÍA ARTÍCULO - Estilos para guías individuales
   ========================================================================== */

/* Contenedor principal del artículo */
.guia-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* Header del artículo */
.guia-article-header {
  margin-bottom: 2.5rem;
}

.guia-article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.guia-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.guia-reading-time {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.guia-reading-time i {
  margin-right: 0.25rem;
}

.guia-article-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Contenido del artículo */
.guia-article-content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.guia-article-content h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
}

.guia-article-content h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.guia-article-content p {
  margin-bottom: 1rem;
}

.guia-article-content ul,
.guia-article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.guia-article-content li {
  margin-bottom: 0.5rem;
}

/* Secciones de la guía */
.guia-section {
  margin-bottom: 2.5rem;
}

.guia-section h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Pasos de la guía */
.guia-step {
  position: relative;
}

.guia-step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.guia-step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.guia-step-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

/* Flujo de proceso */
.guia-process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.guia-process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  min-width: 100px;
}

.guia-process-step .process-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.guia-process-step .process-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.guia-process-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: bold;
}

/* Tabla de estados */
.guia-status-table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.guia-status-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.guia-status-row .status-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.guia-status-row.status-success .status-icon {
  background: rgba(61, 220, 132, 0.15);
}

.guia-status-row.status-cooldown .status-icon {
  background: rgba(245, 158, 11, 0.15);
}

.guia-status-row.status-error .status-icon {
  background: rgba(239, 68, 68, 0.15);
}

.guia-status-row .status-info {
  flex: 1;
}

.guia-status-row .status-info strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.guia-status-row .status-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Cajas de información */
.guia-info-box,
.guia-tip-box,
.guia-warning-box {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.guia-info-box {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.guia-tip-box {
  background: rgba(61, 220, 132, 0.1);
  border: 1px solid rgba(61, 220, 132, 0.3);
}

.guia-warning-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.guia-info-box h4,
.guia-tip-box h4,
.guia-warning-box h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.guia-info-box h4 { color: #60a5fa; }
.guia-tip-box h4 { color: #3DDC84; }
.guia-warning-box h4 { color: #fbbf24; }

.guia-info-box p,
.guia-tip-box p,
.guia-warning-box p {
  margin: 0;
  color: var(--text-secondary);
}

.guia-info-box ul,
.guia-tip-box ul,
.guia-warning-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

/* Caja de acción (download) */
.guia-action-box {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.guia-action-note {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Enlaces siguientes */
.guia-next {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.guia-next-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.guia-next-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
}

.guia-next-link:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.guia-next-link i {
  font-size: 1.25rem;
  color: var(--primary);
}

.guia-next-link span {
  color: var(--text-primary);
  font-weight: 500;
}

/* Badge Android */
.platform-badge.android {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(61, 220, 132, 0.2);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: #3DDC84;
}

.platform-badge.android i {
  font-size: 1rem;
}

/* Guías - Responsive */
@media (max-width: 768px) {
  .guias-page {
    padding: 40px 16px;
  }
  
  .guias-grid {
    grid-template-columns: 1fr;
  }
  
  .guia-card {
    flex-direction: column;
    text-align: center;
  }
  
  .guia-icon {
    margin: 0 auto;
  }
  
  .guia-meta {
    justify-content: center;
  }
  
  .guias-cta {
    padding: 28px 20px;
  }
  
  /* Artículos de guía responsive */
  .guia-article {
    padding: 40px 16px;
  }
  
  .guia-article-header h1 {
    font-size: 1.5rem;
  }
  
  .guia-process-flow {
    gap: 0.25rem;
    padding: 1rem;
  }
  
  .guia-process-step {
    min-width: 80px;
    padding: 0.5rem;
  }
  
  .guia-process-arrow {
    font-size: 1rem;
  }
  
  .guia-status-row {
    flex-direction: column;
    text-align: center;
  }
  
  .guia-next-links {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   GUÍAS MULTI-PLATAFORMA - Estilos adicionales
   ============================================================================ */

/* Selector de plataforma */
.guias-platform-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.platform-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  justify-content: center;
}

.platform-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.platform-tab.platform-wallapop:hover {
  border-color: #13c1ac;
}

.platform-tab.platform-milanuncios:hover {
  border-color: #13c1ac;
}

.platform-tab .platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: transparent;
  background-size: cover;
  background-position: center;
  text-indent: -9999px;
  overflow: hidden;
}

.platform-tab .platform-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.platform-tab.platform-wallapop .platform-icon {
  background-image: url('/assets/img/platforms/wallapop.png');
}

.platform-tab.platform-milanuncios .platform-icon {
  background-image: url('/assets/img/platforms/milanuncios.png');
}

.platform-tab.platform-facebook .platform-icon {
  background-image: url('/assets/img/platforms/facebook.png');
}

.platform-tab.platform-vinted .platform-icon {
  background-image: url('/assets/img/platforms/vinted.png');
}

.platform-tab span:nth-child(2) {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.platform-tab .guide-count {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Secciones de guías */
.guias-section {
  margin-bottom: 48px;
}

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

.section-header h2 {
  font-size: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.section-header h2 i {
  color: var(--primary);
}

.section-header .see-all {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.section-header .see-all:hover {
  text-decoration: underline;
}

/* Platform badges */
.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  overflow: hidden;
}

.platform-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.platform-badge.wallapop {
  background: linear-gradient(135deg, #13c1ac, #0d9488);
}

.platform-badge.milanuncios {
  background: linear-gradient(135deg, #13c1ac, #0d9488);
}

.platform-badge.facebook {
  background: linear-gradient(135deg, #1877f2, #0d5dc9);
}

.platform-badge.vinted {
  background: linear-gradient(135deg, #09b1ba, #078a91);
}

/* Guías grid compacta */
.guias-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guias-grid-compact .guia-card {
  padding: 20px;
}

.guias-grid-compact .guia-card h3,
.guias-grid-compact .guia-card h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.guias-grid-compact .guia-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Platform header en página de guías */
.platform-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.platform-header .platform-icon-large {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

.platform-header .platform-icon-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.platform-header.wallapop .platform-icon-large {
  background-image: url('/assets/img/platforms/wallapop.png');
  background-size: cover;
  background-position: center;
}

.platform-header.milanuncios .platform-icon-large {
  background-image: url('/assets/img/platforms/milanuncios.png');
  background-size: cover;
  background-position: center;
}

.platform-header.facebook .platform-icon-large {
  background-image: url('/assets/img/platforms/facebook.png');
  background-size: cover;
  background-position: center;
}

.platform-header.vinted .platform-icon-large {
  background-image: url('/assets/img/platforms/vinted.png');
  background-size: cover;
  background-position: center;
}

.platform-header.app-android {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.platform-header.app-android .platform-icon-large {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 220, 132, 0.15);
  border-radius: var(--radius-lg);
}
.platform-header.app-android .platform-icon-large i {
  font-size: 2.5rem;
  color: #3DDC84;
}

.platform-header h1 {
  margin-bottom: 4px ;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.back-link:hover {
  text-decoration: underline;
}

/* Info box para guías */
.guias-info-box {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: var(--radius-lg);
  margin: 32px 0;
}

.guias-info-box .info-icon {
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.guias-info-box .info-content h3 {
  color: white;
  margin-bottom: 8px;
}

.guias-info-box .info-content p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.6;
}

/* Platform badge header en artículos */
.platform-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.platform-badge-header.milanuncios {
  background: rgba(19, 193, 172, 0.2);
  color: #13c1ac;
}

.platform-badge-header.wallapop {
  background: rgba(19, 193, 172, 0.2);
  color: #13c1ac;
}

.platform-badge-header .platform-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.platform-badge-header.milanuncios .platform-icon {
  background: #13c1ac;
}

.platform-badge-header.wallapop .platform-icon {
  background: #13c1ac;
}

.platform-badge-header.facebook .platform-icon {
  background: #1877f2;
}

.platform-badge-header.vinted .platform-icon {
  background: #09b1ba;
}

/* Comparison table */
.comparison-table {
  overflow-x: auto;
  margin: 24px 0;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-table th {
  background: rgba(79, 70, 229, 0.2);
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: white;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Status indicators para estadísticas */
.status-indicators {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.green { background: #22c55e; }
.status-dot.orange { background: #f59e0b; }
.status-dot.blue { background: #3b82f6; }
.status-dot.green-check { background: #22c55e; position: relative; }
.status-dot.green-check::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 10px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.status-dot.red { background: #ef4444; }

/* Responsive para guías multi-plataforma */
@media (max-width: 1024px) {
  .guias-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .guias-platform-selector {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .platform-tab {
    padding: 12px 16px;
    gap: 8px;
  }
  
  .guias-grid-compact {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .platform-header {
    flex-direction: column;
    text-align: center;
  }
  
  .guias-info-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================================
   PRICING PAGE - Estilos para página de precios
   (Consolidado desde pricing.css - Convertido a tema oscuro)
   ============================================================================ */

.pricing-header {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-purple) 100%);
  color: white;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.pricing-header h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.pricing-header p {
  font-size: 1.2rem;
  opacity: 0.95;
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Free Plan Section */
.free-plan-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.free-plan-section h2 {
  color: var(--text-primary);
  margin-bottom: 20px;
}

.plan-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.plan-features li {
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.plan-features li:before {
  content: "✓ ";
  color: var(--success);
  font-weight: bold;
  margin-right: 8px;
}

.plan-active-message {
  color: var(--success);
  font-size: 1.1rem;
}

/* Credits Section */
.credits-section {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
}

.credits-section-title {
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.credits-section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

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

.credit-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.credit-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2);
}

.credit-amount {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-light);
  margin-bottom: 8px;
}

.credit-count {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.credit-price {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cta-section {
  text-align: center;
  margin-top: 40px;
}

.cta-text {
  color: var(--text-secondary);
}

/* Info Box pricing */
.info-box {
  background: rgba(79, 70, 229, 0.1);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: var(--radius-md);
  margin: 30px 0;
}

.info-box h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.info-box p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Botón primario pricing */
.btn-pricing-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-purple) 100%);
  color: white ;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform var(--transition-fast);
}

.btn-pricing-primary:hover {
  transform: translateY(-2px);
  color: white ;
  text-decoration: none;
}

.link-pricing {
  color: var(--primary-light);
  text-decoration: none;
}

.link-pricing:hover {
  text-decoration: underline;
}

/* Pricing platforms header */
.pricing-platforms {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pricing-platforms .platform-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: transparent;
  background-size: cover;
  background-position: center;
  text-indent: -9999px;
  overflow: hidden;
}

.pricing-platforms .platform-icon.wallapop { background-image: url('/assets/img/platforms/wallapop.png'); }
.pricing-platforms .platform-icon.milanuncios { background-image: url('/assets/img/platforms/milanuncios.png'); }
.pricing-platforms .platform-icon.facebook { background-image: url('/assets/img/platforms/facebook.png'); }
.pricing-platforms .platform-icon.vinted { background-image: url('/assets/img/platforms/vinted.png'); }

/* Platform pricing section */
.platform-pricing-section {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
}

.platform-pricing-section h2 {
  text-align: center;
  margin-bottom: 8px;
}

.platform-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.platform-pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.platform-pricing-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2);
}

.platform-pricing-header {
  padding: 20px;
  text-align: center;
  color: white;
}

.platform-pricing-header.wallapop { background: linear-gradient(135deg, #13c1ac, #0d9488); }
.platform-pricing-header.milanuncios { background: linear-gradient(135deg, #13c1ac, #0d9488); }
.platform-pricing-header.facebook { background: linear-gradient(135deg, #1877f2, #0d5dc9); }
.platform-pricing-header.vinted { background: linear-gradient(135deg, #09b1ba, #078a91); }

.platform-pricing-header .platform-icon-large {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 12px;
  background-size: cover;
  background-position: center;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
}

.platform-pricing-header.wallapop .platform-icon-large {
  background-image: url('/assets/img/platforms/wallapop.png');
}

.platform-pricing-header.milanuncios .platform-icon-large {
  background-image: url('/assets/img/platforms/milanuncios.png');
}

.platform-pricing-header.facebook .platform-icon-large {
  background-image: url('/assets/img/platforms/facebook.png');
}

.platform-pricing-header.vinted .platform-icon-large {
  background-image: url('/assets/img/platforms/vinted.png');
}

.platform-pricing-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.platform-pricing-body {
  padding: 20px;
  text-align: center;
}

.platform-pricing-cost {
  margin-bottom: 8px;
}

.platform-pricing-cost .cost-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.platform-pricing-cost .cost-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.platform-pricing-equiv {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.platform-pricing-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Pricing responsive */
@media (max-width: 992px) {
  .platform-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing-header {
    padding: 40px 16px 30px;
  }
  
  .pricing-header h1 {
    font-size: 2rem;
  }
  
  .free-plan-section,
  .credits-section,
  .platform-pricing-section {
    padding: 24px;
  }
  
  .credits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .platform-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================================================
   MONITORING SYSTEM - Sistema de monitoreo admin
   (Consolidado desde monitoring.css)
   ============================================================================ */

.monitoring-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: var(--spacing-lg);
}

.monitoring-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-light);
  font-size: var(--text-lg);
  font-weight: 600;
}

.monitoring-refresh-info {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 400;
}

.monitoring-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.metric-box {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-left: 3px solid;
  transition: all var(--transition-base);
}

.metric-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-box-db {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: var(--info);
}

.metric-box-backups {
  background: rgba(139, 92, 246, 0.1);
  border-left-color: var(--violet);
}

.metric-box-cpu {
  background: rgba(34, 197, 94, 0.1);
  border-left-color: var(--success);
}

.metric-box-ram {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: var(--warning);
}

.metric-box-disk {
  border-left: 3px solid var(--violet);
}

.metric-box-net {
  border-left: 3px solid var(--info);
}

.metric-box-system {
  border-left: 3px solid var(--text-muted);
}

.metric-box-wide {
  grid-column: 1 / -1;
}

.metric-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.metric-label-right {
  float: right;
  font-size: 12px;
  color: var(--text-secondary);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  transition: color var(--transition-base);
}

.metric-box-db .metric-value { color: var(--info-light); }
.metric-box-backups .metric-value { color: var(--violet-light); }
.metric-box-cpu .metric-value { color: var(--success-light); }
.metric-box-ram .metric-value { color: var(--warning-light); }

.metric-info {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.metric-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
  margin-top: 4px;
}

.metric-main-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.metric-progress-wide {
  flex: 1;
}

.metric-details {
  display: flex;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-sm);
  font-size: 12px;
  color: var(--text-secondary);
}

.metric-details-small {
  display: flex;
  gap: var(--spacing-md);
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.metric-info-small {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Progress bars */
.metric-progress {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.metric-progress-bar {
  height: 100%;
  transition: width var(--transition-slow), background var(--transition-base);
  border-radius: var(--radius-sm);
}

.metric-progress-bar-normal {
  background: linear-gradient(90deg, var(--info), #2563eb);
}

.metric-progress-bar-warning {
  background: linear-gradient(90deg, var(--warning), #d97706);
}

.metric-progress-bar-danger {
  background: linear-gradient(90deg, var(--danger), #dc2626);
}

/* Stats grid */
.monitoring-section {
  margin: var(--spacing-md) 0;
}

.monitoring-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--divider);
}

.monitoring-stat {
  text-align: center;
}

.monitoring-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.monitoring-stat-value {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

/* Status colors */
.status-healthy { color: var(--success); }
.status-degraded { color: var(--warning); }
.status-critical { color: var(--danger); }

/* CPU Cores Grid */
.cpu-cores-container {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-color);
}

.cpu-cores-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.cpu-cores-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.cpu-core {
  width: 28px;
  height: 36px;
  background: var(--bg-darker);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  font-size: 9px;
}

.cpu-core .core-num {
  position: absolute;
  top: 2px;
  color: var(--text-muted);
  font-size: 8px;
}

.cpu-core .core-bar {
  width: 100%;
  background: var(--success);
  transition: height 0.3s ease;
}

.cpu-core .core-pct {
  position: absolute;
  bottom: 2px;
  color: white;
  font-weight: bold;
  text-shadow: 0 0 2px rgba(0,0,0,0.8);
}

.cpu-core.core-normal .core-bar { background: var(--success); }
.cpu-core.core-warning .core-bar { background: var(--warning); }
.cpu-core.core-danger .core-bar { background: var(--danger); }

/* Net stats */
.metric-net-stats {
  display: flex;
  gap: var(--spacing-lg);
  font-size: 18px;
  font-weight: bold;
  margin: var(--spacing-sm) 0;
}

.net-stat {
  color: var(--text-primary);
}

/* System stats */
.metric-system-stats {
  margin-top: var(--spacing-sm);
}

.system-stat {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.system-stat:last-child {
  border-bottom: none;
}

.system-label {
  color: var(--text-secondary);
  font-size: 12px;
}

.system-stat span:last-child {
  font-weight: bold;
  color: var(--text-primary);
}

/* Monitoring animations */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.monitoring-loading {
  animation: pulse-soft 2s ease-in-out infinite;
}

.monitoring-loading-value {
  color: var(--text-muted);
  font-style: italic;
}

/* Monitoring responsive */
@media (max-width: 1024px) {
  .monitoring-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .monitoring-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .monitoring-card {
    padding: var(--spacing-md);
  }
  
  .monitoring-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .monitoring-refresh-info {
    align-self: flex-end;
  }
  
  .monitoring-metrics-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .metric-value {
    font-size: 1.25rem;
  }
  
  .monitoring-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .monitoring-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .metric-box {
    padding: var(--spacing-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .metric-box,
  .metric-progress-bar,
  .monitoring-loading {
    animation: none ;
    transition: none ;
  }
}

/* ============================================================================
   BANNER PROMOCIONAL - BLOGS Y GUÍAS (50€ GRATIS)
   ============================================================================ */
.blog-promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-purple, #764ba2) 100%);
  border-radius: 16px;
  padding: 20px 28px;
  margin: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.blog-promo-offer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.blog-promo-emoji {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.blog-promo-text h3 {
  font-size: 1.25rem;
  margin: 0 0 4px;
  color: white;
}

.blog-promo-highlight {
  color: #ffd700;
  font-weight: 900;
}

.blog-promo-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.blog-promo-cta {
  background: white;
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.blog-promo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .blog-promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  
  .blog-promo-offer {
    flex-direction: column;
    gap: 12px;
  }
  
  .blog-promo-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================================
   BANNER PROMOCIONAL COMPACTO - HOME (50€ GRATIS)
   ============================================================================ */
.promo-banner-compact {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(102, 126, 234, 0.5);
  border-radius: 20px;
  padding: 28px 32px;
  margin: 0 auto 48px;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.promo-value-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-purple, #764ba2) 100%);
  border-radius: 16px;
  padding: 20px 28px;
  text-align: center;
  flex-shrink: 0;
}

.promo-amount {
  font-size: 3rem;
  font-weight: 900;
  color: #ffd700;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.promo-label {
  font-size: 1rem;
  color: white;
  font-weight: 700;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.promo-info {
  flex: 1;
}

.promo-badge-new {
  display: inline-block;
  background: linear-gradient(90deg, var(--success), #059669);
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.promo-info h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: white;
}

.promo-info p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.5;
}

.promo-equivalence {
  font-size: 0.9rem ;
  color: rgba(255, 255, 255, 0.7) ;
}

.promo-equivalence strong {
  color: #ffd700;
}

.promo-cta-btn {
  background: linear-gradient(135deg, var(--primary), var(--gradient-purple, #764ba2));
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.promo-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.promo-cta-btn .google-icon {
  flex-shrink: 0;
}

/* Responsive banner compacto */
@media (max-width: 768px) {
  .promo-banner-compact {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }
  
  .promo-value-box {
    padding: 16px 32px;
  }
  
  .promo-amount {
    font-size: 2.5rem;
  }
  
  .promo-info h2 {
    font-size: 1.25rem;
  }
  
  .promo-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   MANUAL DE USO - REDISEÑO
   ============================================ */

.manual-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

/* Header centrado con gradiente */
.manual-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 48px 24px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.manual-header h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 700;
}

.manual-header p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto;
}

/* Navegación como pills centradas */
.manual-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 56px;
}

.manual-nav a {
  padding: 10px 20px;
  background: var(--bg-card);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.manual-nav a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Secciones con card contenedora */
.manual-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.manual-section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.manual-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.manual-section > p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid de pasos (2 columnas en desktop) */
.manual-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.manual-step-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  transition: all var(--transition-fast);
}

.manual-step-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(79, 70, 229, 0.3);
  transform: translateY(-2px);
}

.manual-step-card .step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 8px;
}

.manual-step-card .step-content {
  text-align: center;
}

.manual-step-card .step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 600;
}

.manual-step-card .step-content p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.manual-step-card .step-content code {
  background: rgba(79, 70, 229, 0.2);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.85em;
  color: var(--primary);
}

.manual-step-card .btn {
  margin-top: 12px;
}

/* Tips destacados */
.manual-tip {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  margin: 28px 0;
}

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

.manual-tip p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Imágenes con sombra y borde */
.manual-image {
  margin: 32px 0;
  text-align: center;
}

.manual-image img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-base);
}

.manual-image img:hover {
  transform: scale(1.02);
}

.manual-caption {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Grid de imágenes */
.manual-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

/* Features en grid */
.manual-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.feature-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-fast);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(79, 70, 229, 0.2);
}

.feature-item .feature-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.feature-item strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
  font-size: 1rem;
}

.feature-item p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* CTA Final */
.manual-cta {
  text-align: center;
  padding: 56px 40px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(16, 185, 129, 0.15) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(79, 70, 229, 0.3);
  margin-top: 48px;
}

.manual-cta h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 700;
}

.manual-cta > p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

.manual-cta-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ============================================
   RESPONSIVE - Manual
   ============================================ */
@media (max-width: 768px) {
  .manual-page {
    padding: 32px 16px 60px;
  }
  
  .manual-header {
    padding: 32px 20px;
  }
  
  .manual-header h1 {
    font-size: 1.75rem;
  }
  
  .manual-header p {
    font-size: 1rem;
  }
  
  .manual-nav a {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  
  .manual-section {
    padding: 24px 20px;
  }
  
  .manual-section h2 {
    font-size: 1.25rem;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .manual-steps {
    grid-template-columns: 1fr;
  }
  
  .manual-features {
    grid-template-columns: 1fr;
  }
  
  .manual-image-grid {
    grid-template-columns: 1fr;
  }
  
  .manual-cta {
    padding: 36px 24px;
  }
  
  .manual-cta h3 {
    font-size: 1.5rem;
  }
  
  .manual-cta > p {
    font-size: 1rem;
  }
}


/* ================================
   VIDEO TUTORIALES (Manual & Download)
   v2.0 - Rediseñado según patrón guias.php
   ================================ */

/* CTA Video en Download */
.installation-video-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, var(--brand-primary-alpha) 0%, var(--bg-elevated) 100%);
  border-radius: var(--radius-lg);
  border: var(--border-thin) solid var(--brand-primary);
}

.cta-icon {
  font-size: 3rem;
  color: var(--brand-primary);
  min-width: 60px;
  text-align: center;
}

.cta-content {
  flex: 1;
}

.cta-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.cta-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.installation-video-cta .btn {
  white-space: nowrap;
}

/* Galería de Videos - Sección principal */
.manual-videos-section {
  margin: 3rem 0;
}

.manual-videos-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.manual-videos-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.manual-videos-section .section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

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

/* Video Card Principal (el activo) */
.video-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-thin) solid var(--border-primary);
  padding: 1.5rem;
}

.video-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.video-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.video-icon-blue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.video-title-area {
  flex: 1;
}

.video-title-area h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.video-duration {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.video-tag {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.tag-essential {
  background: var(--success-alpha);
  color: var(--success);
}

.video-embed {
  margin-bottom: 1rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Sección "Próximamente" */
.upcoming-videos {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: var(--border-thin) solid var(--border-primary);
}

.upcoming-title {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upcoming-title i {
  color: var(--brand-primary);
}

.upcoming-subtitle {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.upcoming-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: var(--border-thin) solid var(--border-secondary);
  transition: all 0.3s ease;
}

.upcoming-item:hover {
  border-color: var(--brand-primary);
  transform: translateX(4px);
}

.upcoming-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: white;
}

.upcoming-icon-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.upcoming-icon-green {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.upcoming-icon-orange {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.upcoming-icon-pink {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.upcoming-icon-cyan {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.upcoming-content {
  flex: 1;
}

.upcoming-content h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.upcoming-content p {
  margin: 0 0 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

.upcoming-duration {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  display: inline-block;
}

.section-divider {
  margin: 4rem 0;
  border: none;
  border-top: var(--border-thin) solid var(--border-primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .installation-video-cta {
    flex-direction: column;
    text-align: center;
  }
  
  .installation-video-cta .btn {
    width: 100%;
  }

  .manual-videos-section h2 {
    font-size: 1.5rem;
  }
  
  .video-header {
    flex-direction: column;
    text-align: center;
  }
  
  .upcoming-item {
    flex-direction: column;
    text-align: center;
  }
  
  .upcoming-icon {
    margin: 0 auto;
  }
}
