/* 
   GUERRERO MEDIOS - SISTEMA DE DISEÑO & ESTILOS PREMIUM
   Paleta: Violeta Místico, Oro Cobre, Acapulco Teal, Slate Oscuro
   Tipografía: Outfit & Inter (Google Fonts)
*/

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

:root {
  /* Color Tokens */
  --bg-main: #07050f;
  --bg-deep: #030206;
  --bg-card: rgba(18, 14, 33, 0.6);
  --bg-card-hover: rgba(26, 21, 48, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(139, 92, 246, 0.4);
  
  --primary: #8b5cf6;          /* Violeta Místico */
  --primary-glow: rgba(139, 92, 246, 0.3);
  --primary-dark: #6d28d9;
  
  --accent: #d4af37;           /* Oro Cobre */
  --accent-glow: rgba(212, 175, 55, 0.3);
  --accent-dark: #b59023;
  
  --teal: #00b894;             /* Acapulco Teal */
  --teal-glow: rgba(0, 184, 148, 0.25);
  
  --warning: #ef4444;          /* Rojo Denuncia */
  --warning-glow: rgba(239, 68, 68, 0.2);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 184, 148, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Layout Grid */
.app-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Side Navigation */
.sidebar {
  background: rgba(4, 3, 8, 0.85);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--primary-glow);
  font-family: var(--font-title);
  font-weight: 800;
  color: #fff;
  font-size: 20px;
}

.brand-info h1 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-info p {
  font-size: 11px;
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-item i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  border-left: 3px solid var(--primary);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.event-countdown {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.countdown-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.countdown-clock {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Main Content Area */
.main-content {
  padding: 32px 40px;
  overflow-y: auto;
  height: 100vh;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.page-title h2 {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-title p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.meta-status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.system-time {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tab Panels */
.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

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

/* Dashboard Cards Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-purple:hover { border-color: var(--primary-glow); }
.card-purple::before { background: var(--primary); }

.card-gold:hover { border-color: var(--accent-glow); }
.card-gold::before { background: var(--accent); }

.card-teal:hover { border-color: var(--teal-glow); }
.card-teal::before { background: var(--teal); }

.card-red:hover { border-color: var(--warning-glow); }
.card-red::before { background: var(--warning); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--primary); }
.icon-gold { background: rgba(212, 175, 55, 0.15); color: var(--accent); }
.icon-teal { background: rgba(0, 184, 148, 0.15); color: var(--teal); }
.icon-red { background: rgba(239, 68, 68, 0.15); color: var(--warning); }

.card-value {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.card-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Detail Section Grid */
.section-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.section-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.section-header h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* Category Progress Bars */
.progress-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.progress-name {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-count {
  color: var(--text-muted);
}

.progress-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.fill-a { background: linear-gradient(to right, var(--primary), #a855f7); }
.fill-b { background: linear-gradient(to right, var(--accent), #f59e0b); }
.fill-c { background: linear-gradient(to right, var(--teal), #10b981); }
.fill-d { background: linear-gradient(to right, #3b82f6, #60a5fa); }
.fill-e { background: linear-gradient(to right, #ec4899, #f472b6); }
.fill-f { background: linear-gradient(to right, #f97316, #fb923c); }

/* Table Component */
.directory-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

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

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 16px 12px 44px;
  border-radius: 10px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  outline: none;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filters-box {
  display: flex;
  gap: 12px;
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  height: 45px;
  outline: none;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal) 0%, #00a884 100%);
  color: #fff;
  box-shadow: 0 4px 15px var(--teal-glow);
}
.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.media-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.media-table th {
  background: rgba(10, 8, 20, 0.8);
  padding: 16px;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.media-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.media-table tbody tr {
  transition: var(--transition-fast);
}

.media-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.media-info-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.media-name {
  font-weight: 600;
  font-family: var(--font-title);
  font-size: 14px;
}

.media-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Status Badges */
.badge-pending { background: rgba(148, 163, 184, 0.12); color: var(--text-muted); border: 1px solid rgba(148, 163, 184, 0.2); }
.badge-contacted { background: rgba(139, 92, 246, 0.12); color: var(--primary); border: 1px solid rgba(139, 92, 246, 0.2); }
.badge-confirmed { background: rgba(59, 130, 246, 0.12); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-published { background: rgba(0, 184, 148, 0.12); color: var(--teal); border: 1px solid rgba(0, 184, 148, 0.2); }

/* Category Badges */
.cat-badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  display: inline-block;
}
.cat-badge-a { background: rgba(139, 92, 246, 0.15); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.3); }
.cat-badge-b { background: rgba(212, 175, 55, 0.15); color: #fbbf24; border: 1px solid rgba(212, 175, 55, 0.3); }
.cat-badge-c { background: rgba(0, 184, 148, 0.15); color: #34d399; border: 1px solid rgba(0, 184, 148, 0.3); }
.cat-badge-d { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.cat-badge-e { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.cat-badge-f { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }

/* Table action buttons */
.table-actions {
  display: flex;
  gap: 6px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
}

.btn-icon.btn-icon-teal:hover {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 10px var(--teal-glow);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  gap: 8px;
}

.pagination-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

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

/* WhatsApp Sender Console Grid */
.whatsapp-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
}

.console-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.active-contact-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(3, 2, 6, 0.8) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.contact-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  color: #fff;
  font-size: 24px;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.contact-details {
  text-align: center;
}

.contact-details h4 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-details p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-meta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  text-align: left;
  font-size: 13px;
}

.meta-field {
  display: flex;
  justify-content: space-between;
}

.meta-label {
  color: var(--text-muted);
}

.meta-value {
  font-weight: 500;
}

.region-selector-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.region-selector-wrapper label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}

/* Chat Simulator Mockup */
.chat-window {
  background: #0b141a;
  border-radius: 16px;
  border: 1px solid #222d34;
  height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background: #202c33;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-avatar-mini {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}

.chat-header-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.chat-header-info p {
  font-size: 11px;
  color: #00a884; /* WhatsApp online color */
}

.chat-body {
  flex-grow: 1;
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
  background-color: #0b141a;
  background-blend-mode: overlay;
  opacity: 0.85;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  word-wrap: break-word;
}

.message-incoming {
  background: #202c33;
  color: var(--text-main);
  align-self: flex-start;
  border-top-left-radius: 0;
}

.message-outgoing {
  background: #005c4b; /* WhatsApp Dark Green bubble */
  color: #e9edef;
  align-self: flex-end;
  border-top-right-radius: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.message-timestamp {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  margin-top: 6px;
  display: block;
}

.copy-bold {
  font-weight: 700;
  color: #fff;
}

.copy-italic {
  font-style: italic;
  color: #d1d5db;
}

.chat-media-attachment {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.chat-media-info {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-footer {
  background: #202c33;
  padding: 12px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input-simulator {
  flex-grow: 1;
  background: #2a3942;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 13px;
  resize: none;
  height: 48px;
  outline: none;
  line-height: 1.4;
  transition: var(--transition);
}

.chat-input-simulator:focus {
  background: #32444f;
}

/* Press Kit Hub Layout */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.asset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  border-color: rgba(139, 92, 246, 0.3);
}

.asset-preview-container {
  height: 220px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.asset-details-container {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
}

.asset-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  flex-grow: 1;
}

.asset-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

/* Simulated Story Overlay */
.phone-mockup-9-16 {
  width: 250px;
  height: 444px;
  border-radius: 24px;
  border: 8px solid #1e293b;
  position: relative;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.story-svg-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.story-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 16px;
}

.story-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}

.story-user-info h5 {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.story-user-info p {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.7);
}

/* Instagram Poll widget */
.poll-widget {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 12px;
  width: 90%;
  margin: 0 auto;
  color: #000;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  text-align: center;
}

.poll-question {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #000;
}

.poll-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.poll-option-btn {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.poll-option-btn:hover {
  background: #f1f5f9;
}

.poll-pct {
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
  display: none;
}

.poll-fill-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(139, 92, 246, 0.15);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.poll-option-text {
  position: relative;
  z-index: 1;
}

.voted .poll-pct {
  display: block;
}

.voted .poll-option-btn {
  pointer-events: none;
}

.story-footer-text {
  font-size: 9px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* Carousel Simulator */
.carousel-simulator-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
  margin: 0 auto;
}

.carousel-slide-container {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  background-color: #0a0814;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(0.95);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  z-index: 1;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
  pointer-events: auto;
}

.slide-1 { background: linear-gradient(135deg, #2e0854 0%, #0c021f 100%); }
.slide-2 { background: linear-gradient(135deg, #1e3a8a 0%, #030712 100%); }
.slide-3 { background: linear-gradient(135deg, #065f46 0%, #022c22 100%); }
.slide-4 { background: linear-gradient(135deg, #78350f 0%, #451a03 100%); }
.slide-5 { background: linear-gradient(135deg, #4c1d95 0%, #0f172a 100%); }

.slide-number {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slide-title-large {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 12px;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-caption {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 16px;
}

.slide-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slide-logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.5px;
}

.slide-logo-text span {
  color: var(--accent);
}

.slide-badge {
  font-size: 10px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

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

.carousel-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.carousel-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.carousel-indicators {
  display: flex;
  gap: 6px;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-indicator.active {
  background: var(--primary);
  width: 20px;
  border-radius: 4px;
}

/* Reel Simulator mockup */
.reel-simulator-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 24px;
}

.reel-phone-mockup {
  width: 250px;
  height: 444px;
  border-radius: 24px;
  border: 8px solid #1e293b;
  position: relative;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.reel-bg-video-mock {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1e1b4b 0%, #03000a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.reel-waves-svg {
  position: absolute;
  width: 100%;
  bottom: 0;
  height: 150px;
  opacity: 0.3;
  z-index: 1;
}

.reel-overlay-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 16px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.reel-progress-line-container {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-top: 4px;
}

.reel-progress-segment {
  height: 3px;
  flex-grow: 1;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.reel-progress-fill {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width 0.1s linear;
}

.reel-text-container {
  margin-top: auto;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reel-caption-card {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}

.reel-timestamp-tag {
  font-size: 8px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.reel-live-caption {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.reel-user-tag {
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reel-music-tag {
  font-size: 8px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.reel-side-actions {
  position: absolute;
  right: 12px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  z-index: 3;
}

.reel-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: #fff;
}

.reel-action-btn i {
  font-size: 18px;
}

.reel-timeline-card {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-step {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition-fast);
  cursor: pointer;
}

.timeline-step:hover {
  background: rgba(255, 255, 255, 0.03);
}

.timeline-step.active {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

.timeline-time-badge {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
  width: 50px;
  display: flex;
  align-items: center;
}

.timeline-desc {
  flex-grow: 1;
}

.timeline-desc h5 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-desc p {
  font-size: 11px;
  color: var(--text-muted);
}

.reel-timeline-controls {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* Bulletins Box */
.bulletin-viewer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.bulletin-text-area {
  width: 100%;
  height: 380px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  padding: 20px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  resize: none;
  outline: none;
  margin-bottom: 16px;
}

.bulletin-text-area:focus {
  border-color: var(--primary);
}

/* Priority Checklist */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: var(--transition-fast);
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255,255,255,0.15);
}

.checklist-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.checkbox-custom:hover {
  border-color: var(--primary);
}

.checkbox-custom i {
  font-size: 12px;
  color: #fff;
  opacity: 0;
  transition: var(--transition-fast);
}

.checklist-item.completed .checkbox-custom {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 8px var(--teal-glow);
}

.checklist-item.completed .checkbox-custom i {
  opacity: 1;
}

.checklist-item.completed .checklist-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.checklist-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
}

.checklist-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.checklist-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.priority-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  background: #0f0c1b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  padding: 32px;
  transform: translateY(20px);
  transition: var(--transition);
}

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

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

.modal-header h3 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: #fff;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.form-input, .form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Animations */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 5px rgba(0, 184, 148, 0.4); }
  50% { box-shadow: 0 0 15px rgba(0, 184, 148, 0.8); }
  100% { box-shadow: 0 0 5px rgba(0, 184, 148, 0.4); }
}

.pulse-glow-green {
  animation: pulseGlow 2s infinite;
}

/* Notification banner */
.notification-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 12, 27, 0.95);
  border: 1px solid var(--teal);
  border-left: 5px solid var(--teal);
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification-toast.active {
  transform: translateY(0);
  opacity: 1;
}

.notification-toast i {
  color: var(--teal);
  font-size: 20px;
}

.notification-toast h5 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.notification-toast p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Icons via fontawesome fallback helper class */
.icon-fallback {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* Responsive Overrides & Mobile Layout Architecture */
.mobile-header-bar {
  display: none; /* Oculto en escritorio */
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 2, 6, 0.7);
  backdrop-filter: blur(6px);
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Clases para estructuración responsiva del WhatsApp Splitter */
.wa-console-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  height: 520px;
}
.wa-editor-panel {
  padding: 20px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wa-preview-panel {
  padding: 20px;
  overflow-y: auto;
}

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-grid-2 {
    grid-template-columns: 1fr;
  }
  .whatsapp-grid {
    grid-template-columns: 1fr;
  }
  .asset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .app-container {
    grid-template-columns: 1fr;
  }
  
  /* Conversión del Sidebar en Cajón Deslizable (Slide Drawer) */
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px; /* Oculto a la izquierda */
    width: 280px;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 15px 0 45px rgba(0, 0, 0, 0.85);
    display: flex !important;
    background: rgba(7, 5, 15, 0.98);
    backdrop-filter: blur(25px) saturate(180%);
  }
  
  .sidebar.mobile-active {
    transform: translateX(280px); /* Deslizar hacia adentro */
  }
  
  /* Barra Superior de Navegación Móvil */
  .mobile-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(4, 3, 8, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 950;
    width: 100%;
  }
  
  .mobile-menu-toggle {
    font-size: 20px;
    color: var(--text-main);
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
  }
  
  .mobile-menu-toggle:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary);
  }
  
  .mobile-brand-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .main-content {
    padding: 20px 16px;
    height: calc(100vh - 65px); /* Ajuste por el header bar */
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .asset-grid {
    grid-template-columns: 1fr;
  }
  
  .reel-simulator-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .directory-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .filters-box {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .filter-select {
    width: 100%;
  }
  
  /* Responsividad de la Central de Envío */
  .wa-console-split {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .wa-editor-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 12px;
  }
  
  .wa-preview-panel {
    padding: 16px 12px;
    height: 400px; /* Alto fijo de scroll para chat en móvil */
  }
  
  .chat-footer {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .chat-footer button {
    width: 100%;
  }
  
  /* Simulador Story y Carousel responsive scale */
  .carousel-simulator-wrapper {
    padding: 12px;
    max-width: 100%;
  }
  
  .carousel-slide {
    padding: 20px;
  }
  
  .slide-title-large {
    font-size: 22px;
  }
  
  .slide-caption {
    font-size: 13px;
  }
}

/* ============================================================
   PANTALLA DE LOGIN GLASSMORPHIC (OPCIÓN 3)
   ============================================================ */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0f0c1b 0%, #030206 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(20px) saturate(180%);
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

.login-overlay.active .login-card {
  transform: scale(1);
}

.login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.login-brand .brand-logo {
  margin: 0 auto 16px auto;
  width: 50px;
  height: 50px;
  font-size: 24px;
  border-radius: 12px;
}

.login-brand h2 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.login-brand p {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ============================================================
   EVOLUCIÓN PREMIUM DE DISEÑO UI/UX - ESTILOS INTRÍNSECOS
   ============================================================ */

/* 1. Paleta Cromática y Glow de Regiones de Guerrero */
:root {
  --region-acapulco: #00b894;
  --region-acapulco-rgb: 0, 184, 148;
  --region-centro: #8b5cf6;
  --region-centro-rgb: 139, 92, 246;
  --region-costachica: #d4af37;
  --region-costachica-rgb: 212, 175, 55;
  --region-costagrande: #10b981;
  --region-costagrande-rgb: 16, 185, 129;
  --region-montana: #f97316;
  --region-montana-rgb: 249, 115, 22;
  --region-tierracaliente: #ef4444;
  --region-tierracaliente-rgb: 239, 68, 68;
  --region-norte: #60a5fa;
  --region-norte-rgb: 96, 165, 250;
}

.region-card-acapulco { --r-color: var(--region-acapulco); --r-rgb: var(--region-acapulco-rgb); }
.region-card-centro { --r-color: var(--region-centro); --r-rgb: var(--region-centro-rgb); }
.region-card-costachica { --r-color: var(--region-costachica); --r-rgb: var(--region-costachica-rgb); }
.region-card-costagrande { --r-color: var(--region-costagrande); --r-rgb: var(--region-costagrande-rgb); }
.region-card-montana { --r-color: var(--region-montana); --r-rgb: var(--region-montana-rgb); }
.region-card-tierracaliente { --r-color: var(--region-tierracaliente); --r-rgb: var(--region-tierracaliente-rgb); }
.region-card-norte { --r-color: var(--region-norte); --r-rgb: var(--region-norte-rgb); }

/* Fila de tabla con glow regional sutil en hover */
.media-table tbody tr.region-row {
  border-left: 3px solid rgba(var(--r-rgb), 0.15);
}
.media-table tbody tr.region-row:hover {
  border-left-color: var(--r-color);
  background: rgba(var(--r-rgb), 0.03) !important;
}

/* 2. Anillo de Progreso SVG (Progress Ring) */
.progress-ring-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px !important;
}

.progress-ring-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle-bg {
  stroke: rgba(255, 255, 255, 0.04);
}

.progress-ring-circle {
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring-text {
  position: absolute;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* 3. Tarjeta "Pasaporte de Prensa" con Lanyard */
.active-contact-card {
  position: relative;
  padding-top: 38px !important;
}

/* Simulación de la perforación de la credencial */
.active-contact-card::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
}

/* Estilo reactivo de credencial con variables de región */
.active-contact-card.region-active {
  background: linear-gradient(135deg, rgba(var(--r-rgb), 0.12) 0%, rgba(4, 3, 8, 0.95) 100%) !important;
  border: 1px solid rgba(var(--r-rgb), 0.3) !important;
  box-shadow: 0 12px 36px rgba(var(--r-rgb), 0.12) !important;
}

.active-contact-card.region-active .contact-avatar {
  background: linear-gradient(135deg, var(--r-color) 0%, rgba(255,255,255,0.1) 100%) !important;
  box-shadow: 0 0 20px rgba(var(--r-rgb), 0.35) !important;
}

/* Barcode decorativo al fondo de la credencial */
.press-barcode {
  display: flex;
  justify-content: center;
  gap: 2.5px;
  margin-top: 20px;
  opacity: 0.3;
  transition: var(--transition);
  padding: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.01);
}

.active-contact-card:hover .press-barcode {
  opacity: 0.65;
}

.barcode-line {
  height: 20px;
  width: 2px;
  background: var(--text-main);
  border-radius: 0.5px;
}

.barcode-line.thick {
  width: 4.5px;
}

.barcode-line.thin {
  width: 1px;
}

/* 4. Cambiador de Estado Inline (Quick-Toggles en Tabla) */
.status-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.clickable-status-badge {
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.clickable-status-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.08);
}

.status-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: #0f0c1b;
  border: 1px solid var(--border-color-glow);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  z-index: 200;
  min-width: 150px;
  overflow: hidden;
  animation: dropdownAnim 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-dropdown-menu.active {
  display: block;
}

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

.status-menu-item {
  padding: 10px 14px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.status-menu-item:hover {
  background: rgba(139, 92, 246, 0.15);
  color: var(--text-main);
}

