/* ==========================================================================
   SISCATAGUA A.P.C. - Portal Web Oficial (Labateca, Norte de Santander)
   Estilos Institucionales & Sistema de Diseño Accesible
   ========================================================================== */

:root {
  /* Paleta Oficial extraída del logotipo */
  --color-primary: #0284c7;       /* Azul Agua Potable */
  --color-primary-dark: #0369a1;  /* Azul Profundo */
  --color-primary-light: #e0f2fe; /* Azul Cielo Suave */
  --color-secondary: #16a34a;     /* Verde Vida / Naturaleza */
  --color-secondary-dark: #15803d;
  --color-secondary-light: #dcfce7;
  --color-accent: #06b6d4;        /* Cyan Agua */
  
  /* Estados */
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;
  --color-info: #0284c7;

  /* Neutros */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-card: #ffffff;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;

  /* Tipografía */
  --font-base: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-size-base: 16px;
  
  /* Sombras y Bordes */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* ==========================================================================
   MODO ALTO CONTRASTE REGLAMENTARIO (MIN TIC / WCAG 2.1 AA / ADA)
   ========================================================================== */
body.high-contrast {
  --color-bg: #000000 !important;
  --color-surface: #121212 !important;
  --color-surface-card: #1e1e1e !important;
  --color-text-main: #ffffff !important;
  --color-text-muted: #e2e8f0 !important;
  --color-border: #fbbf24 !important;
  --color-primary: #38bdf8 !important;
  --color-secondary: #4ade80 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Forzar fondo oscuro e inversión en todos los contenedores y secciones */
body.high-contrast header,
body.high-contrast footer,
body.high-contrast main,
body.high-contrast section,
body.high-contrast article,
body.high-contrast aside,
body.high-contrast nav,
body.high-contrast .container,
body.high-contrast .main-header,
body.high-contrast .main-footer,
body.high-contrast .top-bar,
body.high-contrast .bottom-contact-bar,
body.high-contrast .hero-section,
body.high-contrast .services-section,
body.high-contrast .news-section,
body.high-contrast .campaigns-section,
body.high-contrast .invoice-query-section,
body.high-contrast .status-section,
body.high-contrast .legal-container,
body.high-contrast [style*="background"] {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  color: #ffffff !important;
}

/* Tarjetas y módulos secundarios con fondo gris oscuro y bordes amarillos */
body.high-contrast .service-card,
body.high-contrast .news-card,
body.high-contrast .service-status-card,
body.high-contrast .accordion-item,
body.high-contrast .accordion-header,
body.high-contrast .accordion-content,
body.high-contrast .trazabilidad-container,
body.high-contrast .trazabilidad-table,
body.high-contrast div[style*="border-radius"],
body.high-contrast [style*="background: #f8fafc"],
body.high-contrast [style*="background:#f8fafc"],
body.high-contrast [style*="background: #ffffff"],
body.high-contrast [style*="background:#ffffff"],
body.high-contrast [style*="background: #f0f9ff"],
body.high-contrast [style*="background:#f0f9ff"],
body.high-contrast [style*="background: #f0fdf4"],
body.high-contrast [style*="background:#f0fdf4"] {
  background: #121212 !important;
  background-color: #121212 !important;
  color: #ffffff !important;
  border-color: #fbbf24 !important;
}

/* Encabezados y títulos en Amarillo de Alto Contraste */
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast strong,
body.high-contrast b,
body.high-contrast th,
body.high-contrast .section-tag,
body.high-contrast .brand-text h1,
body.high-contrast [style*="color: var(--color-primary-dark)"],
body.high-contrast [style*="color: var(--color-primary)"],
body.high-contrast [style*="color: #0369a1"],
body.high-contrast [style*="color: #0284c7"],
body.high-contrast [style*="color: #166534"],
body.high-contrast [style*="color: #15803d"],
body.high-contrast [style*="color: #92400e"] {
  color: #fbbf24 !important;
}

/* Textos generales y párrafos en Blanco puro */
body.high-contrast p,
body.high-contrast span:not(.badge-emergency):not(.btn-a11y),
body.high-contrast li,
body.high-contrast label,
body.high-contrast small,
body.high-contrast div,
body.high-contrast td,
body.high-contrast [style*="color: #64748b"],
body.high-contrast [style*="color: #475569"],
body.high-contrast [style*="color: #334155"],
body.high-contrast [style*="color: var(--color-text-muted)"] {
  color: #ffffff !important;
}

/* Enlaces navegables en Cyan de Alto Contraste */
body.high-contrast a {
  color: #38bdf8 !important;
  text-decoration: underline !important;
}

body.high-contrast a:hover,
body.high-contrast a:focus {
  color: #fef08a !important;
}

/* Botones principales en alto contraste */
body.high-contrast .btn-primary,
body.high-contrast .btn-pse,
body.high-contrast .btn-emergency-action,
body.high-contrast .btn-outline-white,
body.high-contrast button:not(.btn-a11y) {
  background: #000000 !important;
  color: #fbbf24 !important;
  border: 2px solid #fbbf24 !important;
  text-decoration: underline !important;
}

body.high-contrast .btn-primary:hover,
body.high-contrast .btn-pse:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

/* Botón de Contraste cuando está activado */
body.high-contrast #toggleContrast,
body.high-contrast .btn-toggle-contrast {
  background: #fbbf24 !important;
  color: #000000 !important;
  font-weight: 900 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 10px #fbbf24 !important;
}

/* Tablas e inputs */
body.high-contrast table,
body.high-contrast th,
body.high-contrast td {
  border: 1px solid #fbbf24 !important;
  color: #ffffff !important;
  background-color: #121212 !important;
}

body.high-contrast th {
  background-color: #1e1e1e !important;
  color: #fbbf24 !important;
}

body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #fbbf24 !important;
}

/* Alertas, avisos y banners */
body.high-contrast .emergency-banner,
body.high-contrast [style*="background: #fffbeb"],
body.high-contrast [style*="background:#fffbeb"] {
  background: #1e1e1e !important;
  border: 2px solid #fbbf24 !important;
}

/* Badges e insignias */
body.high-contrast .badge-emergency,
body.high-contrast .service-badge,
body.high-contrast .hero-pill-badge,
body.high-contrast .status-item-badge,
body.high-contrast .paz-salvo-stamp {
  background: #000000 !important;
  color: #fbbf24 !important;
  border: 1px solid #fbbf24 !important;
}

/* Modo Alto Contraste para la Bienvenida y el Carrusel de Campañas */
body.high-contrast .hero-welcome-section {
  background: #000000 !important;
  border-bottom: 2px solid #fbbf24 !important;
}

body.high-contrast .campaign-slider-section {
  background: #121212 !important;
}

body.high-contrast .slider-showcase-card {
  background: #000000 !important;
  border: 2px solid #fbbf24 !important;
}

body.high-contrast .slide-media-wrap {
  background: #000000 !important;
  border-bottom: 1px solid #fbbf24 !important;
}

body.high-contrast .slide-caption-box {
  background: #000000 !important;
  border-top: 2px solid #fbbf24 !important;
  color: #ffffff !important;
}

body.high-contrast .slide-caption-box h3 {
  color: #fbbf24 !important;
}

body.high-contrast .slide-caption-box h3 span {
  color: #ffffff !important;
}

body.high-contrast .slide-caption-box p {
  color: #ffffff !important;
}

body.high-contrast .slide-tag {
  background: #000000 !important;
  color: #fbbf24 !important;
  border: 1px solid #fbbf24 !important;
}

body.high-contrast .slide-counter {
  background: #1e1e1e !important;
  color: #fbbf24 !important;
  border: 1px solid #fbbf24 !important;
}

body.high-contrast .slider-arrow {
  background: #000000 !important;
  color: #fbbf24 !important;
  border: 2px solid #fbbf24 !important;
}

body.high-contrast .slider-arrow:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

body.high-contrast .slider-footer-controls {
  background: #121212 !important;
  border-top: 2px solid #fbbf24 !important;
}

body.high-contrast .slider-dot {
  background: #475569 !important;
}

body.high-contrast .slider-dot.active {
  background: #fbbf24 !important;
  box-shadow: 0 0 10px #fbbf24 !important;
}

body.high-contrast .slider-timer-fill {
  background: #fbbf24 !important;
}

body.high-contrast .btn-outline-primary {
  background: #000000 !important;
  color: #fbbf24 !important;
  border: 2px solid #fbbf24 !important;
}

body.high-contrast .btn-outline-primary:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

/* ==========================================================================
   SISTEMA DE ESCALADO TIPOGRÁFICO DE ACCESIBILIDAD (A-, A, A+)
   ========================================================================== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  transition: font-size 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html.font-size-sm,
html[data-font-size="sm"] {
  font-size: 13.5px !important;
}

html.font-size-md,
html[data-font-size="md"] {
  font-size: 16px !important;
}

html.font-size-lg,
html[data-font-size="lg"] {
  font-size: 19.5px !important;
}

html.font-size-xl,
html[data-font-size="xl"] {
  font-size: 23px !important;
}

/* Compatibilidad con clases auxiliares en body */
body.font-size-sm {
  font-size: 0.92rem;
}

body.text-large,
body.font-size-lg {
  font-size: 1.12rem;
}

body.text-xlarge,
body.font-size-xl {
  font-size: 1.25rem;
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Contenedor estándar */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   1. Barra Superior de Accesibilidad y Emergencias
   -------------------------------------------------------------------------- */
.top-bar {
  background: linear-gradient(90deg, #0369a1 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #f0fdf4;
  text-decoration: none;
}

.top-bar-item:hover {
  text-decoration: underline;
}

.badge-emergency {
  background-color: #ef4444;
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.accessibility-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-a11y {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-a11y:hover,
.btn-a11y:focus {
  background: #ffffff;
  color: var(--color-primary-dark);
}

.btn-a11y.active {
  background: #ffffff !important;
  color: var(--color-primary-dark) !important;
  border-color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
}

body.high-contrast .btn-a11y.active {
  background: #fbbf24 !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 12px #fbbf24 !important;
}

/* Notificación Flotante de Accesibilidad (Feedback Inmediato de Zoom y Contraste) */
.a11y-toast {
  position: fixed;
  top: 75px;
  right: 25px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  border: 1.5px solid #38bdf8;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.a11y-toast.show {
  opacity: 1;
  transform: translateY(0);
}

body.high-contrast .a11y-toast {
  background: #000000 !important;
  color: #fbbf24 !important;
  border: 2px solid #fbbf24 !important;
}

/* --------------------------------------------------------------------------
   2. Cabecera Principal (Header & Navegación)
   -------------------------------------------------------------------------- */
.main-header {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--color-primary-light);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo {
  height: 68px;
  width: auto;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-primary-light);
  transition: transform 0.3s;
}

.brand-logo:hover {
  transform: scale(1.04);
}

.brand-text h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-text h1 span {
  color: var(--color-secondary);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-slogan {
  font-size: 0.8rem;
  color: var(--color-secondary);
  font-style: italic;
  font-weight: 600;
}

/* Navegación */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.nav-link {
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

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

.btn-pse {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-pse:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.4);
}

/* Menú Móvil */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--color-primary-dark);
  cursor: pointer;
  padding: 0.25rem;
}

/* --------------------------------------------------------------------------
   3.1 Bienvenida Institucional & Estado del Servicio en Vivo
   -------------------------------------------------------------------------- */
.hero-welcome-section {
  position: relative;
  background: linear-gradient(135deg, #091e42 0%, #0369a1 60%, #0284c7 100%);
  color: #ffffff;
  padding: 3.5rem 0 3.25rem 0;
  border-bottom: 3px solid rgba(56, 189, 248, 0.3);
}

.hero-welcome-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-welcome-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-welcome-content h1 span {
  color: #86efac;
  text-shadow: 0 0 20px rgba(134, 239, 172, 0.45);
}

.hero-welcome-desc {
  font-size: 1.08rem;
  color: #e0f2fe;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--color-secondary);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.btn-primary:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.5);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--color-primary-dark);
  border-color: #ffffff;
}

.btn-outline-primary {
  background: transparent;
  color: var(--color-primary);
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--color-primary);
  transition: all 0.2s;
}

.btn-outline-primary:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   3.2 Carrusel Oficial de Fotos & Campañas (Fotos Completas • Texto Abajo)
   -------------------------------------------------------------------------- */
.campaign-slider-section {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 3.5rem 0 4rem 0;
}

.slider-showcase-card {
  max-width: 1040px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
  border: 1px solid #e2e8f0;
}

.slider-viewport {
  position: relative;
  width: 100%;
}

.slider-slides-container {
  position: relative;
  width: 100%;
}

.campaign-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

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

/* Contenedor de Foto Completa (Sin recortes ni distorsión) */
.slide-media-wrap {
  width: 100%;
  height: 460px;
  background: #070f1e;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.slide-full-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

/* Panel de Información Trasladado Debajo de la Foto */
.slide-caption-box {
  padding: 2rem 2.5rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  text-align: left;
}

.slide-caption-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide-counter {
  font-size: 0.85rem;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.slide-caption-box h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.slide-caption-box h3 span {
  color: #0284c7;
}

.slide-caption-box p {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 900px;
}

.slide-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Flechas de Navegación fijas sobre los laterales de la imagen */
.slider-arrow {
  position: absolute;
  top: 230px;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.85;
}

.slider-arrow:hover {
  background: #0284c7;
  border-color: #0284c7;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.6);
  opacity: 1;
}

.slider-arrow.prev {
  left: 1.25rem;
}

.slider-arrow.next {
  right: 1.25rem;
}

/* Controles Inferiores: Dots y Barra de Progreso */
.slider-footer-controls {
  padding: 1.15rem 2rem 1.4rem 2rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.slider-dots-container {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot.active {
  background: #0284c7;
  width: 32px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.5);
}

.slider-timer-bar {
  width: 180px;
  height: 4px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.slider-timer-fill {
  height: 100%;
  width: 0%;
  background: #0284c7;
  transition: width 0.1s linear;
}

.slider-tip-text {
  font-size: 0.78rem;
  color: #94a3b8;
  font-style: italic;
}

/* Tarjeta de Estado del Servicio en Tiempo Real */
.service-status-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  color: var(--color-text-main);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.status-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #dcfce7;
  color: #166534;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #16a34a;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

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

.status-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-success);
}

.status-item-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.status-item-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.status-item-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: #dcfce7;
  color: #15803d;
}

/* --------------------------------------------------------------------------
   4. Accesos Rápidos (Filosofía EPM - Jobs To Be Done)
   -------------------------------------------------------------------------- */
.quick-actions-section {
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  padding-bottom: 3rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.quick-card {
  background: var(--color-surface-card);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.quick-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.2s;
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.quick-card:hover::after {
  opacity: 1;
}

.quick-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.quick-card:hover .quick-card-icon {
  transform: scale(1.1);
}

.icon-blue {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.icon-red {
  background: #fee2e2;
  color: #dc2626;
}

.icon-green {
  background: var(--color-secondary-light);
  color: var(--color-secondary-dark);
}

.icon-amber {
  background: #fef3c7;
  color: #d97706;
}

.quick-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-text-main);
}

.quick-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   5. Sección de Servicios
   -------------------------------------------------------------------------- */
.services-section {
  padding: 4rem 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  color: var(--color-secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--color-border);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.service-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  align-self: flex-start;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.service-features li::before {
  content: '✓';
  color: var(--color-secondary);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   6. Calidad del Agua (IRCA) e Información Técnica
   -------------------------------------------------------------------------- */
.irca-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #e0f2fe 100%);
}

.irca-container {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.irca-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}

.irca-info p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.irca-meter-box {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
}

.irca-value {
  font-size: 3.5rem;
  font-weight: 900;
  color: #15803d;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.irca-status {
  display: inline-block;
  background: #16a34a;
  color: #ffffff;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.irca-norma {
  font-size: 0.8rem;
  color: #4b5563;
}

/* --------------------------------------------------------------------------
   7. Sección Transparencia y MinTIC (Estilo Empopasto)
   -------------------------------------------------------------------------- */
.transparency-preview-section {
  padding: 4rem 0;
  background: #ffffff;
}

.transparency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.transparency-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: var(--color-surface);
  transition: all 0.2s;
  text-decoration: none;
  color: var(--color-text-main);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.transparency-card:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.transparency-icon {
  font-size: 1.75rem;
  color: var(--color-primary);
}

.transparency-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-primary-dark);
}

.transparency-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   8. Acordeón de Ley 1712 de Transparencia
   -------------------------------------------------------------------------- */
.accordion-wrapper {
  margin-top: 2rem;
}

.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-surface);
}

.accordion-header {
  width: 100%;
  padding: 1.2rem 1.5rem;
  text-align: left;
  background: var(--color-surface);
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  transition: background-color 0.2s;
}

.accordion-header:hover {
  background: var(--color-primary-light);
}

.accordion-header .accordion-icon {
  font-size: 1.25rem;
  transition: transform 0.3s;
}

.accordion-item.active .accordion-header .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
  background: #ffffff;
}

.accordion-item.active .accordion-content {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.transparency-links-list {
  list-style: none;
}

.transparency-links-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transparency-links-list li:last-child {
  border-bottom: none;
}

.transparency-link-item {
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.transparency-link-item:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   9. Formularios y PQRSD
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text-main);
  background-color: var(--color-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Modal / Alerta de Radicación Exitosa */
.ticket-success-box {
  display: none;
  background: #f0fdf4;
  border: 2px solid #22c55e;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.ticket-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: #15803d;
  letter-spacing: 1px;
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: #ffffff;
  border: 1px dashed #22c55e;
  display: inline-block;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   10. Pie de Página (Footer)
   -------------------------------------------------------------------------- */
.main-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 1.5rem 0;
  margin-top: auto;
  border-top: 4px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   11. Responsividad Móvil (Para smartphones en Labateca)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid,
  .irca-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--color-primary);
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .hero-content h2 {
    font-size: 2rem;
  }
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
  .services-grid,
  .transparency-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .top-bar-contact {
    gap: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   12. Estilos para Consulta de Factura y Duplicado Digital
   -------------------------------------------------------------------------- */
.factura-card-preview {
  background: #ffffff;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  max-width: 760px;
  margin: 1.5rem auto 0 auto;
}

.factura-header-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-primary-light);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

@media print {
  body * {
    visibility: hidden;
  }
  #facturaPrintArea, #facturaPrintArea * {
    visibility: visible;
  }
  #facturaPrintArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    border: 1px solid #000;
    box-shadow: none;
    padding: 1.5cm;
  }
  .btn-pse, .btn-outline-white, .top-bar, .main-header, .main-footer {
    display: none !important;
  }
}

/* Estilos de Trazabilidad e Historial Público de Pagos */
.trazabilidad-container {
  margin-top: 2rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.trazabilidad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.trazabilidad-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.trazabilidad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.trazabilidad-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}

.trazabilidad-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.trazabilidad-table tbody tr:hover {
  background: #f8fafc;
}

.badge-pago-al-dia {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #dcfce7;
  color: #15803d;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
}

.badge-pago-pendiente {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fef3c7;
  color: #b45309;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
}

.paz-salvo-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ecfdf5;
  border: 2px dashed #059669;
  color: #065f46;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   13. Estilos para Novedades, Obras y Boletines Comunitarios
   -------------------------------------------------------------------------- */
.news-section {
  padding: 4rem 0;
  background: var(--color-bg);
}

.news-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.news-filter-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.news-filter-btn:hover,
.news-filter-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.news-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.news-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.5;
}

.badge-obras {
  background: #fef3c7 !important;
  color: #b45309 !important;
}

.badge-calidad {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}

.badge-ambiental {
  background: #dcfce7 !important;
  color: #15803d !important;
}

/* Modal de Lectura */
.news-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.news-modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.news-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all 0.2s;
}

.news-modal-close:hover {
  background: #ef4444;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-modal-content {
    padding: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   14. Estilos para Ubicación y Mapa Interactivo de Labateca
   -------------------------------------------------------------------------- */
.location-section {
  padding: 4.5rem 0;
  background: #ffffff;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-info-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-surface);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all 0.2s;
}

.contact-channel-item:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.contact-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-border);
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
  flex-grow: 1;
}

.map-overlay-badge {
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 1024px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   15. Estilos para Banner de Avisos Urgentes / Cortes Programados
   -------------------------------------------------------------------------- */
.emergency-banner {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom: 2px solid #f59e0b;
  border-top: 1px solid #fde68a;
  color: #78350f;
  padding: 0.75rem 0;
  position: relative;
  z-index: 90;
  transition: all 0.3s ease;
}

.emergency-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.emergency-banner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 280px;
}

.emergency-banner-badge {
  background: #dc2626;
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  animation: pulse 2s infinite;
}

.emergency-banner-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #78350f;
}

.emergency-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-emergency-action {
  background: #d97706;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.btn-emergency-action:hover {
  background: #b45309;
}

.emergency-close-btn {
  background: rgba(120, 53, 15, 0.1);
  border: none;
  color: #78350f;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.2s;
}

.emergency-close-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

@media (max-width: 768px) {
  .emergency-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .emergency-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .emergency-banner-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.5rem;
  }
}

/* ==========================================================================
   ACCESIBILIDAD UNIVERSAL (ADA, WCAG 2.1 AA, RES. MINTIC 1519 DE 2020)
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--color-primary-dark);
  color: #ffffff !important;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 10000;
  text-decoration: underline;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 10px;
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

/* Indicador de Foco Visible Universal (:focus-visible) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

body.high-contrast a:focus-visible,
body.high-contrast button:focus-visible,
body.high-contrast input:focus-visible,
body.high-contrast textarea:focus-visible,
body.high-contrast select:focus-visible {
  outline: 3px solid #fbbf24 !important;
  outline-offset: 2px;
}

/* ==========================================================================
   BANNER DE CONSENTIMIENTO DE COOKIES Y PRIVACIDAD (RGPD / LEY 1581)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0f172a;
  color: #f8fafc;
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  padding: 1.25rem 0;
  display: none;
  animation: slideUpCookie 0.3s ease-out forwards;
}

@keyframes slideUpCookie {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
  }
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-banner-text {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.cookie-banner-text strong {
  color: #ffffff;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.cookie-banner-text a {
  color: #38bdf8;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-text a:hover {
  color: #7dd3fc;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: #16a34a;
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-cookie-accept:hover {
  background: #15803d;
}

.btn-cookie-necessary {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid #475569;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cookie-necessary:hover {
  background: #1e293b;
  border-color: #94a3b8;
  color: #ffffff;
}

@media (max-width: 900px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   ESTILOS PARA PÁGINA LEGAL, PRIVACIDAD Y DERECHOS ARCO
   ========================================================================== */
.legal-container {
  max-width: 1080px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}

.legal-header {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.legal-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.legal-header p {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

.legal-badge-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.legal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.legal-card h2 {
  font-size: 1.45rem;
  color: var(--color-primary-dark);
  font-weight: 800;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-card h3 {
  font-size: 1.15rem;
  color: var(--color-text-main);
  font-weight: 700;
  margin: 1.5rem 0 0.75rem 0;
}

.legal-card p,
.legal-card li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-main);
  margin-bottom: 0.85rem;
}

.legal-highlight-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  font-size: 0.92rem;
  color: #14532d;
}

.legal-warning-box {
  background: #fefce8;
  border-left: 4px solid #ca8a04;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  font-size: 0.92rem;
  color: #713f12;
}

.arco-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.arco-step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border-top: 3px solid var(--color-primary);
}

.arco-step-number {
  background: var(--color-primary);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.arco-step-card h4 {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.arco-step-card p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.footer-legal-links a,
.footer-legal-links button {
  color: #94a3b8;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  transition: color 0.2s;
  padding: 0;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* ==========================================================================
   WIDGET FLOTANTE Y ANIMADO DE LA MASCOTA "BLU" (GIRO Y SALUDO)
   ========================================================================== */
.blu-floating-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9990;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.blu-avatar-wrapper {
  pointer-events: auto;
  position: relative;
  width: 76px;
  height: 76px;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  padding: 0;
  outline: none;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.4), 0 0 0 3px #ffffff, 0 0 0 6px #38bdf8;
  background: #ffffff;
  animation: bluSpinEnter 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, bluFloat 3s ease-in-out infinite 1.2s;
  transition: transform 0.3s;
}

.blu-avatar-wrapper:hover {
  transform: scale(1.08) !important;
}

.blu-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.blu-wave-hand {
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 1.4rem;
  background: #ffffff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: bluWave 1.8s ease-in-out infinite 1.2s;
  transform-origin: 70% 70%;
}

.blu-speech-bubble {
  display: none;
  pointer-events: none;
  background: #ffffff;
  color: #1e293b;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(2, 132, 199, 0.15);
  max-width: 270px;
  font-size: 0.86rem;
  line-height: 1.45;
  position: relative;
  margin-bottom: 8px;
  opacity: 0;
  transform: scale(0.85) translateY(10px);
  transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blu-speech-bubble.active {
  display: block;
  pointer-events: auto;
  opacity: 1;
  transform: scale(1) translateY(0);
}

.blu-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: 18px;
  right: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #ffffff;
}

.blu-speech-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.blu-speech-title {
  font-weight: 800;
  color: #0284c7;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.blu-close-btn {
  background: #f1f5f9;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: bold;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.blu-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.blu-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #e2e8f0;
}

.blu-quick-link-item {
  color: #0369a1;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  background: #f0f9ff;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.blu-quick-link-item:hover {
  background: #e0f2fe;
}

/* Animaciones del Giro de 360 grados, Flotación y Saludo */
@keyframes bluSpinEnter {
  0% {
    transform: translateY(80px) rotate(-360deg) scale(0);
    opacity: 0;
  }
  70% {
    transform: translateY(-8px) rotate(12deg) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
}

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

@keyframes bluWave {
  0%, 100% {
    transform: rotate(0deg);
  }
  20%, 60% {
    transform: rotate(24deg);
  }
  40%, 80% {
    transform: rotate(-14deg);
  }
}

@keyframes popInBubble {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 640px) {
  .blu-floating-widget {
    bottom: 75px;
    right: 15px;
  }
  .blu-speech-bubble {
    max-width: 220px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   BARRA DE ATENCIÓN Y ACCESIBILIDAD AL FINAL DE LA PÁGINA (OPCIONAL/COMPLEMENTARIA)
   ========================================================================== */
.bottom-contact-bar {
  background: #0284c7;
  color: #ffffff;
  padding: 0.85rem 0;
  border-top: 3px solid #38bdf8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.bottom-contact-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

body.high-contrast .bottom-contact-bar {
  background: #000000 !important;
  border-top: 3px solid #fbbf24 !important;
  border-bottom: 1px solid #ffffff !important;
}

body.high-contrast .blu-speech-bubble {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #fbbf24 !important;
}

body.high-contrast .blu-speech-bubble::after {
  border-left-color: #fbbf24 !important;
}

body.high-contrast .blu-quick-link-item {
  background: #1e1e1e !important;
  color: #fbbf24 !important;
}

/* Responsividad para Bienvenida y Carrusel de Campañas */
@media (max-width: 992px) {
  .hero-welcome-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .slide-media-wrap {
    height: 380px;
  }
  .slider-arrow {
    top: 190px;
  }
}

@media (max-width: 640px) {
  .hero-welcome-content h1 {
    font-size: 1.85rem;
  }
  .slide-media-wrap {
    height: 250px;
  }
  .slider-arrow {
    top: 125px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .slider-arrow.prev { left: 0.5rem; }
  .slider-arrow.next { right: 0.5rem; }
  .slide-caption-box {
    padding: 1.25rem 1rem;
  }
  .slide-caption-box h3 {
    font-size: 1.25rem;
  }
}


