/* ==========================================================================
   SISTEMA MEDIOS DE PAGO PERÚ - PORTAL DE GESTIÓN, AUDITORÍA Y LOTERÍA
   Paleta oficial Canva:
   - Rojo Corporativo: #c62828 / #8e0000 / #4a0d10
   - Verde Supervisores / Aprobado: #1b5e20 / #2e7d32 / #388e3c
   - Dorado Lotería: #f59e0b / #d97706 / #fbbf24
   - Fondos y neutrales: #f8fafc / #ffffff / #1e293b / #0f172a
   ========================================================================== */

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

:root {
  --primary-red: #c62828;
  --primary-red-dark: #8e0000;
  --primary-red-wine: #4a0d10;
  --primary-red-light: #fee2e2;

  --primary-green: #2e7d32;
  --primary-green-dark: #1b5e20;
  --primary-green-light: #e8f5e9;

  --accent-gold: #f59e0b;
  --accent-gold-dark: #b45309;

  --bg-body: #f4f5f8;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Contenedor principal de pantallas */
.screen-container {
  display: none;
  min-height: 100vh;
  animation: fadeIn 0.3s ease-in-out;
}

.screen-container.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   HEADER COMÚN & NAVEGACIÓN
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-squares {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
}

.logo-sq {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background-color: transparent !important;
  box-sizing: border-box;
  flex-shrink: 0;
}

.logo-sq.red {
  border: 3.5px solid #d90429;
}

.logo-sq.yellow {
  border: 3.5px solid #f59e0b;
}

.logo-sq.green {
  border: 3.5px solid #16a34a;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
  color: #1e293b;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-red);
  background-color: var(--primary-red-light);
}

.nav-portal-btn {
  background: var(--primary-red);
  color: #ffffff !important;
  border-radius: var(--radius-full);
  padding: 8px 18px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.25);
}

.nav-portal-btn:hover {
  background: var(--primary-red-dark) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   PANTALLA 1: LANDING PAGE LOTERÍA (BANNER DE GRAN PREMIO)
   ========================================================================== */
.hero-loteria {
  background: radial-gradient(circle at center, #1e3a8a 0%, #0a192f 100%);
  padding: 60px 20px 80px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.hero-loteria::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(220, 38, 38, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.loteria-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: #fde047;
}

.loteria-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 6px;
}

.loteria-subtitle {
  font-size: 1.25rem;
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 30px;
}

.jackpot-box {
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  border: 3px solid #facc15;
  border-radius: var(--radius-lg);
  padding: 24px 36px;
  max-width: 580px;
  margin: 0 auto 36px;
  box-shadow: 0 0 40px rgba(234, 179, 8, 0.35), 0 10px 25px rgba(0, 0, 0, 0.5);
  position: relative;
}

.jackpot-ribbon {
  background: #facc15;
  color: #78350f;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.jackpot-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 3.4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.jackpot-currency {
  font-size: 1.3rem;
  color: #fef08a;
  margin-left: 6px;
}

/* Boleto Ganador Estilizado */
.ticket-wrapper {
  max-width: 460px;
  margin: 0 auto 30px;
  background: #ffffff;
  color: #1e293b;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: var(--shadow-xl);
  border: 2px dashed #93c5fd;
  position: relative;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.ticket-badge {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.ticket-numbers {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.ticket-ball {
  width: 48px;
  height: 48px;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e2e8f0 70%, #cbd5e1 100%);
  border: 2px solid #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e3a8a;
  box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

/* ==========================================================================
   PANTALLA 2: DEMOSTRACIÓN DEL JUEGO
   ========================================================================== */
.section-demo {
  max-width: 960px;
  margin: 60px auto;
  padding: 0 24px;
  text-align: center;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.video-mockup {
  background: #000000;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.video-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.video-center-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ffffff;
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #0f172a;
  margin-left: 4px;
}

.video-controls-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  z-index: 2;
}

.video-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  position: relative;
}

.video-progress-filled {
  width: 35%;
  height: 100%;
  background: var(--primary-red);
  border-radius: 2px;
}

/* ==========================================================================
   PANTALLA 3: QUIÉNES SOMOS & BENEFICENCIA
   ========================================================================== */
.about-hero {
  background: linear-gradient(135deg, #c62828 0%, #8e0000 100%);
  padding: 60px 24px 80px;
  color: #ffffff;
  position: relative;
}

.about-card-white {
  background: #ffffff;
  color: #1e293b;
  max-width: 1080px;
  margin: -40px auto 40px;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.about-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #e2e8f0;
}

.about-img-box img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.mv-grid {
  max-width: 1080px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 0 24px;
}

.mv-card {
  background: #ffffff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--accent-gold);
}

.mv-card.vision {
  border-top-color: var(--primary-red);
}

.mv-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #0f172a;
}

/* ==========================================================================
   PANTALLA 4: CONTACTO & SEDES
   ========================================================================== */
.contact-container {
  max-width: 1160px;
  margin: 60px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.sedes-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sede-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-red);
}

.sede-ciudad {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.sede-encargado {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.sede-direccion,
.sede-email {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form-card {
  background: #ffffff;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  transition: var(--transition);
  background: #f8fafc;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-red);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

/* Footer corporativo */
.site-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 40px 24px;
  margin-top: 80px;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   PANTALLA 5 & 9: LOGINS (DISEÑO IDÉNTICO A LA CAPTURA DE PANTALLA CANVA)
   ========================================================================== */
.login-screen-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 50%, #991b1b 100%);
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 30px, transparent 30px, transparent 60px),
    linear-gradient(135deg, #c62828 0%, #991b1b 100%);
  padding: 24px;
  position: relative;
}

.login-screen-wrapper.green-theme {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 30px, transparent 30px, transparent 60px),
    linear-gradient(135deg, #1b5e20 0%, #0d3810 100%);
}

.login-card-floating {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
  max-width: 960px;
  width: 100%;
  min-height: 540px;
  display: flex;
  overflow: hidden;
}

.login-form-side {
  flex: 1.1;
  padding: 44px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 38px;
}

.login-tag-green {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: #16a34a;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid #16a34a;
}

.login-title-h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #c62828;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.login-title-h1.green {
  color: #1b5e20;
}

.pill-input-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.pill-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-input {
  width: 100%;
  padding: 13px 44px 13px 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  transition: var(--transition);
}

.pill-input:focus {
  outline: none;
  border-color: #c62828;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.pill-input.green:focus {
  border-color: #1b5e20;
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.12);
}

.btn-pill-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  background: #c62828;
  color: #ffffff;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.35);
  margin-top: 10px;
}

.btn-pill-submit:hover {
  background: #a91b1b;
  transform: translateY(-1px);
}

.btn-pill-submit.green {
  background: #1b5e20;
  box-shadow: 0 4px 14px rgba(27, 94, 32, 0.35);
}

.btn-pill-submit.green:hover {
  background: #144919;
}

/* Lado Derecho Artístico con Cápsulas Marrones Superpuestas */
.login-art-side {
  flex: 1;
  background: #2b0b0e;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-art-side.green {
  background: #08210d;
}

.capsule-pill-1 {
  position: absolute;
  width: 260px;
  height: 520px;
  border-radius: 130px;
  background: #4a1418;
  transform: rotate(-35deg) translate(-20px, -60px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.capsule-pill-2 {
  position: absolute;
  width: 220px;
  height: 480px;
  border-radius: 110px;
  background: #641c22;
  transform: rotate(-35deg) translate(80px, 40px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.capsule-pill-3 {
  position: absolute;
  width: 180px;
  height: 400px;
  border-radius: 90px;
  background: #7d232b;
  transform: rotate(-35deg) translate(160px, 140px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Cápsulas verdes para login de supervisores */
.login-art-side.green .capsule-pill-1 {
  background: #133c19;
}

.login-art-side.green .capsule-pill-2 {
  background: #1b5223;
}

.login-art-side.green .capsule-pill-3 {
  background: #246a2e;
}

/* ==========================================================================
   PANTALLA 6: DASHBOARD DE PUNTOS DE DISTRIBUCIÓN
   ========================================================================== */
.portal-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 40;
}

.portal-user-welcome {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.portal-user-welcome strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.portal-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Campanita de Notificaciones */
.notifications-wrapper {
  position: relative;
}

.btn-bell {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.btn-bell svg {
  width: 17px;
  height: 17px;
}

.btn-bell:hover {
  background: #e2e8f0;
}

.bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

/* Dropdown de notificaciones */
.notifications-dropdown {
  display: none;
  position: absolute;
  top: 52px;
  right: 0;
  width: 380px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  z-index: 100;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

.notifications-dropdown.active {
  display: block;
}

.notif-header {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}

.notif-list {
  max-height: 340px;
  overflow-y: auto;
}

.notif-item {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notif-item:hover {
  background: #f8fafc;
}

.notif-icon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.notif-icon-dot.rojo {
  background-color: #ef4444;
}

.notif-icon-dot.naranja {
  background-color: #f97316;
}

.notif-icon-dot.amarillo {
  background-color: #eab308;
}

.notif-text {
  font-size: 0.85rem;
  color: #334155;
}

.notif-days {
  font-weight: 700;
  color: var(--primary-red);
}

/* Dashboard Toolbar */
.dashboard-toolbar {
  max-width: 1280px;
  margin: 14px auto 10px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.search-filters-row {
  max-width: 1280px;
  margin: 0 auto 12px;
  padding: 0 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrapper {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search-input-wrapper input {
  width: 100%;
  height: 34px;
  padding: 6px 12px 6px 34px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: #ffffff;
  font-size: 0.82rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  box-sizing: border-box;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.1);
}

.search-icon-svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-light);
}

.filter-chip-select {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-weight: 600;
  font-size: 0.8rem;
  color: #334155;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-new-point {
  background: var(--primary-red);
  color: #ffffff;
  border: none;
  height: 34px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(198, 40, 40, 0.2);
  transition: var(--transition);
  box-sizing: border-box;
}

.btn-new-point:hover {
  background: var(--primary-red-dark);
  transform: translateY(-1px);
}

.btn-export-csv {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid var(--border-color);
  height: 34px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-sizing: border-box;
}

.btn-export-csv:hover {
  background: #f1f5f9;
}

/* Lista de Puntos (Tarjetas Accordion estilo Canva) */
.points-list-container {
  max-width: 1280px;
  margin: 0 auto 36px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.point-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: var(--transition);
}

.point-card:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

.point-summary-row {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
}

.point-left-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.habilitado {
  background-color: #22c55e;
  box-shadow: 0 0 5px rgba(34, 197, 94, 0.4);
}

.status-dot.deshabilitado {
  background-color: #ef4444;
  box-shadow: 0 0 5px rgba(239, 68, 68, 0.4);
}

.point-title-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.point-location-chip {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.point-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action-icon {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 3px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-action-icon svg {
  width: 15px;
  height: 15px;
}

.btn-action-icon:hover {
  color: var(--primary-red);
  background: var(--primary-red-light);
}

.status-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.status-badge.habilitado {
  background: #dcfce7;
  color: #15803d;
}

.status-badge.deshabilitado {
  background: #fee2e2;
  color: #b91c1c;
}

.chevron-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
  color: #94a3b8;
}

.point-card.expanded .chevron-icon {
  transform: rotate(180deg);
}

/* Detalle colapsable dentro de la tarjeta */
.point-details-collapse {
  display: none;
  padding: 12px 14px;
  background: #fafaf9;
  border-top: 1px solid #f1f5f9;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 14px;
  align-items: center;
}

.point-card.expanded .point-details-collapse {
  display: grid;
}

.meta-field-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.meta-field-value {
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.btn-enter-point {
  background: #fcd34d;
  color: #78350f;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(252, 211, 77, 0.3);
}

.btn-enter-point:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

/* ==========================================================================
   PANTALLA 7: FICHA GEORREFERENCIADA & HISTORIAL DE VISITAS
   ========================================================================== */
.ficha-point-container {
  max-width: 1180px;
  margin: 16px auto 40px;
  padding: 0 20px;
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3b82f6;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 16px;
  cursor: pointer;
}

/* Tarjeta Constancia Oficial e Información del Punto */
.constancia-card-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.constancia-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-constancia-pill {
  background: #ecfdf5;
  color: #059669;
  border: 1.5px solid #a7f3d0;
  border-radius: 9999px;
  padding: 5px 16px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
}

.constancia-fecha-text {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.constancia-intro-text {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin: 16px 0 18px;
}

.constancia-info-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e2e8f0;
}

.constancia-info-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.88rem;
}

.constancia-info-row:last-child {
  border-bottom: none;
}

.constancia-info-label {
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 0.8rem;
}

.constancia-info-value {
  color: #1e293b;
  font-weight: 600;
}

@media (max-width: 640px) {
  .constancia-card-box {
    padding: 16px 18px;
  }

  .constancia-info-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }
}

/* Tarjeta de Vigencia, Documento de Constancia y Renovaciones */
.vigencia-card-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 22px 26px;
  margin-bottom: 20px;
}

.vigencia-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 12px;
}

.vigencia-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vigencia-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.vigencia-card-sub {
  font-size: 0.8rem;
  color: #64748b;
}

.btn-renovar-action {
  background: #15803d;
  color: #ffffff;
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.22);
  transition: var(--transition);
}

.btn-renovar-action:hover:not(:disabled) {
  background: #166534;
  transform: translateY(-1px);
}

.btn-renovar-action.disabled,
.btn-renovar-action:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.badge-supervisor-readonly {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vigencia-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.vigencia-data-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
}

.vigencia-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.vigencia-countdown-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 9999px;
}

.vigencia-dates-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vigencia-date-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vigencia-date-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.vigencia-date-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.vigencia-date-value.highlight {
  color: #15803d;
}

.vigencia-doc-box {
  min-height: 60px;
  width: 100%;
}

.doc-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 14px;
  gap: 12px;
}

.doc-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.doc-file-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.doc-file-meta {
  font-size: 0.72rem;
  color: #64748b;
}

.btn-ver-doc-link {
  background: #2563eb;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-ver-doc-link:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.doc-empty-hint {
  color: #94a3b8;
  font-size: 0.82rem;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Acordeón de Renovaciones */
.renovaciones-history-container {
  margin-top: 14px;
}

.renovaciones-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 6px 0;
  user-select: none;
}

.renovaciones-history-header:hover {
  opacity: 0.85;
}

.renovaciones-counter-badge {
  background: #e2e8f0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 9999px;
}

.renovaciones-history-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.renovacion-item-card {
  display: grid;
  grid-template-columns: 190px 1.2fr 160px auto;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.renovacion-item-card:hover {
  background: #f1f5f9;
}

@media (max-width: 768px) {
  .vigencia-body-grid {
    grid-template-columns: 1fr;
  }

  .renovacion-item-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.map-card-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 16px;
  margin-bottom: 20px;
}

.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.map-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.map-address-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-google-maps {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: #2563eb;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

#leaflet-map-detail {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-sm);
  z-index: 10;
}

/* Acordeón de Visitas realizadas */
.visitas-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #0f172a;
}

.visitas-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.visita-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.visita-header-row {
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #ffffff;
}

.visita-grid-meta {
  display: grid;
  grid-template-columns: 80px 130px 1.5fr 1.5fr;
  gap: 12px;
  font-size: 0.82rem;
  align-items: center;
  flex: 1;
}

.visita-detail-body {
  display: none;
  padding: 12px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9rem;
}

.visita-card.expanded .visita-detail-body {
  display: block;
}

/* ==========================================================================
   PANTALLA 10: VISTA PÚBLICA DE VALIDACIÓN OFICIAL QR
   ========================================================================== */
.qr-public-container {
  max-width: 960px;
  margin: 30px auto 80px;
  padding: 0 20px;
}

.qr-public-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-registro-visita-top {
  background: #22c55e;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
}

.btn-registro-visita-top:hover {
  background: #16a34a;
}

.official-stamp-banner {
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
}

.official-stamp-banner.vigente {
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
}

.stamp-badge-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}

.stamp-establishment-name {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stamp-legend {
  font-size: 0.95rem;
  opacity: 0.9;
}

.public-data-grid {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.public-data-item {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.public-constancia-card-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
  margin-bottom: 28px;
}

.pdf-direct-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.pdf-direct-viewer-box {
  width: 100%;
  height: 640px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #334155;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  position: relative;
}

.pdf-direct-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.btn-ver-doc-link {
  transition: all 0.2s ease;
}

.btn-ver-doc-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .public-constancia-card-box {
    padding: 18px 14px;
  }
  .pdf-direct-viewer-box {
    height: 480px;
  }
}

/* ==========================================================================
   PANTALLA 11: FORMULARIO DE REGISTRO DE VISITA EN CAMPO (IDÉNTICO A CAPTURA 3)
   ========================================================================== */
.visit-page-outer {
  min-height: 100vh;
  background: #d1d5db;
  padding: 40px 20px 80px;
}

.visit-form-box {
  background: #ffffff;
  border-radius: 36px;
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 56px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 3px dotted #cbd5e1;
  position: relative;
}

.visit-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #000000;
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.visit-form-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: #000000;
}

.btn-guardar-visita-green {
  background: #00b894;
  color: #ffffff;
  border: none;
  padding: 10px 36px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.btn-guardar-visita-green:hover {
  background: #00997b;
  transform: translateY(-1px);
}

.input-soft-gray {
  width: 100%;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1e293b;
}

.input-soft-gray:focus {
  outline: none;
  border-color: #00b894;
  background: #f8fafc;
}

.dropzone-dotted-pink {
  border: 2px dashed #f87171;
  background: #fff;
  border-radius: 8px;
  padding: 38px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.dropzone-dotted-pink:hover {
  background: #fef2f2;
  border-color: #ef4444;
}

/* Banners de Acreditación de Supervisores */
.supervisor-accredited-banner {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.supervisor-accredited-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

.supervisor-unregistered-banner {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 24px;
}

/* ==========================================================================
   MODALES (EDITAR PUNTO / AUDITORÍA DE BAJA / QR STICKER)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-window {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalScale 0.25s ease-out;
}

@keyframes modalScale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 18px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Modales Compactos (Alta densidad y eficiencia de espacio) */
.modal-window.modal-compact {
  max-width: 680px;
  border-radius: 12px;
}

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

.form-grid-compact-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.form-group-compact {
  margin-bottom: 8px;
}

.form-label-compact {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.form-input-compact,
.form-select-compact {
  width: 100%;
  height: 32px;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.83rem;
  color: #0f172a;
  box-sizing: border-box;
  transition: var(--transition);
}

.form-input-compact:focus,
.form-select-compact:focus {
  outline: none;
  border-color: var(--primary-red);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.1);
}

.compact-vigencia-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #16a34a;
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 8px;
}

.compact-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Responsividad */
@media (max-width: 768px) {

  .contact-container,
  .about-card-white,
  .mv-grid,
  .form-grid-2,
  .public-data-grid,
  .point-details-collapse {
    grid-template-columns: 1fr;
  }

  .login-screen-wrapper {
    flex-direction: column;
  }

  .login-art-side {
    display: none;
  }

  .login-form-side {
    padding: 30px 20px;
  }
}

/* ==========================================================================
   MODAL UNIVERSAL DE ALERTAS Y NOTIFICACIONES DEL SISTEMA (DISEÑO PROPIO)
   ========================================================================== */
.app-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: dialogFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-dialog-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 34px 30px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);
  text-align: center;
  position: relative;
  animation: dialogPopUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialogPopUp {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.app-dialog-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.app-dialog-icon-box.success {
  background: #ecfdf5;
  color: #10b981;
  border: 3px solid #d1fae5;
}

.app-dialog-icon-box.error {
  background: #fef2f2;
  color: #ef4444;
  border: 3px solid #fee2e2;
}

.app-dialog-icon-box.warning {
  background: #fffbeb;
  color: #f59e0b;
  border: 3px solid #fef3c7;
}

.app-dialog-icon-box.info {
  background: #eff6ff;
  color: #3b82f6;
  border: 3px solid #dbeafe;
}

.app-dialog-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.3;
}

.app-dialog-message {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  white-space: pre-line;
  margin-bottom: 24px;
  word-break: break-word;
}

.app-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.btn-dialog-confirm {
  background: #00b894;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 9999px;
  cursor: pointer;
  flex: 1;
  max-width: 220px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 184, 148, 0.35);
}

.btn-dialog-confirm:hover {
  background: #00997b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 184, 148, 0.45);
}

.btn-dialog-confirm.danger {
  background: #ef4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-dialog-confirm.danger:hover {
  background: #dc2626;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

.btn-dialog-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 9999px;
  cursor: pointer;
  flex: 1;
  max-width: 160px;
  transition: all 0.2s ease;
}

.btn-dialog-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}