/* ============================================
   VARIABLES CSS - PERSONALIZACIÓN FÁCIL
   ============================================
   Cambia estos valores para personalizar colores,
   espaciados, fuentes, etc.
============================================ */
:root {
  /* COLORES PRINCIPALES */
  --color-primary: #388e3c; /* Verde principal de Cooindegabo */
  --color-primary-dark: #2e7d32; /* Verde oscuro para hover */
  --color-primary-light: #66bb6a; /* Verde claro para acentos */
  --color-text-dark: #1a1a1a; /* Texto principal oscuro */
  --color-text-light: #ffffff; /* Texto claro sobre fondos oscuros */
  --color-text-gray: #666666; /* Texto secundario */
  --color-bg-white: #ffffff; /* Fondo blanco */
  --color-bg-light: #f5f5f5; /* Fondo gris claro */
  --color-border: #e0e0e0; /* Bordes sutiles */

  /* ESPACIADOS */
  --spacing-xs: 0.5rem; /* 8px */
  --spacing-sm: 1rem; /* 16px */
  --spacing-md: 1.5rem; /* 24px */
  --spacing-lg: 2rem; /* 32px */
  --spacing-xl: 3rem; /* 48px */
  --spacing-xxl: 4rem; /* 64px */

  /* BORDES Y SOMBRAS */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);

  /* TRANSICIONES */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ============================================
   RESET Y ESTILOS BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", "Helvetica", sans-serif;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
}

/* ============================================
   SECCIÓN 1: HERO BANNER DE NORMATIVA
   ============================================
   Banner principal con imagen de fondo verde
   
   PERSONALIZAR:
   - Cambiar imagen de fondo: background-image en .normativa-hero
   - Cambiar color verde: --color-primary en :root
   - Ajustar altura: min-height en .normativa-hero
============================================ */

.normativa-hero {
  position: relative;
  min-height: 400px; /* CAMBIAR altura del banner aquí */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  /* IMAGEN DE FONDO - Cambia la URL por tu imagen */
  background-image: url("imagens-web/heros/hero-normativa.png");
  background-size: cover;
  background-position:center;
  background-repeat: no-repeat;
}

/* Overlay verde sobre la imagen de fondo */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* CAMBIAR opacidad del overlay (0.7 = 70% de opacidad) */
  background: linear-gradient(135deg, rgba(56, 142, 60, 0.70) 0%, rgba(46, 125, 50, 0.9) 100%);
  z-index: 1;
}

/* Contenido del hero (título y descripción) */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--spacing-lg);
  color: var(--color-text-light);
}

/* Título principal del banner */
.hero-title {
  font-size: 3rem; /* CAMBIAR tamaño del título aquí */
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Descripción del banner */
.hero-description {
  font-size: 1.2rem; /* CAMBIAR tamaño del texto aquí */
  line-height: 1.8;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CÍRCULOS ANIMADOS DE FONDO (OPCIONAL)
   ============================================
   Si no quieres los círculos, elimina esta sección
   y el div .animated-circles del HTML
============================================ */

.animated-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 15s infinite ease-in-out;
}

.circle.small {
  width: 50px;
  height: 50px;
}
.circle.medium {
  width: 100px;
  height: 100px;
}
.circle.large {
  width: 150px;
  height: 150px;
}

.circle:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.circle:nth-child(2) {
  top: 70%;
  left: 20%;
  animation-delay: 2s;
}
.circle:nth-child(3) {
  top: 40%;
  left: 70%;
  animation-delay: 4s;
}
.circle:nth-child(4) {
  top: 20%;
  left: 80%;
  animation-delay: 6s;
}
.circle:nth-child(5) {
  top: 80%;
  left: 60%;
  animation-delay: 8s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(20px, -30px) scale(1.1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-20px, -60px) scale(0.9);
    opacity: 0.3;
  }
  75% {
    transform: translate(30px, -30px) scale(1.05);
    opacity: 0.4;
  }
}

/* ============================================
   SECCIÓN 2: DOCUMENTOS NORMATIVA
   ============================================
   Grid de tres columnas con documentos descargables
   
   PERSONALIZAR:
   - Cambiar número de columnas: grid-template-columns
   - Ajustar espaciado: gap y padding
   - Cambiar colores de hover: en .documento-link:hover
============================================ */

.normativa-documentos {
  padding: var(--spacing-xxl) var(--spacing-md);
  background-color: var(--color-bg-light);
}

/* Contenedor principal de las columnas */
.documentos-container {
  max-width: 1400px;
  margin: 0 auto;

  /* GRID DE 3 COLUMNAS - Cambiar aquí para más o menos columnas */
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
  gap: var(--spacing-xl); /* Espacio entre columnas */
  align-items: start;
}

/* ============================================
   COLUMNAS DE DOCUMENTOS
   ============================================
   Cada columna contiene un título y una lista
============================================ */

.documento-columna {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--box-shadow);

  /* Transición suave al hacer hover */
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

/* Efecto hover en toda la columna */
.documento-columna:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

/* Título de cada columna (Normativa, Políticas, Reglamentos) */
.columna-titulo {
  font-size: 1.8rem; /* CAMBIAR tamaño del título aquí */
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 3px solid var(--color-primary);
  text-align: center;
}

/* ============================================
   LISTA DE DOCUMENTOS
   ============================================
   Estilos para los enlaces de descarga
============================================ */

.documentos-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Cada item de la lista (documento individual) */
.documento-item {
  margin-bottom: var(--spacing-sm);
}

/* Último item sin margen inferior */
.documento-item:last-child {
  margin-bottom: 0;
}

/* ============================================
   ENLACES DE DOCUMENTOS
   ============================================
   Estilos para los enlaces descargables con icono
   
   PERSONALIZAR:
   - Color normal: color en .documento-link
   - Color hover: background y color en :hover
   - Tamaño de texto: font-size
============================================ */

.documento-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);

  /* Transición suave para el hover */
  transition: all var(--transition-normal);

  /* Borde sutil */
  border: 2px solid transparent;
}

/* Efecto HOVER en los enlaces */
.documento-link:hover {
  /* CAMBIAR color de fondo al pasar el cursor */
  background-color: var(--color-primary);
  /* CAMBIAR color de texto al pasar el cursor */
  color: var(--color-text-light);
  border-color: var(--color-primary-dark);
  transform: translateX(5px); /* Desplazamiento a la derecha */
  box-shadow: var(--box-shadow);
}

/* Texto del documento */
.documento-texto {
  flex: 1;
  font-size: 1rem; /* CAMBIAR tamaño del texto aquí */
  font-weight: 500;
  padding-right: var(--spacing-sm);
}

/* Icono de flecha de descarga */
.documento-icono {
  width: 24px; /* CAMBIAR tamaño del icono aquí */
  height: 24px;
  flex-shrink: 0;

  /* Animación de la flecha al hacer hover */
  transition: transform var(--transition-fast);
}

/* Animación del icono al hacer hover en el enlace */
.documento-link:hover .documento-icono {
  transform: translateY(3px); /* La flecha baja un poco */
  animation: bounce 0.6s ease infinite; /* Rebote continuo */
}

/* Animación de rebote para el icono */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(3px);
  }
  50% {
    transform: translateY(7px);
  }
}

/* ============================================
   DISEÑO RESPONSIVO
   ============================================
   Adaptación para tablets y móviles
============================================ */

/* TABLETS - Pantallas medianas (768px - 1024px) */
@media (max-width: 1024px) {
  /* Hero banner más pequeño */
  .normativa-hero {
    min-height: 350px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  /* 2 columnas en tablets */
  .documentos-container {
    grid-template-columns: repeat(2, 1fr); /* CAMBIAR a 2 columnas */
    gap: var(--spacing-lg);
  }

  .columna-titulo {
    font-size: 1.6rem;
  }
}

/* MÓVILES - Pantallas pequeñas (max 768px) */
@media (max-width: 768px) {
  /* Hero más pequeño en móviles */
  .normativa-hero {
    min-height: 300px;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-content {
    padding: var(--spacing-md);
  }

  /* Reducir espaciado general */
  .normativa-documentos {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  /* 1 COLUMNA en móviles - Todo apilado verticalmente */
  .documentos-container {
    grid-template-columns: 1fr; /* CAMBIAR a 1 columna */
    gap: var(--spacing-md);
  }

  .documento-columna {
    padding: var(--spacing-md);
  }

  .columna-titulo {
    font-size: 1.5rem;
  }

  .documento-link {
    padding: var(--spacing-sm);
    font-size: 0.95rem;
  }

  .documento-icono {
    width: 20px;
    height: 20px;
  }

  /* Círculos más pequeños en móvil */
  .circle.small {
    width: 30px;
    height: 30px;
  }
  .circle.medium {
    width: 60px;
    height: 60px;
  }
  .circle.large {
    width: 90px;
    height: 90px;
  }
}

/* MÓVILES MUY PEQUEÑOS (max 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .columna-titulo {
    font-size: 1.3rem;
  }

  .documento-texto {
    font-size: 0.9rem;
  }
}
#header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ============================================
   GUÍA DE PERSONALIZACIÓN RÁPIDA
   ============================================
   
   CAMBIAR COLORES:
   - Verde principal: --color-primary en :root
   - Color hover links: background-color en .documento-link:hover
   
   CAMBIAR IMAGEN DE FONDO:
   - background-image en .normativa-hero
   
   CAMBIAR NÚMERO DE COLUMNAS:
   - grid-template-columns en .documentos-container
   - Ejemplo: repeat(4, 1fr) para 4 columnas
   
   AGREGAR MÁS DOCUMENTOS:
   - Copia un <li class="documento-item"> completo
   - Cambia el texto y la URL del href
   
   AJUSTAR TAMAÑOS:
   - Títulos: font-size en .hero-title y .columna-titulo
   - Textos: font-size en .documento-texto
   - Iconos: width y height en .documento-icono
   
   CAMBIAR ESPACIADOS:
   - Variables --spacing-* en :root
   - gap en .documentos-container
   
============================================ */