/* ============================================================================
   U.E.P. FRANCISCO DE IBARRA - HOJA DE ESTILOS DE ÉLITE (WEB & ANDROID)
   Paleta: Navy #0E1846, Blue #1B2A7B, Gold #D8A94A, Cream #F7F3EA
   ============================================================================ */

:root {
  --navy-dark: #0A1133;
  --navy: #0E1846;
  --navy-light: #162464;
  --blue: #1B2A7B;
  --gold: #D8A94A;
  --gold-hover: #C29336;
  --gold-subtle: rgba(216, 169, 74, 0.15);
  --cream: #F7F3EA;
  --cream-card: #FFFFFF;
  --ink: #101A3D;
  --ink-secondary: rgba(16, 26, 61, 0.72);
  --ink-muted: rgba(16, 26, 61, 0.48);
  --border-light: rgba(16, 26, 61, 0.12);
  --border-focus: #1B2A7B;
  --success: #1E7E34;
  --success-bg: rgba(30, 126, 52, 0.12);
  --warning: #B36B00;
  --warning-bg: rgba(216, 169, 74, 0.2);
  --danger: #C82333;
  --danger-bg: rgba(200, 35, 51, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(14, 24, 70, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 24, 70, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 24, 70, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Enlace accesible para saltar navegación */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--navy);
  color: var(--gold);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 99999;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================================================
   BANNER FLOTANTE DE ESTADO DE CONEXIÓN (OFFLINE / ONLINE)
   ============================================================================ */

.connection-status-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -150%);
  opacity: 0;
  pointer-events: none;
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: auto;
  min-width: 310px;
  max-width: 92vw;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 32px rgba(14, 24, 70, 0.28), 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.connection-status-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

/* Estado Offline (Sin Conexión) */
.connection-status-banner.is-offline {
  background: rgba(14, 24, 70, 0.94);
  border: 1px solid rgba(216, 169, 74, 0.55);
  color: #FFFFFF;
}

.connection-status-banner.is-offline .connection-dot {
  background: #E65100;
  box-shadow: 0 0 10px #FF9800, 0 0 4px #FFA726;
  animation: pulseOfflineDot 1.5s infinite;
}

/* Estado Online (Conexión Restablecida) */
.connection-status-banner.is-online {
  background: rgba(8, 38, 22, 0.94);
  border: 1px solid rgba(40, 167, 69, 0.65);
  color: #FFFFFF;
}

.connection-status-banner.is-online .connection-dot {
  background: #28A745;
  box-shadow: 0 0 10px #28A745, 0 0 4px #5CBA79;
  animation: pulseOnlineDot 1.5s infinite;
}

.connection-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.connection-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.connection-icon {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
}

.connection-message {
  font-size: 12.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.connection-banner-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.connection-banner-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
}

@keyframes pulseOfflineDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.4; }
}

@keyframes pulseOnlineDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Tipografías Especiales */
.font-serif {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
}

.font-mono {
  font-family: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;
}

/* ============================================================================
   ANIMACIONES
   ============================================================================ */

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

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 169, 74, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(216, 169, 74, 0); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.anim-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================================================
   COMPONENTES DE NAVEGACIÓN Y HEADER
   ============================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
}

.brand-subtitle {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Selector de Rol Flotante para demostración en vivo */
.role-badge-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 24, 70, 0.06);
  padding: 4px 6px;
  border-radius: var(--radius-full);
}

.role-btn {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.role-btn:hover {
  background: rgba(14, 24, 70, 0.1);
  color: var(--navy);
}

.role-btn.active {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 2px 8px rgba(14, 24, 70, 0.25);
}

/* ============================================================================
   ESTRUCTURA DEL DASHBOARD PRINCIPAL
   ============================================================================ */

.dashboard-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 69px);
}

.sidebar {
  background: var(--navy);
  color: var(--cream);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(247, 243, 234, 0.45);
  padding: 8px 12px;
  margin-top: 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(247, 243, 234, 0.78);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  transform: translateX(3px);
}

.nav-item:active {
  transform: translateX(1px) scale(0.98);
}

.nav-item.active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(216, 169, 74, 0.35);
}

.nav-item .badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
}

.nav-item.active .badge {
  background: var(--navy);
  color: var(--cream);
}

.main-content {
  padding: 32px clamp(16px, 3vw, 40px);
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================================================
   TARJETAS Y MÉTRICAS (KPIs)
   ============================================================================ */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.card {
  background: var(--cream-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.24s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(14, 24, 70, 0.09), 0 2px 6px rgba(0, 0, 0, 0.03);
  border-color: rgba(216, 169, 74, 0.35);
}

.card:active {
  transform: translateY(-1px) scale(0.995);
}

.kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
}

.kpi-sub {
  font-size: 12px;
  color: var(--ink-secondary);
  margin-top: 4px;
}

/* ============================================================================
   TABLAS PROFESIONALES DE CALIFICACIONES Y CONTROL
   ============================================================================ */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  margin-top: 14px;
}

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

.data-table th {
  background: rgba(14, 24, 70, 0.04);
  color: var(--navy);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

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

.data-table tr:hover td {
  background: rgba(14, 24, 70, 0.02);
}

/* Chips de Estado */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.chip-success {
  background: var(--success-bg);
  color: var(--success);
}

.chip-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.chip-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ============================================================================
   SKELETON SCREENS / SHIMMER LOADERS
   Efecto de carga fluido a 60fps para tablas de estudiantes, notas y pagos
   ============================================================================ */

@keyframes shimmerWave {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  display: inline-block;
  background: linear-gradient(
    90deg,
    rgba(14, 24, 70, 0.06) 25%,
    rgba(216, 169, 74, 0.20) 37%,
    rgba(14, 24, 70, 0.06) 63%
  );
  background-size: 200% 100%;
  animation: shimmerWave 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  border-radius: var(--radius-sm);
  will-change: background-position;
}

.skeleton-text {
  height: 14px;
  width: 100%;
  border-radius: 4px;
  margin-bottom: 4px;
}

.skeleton-title {
  height: 22px;
  width: 60%;
  border-radius: 6px;
  margin-bottom: 8px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-chip {
  height: 22px;
  width: 78px;
  border-radius: var(--radius-full);
}

.skeleton-badge {
  height: 20px;
  width: 64px;
  border-radius: var(--radius-sm);
}

.skeleton-btn {
  height: 32px;
  width: 90px;
  border-radius: var(--radius-full);
}

.skeleton-table-container {
  position: relative;
  overflow: hidden;
}

.skeleton-row-anim {
  transition: opacity 0.3s ease;
}

.skeleton-row-anim td {
  padding: 14px 16px;
  vertical-align: middle;
}

.skeleton-card {
  padding: 24px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-kpi {
  padding: 20px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ============================================================================
   SÁBANA DE NOTAS INTERACTIVA (MODO MAESTRO)
   ============================================================================ */

.grade-input {
  width: 58px;
  text-align: center;
  padding: 6px 4px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
  background: #FFFFFF;
}

.grade-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 42, 123, 0.15);
}

.grade-total {
  font-weight: 700;
  font-size: 15px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  min-width: 32px;
  text-align: center;
}

.grade-approved {
  color: var(--success);
  background: var(--success-bg);
}

.grade-failed {
  color: var(--danger);
  background: var(--danger-bg);
}

/* ============================================================================
   CONTROL DE ASISTENCIAS TÁCTIL
   ============================================================================ */

.attendance-toggle-group {
  display: flex;
  gap: 4px;
}

.att-btn {
  border: 1px solid var(--border-light);
  background: transparent;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.att-btn.presente.active {
  background: var(--success);
  color: #FFFFFF;
  border-color: var(--success);
}

.att-btn.ausente.active {
  background: var(--danger);
  color: #FFFFFF;
  border-color: var(--danger);
}

.att-btn.justificada.active {
  background: var(--warning);
  color: #FFFFFF;
  border-color: var(--warning);
}

/* ============================================================================
   BOLETÍN OFICIAL DE CALIFICACIONES (VISUALIZADOR Y @media print)
   ============================================================================ */

.boletin-document {
  background: #FFFFFF;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
  color: #101A3D;
}

.boletin-header {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.boletin-title-block {
  text-align: center;
  flex: 1;
}

.boletin-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: rgba(14, 24, 70, 0.03);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 13px;
}

.boletin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 13px;
}

.boletin-table th, .boletin-table td {
  border: 1px solid rgba(16, 26, 61, 0.2);
  padding: 8px 12px;
}

.boletin-table th {
  background: var(--navy);
  color: #FFFFFF;
  text-transform: uppercase;
  font-size: 11px;
}

.boletin-signatures {
  display: flex;
  justify-content: space-around;
  margin-top: 50px;
  text-align: center;
  font-size: 12px;
}

.signature-line {
  width: 180px;
  border-top: 1px solid #101A3D;
  padding-top: 6px;
  font-weight: 600;
}

/* ============================================================================
   DOCUMENTOS OFICIALES Y ESTILOS DE IMPRESIÓN (@media print)
   ============================================================================ */

.printable-document, .boletin-document {
  background: #FFFFFF;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
  color: #101A3D;
  position: relative;
}

.document-stamp {
  position: absolute;
  right: 48px;
  bottom: 120px;
  width: 115px;
  height: 115px;
  border: 2px dashed rgba(27, 42, 123, 0.45);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.75;
  transform: rotate(-12deg);
  pointer-events: none;
  line-height: 1.1;
  padding: 6px;
}

.timeline-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.month-badge {
  text-align: center;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  transition: all 0.2s ease;
}

.month-badge.paid {
  background: var(--success-bg);
  border-color: rgba(30, 126, 52, 0.3);
  color: var(--success);
}

.month-badge.pending {
  background: var(--warning-bg);
  border-color: rgba(216, 169, 74, 0.4);
  color: var(--warning);
}

.month-badge.upcoming {
  background: rgba(14, 24, 70, 0.02);
  color: var(--ink-muted);
}

.child-selector-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  background: rgba(14, 24, 70, 0.04);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.child-pill {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  transition: all 0.2s ease;
}

.child-pill.active {
  background: var(--navy);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

@media print {
  body * {
    visibility: hidden !important;
  }
  .printable-document, .printable-document *,
  .boletin-document, .boletin-document *,
  .carnet-document, .carnet-document * {
    visibility: visible !important;
  }
  .printable-document, .boletin-document, .carnet-document {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 15px 25px !important;
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .modal-backdrop {
    background: transparent !important;
    position: static !important;
    padding: 0 !important;
  }
  .no-print, button, .site-header, .mobile-bottom-nav, .role-badge-bar {
    display: none !important;
  }
}

/* ============================================================================
   FORMULARIOS Y MODALES
   ============================================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 24, 70, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-content {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 42, 123, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 2px 6px rgba(14, 24, 70, 0.12);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--blue);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(27, 42, 123, 0.2);
}

.btn-primary:hover {
  background: var(--navy);
  box-shadow: 0 6px 18px rgba(14, 24, 70, 0.28);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 3px 12px rgba(216, 169, 74, 0.32);
}

.btn-gold:hover {
  background: var(--gold-hover);
  box-shadow: 0 6px 22px rgba(216, 169, 74, 0.48);
}

.btn-secondary {
  background: rgba(14, 24, 70, 0.08);
  color: var(--ink);
}

.btn-secondary:hover {
  background: rgba(14, 24, 70, 0.14);
  box-shadow: 0 4px 12px rgba(14, 24, 70, 0.08);
}

/* ============================================================================
   BARRA DE NAVEGACIÓN MÓVIL OPTIMIZADA (ANDROID MATERIAL STYLE)
   Diseñada para pantallas táctiles compactas (360px - 412px)
   ============================================================================ */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(14, 24, 70, 0.09);
  padding: 6px 6px max(8px, env(safe-area-inset-bottom, 8px));
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(14, 24, 70, 0.08);
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  min-width: 60px;
  min-height: 52px; /* Cumple WCAG 48x48px touch target */
  padding: 4px 8px;
  border-radius: 14px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-btn:active {
  transform: scale(0.92);
  background: rgba(14, 24, 70, 0.05);
}

.mobile-nav-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 14px;
  border-radius: 16px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-btn.active {
  color: var(--blue);
  font-weight: 700;
}

.mobile-nav-btn.active .mobile-nav-icon-wrapper {
  background: rgba(27, 42, 123, 0.12);
  transform: translateY(-1px);
}

.mobile-nav-label {
  font-size: 10.5px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.mobile-nav-btn.active .mobile-nav-label {
  color: var(--blue);
  font-weight: 700;
}

.mobile-nav-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  background: var(--danger);
  color: #FFFFFF;
  border: 1.5px solid #FFFFFF;
  border-radius: 9999px;
  line-height: 1.2;
}

.mobile-nav-btn svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .dashboard-container {
    grid-template-columns: 1fr;
    padding-bottom: 74px; /* espacio libre para el bottom nav */
  }

  .sidebar {
    display: none; /* oculto en favor del bottom nav en móviles */
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .role-badge-bar {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }
}

/* Optimización para dispositivos Android con pantallas estrechas (<= 380px) */
@media (max-width: 380px) {
  .mobile-bottom-nav {
    padding: 4px 4px max(6px, env(safe-area-inset-bottom, 6px));
  }
  .mobile-nav-btn {
    min-width: 52px;
    min-height: 48px;
    padding: 2px 4px;
    gap: 2px;
  }
  .mobile-nav-btn .mobile-nav-icon-wrapper {
    padding: 2px 10px;
  }
  .mobile-nav-label {
    font-size: 9.5px;
    max-width: 58px;
  }
}

/* ============================================================================
   BOTÓN OFICIAL GOOGLE SIGN-IN & MODAL DE AUTENTICACIÓN
   ============================================================================ */

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #FFFFFF;
  color: #3C4043;
  border: 1px solid #DADCE0;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
  transition: all 0.2s ease;
}

.btn-google:hover {
  background: #F8F9FA;
  border-color: #C6C8CA;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.15);
}

.auth-tab-group {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 22px;
  gap: 12px;
}

.auth-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.auth-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.auth-separator::before,
.auth-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.auth-separator:not(:empty)::before {
  margin-right: 12px;
}

.auth-separator:not(:empty)::after {
  margin-left: 12px;
}

/* Conmutador Demo Flotante para Evaluadores */
.demo-drawer {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 990;
  background: rgba(14, 24, 70, 0.94);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 11.5px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.demo-drawer button {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.demo-drawer button:hover,
.demo-drawer button.active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

/* Contenedor Responsivo para Google Maps */
.map-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  background: #E8ECEF;
}

/* Enlaces de Navegación Rápida en Cabecera */
.header-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 18px;
}
.header-nav-link {
  text-decoration: none;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}
.header-nav-link:hover {
  background: rgba(14, 24, 70, 0.06);
  color: var(--blue);
  transform: translateY(-1px);
}
.header-nav-link:active {
  transform: scale(0.96);
}
@media (max-width: 900px) {
  .header-nav-links {
    display: none !important;
  }
}

/* ============================================================================
   ESTILOS DE CARNET ESTUDIANTIL DIGITAL (PVC / SMART CARD)
   ============================================================================ */
.carnet-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.carnet-card {
  width: 340px;
  height: 520px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(14, 24, 70, 0.22);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  box-sizing: border-box;
}

.carnet-front {
  background: linear-gradient(145deg, #0A133A 0%, #152466 55%, #1B2A7B 100%);
  color: #FFFFFF;
}

.carnet-back {
  background: #FFFFFF;
  color: #101A3D;
  border: 2px solid #E2E6EF;
}

.carnet-header {
  padding: 16px 14px 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.carnet-photo-box {
  width: 120px;
  height: 140px;
  margin: 12px auto;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  background: #FFFFFF;
}

.carnet-qr-box {
  background: #FFFFFF;
  padding: 8px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #DFE3EB;
}




/* ============================================================================
   REVOLUCIÓN VISUAL: SCROLL PROGRESS, GLASSMORPHISM 3D, RECORRIDO & FAQ
   ============================================================================ */

/* 1. Barra de Progreso de Lectura / Scroll */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, #BAC7FF 50%, var(--gold) 100%);
  box-shadow: 0 0 12px rgba(216, 169, 74, 0.85);
  z-index: 9999;
  transition: width 0.08s ease-out;
}

/* 2. Tarjetas Glassmorphism 3D & Efectos Flotantes */
.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(14, 24, 70, 0.07);
  border-radius: var(--radius-md);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card-dark {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  color: var(--cream);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.card-3d:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(14, 24, 70, 0.14), 0 0 25px rgba(216, 169, 74, 0.2);
  border-color: rgba(216, 169, 74, 0.5) !important;
}

.glass-card-dark.card-3d:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4), 0 0 25px rgba(216, 169, 74, 0.3);
  border-color: rgba(216, 169, 74, 0.6) !important;
}

.floating-pill {
  animation: floatSlow 3.5s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* 3. Sección Vida Escolar y Ambientes de Aprendizaje */
.vida-tabs-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.vida-tab-btn {
  background: rgba(14, 24, 70, 0.05);
  border: 1px solid var(--border-light);
  color: var(--ink-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.vida-tab-btn:hover {
  background: rgba(216, 169, 74, 0.15);
  color: var(--navy);
  border-color: var(--gold);
}

.vida-tab-btn.active {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(14, 24, 70, 0.25);
}

.vida-tab-pane {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.vida-tab-pane.active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 860px) {
  .vida-tab-pane.active {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.vida-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.vida-tag {
  background: var(--gold-subtle);
  color: var(--ink);
  border: 1px solid rgba(216, 169, 74, 0.4);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.vida-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
  background: var(--navy);
}

.vida-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vida-img-wrapper:hover img {
  transform: scale(1.05);
}

.vida-img-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(14, 24, 70, 0.85);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 4. Recorrido Virtual 360 & Galería */
.recorrido-simulador {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-light);
  background: #0A1133;
}

.recorrido-screen {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recorrido-pano-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.8s ease;
}

.recorrido-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(10, 17, 51, 0.6) 100%);
  pointer-events: none;
}

.recorrido-hud {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: auto;
}

.recorrido-compass {
  background: rgba(14, 24, 70, 0.82);
  color: var(--gold);
  border: 1px solid rgba(216, 169, 74, 0.5);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recorrido-hotspots-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 24, 70, 0.9);
  backdrop-filter: blur(16px);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  gap: 8px;
  z-index: 15;
  max-width: 92%;
  overflow-x: auto;
}

.hotspot-btn {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.hotspot-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.hotspot-btn.active {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  box-shadow: 0 0 14px rgba(216, 169, 74, 0.6);
}

/* Galería Fotográfica */
.galeria-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.galeria-filter-btn {
  background: rgba(14, 24, 70, 0.05);
  border: 1px solid var(--border-light);
  color: var(--ink-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.galeria-filter-btn.active, .galeria-filter-btn:hover {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

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

.galeria-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--navy);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.galeria-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.galeria-card:hover img {
  transform: scale(1.08);
}

.galeria-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 24, 70, 0.88) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #FFFFFF;
}

.galeria-card:hover .galeria-card-overlay {
  opacity: 1;
}

.galeria-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.galeria-card-tag {
  font-size: 11px;
  color: var(--gold);
  font-family: 'IBM Plex Mono', monospace;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 17, 51, 0.95);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
  color: var(--cream);
  font-size: 15px;
  margin-top: 12px;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

/* 5. Acordeón FAQ Interactivo */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.faq-item.active {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.faq-header {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: transparent;
  user-select: none;
}

.faq-header h3 {
  font-size: 16px;
  color: var(--navy);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-chevron {
  font-size: 16px;
  color: var(--gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 22px;
  color: var(--ink-secondary);
  font-size: 14.5px;
  line-height: 1.65;
  background: rgba(247, 243, 234, 0.3);
}

.faq-item.active .faq-body {
  max-height: 400px;
  padding: 4px 22px 20px 22px;
}

/* 6. Botón Flotante Interactivo WhatsApp */
.whatsapp-widget {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp-tooltip {
  background: #FFFFFF;
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(16, 26, 61, 0.08);
  margin-bottom: 12px;
  max-width: 260px;
  animation: fadeIn 0.4s ease;
  position: relative;
}

.whatsapp-tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--navy);
}

.whatsapp-tooltip-close {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-muted);
}

.whatsapp-tooltip p {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.whatsapp-status-online {
  font-size: 11px;
  font-weight: 700;
  color: #128C7E;
  display: flex;
  align-items: center;
  gap: 5px;
}

.whatsapp-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #FFFFFF;
}

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: waPulseRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes waPulseRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

@media (max-width: 600px) {
  .whatsapp-widget {
    bottom: 84px; /* para no tapar el bottom-nav */
    right: 18px;
  }
}
