/* CSS extraído de views/originals/index.php
   Contiene estilos específicos de la página inicio (head <style>)
   y estilos del bloque del mapa (moved from footer inline <style>) */

:root {
  /* Colores GOV.CO */
  --govco-blue: #3366cc;
  --govco-blue-dark: #004884;
  --govco-blue-light: #c6d5f6;
  --govco-blue-hover: #2952a3;

  /* Colores Institucionales */
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #66bb6a;
  --secondary: #ffa726;
  --secondary-dark: #f57c00;
  --accent: #1565c0;

  /* Neutrales */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  /* Estados */
  --success: #16a34a;
  --warning: #f59e0b;
  --error: #dc2626;
  --info: #0ea5e9;

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --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),
    0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Tipografía */
  --font-primary: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  /* Transiciones */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--gray-50);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--govco-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--govco-blue-hover);
}

/* ==================== UTILIDADES ==================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================== SKIP LINKS ==================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--govco-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-fast);
}
.skip-link:focus {
  top: 0;
}

/* ==================== TOP BAR GOV.CO ==================== */
/* Estilos removidos - usar estilos globales de style.css */

/* ==================== WIDGET DE ACCESIBILIDAD FLOTANTE */
.accessibility-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
}
.accessibility-fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--govco-blue), var(--primary));
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(51, 102, 204, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  line-height: 1;
}
.accessibility-fab svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  margin: 0;
}
.accessibility-widget .active-badge {
  top: -6px;
  right: -6px;
}
.accessibility-fab::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.accessibility-fab:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(51, 102, 204, 0.5);
}
.accessibility-fab:hover::before {
  width: 300px;
  height: 300px;
}
.accessibility-fab:active {
  transform: scale(0.95);
}
.accessibility-fab.active {
  border-radius: 16px;
}
.accessibility-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  max-height: 600px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.accessibility-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.accessibility-header {
  background: linear-gradient(135deg, var(--govco-blue), var(--primary));
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.accessibility-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.2;
}
.accessibility-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
}
.accessibility-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}
.accessibility-content {
  padding: 1.5rem;
  max-height: 500px;
  overflow-y: auto;
}
.accessibility-content::-webkit-scrollbar {
  width: 8px;
}
.accessibility-content::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 10px;
}
.accessibility-content::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 10px;
}
.accessibility-content::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}
.accessibility-group {
  margin-bottom: 1.5rem;
}
.accessibility-group:last-child {
  margin-bottom: 0;
}
.accessibility-group-title {
  font-size: 0.813rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.accessibility-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
}
.accessibility-option:hover {
  background: var(--gray-100);
  border-color: var(--govco-blue-light);
  transform: translateX(4px);
}
.accessibility-option-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}
.accessibility-option-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(
    135deg,
    var(--govco-blue-light),
    var(--govco-blue)
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--govco-blue-dark);
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}
.accessibility-option-icon::before {
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
.accessibility-option-text {
  flex: 1;
}
.accessibility-option-label {
  font-weight: 600;
  color: var(--gray-900);
  display: block;
  margin-bottom: 0.125rem;
  font-size: 0.938rem;
}
.accessibility-option-description {
  font-size: 0.75rem;
  color: var(--gray-600);
}
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: 0.3s;
  border-radius: 34px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--govco-blue), var(--primary));
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}
.text-size-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.text-size-btn {
  background: white;
  border: 2px solid var(--gray-300);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gray-700);
  font-size: 1.25rem;
  line-height: 1;
}
.text-size-btn:hover {
  border-color: var(--govco-blue);
  color: var(--govco-blue);
  transform: scale(1.1);
}
.text-size-btn:active {
  transform: scale(0.95);
}
.text-size-display {
  background: var(--govco-blue-light);
  color: var(--govco-blue-dark);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.938rem;
  min-width: 60px;
  text-align: center;
}
.accessibility-reset {
  width: 100%;
  background: linear-gradient(135deg, var(--error), #ef4444);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  line-height: 1;
}
.accessibility-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}
.accessibility-reset:active {
  transform: translateY(0);
}
.active-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--error);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 3px solid white;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }
}
@media (max-width: 768px) {
  .accessibility-widget {
    bottom: 1rem;
    right: 1rem;
  }
  .accessibility-fab {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
  .accessibility-panel {
    width: calc(100vw - 2rem);
    max-width: 360px;
  }
}

/* ==================== HEADER ==================== */
/* Estilos del header removidos - usar estilos globales de style.css */

/* ==================== NAVEGACIÓN ==================== */
/* NOTA: Todos los estilos del navbar (.menu-principal, .menu-toggle, .menu-link, etc.)
   están centralizados en navbar.css para mantener la separación de responsabilidades.
   No agregar estilos del navbar aquí para evitar conflictos. */

/* ==================== MAPA DE UBICACIÓN (SOLO EN INDEX) ==================== */
.mapa-sede.section {
  padding: 3rem 0 1rem;
  margin-bottom: 0;
  background: linear-gradient(180deg, rgba(46, 125, 50, 0.05) 0%, rgba(46, 125, 50, 0.02) 50%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.mapa-sede::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(46, 125, 50, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.mapa-sede .container {
  position: relative;
  z-index: 1;
}

.mapa-wrap {
  display: block;
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  padding-bottom: 0;
}

.mapa-panel {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid rgba(46, 125, 50, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mapa-panel.mapa-frame-container {
  display: block;
  height: auto;
  padding: 0;
  margin: 0;
  position: relative;
  width: 100%;
}

.mapa-panel:hover {
  box-shadow: 0 20px 60px rgba(46, 125, 50, 0.15);
  transform: translateY(-4px);
}

.mapa-frame-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: block;
  padding: 0;
  margin: 0;
}

.mapa-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 60%; /* Ratio más alto para mapa más grande */
  background: var(--gray-100);
  margin: 0;
  padding-top: 0;
}

.mapa-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(1.1) contrast(1.05);
  transition: filter 0.3s ease;
}

.mapa-panel:hover .mapa-frame iframe {
  filter: saturate(1.2) contrast(1.1);
}

/* Panel de Información como Overlay */
.mapa-info-overlay {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: auto;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.mapa-info-overlay .mapa-info-header {
  margin-bottom: 1rem;
  padding-bottom: 0;
  border-bottom: none;
}

.mapa-info-overlay .mapa-info-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

.mapa-info-overlay .mapa-info-content {
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mapa-info-overlay .mapa-info-item {
  padding: 0;
  background: transparent;
  border-left: none;
  gap: 0;
  flex-direction: column;
  align-items: flex-start;
}

.mapa-info-overlay .mapa-info-item:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

.mapa-info-overlay .mapa-info-item strong {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.mapa-info-overlay .mapa-info-item p {
  margin: 0;
  font-size: 0.938rem;
  color: var(--gray-900);
  font-weight: 500;
  line-height: 1.4;
}

.mapa-info-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.mapa-link {
  color: var(--govco-blue);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.mapa-link:hover {
  color: var(--govco-blue-dark);
  text-decoration: underline;
}

.mapa-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Estilos legacy para compatibilidad (se eliminarán) */
.mapa-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: white;
}

.mapa-info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 1rem;
}

.mapa-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.mapa-info-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}

.mapa-info-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

.mapa-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mapa-info-item:hover {
  background: white;
  border-left-color: var(--primary);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.1);
  transform: translateX(4px);
}

.mapa-info-icon {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

.mapa-info-text {
  flex: 1;
}

.mapa-info-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.mapa-info-text p {
  margin: 0;
  color: var(--gray-900);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.mapa-info-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.mapa-info-text a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.mapa-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--gray-200);
}

.mapa-badges .badge {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(46, 125, 50, 0.05));
  color: var(--primary-dark);
  padding: 0.625rem 1.125rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(46, 125, 50, 0.2);
  transition: all 0.3s ease;
}

.mapa-badges .badge:hover {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.2), rgba(46, 125, 50, 0.1));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.mapa-badges .badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mapa-actions {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--gray-200);
}

.mapa-actions .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.938rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.mapa-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.mapa-actions .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.mapa-actions .btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.mapa-actions .btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

.mapa-actions .btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .mapa-frame {
    padding-bottom: 55%;
  }

  .mapa-info-overlay {
    max-width: 320px;
    top: 1.5rem;
    left: 1.5rem;
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .mapa-sede.section {
    padding: 2.5rem 0 1rem;
  }

  .mapa-wrap {
    margin-top: 1.5rem;
  }

  .mapa-frame {
    padding-bottom: 70%; /* Más alto en móviles */
  }

  .mapa-info-overlay {
    position: relative;
    top: auto;
    left: auto;
    max-width: 100%;
    margin-top: 1rem;
    padding: 1.5rem;
  }

  .mapa-info-overlay .mapa-info-header h3 {
    font-size: 1.125rem;
  }

  .mapa-info-actions {
    flex-direction: column;
  }

  .mapa-link {
    width: 100%;
    justify-content: center;
  }
}
/* ==================== ESTILOS ESPECÍFICOS PÁGINA INICIO ==================== */

/* ==================== BANNER PRINCIPAL / SLIDER ==================== */
.hero-slider {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
}

.hero-slides-wrapper {
  position: relative;
  width: 100%;
  height: 550px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-background-decorative {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  background: transparent;
  opacity: 0.2;
}

.hero-decorative-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
}

.hero-decorative-elements g {
  animation: float 20s infinite ease-in-out;
}

.hero-decorative-elements g.decorative-pencil {
  animation: float 15s infinite ease-in-out;
}

.hero-decorative-elements g.decorative-book {
  animation: float 25s infinite ease-in-out;
}

.hero-decorative-elements g.decorative-bulb {
  animation: float 18s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 1.5rem;
}

.hero-content-inner {
  max-width: 600px;
  text-align: left;
}

.hero-badge {
  display: block;
  margin-bottom: 1rem;
}

.hero-badge-text {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(46, 125, 50, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-title-box {
  background: rgba(27, 94, 32, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  margin: 0;
  line-height: 1;
  letter-spacing: -1px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.hero-features-list {
  margin-bottom: 2.5rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features-list li {
  font-size: 1.125rem;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Controles del Slider */
.hero-slider-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  backdrop-filter: blur(10px);
}

.hero-slider-prev,
.hero-slider-next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.hero-slider-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.hero-slider-dot.active {
  background: white;
  width: 32px;
  border-radius: 6px;
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* ==================== SECCIONES GENERALES ==================== */
.section {
  padding: 4rem 0;
}

/* Excepción para mapa-sede - menos padding inferior */
.section.mapa-sede {
  padding-bottom: 1rem !important;
}

.mapa-sede .section-header {
  margin-bottom: 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title-small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: 2rem;
}

/* ==================== ACCESOS RÁPIDOS ==================== */
.accesos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.acceso-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.acceso-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.acceso-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--govco-blue);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.acceso-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.acceso-card p {
  color: var(--gray-600);
  font-size: 0.938rem;
}

/* ==================== NOTICIAS DESTACADAS ==================== */
.noticias-destacadas {
  background: var(--gray-50);
}

.noticias-destacadas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.noticia-destacada-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.noticia-destacada-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.noticia-destacada-imagen {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.noticia-destacada-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.noticia-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
}

.noticia-destacada-content {
  padding: 1.5rem;
}

.noticia-categoria {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--primary);
  color: white;
  border-radius: 0.375rem;
  font-size: 0.813rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.noticia-fecha {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.noticia-destacada-content h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.noticia-destacada-content p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.card-link:hover {
  color: var(--primary-dark);
}

/* Mensaje cuando no hay noticias */
.noticias-vacias {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-600);
}

.noticias-vacias svg {
  margin: 0 auto 1.5rem;
  color: var(--gray-400);
  opacity: 0.6;
}

.noticias-vacias p {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.noticias-vacias-hint {
  font-size: 0.9375rem;
  color: var(--gray-500);
  font-style: italic;
}

/* ==================== NORMATIVIDAD RECIENTE ==================== */
.normatividad-reciente {
  background: white;
}

.noticias-recientes {
  background: white;
}

.noticias-recientes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.noticia-reciente-item {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.noticia-reciente-item:hover {
  background: var(--gray-100);
  transform: translateX(4px);
}

.noticia-fecha-list {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--primary);
  min-width: 100px;
  font-size: 0.938rem;
}

.noticia-reciente-content {
  flex: 1;
}

.noticia-tipo {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--primary);
  color: white;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.noticia-reciente-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.noticia-reciente-content h4 a {
  color: var(--gray-900);
  text-decoration: none;
}

.noticia-reciente-content h4 a:hover {
  color: var(--primary);
}

/* ==================== ENLACES DE INTERÉS ==================== */
.enlaces-interes {
  background: var(--gray-50);
}

.enlaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.enlace-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  border: 2px solid transparent;
}

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

.enlace-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--primary);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.enlace-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.enlace-card p {
  color: var(--gray-600);
  font-size: 0.938rem;
}

/* ==================== TRANSPARENCIA ==================== */
.transparencia {
  background: white;
}

.transparencia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.transparencia-card {
  background: var(--gray-50);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  border: 2px solid transparent;
}

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

.transparencia-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--secondary);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.transparencia-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.transparencia-card p {
  color: var(--gray-600);
  font-size: 0.938rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero-slider {
    min-height: 450px;
  }

  .hero-slides-wrapper {
    height: 450px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .features-list li {
    font-size: 1rem;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .hero-content-inner {
    max-width: 100%;
  }

  .hero-slider-controls {
    bottom: 1rem;
    padding: 0.5rem 1rem;
    gap: 1rem;
  }

  .hero-slider-prev,
  .hero-slider-next {
    width: 36px;
    height: 36px;
  }

  .hero-slider-dot {
    width: 10px;
    height: 10px;
  }

  .hero-slider-dot.active {
    width: 24px;
  }

  .section-title {
    font-size: 2rem;
  }

  .accesos-grid,
  .noticias-destacadas-grid,
  .enlaces-grid,
  .transparencia-grid {
    grid-template-columns: 1fr;
  }

  .noticia-reciente-item {
    flex-direction: column;
    gap: 1rem;
  }

  .noticia-fecha-list {
    min-width: auto;
  }
}

/* Tablet: 768px - 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-slider {
    min-height: 500px;
  }

  .hero-slides-wrapper {
    height: 500px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .accesos-grid,
  .noticias-destacadas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .enlaces-grid,
  .transparencia-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile pequeño: < 480px */
@media (max-width: 480px) {
  .hero-slider {
    min-height: 400px;
  }

  .hero-slides-wrapper {
    height: 400px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .transparencia-card {
    padding: 1.5rem;
  }

  .transparencia-icon {
    width: 64px;
    height: 64px;
  }
}
