:root {
  --primary-gradient: linear-gradient(135deg, #0d6efd, #0a58ca);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Fondo pantalla de inicio de sesión */
.body-login {
  background:
    radial-gradient(circle at 18% 18%, rgba(74,159,209,0.30) 0, transparent 42%),
    radial-gradient(circle at 82% 82%, rgba(58,124,165,0.28) 0, transparent 45%),
    linear-gradient(135deg, #081826 0%, #0d2840 40%, #123a5c 72%, #18496f 100%);
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}
/* Capa 1: rejilla tecnológica + circuito */
.body-login::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(120,190,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,190,255,0.06) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg width='320' height='320' viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%234a9fd1' stroke-opacity='0.18' stroke-width='1.4'%3E%3Cpath d='M40 40h70v70'/%3E%3Cpath d='M160 30v50h70'/%3E%3Cpath d='M40 170h50v80'/%3E%3Cpath d='M230 250v-60h-60'/%3E%3Cpath d='M290 70h-50v60'/%3E%3Cpath d='M110 110l50 50'/%3E%3Cpath d='M250 130v60'/%3E%3C/g%3E%3Cg fill='%234a9fd1' fill-opacity='0.30'%3E%3Ccircle cx='40' cy='40' r='3.5'/%3E%3Ccircle cx='110' cy='110' r='3.5'/%3E%3Ccircle cx='160' cy='30' r='3.5'/%3E%3Ccircle cx='230' cy='80' r='3.5'/%3E%3Ccircle cx='90' cy='170' r='3.5'/%3E%3Ccircle cx='90' cy='250' r='3.5'/%3E%3Ccircle cx='230' cy='250' r='3.5'/%3E%3Ccircle cx='170' cy='190' r='3.5'/%3E%3Ccircle cx='290' cy='70' r='3.5'/%3E%3Ccircle cx='250' cy='190' r='3.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 42px 42px, 42px 42px, 320px 320px;
  pointer-events: none;
  z-index: 0;
}
/* Capa 2: resplandor superior animado */
.body-login::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% -10%, rgba(74,159,209,0.28), transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: loginGlow 6s ease-in-out infinite alternate;
}
@keyframes loginGlow {
  from { opacity: 0.45; }
  to   { opacity: 1; }
}
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.body-login .container {
  position: relative;
  z-index: 1;
}
.card-login {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
}
.body-login .text-muted {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Fondo área principal (después de ingresar) — claro + textura tecnológica sutil */
.body-app {
  background:
    linear-gradient(rgba(45,90,135,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,90,135,0.05) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg width='340' height='340' viewBox='0 0 340 340' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232d5a87' stroke-opacity='0.10' stroke-width='1.4'%3E%3Cpath d='M40 40h80v80'/%3E%3Cpath d='M170 30v60h80'/%3E%3Cpath d='M40 180h60v90'/%3E%3Cpath d='M250 270v-70h-70'/%3E%3Cpath d='M310 80h-60v60'/%3E%3Cpath d='M120 120l60 60'/%3E%3Cpath d='M270 140v70'/%3E%3C/g%3E%3Cg fill='%232d5a87' fill-opacity='0.13'%3E%3Ccircle cx='40' cy='40' r='3.5'/%3E%3Ccircle cx='120' cy='120' r='3.5'/%3E%3Ccircle cx='170' cy='30' r='3.5'/%3E%3Ccircle cx='250' cy='90' r='3.5'/%3E%3Ccircle cx='100' cy='180' r='3.5'/%3E%3Ccircle cx='100' cy='270' r='3.5'/%3E%3Ccircle cx='250' cy='270' r='3.5'/%3E%3Ccircle cx='180' cy='200' r='3.5'/%3E%3Ccircle cx='310' cy='80' r='3.5'/%3E%3Ccircle cx='270' cy='210' r='3.5'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #eef3f8 0%, #dde6ef 50%, #ccd8e6 100%);
  background-size: 46px 46px, 46px 46px, 340px 340px, cover;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Números y datos técnicos en tablas: siempre negro, no rojo bootstrap */
table code,
table .text-dark,
.acta-documento table td,
.tabla-telefonia td,
.tabla-telefonia td code {
  color: #000 !important;
}

/* Saludo de bienvenida */
.welcome-banner {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
  color: #fff;
  padding: 1rem 1.5rem;
  margin: -1rem -0.75rem 1.5rem -0.75rem;
  border-radius: 0 0 0.75rem 0.75rem;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}
.welcome-banner .welcome-text {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.welcome-banner .welcome-text i {
  font-size: 1.25rem;
}
.welcome-banner .welcome-date {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 1040;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgba(13,110,253,0.92) 0%, rgba(10,88,202,0.92) 60%, rgba(8,66,152,0.92) 100%);
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  box-shadow:
    0 4px 14px rgba(13, 110, 253, 0.35),
    0 0 0 1px rgba(255,255,255,0.18) inset;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fechaFlotante 3.6s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  letter-spacing: 0.2px;
  user-select: none;
}
.welcome-banner .welcome-date i {
  color: #ffd54f;
  margin-right: 0.35rem;
  filter: drop-shadow(0 0 4px rgba(255, 213, 79, 0.6));
}
.welcome-banner .welcome-date:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 8px 22px rgba(13, 110, 253, 0.5),
    0 0 0 1px rgba(255,255,255,0.25) inset;
}
@keyframes fechaFlotante {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@media (max-width: 600px) {
  .welcome-banner .welcome-date {
    top: 10px;
    right: 60px;
    font-size: 0.72rem;
    padding: 0.32rem 0.7rem;
  }
}
/* Pastilla flotante "De servicio" — igual que la fecha pero debajo y en amarillo */
.welcome-banner .welcome-servicio {
  position: fixed;
  top: 56px;
  right: 20px;
  z-index: 1040;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a3b00;
  background: linear-gradient(135deg, rgba(255,193,7,0.95) 0%, rgba(255,171,0,0.95) 60%, rgba(240,150,0,0.95) 100%);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  box-shadow:
    0 4px 14px rgba(255, 171, 0, 0.4),
    0 0 0 1px rgba(255,255,255,0.25) inset;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.welcome-banner .welcome-servicio i {
  margin-right: 0.35rem;
  color: #6b4e00;
}
.welcome-banner .welcome-servicio:hover {
  transform: translateY(-3px) scale(1.04);
  color: #4a3b00;
  box-shadow:
    0 8px 22px rgba(255, 171, 0, 0.55),
    0 0 0 1px rgba(255,255,255,0.3) inset;
}
@media (max-width: 600px) {
  .welcome-banner .welcome-servicio {
    top: 44px;
    right: 60px;
    font-size: 0.66rem;
    padding: 0.28rem 0.65rem;
  }
}
@media print {
  .welcome-banner .welcome-servicio { display: none !important; }
}
.alert-welcome {
  border-left: 4px solid #0d6efd;
  background: linear-gradient(90deg, rgba(13, 110, 253, 0.08), transparent);
}

/* Menú lateral izquierdo */
.app-layout {
  min-height: 100vh;
}
.sidebar {
  width: 240px;
  min-width: 240px;
  background: linear-gradient(180deg, #212529 0%, #343a40 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
}
.sidebar-brand {
  padding: 1.25rem 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-brand i {
  font-size: 1.5rem;
  color: #0d6efd;
}
.sidebar-nav {
  padding: 0.75rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }

.sidebar .btn-menu {
  text-align: left;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar .btn-menu:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.sidebar .btn-menu.btn-salir {
  color: #f8a5a5;
}
.sidebar .btn-menu.btn-salir:hover {
  background: rgba(220, 53, 69, 0.3);
  color: #fff;
}

/* Submenús desplegables */
.sidebar-group {
  display: flex;
  flex-direction: column;
}
.sidebar-group-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600 !important;
  background: rgba(255,255,255,0.04) !important;
  border-left: 3px solid transparent !important;
  padding-left: 0.7rem !important;
}
.sidebar-group-toggle:hover {
  border-left-color: #0d6efd !important;
}
.sidebar-group-toggle.active {
  background: rgba(13,110,253,0.15) !important;
  border-left-color: #0d6efd !important;
  color: #fff !important;
}
.sidebar-chevron {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  margin-left: auto;
}
.sidebar-group-toggle.active .sidebar-chevron {
  transform: rotate(180deg);
}
.sidebar-submenu {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.2rem 0 0.2rem 0;
  overflow: hidden;
}
.sidebar-submenu.show {
  display: flex;
}
.sidebar .btn-submenu {
  padding-left: 2.2rem !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  background: transparent !important;
  color: rgba(255,255,255,0.7) !important;
  border-radius: 0.4rem;
  position: relative;
}
.sidebar .btn-submenu::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translateY(-50%);
}
.sidebar .btn-submenu:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
}
.sidebar .btn-submenu:hover::before {
  background: #0d6efd;
}
/* Submenú anidado (2º nivel, p.ej. Grupos Electrógenos) */
.sidebar-subgroup { width: 100%; }
.sidebar .btn-submenu.sidebar-group-toggle {
  font-weight: 500 !important;
  color: rgba(255,255,255,0.85) !important;
}
.sidebar .sidebar-submenu-nested .btn-submenu {
  padding-left: 3.2rem !important;
  font-size: 0.78rem !important;
}
.sidebar .sidebar-submenu-nested .btn-submenu::before {
  left: 2.1rem;
}
.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-user {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  padding: 0 0.5rem;
}
.main-content {
  overflow-x: auto;
  min-width: 0;
}

/* Botón hamburguesa (solo móvil/tablet) */
.sidebar-toggle {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1030;
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  border: none;
  background: #212529;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.sidebar-toggle:hover {
  background: #343a40;
  color: #fff;
}
.sidebar-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  padding: 0.25rem;
  font-size: 1.25rem;
}
.sidebar-close:hover {
  color: #fff;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1025;
  opacity: 0;
  transition: opacity 0.25s;
}
body.sidebar-open .sidebar-overlay {
  display: block;
  opacity: 1;
}

/* Responsive: menú lateral en móvil */
@media (max-width: 991.98px) {
  .app-layout {
    flex-direction: column;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    min-width: 260px;
    z-index: 1030;
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .main-content {
    width: 100%;
    padding-top: 3.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .sidebar-brand {
    padding-right: 0.5rem;
  }
}
@media (min-width: 992px) {
  .sidebar-close,
  .sidebar-overlay {
    display: none !important;
  }
  /* El menú lateral es colapsable en escritorio */
  .sidebar {
    transition: margin-left 0.25s ease;
  }
  .sidebar-toggle { display: none !important; }
  body.sidebar-collapsed .sidebar {
    margin-left: -240px;
  }
  body.sidebar-collapsed .sidebar-toggle {
    display: flex !important;
  }
  body.sidebar-collapsed .main-content {
    padding-left: 3.75rem;
  }
}
/* Botón para ocultar el menú (dentro de la cabecera del sidebar) */
.sidebar-collapse-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.8);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.sidebar-collapse-btn:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* Responsive: contenido general */
@media (max-width: 767.98px) {
  .welcome-banner {
    padding: 0.75rem 1rem;
    margin: -1rem -0.5rem 1rem -0.5rem;
  }
  .welcome-banner .welcome-text {
    font-size: 0.95rem;
  }
  /* La fecha flotante mantiene sus estilos fijos definidos arriba */
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .card-body {
    padding: 1rem !important;
  }
  .btn-lg {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .table {
    font-size: 0.8rem;
  }
  .table th, .table td {
    padding: 0.35rem;
    white-space: nowrap;
  }
  .d-flex.gap-2 {
    flex-wrap: wrap;
  }
  .card-header.d-flex {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

.navbar-brand {
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.card {
  border-radius: 0.75rem;
  overflow: hidden;
}

.card-header {
  border-bottom: none;
}

.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.login-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f0fe, #d4e5fd);
  display: flex;
  align-items: center;
  justify-content: center;
}

.table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === Tarjetas modernas: Grupos Electrógenos === */
.ge-card {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  border-top: 4px solid var(--ge, #198754);
  box-shadow: 0 2px 10px rgba(20, 40, 70, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ge-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 40, 70, 0.14); }
.ge-card-baja { opacity: .72; filter: grayscale(.25); }
.ge-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .7rem .9rem;
  background: #fbfcfe;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ge) 13%, #fff), #fff);
}
.ge-card-titulo { display: flex; align-items: center; gap: .45rem; font-weight: 700; color: #1e293b; line-height: 1.15; }
.ge-card-titulo i { color: var(--ge); font-size: 1.1rem; }
.ge-badge-estado { background: var(--ge); color: #fff; }
.ge-card-body { padding: .35rem .9rem .6rem; flex: 1 1 auto; }
.ge-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; margin: .55rem 0; }
.ge-k { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .4px; color: #94a3b8; }
.ge-v { font-size: .9rem; color: #1e293b; word-break: break-word; }
.ge-unidad { display: flex; align-items: flex-start; gap: .4rem; padding: .45rem .55rem; background: #f6f8fb; border-radius: 8px; margin-bottom: .5rem; }
.ge-badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.ge-card-foot { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; padding: .6rem .9rem; border-top: 1px solid #eef1f6; background: #fbfcfe; }

.btn-lg {
  border-radius: 0.5rem;
}

.alert {
  border-radius: 0.5rem;
}

.badge {
  font-weight: 500;
}

.personal-input {
  border-right: 0;
}

.btn-add-personal,
.btn-remove-personal {
  border-radius: 0 0.375rem 0.375rem 0 !important;
}

.accordion-chevron {
  transition: transform 0.3s ease;
}
.collapsed .accordion-chevron {
  transform: rotate(-90deg);
}

/* Dashboard de menús cuadrados */
.dashboard-grid {
  max-width: 900px;
  margin: 0 auto;
}
.dashboard-card {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.dashboard-card-inner {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.dashboard-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color, #0d6efd);
  border-radius: 1rem 1rem 0 0;
}
.dashboard-card:hover .dashboard-card-inner {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-color: var(--card-color, #0d6efd);
}
.dashboard-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--card-color, #0d6efd);
  transition: background 0.2s, transform 0.2s;
}
.dashboard-card:hover .dashboard-icon {
  background: var(--card-color, #0d6efd);
  color: #fff;
  transform: scale(1.1);
}
.dashboard-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #344054;
  margin: 0;
  line-height: 1.3;
}
.dashboard-card:hover .dashboard-label {
  color: var(--card-color, #0d6efd);
}
.dashboard-title h3 {
  font-size: 1.4rem;
  color: #1a2332;
}
.dashboard-title p {
  font-size: 0.9rem;
}

@media (max-width: 575.98px) {
  .dashboard-card-inner {
    min-height: 130px;
    padding: 1rem 0.75rem;
  }
  .dashboard-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  .dashboard-label {
    font-size: 0.78rem;
  }
}

@media print {
  html, body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
  }

  .sidebar,
  .sidebar-toggle,
  .sidebar-overlay,
  .sidebar-footer,
  .welcome-banner,
  .navbar,
  footer,
  .no-print {
    display: none !important;
  }
  .app-layout {
    display: block !important;
    overflow: hidden !important;
  }
  .main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
  }
  .container, .container-fluid {
    max-width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .card {
    box-shadow: none !important;
    border: none !important;
    overflow: hidden !important;
  }
  /* Eliminar todas las scrollbars al imprimir */
  *::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
  * { scrollbar-width: none !important; -ms-overflow-style: none !important; }
}

/* ========================================================
   MODAL DE FRASE DEL DÍA (popup motivacional al ingresar)
   ======================================================== */
.modal-frase-cabecera {
  background: linear-gradient(135deg, #4a6cf7 0%, #6f42c1 100%);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  color: #fff;
}
.modal-frase-icono {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 1.7rem;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.modal-frase-quote-open,
.modal-frase-quote-close {
  font-size: 2.2rem;
  color: #4a6cf7;
  opacity: 0.35;
  line-height: 1;
}
.modal-frase-quote-open { display: block; text-align: left; margin-bottom: -0.5rem; }
.modal-frase-quote-close { display: block; text-align: right; margin-top: -0.5rem; transform: scaleX(-1); }
.modal-frase-texto {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: #2c3e50;
  margin: 0.5rem 0;
  padding: 0 0.5rem;
}
.modal-frase-autor {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 600;
  letter-spacing: 0.3px;
}
