/* =============================
   MEXTEL EML — FRONTEND STYLE v3.1
   ============================= */

/* -------- Variables Globales -------- */
:root {
  --primary: #2d4464;
  --secondary: #243852;
  --accent: #f1c40f;
  --light-bg: #f7f9fc;
  --border: rgba(0, 0, 0, 0.08);
  --text-dark: #1e2a3b;
  --text-light: #fff;
}
/* ============================================
   PANEL SUPERIOR FIJO ULTRA-PREMIUM - AGENCIAS
   ============================================ */

.panel-agencia {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px 25px 20px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  position: sticky;
  top: 75px;
  z-index: 50;
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 25px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.35s ease;
}

.panel-agencia.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding-bottom: 12px;
}

.panel-header h5 {
  margin: 0;
  font-weight: 700;
  color: var(--primary);
}

.panel-body {
  padding-top: 5px;
}

/* Suavidad inputs */
.panel-agencia .form-control,
.panel-agencia .form-select {
  border-radius: 8px;
}

/* Animación elegante */
@keyframes slidePanel {
  from { opacity: 0; transform: translateY(-25px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-agencia:not(.hide) {
  animation: slidePanel 0.35s ease;
}
/* ANCHOS PREMIUM */
.col-id { width: 60px; text-align: center; }
.col-nombre { width: 200px; }
.col-grupo { width: 120px; }
.col-telefono { width: 120px; }
.col-ejecutivo { width: 160px; }
.col-estatus { width: 120px; }
.col-num { width: 100px; text-align: center; }
.col-activo { width: 120px; text-align: center; }
.col-acciones { width: 160px; }

/* FILAS COLOREADAS */
.fila-activo {
  background-color: #f6fff6; /* Verde suave */
}

.fila-inactivo {
  background-color: #fff6f6; /* Rojo suave */
  opacity: 0.9;
}

/* ESTILO DE THs ORDENABLES */
.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable:hover {
  background-color: #e9eef5;
}

/* Indicadores de orden (se agregan dinámicamente) */
.sort-asc::after {
  content: " ▲";
  font-size: 0.75em;
}

.sort-desc::after {
  content: " ▼";
  font-size: 0.75em;
}
/* ANCHOS */
.col-id { width: 60px; text-align: center; }
.col-codigo { width: 100px; }
.col-nombre { width: 180px; }
.col-ubicacion { width: 170px; }
.col-estado { width: 140px; }
.col-tipo { width: 150px; }
.col-horario { width: 200px; }
.col-activo { width: 100px; text-align: center; }
.col-acciones { width: 160px; }

/* FILAS ACTIVAS / INACTIVAS */
.fila-activo {
  background-color: #f6fff6;
}

.fila-inactivo {
  background-color: #fff6f6;
  opacity: 0.95;
}

/* ORDENAMIENTO */
.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable:hover {
  background-color: #e9eef5;
}

.sort-asc::after {
  content: " ▲";
  font-size: 0.75em;
}

.sort-desc::after {
  content: " ▼";
  font-size: 0.75em;
}
/* Ejecutivos - columnas específicas */
.col-telefono { width: 130px; }
.col-agencia  { width: 200px; }
/* FORMULARIO PREMIUM EN 2 COLUMNAS */
.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-item.form-full {
    grid-column: 1 / span 2;
}

/* ESTILO TAG ACTIVO/INACTIVO */
.tag-activo {
    color: #fff;
    background: #28a745;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
}

.tag-inactivo {
    color: #fff;
    background: #dc3545;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
}
.badge-status {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    display: inline-block;
    height: auto;
    line-height: 1.2rem;
}
/* ===============================
   DASHBOARD ULTRA-PREMIUM STYLE
   =============================== */

/* Tarjetas KPI */
.kpi-card {
    border: none !important;
    border-radius: 14px;
    padding: 22px 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Ícono KPI */
.kpi-icon {
    font-size: 26px;
    opacity: 0.8;
}

/* KPI número */
.kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 8px;
}

/* Subtítulo KPI */
.kpi-subtext {
    font-size: 0.8rem;
    color: #777;
    margin-top: -4px;
}

/* Tabla dashboard */
.dashboard-table tr td {
    padding: 8px 10px !important;
}

.dashboard-badge {
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-estado-facturado {
    background: #d1f7d0;
    color: #1f8b24;
}

.badge-estado-pendiente {
    background: #ffe9c7;
    color: #bf7700;
}

.badge-estado-mora {
    background: #ffd1d1;
    color: #b00000;
}

.badge-estado-pagado {
    background: #cfe5ff;
    color: #004a99;
}

/* Tarjetas paneles */
.panel-card {
    border-radius: 14px !important;
    overflow: hidden;
}

/* header oscuro elegante */
.panel-header {
    background: #24325E;
    color: white;
    padding: 10px 15px;
    font-weight: 600;
}


/* ================================
   MENÚ SUPERIOR — SEPARADORES ENTERPRISE
   ================================ */

.main-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Grupo lógico */
.menu-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Título del grupo */
.menu-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 6px;
  text-transform: uppercase;
}

/* Separador visual */
.menu-separator {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 6px;
}

/* Links del menú */
.main-menu a {
  color: #dbe7ff;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
}

.main-menu a:hover,
.main-menu a.active {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}










/* -------- Reset -------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* -------- Header -------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: var(--text-light);
  padding: 12px 24px;
  flex-wrap: wrap;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header .brand img {
  height: 40px;
}

.header .brand .title {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent);
}

.header nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.header nav a {
  color: #dbe7ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-in;
}

.header nav a:hover,
.header nav a.active {
  color: var(--accent);
}

.header .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* -------- Botones -------- */
.btn {
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background: var(--accent);
  color: #222;
}

.btn-success {
  background: #27ae60;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid #ccc;
  color: #333;
}

.btn-danger {
  background: #fff;
  border: 1px solid #ccc;
  color: #c0392b;
}

.btn:hover {
  opacity: 0.9;
}

/* -------- Contenedores -------- */
.container {
  max-width: 1250px;
  margin: 30px auto;
  padding: 0 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 22px 28px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.card-head h3 {
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
}

/* -------- Formulario Responsive -------- */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.form-row .col {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 14px;
  width: 100%;
}

/* -------- Tabla Responsive -------- */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  margin-top: 10px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 980px;
}

.table thead th {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  color: var(--text-light);
  padding: 14px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.table tbody td {
  padding: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
  text-overflow: ellipsis;
  overflow: hidden;
}

.table td,
.table th {
  vertical-align: middle;
}

/* -------- Botones de Acción -------- */
.table .btn {
  margin: 0;
  padding: 6px 10px;
  font-size: 14px;
}

.btn-secondary {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* -------- Footer -------- */
.footer {
  text-align: center;
  padding: 20px;
  background: var(--primary);
  color: var(--text-light);
  margin-top: 40px;
  font-size: 14px;
  line-height: 1.4;
}

/* -------- Estados -------- */
.highlight-edit {
  box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.12);
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* -------- Media Queries -------- */
@media (max-width: 900px) {
  .form-row {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .table thead th,
  .table tbody td {
    font-size: 13px;
    padding: 10px;
  }
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 14px;
  }
  .card-head h3 {
    font-size: 18px;
  }
  .btn {
    font-size: 13px;
    padding: 8px 10px;
  }
}

/* -------- Orden Visual en Columnas -------- */
th.sorted-asc::after {
  content: " ▲";
  color: var(--accent);
  font-size: 12px;
}
th.sorted-desc::after {
  content: " ▼";
  color: var(--accent);
  font-size: 12px;
}

/* === Corrección tablas responsivas === */
.table-wrapper {
  overflow-x: auto;
  width: 100%;
  border-radius: 8px;
  margin-top: 15px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  min-width: 900px;
}

.table th, .table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  white-space: nowrap;
}

.table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.table tr:hover {
  background-color: rgba(0,0,0,0.05);
}

/* === Formularios de clientes === */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.form-grid input, .form-grid select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
/* =============== DARK MODE GLOBAL v3.4 =============== */
body.dark-mode {
  background-color: #0d1117;
  color: #f4f4f4;
}

body.dark-mode .card,
body.dark-mode .table,
body.dark-mode .header,
body.dark-mode .footer {
  background-color: #161b22;
  color: #fff;
}

body.dark-mode th {
  background-color: #1f2937;
  color: #facc15;
}

body.dark-mode td {
  color: #e5e7eb;
}

body.dark-mode input,
body.dark-mode select {
  background-color: #1e1e1e;
  color: #e5e7eb;
  border: 1px solid #333;
}

body.dark-mode .btn-outline {
  background: transparent;
  color: #facc15;
  border: 1px solid #facc15;
}

body.dark-mode .btn-primary {
  background-color: #facc15;
  color: #0d1117;
}

/* =============== CHATBOT ASISTENTE EML v3.8 =============== */
#chatbotPanel {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 360px;
  height: 500px;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  opacity: 0;
  transform: translateY(40px);
  animation: aparecerChatbot 0.5s ease-out forwards;
}

body.dark-mode #chatbotPanel {
  background: #1e1e2f;
  color: #eaeaea;
}

.chatbot-header {
  background: #2b3a67;
  color: #fff;
  padding: 8px 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeSlide 0.6s ease-in-out;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.chatbot-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.chatbot-footer {
  display: flex;
  padding: 8px;
  background: #f5f5f5;
  border-top: 1px solid #ccc;
}

.chatbot-footer input {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.chatbot-send {
  background: #007bff;
  color: white;
  border: none;
  margin-left: 5px;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}

.chatbot-voice {
  background: #ff9800;
  color: white;
  border: none;
  margin-left: 5px;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}

.chatbot-voice:hover { background: #e68a00; }

.msg-user, .msg-bot {
  border-radius: 10px;
  margin: 6px 0;
  padding: 6px 10px;
  animation: fadeInMsg 0.4s ease-in-out;
}

.msg-user {
  background: #007bff;
  color: #fff;
  text-align: right;
}

.msg-bot {
  background: #f1f1f1;
  color: #222;
  text-align: left;
}

body.dark-mode .msg-bot {
  background: #2e2e45;
  color: #fff;
}

.chatbot-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.chatbot-table th, .chatbot-table td {
  border-bottom: 1px solid #ccc;
  padding: 4px;
}

/* Animaciones */
@keyframes aparecerChatbot {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes desaparecerChatbot {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(40px); }
}
/* ---------- Chatbot / botón flotante (v3.9) ---------- */
.floating-chatbot-button{
  position: fixed;
  right: 22px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg,#15283b,#254a6b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(21,40,59,0.35);
  border: 2px solid rgba(255,255,255,0.06);
  cursor: pointer;
  z-index: 99999;
}
.floating-chatbot-button img{ width:28px; height:28px; display:block; }
.floating-chatbot-button:focus{ outline: 3px solid rgba(255,204,51,0.25); }

/* Asegura panel sobre todo */
#chatbotPanel{ z-index:100000; }

/* Ajustes de contraste del panel (ya incluí animaciones en versiones previas) */
#chatbotPanel .chatbot-body{ color: #222; background: rgba(255,255,255,0.98); }
body.dark-mode #chatbotPanel .chatbot-body{ background:#232438; color:#EFEFEF; }

/* Mensaje de error resaltado */
.chat-error {
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff6f6;
  color:#8b1f1f;
  border-radius:8px;
  padding:8px 12px;
  margin:6px 0;
  border:1px solid #f2c6c6;
}
body.dark-mode .chat-error{
  background:#3a2b2b;
  color:#ffd7d7;
  border:1px solid #6a3b3b;
}

/* === CHATBOT CON VOZ (FASE 2.7) === */
.floating-chatbot-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(145deg, #002b50, #013a6b);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.floating-chatbot-button:hover {
  transform: scale(1.1);
}
.floating-chatbot-button img {
  width: 40px;
  height: 40px;
}

.chatbot-panel {
  position: fixed;
  bottom: 110px;
  right: 25px;
  width: 340px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}
.chatbot-panel.active {
  display: flex;
}
.chatbot-header {
  background: #002b50;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}
.chatbot-body {
  padding: 10px;
  max-height: 320px;
  overflow-y: auto;
}
.chatbot-footer {
  display: flex;
  gap: 5px;
  padding: 8px;
  border-top: 1px solid #ddd;
}
.chatbot-footer input {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.chatbot-footer button {
  border: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 8px 12px;
}
#btnVoice {
  background: #ffb703;
}
#btnSend {
  background: #0077b6;
  color: #fff;
}
.msg {
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 8px;
  max-width: 90%;
  line-height: 1.4;
}
.msg.bot {
  background: #e3f2fd;
  align-self: flex-start;
}
.msg.user {
  background: #c8e6c9;
  align-self: flex-end;
  text-align: right;
}
/* ===========================================
   CHATBOT TELECOM EML
=========================================== */
.chatbot-eml {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chat-toggle {
  width: 55px;
  height: 55px;
  background-color: #0d6efd;
  border-radius: 50%;
  color: white;
  font-size: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.chat-box {
  width: 340px;
  height: 450px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-box.hidden { display: none; }

.chat-header {
  background: #0d6efd;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chat-body {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f5f6fa;
}

.user-message {
  background: #e0f7fa;
  margin: 5px 0;
  padding: 8px;
  border-radius: 10px;
  text-align: right;
}

.bot-message {
  background: #fff3cd;
  margin: 5px 0;
  padding: 8px;
  border-radius: 10px;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ccc;
}

.chat-input input {
  flex-grow: 1;
  border: none;
  padding: 8px;
}

.chat-input button {
  background: #0d6efd;
  color: white;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
}
.voice-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
  margin-right: 8px;
}
.voice-btn:hover {
  transform: scale(1.1);
}
.chat-input-container {
  display: flex;
  align-items: center;
  padding: 8px;
  border-top: 1px solid #ccc;
  background-color: #f8f9fa;
}

.chat-input-field {
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 10px;
  outline: none;
  font-size: 14px;
  margin-right: 6px;
}

.chat-input-field:focus {
  border-color: #0d6efd;
}

.send-btn {
  background: #0d6efd;
  border: none;
  color: white;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: 0.2s;
}

.send-btn:hover {
  background: #0b5ed7;
}


/* EML - Colores institucionales usados por el chatbot */
:root{
  --eml-blue: #24325E;
  --eml-yellow: #FFCC00;
  --eml-dark: #0C2E50;
  --eml-light: #F6F8FA;
}

/* Ajustes visuales adicionales (si ya tienes estilos para botones, revisa que no colisionen) */
.eml-brand-btn { background: var(--eml-yellow); color: var(--eml-dark); border-radius: 8px; padding: 8px 12px; font-weight:700; }


/* === MÓDULO CONOCIMIENTO === */
#conocimientoForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

#cRespuesta {
  grid-column: 1 / span 2;
  resize: vertical;
  font-family: "Segoe UI", sans-serif;
}

/* Tabla */
.table-wrapper {
  overflow-x: auto;
}

.table td, .table th {
  vertical-align: top;
}

.table td {
  max-width: 350px;
  white-space: pre-line;
}
/* === ALERTAS Y MODALES EML === */
.alert {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #123A61;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 10000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  animation: fadeInOut 3s ease forwards;
}
.alert-success { background: #28a745; }
.alert-error { background: #c0392b; }
.alert-info { background: #007bff; }

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(15px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(15px); }
}

.modal-confirm {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}
.modal-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0,0,0,0.25);
  max-width: 420px;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
}
.modal-box h3 {
  margin-top: 0;
  color: #123A61;
}
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}


/* MODAL DE CONFIRMACIÓN */
.modal-confirm {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}
.modal-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0,0,0,0.25);
  max-width: 400px;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
}
.modal-box h3 {
  margin-top: 0;
  color: #123A61;
}
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}
body.dark {
  background-color: #1d1f21;
  color: #f1f1f1;
}
.dark .eml-table {
  background-color: #2a2c2e;
  color: #f1f1f1;
}
.dark input, .dark select {
  background-color: #333;
  color: #fff;
}
:root {
  --eml-primary: #23445A;
  --eml-accent: #F2C500;
  --eml-dark-bg: #1E1E1E;
}
