@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600&family=Work+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --corporate-navy: #002F5D;
  --corporate-navy-dark: #001C37;
  --institutional-orange: #C77B28;
  --orange-accent: #9F4200;
  --orange-light: #F27121;
  --coral-accent: #E15B45;
  --teal-accent: #00B4B4;
  --pure-white: #FFFFFF;
  --neutral-bg: #F4F6F9;
  --card-bg: #FFFFFF;
  
  --text-main: #191C1D;
  --text-muted: #584237;
  --text-sub: #64748B;
  
  --border-subtle: rgba(0, 47, 93, 0.08);

  --shadow-card: 0 10px 30px -5px rgba(0, 47, 93, 0.07);
  --shadow-md: 0 18px 36px -6px rgba(0, 47, 93, 0.12);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-sans);
  background-color: #F8FAFC;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Full Width & Responsive Application Container for Mobile, Tablet & Desktop */
.app-container {
  width: 100%;
  max-width: 100%;
  background-color: var(--neutral-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  body {
    background-color: #F1F5F9;
    padding: 0;
  }

  .app-container {
    max-width: 1380px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 35px rgba(0, 47, 93, 0.09);
    border: none;
    border-radius: 0;
    padding-bottom: 40px;
  }
}

/* Institutional Web Header Modernizado (estilo adventistas.org) */
.web-institutional-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid #E2E8F0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 6px 20px rgba(0, 47, 93, 0.08);
}

.web-header-top-accent {
  height: 5px;
  background: linear-gradient(90deg, #002F5D 0%, #C77B28 50%, #00B4B4 100%);
}

.web-header-container {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}

.web-header-brand {
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-right: 48px;
}

/* Logo Oficial ajustado al tamaño prominente de adventistas.org */
.web-header-brand img {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.web-header-brand img:hover {
  transform: scale(1.02);
}

.web-desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .web-desktop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

/* Links de Navegación Más Grandes, Claros y Mejor Diseñados */
.web-nav-link {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--corporate-navy);
  text-decoration: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  border: 1px solid transparent;
}

.web-nav-link i {
  font-size: 19px;
  color: var(--institutional-orange);
  transition: color 0.2s ease, transform 0.2s ease;
}

.web-nav-link:hover {
  background-color: rgba(0, 47, 93, 0.08);
  color: var(--corporate-navy);
  transform: translateY(-2px);
  border-color: rgba(199, 123, 40, 0.3);
}

.web-nav-link:hover i {
  transform: scale(1.15);
}

.web-nav-link.active {
  background: linear-gradient(135deg, #002F5D 0%, #001C37 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 47, 93, 0.28);
  border-bottom: 3px solid var(--institutional-orange);
}

.web-nav-link.active i {
  color: var(--institutional-orange) !important;
}

.web-header-user-badge {
  display: none;
}

@media (min-width: 768px) {
  .web-header-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--corporate-navy);
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 47, 93, 0.04);
  }
}

/* Botonera de Acción de Alta Gama estilo Zoom (Text link + Outline pill + Solid primary pill) */
.zoom-style-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 1. Enlace Limpio de Texto 'Iniciar sesión' estilo Zoom */
.zoom-btn-login-link {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--corporate-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.zoom-btn-login-link:hover {
  background: rgba(0, 47, 93, 0.08);
  color: var(--institutional-orange);
}

.zoom-btn-login-link i {
  color: var(--institutional-orange);
  font-size: 14px;
}

/* 2. Botón De Contorno Estilo Pill (como 'Contacto con ventas' de Zoom) */
.zoom-btn-outline-pill {
  background: #FFFFFF;
  color: var(--corporate-navy);
  border: 1.5px solid var(--corporate-navy);
  padding: 8px 18px;
  border-radius: 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 47, 93, 0.05);
}

.zoom-btn-outline-pill:hover {
  background: var(--corporate-navy);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 47, 93, 0.15);
}

.zoom-btn-outline-pill i {
  color: var(--institutional-orange);
  transition: color 0.2s ease;
}

.zoom-btn-outline-pill:hover i {
  color: #FFD166;
}

/* 3. Botón Sólido Primario Naranja Pill (como 'Comenzar gratis' de Zoom) */
.zoom-btn-primary-pill {
  background: linear-gradient(135deg, #E86C14 0%, #D65A00 100%);
  color: #FFFFFF;
  padding: 9px 20px;
  border-radius: 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(232, 108, 20, 0.35);
  transition: all 0.2s ease;
}

.zoom-btn-primary-pill:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(232, 108, 20, 0.45);
  background: linear-gradient(135deg, #F97A22 0%, #E86C14 100%);
}

.zoom-btn-primary-pill i {
  font-size: 13px;
}

/* Sub-Header & Breadcrumb */
.web-sub-header {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border-bottom: 1px solid #E2E8F0;
  padding: 10px 0;
}

.web-sub-header-container {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  font-size: 12px;
  color: var(--text-sub);
}

@media (max-width: 600px) {
  .web-sub-header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

.web-breadcrumb span {
  color: var(--text-sub);
}

.web-breadcrumb strong {
  color: var(--corporate-navy);
}

.web-jurisdiction-pill {
  background-color: var(--pure-white);
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid #CBD5E1;
  font-weight: 700;
  color: var(--corporate-navy);
}

/* Hide Bottom Nav on Desktop */
@media (min-width: 768px) {
  .bottom-nav {
    display: none !important;
  }
}

/* Login Overlay - Diseño Integrado 2 Columnas con Barra Superior & Carrusel de Novedades */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 15%, #163B7A 0%, #081C44 55%, #020A1C 100%) !important;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-y: auto;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease-in-out;
}

.login-overlay.hidden {
  display: none !important;
}

/* 1. BARRA SUPERIOR DEL INICIO DE SESIÓN */
.login-top-bar {
  width: 100%;
  background: rgba(2, 10, 28, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 10;
}

.login-top-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.login-top-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  background: #FFFFFF;
  padding: 4px 8px;
  border-radius: 8px;
}

.login-top-brand-text {
  font-family: var(--font-sans);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.login-top-brand-text strong {
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.login-top-brand-text span {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 500;
}

/* Menú de Iconos y Accesos Rápidos */
.login-top-nav-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-top-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  padding: 7px 14px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.login-top-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.login-top-nav-btn.active {
  background: var(--institutional-orange);
  border-color: var(--institutional-orange);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(232, 108, 20, 0.35);
}

.login-top-close-btn {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
  padding: 7px 16px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  margin-left: 6px;
}

.login-top-close-btn:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* 2. CONTENEDOR PRINCIPAL DOS COLUMNAS (MAIN CONTAINER) */
.login-main-container {
  max-width: 1100px;
  width: 92%;
  margin: auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .login-main-container {
    grid-template-columns: 1fr;
    padding: 24px 0;
    gap: 24px;
  }

  .login-top-nav-btn span {
    display: none;
  }
}

/* 3. COLUMNA IZQUIERDA: HERO PANEL DE NOVEDADES Y CARRUSEL */
.login-hero-panel {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 36px 32px 28px 32px;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.login-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid rgba(255, 209, 102, 0.35);
  color: #FFD166;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Slides */
.login-carousel-wrapper {
  position: relative;
  min-height: 240px;
}

.login-carousel-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: fadeIn 0.4s ease-in-out;
}

.login-carousel-slide.active {
  display: block;
  opacity: 1;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 108, 20, 0.2);
  border: 1px solid rgba(232, 108, 20, 0.4);
  color: #F97A22;
  padding: 4px 12px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.slide-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.slide-description {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #CBD5E1;
  margin: 0 0 20px 0;
  line-height: 1.6;
  font-weight: 400;
}

.slide-footer-info {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}

/* Controls */
.login-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-arrow {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--institutional-orange);
  border-color: var(--institutional-orange);
  transform: scale(1.08);
}

.login-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}

.login-carousel-dot.active {
  width: 24px;
  border-radius: 12px;
  background: var(--institutional-orange);
}

/* Tarjeta Flotante Estilo Zoom */
.zoom-login-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 40px 36px 32px 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
  text-align: center;
  position: relative;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Encabezado con Logo Oficial de la Imagen */
.zoom-login-header {
  margin-bottom: 24px;
}

/* Aviso de Autenticación Requerida */
.login-auth-notice {
  background: rgba(232, 108, 20, 0.12);
  border: 1.5px solid rgba(232, 108, 20, 0.4);
  color: #0B2559;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.4;
  animation: fadeIn 0.25s ease-in-out;
}

.zoom-login-logo {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 16px;
}

.zoom-login-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  color: #0B2559;
  margin: 0 0 6px 0;
  letter-spacing: -0.4px;
}

.zoom-login-subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #64748B;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

/* Formulario */
.zoom-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.zoom-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zoom-input-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #0B2559;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zoom-input-label i {
  color: #E86C14;
  font-size: 13px;
}

.zoom-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix-icon {
  position: absolute;
  left: 16px;
  color: #0B2559;
  font-size: 16px;
  pointer-events: none;
  opacity: 0.8;
}

.zoom-input-box input {
  width: 100%;
  height: 50px;
  background-color: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 0 44px 0 44px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #0B2559;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.zoom-input-box input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.zoom-input-box input:focus {
  background-color: #FFFFFF;
  border-color: #0B2559;
  box-shadow: 0 0 0 4px rgba(11, 37, 89, 0.12);
}

.btn-toggle-pin {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #64748B;
  padding: 8px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.btn-toggle-pin:hover {
  color: #0B2559;
}

/* Botón Sólido de Envío Gran Tamaño Zoom */
.zoom-btn-submit {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #E86C14 0%, #D65A00 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  box-shadow: 0 6px 20px rgba(232, 108, 20, 0.35);
  transition: all 0.22s ease;
}

.zoom-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 108, 20, 0.48);
  background: linear-gradient(135deg, #F97A22 0%, #E86C14 100%);
}

.zoom-btn-submit i {
  font-size: 16px;
}

/* Pie de Tarjeta */
.zoom-login-card-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.zoom-link-help {
  background: none;
  border: none;
  color: #0B2559;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.zoom-link-help:hover {
  color: #E86C14;
  text-decoration: underline;
}

.zoom-brand-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zoom-brand-tag i {
  color: #0B2559;
}

.login-footer-exact strong {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 900;
  color: #002F5D;
  letter-spacing: -0.5px;
}

.login-footer-exact span {
  font-size: 13px;
  font-weight: 700;
  color: #002F5D;
}

/* App Main Content Area */
.app-content {
  flex: 1;
  padding: 16px;
}

@media (min-width: 768px) {
  .app-content {
    padding: 28px 36px;
  }
}

/* Tab Views Switcher */
.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

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

/* Typography & Headings */
.view-title-main {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  color: var(--corporate-navy);
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .view-title-main {
    font-size: 24px;
  }
}

.section-heading {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--corporate-navy);
  margin: 14px 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 14px;
    margin: 18px 0 10px 0;
  }
}

/* Modern Card Component */
.stitch-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.stitch-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(199, 123, 40, 0.25);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .stitch-card {
    padding: 22px;
    margin-bottom: 16px;
  }
}

.stitch-card-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--corporate-navy);
  margin-bottom: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (min-width: 768px) {
  .stitch-card-title {
    font-size: 16px;
  }
}

/* Admin Sub-Tabs Bar (Navegación de Sub-Paneles de Administración) */
.admin-sub-tabs-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #CBD5E1;
  -webkit-overflow-scrolling: touch;
}

.admin-subtab-btn {
  padding: 8px 14px;
  border-radius: 12px;
  background-color: #F1F5F9;
  color: var(--corporate-navy);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-subtab-btn i {
  color: var(--institutional-orange);
  font-size: 13px;
}

.admin-subtab-btn:hover {
  background-color: rgba(0, 47, 93, 0.08);
  border-color: var(--corporate-navy);
}

.admin-subtab-btn.active {
  background: linear-gradient(135deg, #002F5D 0%, #001C37 100%);
  color: #FFFFFF;
  border-color: var(--corporate-navy);
  box-shadow: 0 4px 12px rgba(0, 47, 93, 0.22);
}

.admin-subtab-btn.active i {
  color: var(--institutional-orange) !important;
}

/* Sub-Paneles Contenedores */
.admin-subpanel {
  display: none;
}

.admin-subpanel.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

/* Grid-4 Layout Utility */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Executive Chart Micro-animations & Glassmorphism */
.stat-bar-group {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}
.stat-bar-group:hover {
  transform: translateY(-6px) scale(1.04);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
}

/* Tree Structure View for Zonas, Distritos, Iglesias */
.tree-node-zona {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.tree-node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--corporate-navy);
  margin-bottom: 8px;
}

.tree-distrito-badge {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 6px;
  font-size: 11px;
}

/* Audit Log Rows */
.audit-log-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.audit-log-item:last-child {
  border-bottom: none;
}

.audit-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 47, 93, 0.08);
  color: var(--corporate-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Responsive Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (min-width: 768px) {
  .grid-3 {
    gap: 16px;
  }
}

/* News Carousel (Horizontal Scroll on Mobile, Responsive Multi-Card on Desktop) */
.news-carousel-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .news-carousel-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    overflow-x: visible;
  }
}

.news-card-stitch {
  min-width: 250px;
  max-width: 280px;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.news-card-stitch:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--institutional-orange);
}

@media (min-width: 768px) {
  .news-card-stitch {
    min-width: 100%;
    max-width: 100%;
  }
}

.card-img-avatar-container {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .card-img-avatar-container {
    height: 140px;
  }
}

.card-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card-stitch:hover .card-banner-img {
  transform: scale(1.05);
}

.card-avatar-circle-badge {
  position: absolute;
  bottom: -18px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--pure-white);
  box-shadow: 0 4px 12px rgba(199, 123, 40, 0.35);
  overflow: hidden;
  background-color: var(--pure-white);
}

.card-avatar-circle-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title-navy {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--corporate-navy);
  margin-bottom: 2px;
}

.card-author-navy {
  font-size: 11px;
  font-weight: 700;
  color: var(--institutional-orange);
  margin-bottom: 8px;
}

.drop-cap-text {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.5;
}

.drop-cap-text::first-letter {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  color: var(--corporate-navy);
  float: left;
  line-height: 0.8;
  margin-right: 4px;
}

/* Past Weeks & Selector Pills Modernos */
.past-weeks-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.past-week-pill {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background-color: #F1F5F9;
  color: var(--corporate-navy);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.past-week-pill:hover {
  background-color: rgba(0, 47, 93, 0.08);
  border-color: var(--corporate-navy);
  transform: translateY(-1px);
}

.past-week-pill.active {
  background: linear-gradient(135deg, #002F5D 0%, #001C37 100%);
  color: var(--pure-white);
  border-color: var(--corporate-navy);
  box-shadow: 0 4px 10px rgba(0, 47, 93, 0.2);
}

/* Asistencia Type Selector (Sábado, Familia, Poder) */
.asistencia-type-pill {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background-color: #F1F5F9;
  color: var(--corporate-navy);
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.asistencia-type-pill.active {
  background-color: var(--corporate-navy);
  color: var(--pure-white);
  border-color: var(--corporate-navy);
}

/* Badges & Tags */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-aprobada {
  background-color: rgba(0, 180, 180, 0.15);
  color: var(--teal-accent);
}

.badge-pendiente {
  background-color: rgba(199, 123, 40, 0.15);
  color: var(--institutional-orange);
}

.badge-programada {
  background-color: rgba(0, 47, 93, 0.15);
  color: var(--corporate-navy);
}

.badge-borrador {
  background-color: rgba(100, 116, 139, 0.15);
  color: var(--text-sub);
}

/* Progress Bar Component */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--corporate-navy) 0%, var(--institutional-orange) 100%);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Document Item List Row */
.document-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.document-item:last-child {
  border-bottom: none;
}

.document-info h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.document-info p {
  font-size: 10px;
  color: var(--text-sub);
  margin-top: 2px;
}

/* Role item in Admin */
.role-item-card {
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.role-item-card:last-child {
  border-bottom: none;
}

.role-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.role-badge-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  background-color: rgba(0, 47, 93, 0.08);
  color: var(--corporate-navy);
}

.role-item-card h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--corporate-navy);
  font-weight: 700;
}

.role-item-card p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Materiales Cards */
.material-template-card {
  background: var(--pure-white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.material-template-card.active,
.material-template-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--institutional-orange);
}

.material-card-img-wrap {
  width: 100%;
  height: 75px;
  overflow: hidden;
  position: relative;
  background-color: #F1F5F9;
}

.material-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-card-icon-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background-color: var(--pure-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--orange-light);
  border: 1px solid rgba(242, 113, 33, 0.2);
}

.material-card-body {
  padding: 20px 6px 12px 6px;
  text-align: center;
  width: 100%;
}

.material-card-body h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

/* Materiales Line Inputs */
.material-line-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #CBD5E1;
  padding: 10px 0;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: transparent;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

.material-line-input:focus {
  border-bottom-color: var(--corporate-navy);
}

/* Document Realistic Paper View */
.document-paper-container {
  background-color: #F1F5F9;
  padding: 20px 14px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
}

.document-paper {
  background-color: var(--pure-white);
  width: 100%;
  max-width: 450px;
  padding: 24px 20px;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.document-paper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 18px 18px 0;
  border-style: solid;
  border-color: #E2E8F0 #F1F5F9;
  display: block;
  width: 0;
  box-shadow: -1px 1px 2px rgba(0,0,0,0.1);
}

.document-title-preview {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  margin: 12px 0;
  letter-spacing: 0.5px;
}

.document-body-preview {
  font-size: 11px;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.document-footer-preview {
  font-size: 10px;
  color: var(--text-sub);
}

/* Generar PDF Big Orange Button */
.btn-generar-pdf-exact {
  width: 100%;
  height: 50px;
  background-color: var(--orange-light);
  color: var(--pure-white);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(242, 113, 33, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-generar-pdf-exact:hover {
  background-color: var(--orange-accent);
}

/* Actas Action Cards */
.actas-action-card {
  background: var(--pure-white);
  border: 1.5px solid rgba(199, 123, 40, 0.4);
  border-radius: 20px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.2s ease;
}

.actas-action-card:hover {
  transform: translateY(-2px);
  border-color: var(--corporate-navy);
  box-shadow: var(--shadow-md);
}

.actas-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: rgba(0, 47, 93, 0.08);
  color: var(--corporate-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}

.actas-action-card h3 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--corporate-navy);
  margin-bottom: 2px;
}

.actas-action-card p {
  font-size: 10px;
  color: var(--text-sub);
}

.btn-navy {
  width: 100%;
  padding: 12px;
  background-color: var(--corporate-navy);
  color: var(--pure-white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 47, 93, 0.15);
}

/* Asistencia Rapida Cards Modernas */
.asistencia-rapida-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s ease;
}

.asistencia-rapida-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(199, 123, 40, 0.3);
}

.asistencia-rapida-top {
  width: 100%;
  background: linear-gradient(135deg, #002F5D 0%, #001C37 100%);
  color: var(--pure-white);
  padding: 14px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.asistencia-rapida-body {
  padding: 12px 6px;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.asistencia-rapida-body h4 {
  font-family: var(--font-serif);
  font-size: 12px;
  color: var(--corporate-navy);
  font-weight: 700;
  line-height: 1.2;
}

.btn-stitch-asistencia {
  width: 100%;
  background: linear-gradient(135deg, #002F5D 0%, #001C37 100%);
  color: var(--pure-white);
  border: none;
  padding: 8px 4px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 47, 93, 0.2);
}

.btn-stitch-asistencia:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

/* Bottom Navigation Bar (Mobile Viewports Only) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px 10px 12px;
  z-index: 100;
  box-shadow: 0 -6px 20px rgba(0, 47, 93, 0.08);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #64748B;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-serif);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  flex: 1;
}

.nav-item i {
  font-size: 18px;
}

.nav-item.active {
  color: var(--institutional-orange);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -8px;
  width: 28px;
  height: 3px;
  background-color: var(--institutional-orange);
  border-radius: var(--radius-full);
}

/* Counter Box & Controls */
.counter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #F8FAFC;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #E2E8F0;
}

.counter-info h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--corporate-navy);
}

.btn-counter {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: none;
  background-color: var(--corporate-navy);
  color: var(--pure-white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asistencia-manual-input {
  width: 60px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--corporate-navy);
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 4px;
}

.ssr-footer-tag {
  text-align: center;
  font-size: 10px;
  color: var(--text-sub);
  margin: 20px 0 10px 0;
  opacity: 0.7;
}

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

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--corporate-navy);
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  background-color: var(--neutral-bg);
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-main);
  outline: none;
}

/* Unread Notification Red/Orange Badge Dot */
.nav-notification-dot {
  position: absolute;
  top: -2px;
  right: 18%;
  width: 9px;
  height: 9px;
  background-color: #EF4444;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(239, 68, 68, 0.6);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Floating Banner for New Unread Items */
.unread-news-banner {
  background: linear-gradient(135deg, #002F5D 0%, #004080 100%);
  color: #FFFFFF;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 47, 93, 0.25);
  border: 1px solid rgba(199, 123, 40, 0.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
