/* ========================================
   ESTILOS GLOBALES Y RESET
   Configuración base para toda la página
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;

}

/* Contenedor principal centrado con ancho máximo */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   SECCIÓN 1: BANNER HERO
   Banner principal con imagen de fondo verde
   Modifica las siguientes propiedades para personalizar:
   - background-image: Cambia la imagen de fondo
   - min-height: Ajusta la altura del banner
   - --overlay-color: Color del overlay (actualmente verde)
======================================== */

.hero-banner {
  position: relative;
  min-height: 400px;
  background-image: url("imagens-web/heros/hero-historia.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Overlay verde semi-transparente sobre la imagen */
/* Para cambiar el color: modifica el valor rgba (actualmente verde #2d7a3e) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(45, 122, 62, 0.75); /* Verde con 75% de opacidad */
  z-index: 1;
}

/* Contenido del banner (título y subtítulo) */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 40px 20px;
}

/* Título principal del banner */
/* Para cambiar: font-size, text-shadow, letter-spacing */
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

/* Subtítulo del banner */
.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.95;
}


/* ========================================
   SECCIÓN 2: LÍNEA DE TIEMPO INTERACTIVA
   Botones y contenido histórico dinámico
======================================== */

.timeline-section {
  padding: 20px 20px;
  background-color: #ffffff;
}

/* Título de sección general */
/* Reutilizable para otras secciones */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #2d7a3e; /* Color verde corporativo */
  margin-bottom: 50px;
  font-weight: 600;
}

/* ========================================
   CONTENEDOR DE BOTONES DE AÑOS
   Grid responsivo que se adapta al tamaño de pantalla
   Modifica grid-template-columns para cambiar cantidad de botones por fila
======================================== */

.timeline-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 botones en fila (desktop) */
  gap: 15px;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Estilos de los botones de año */
/* Para cambiar colores: background-color, color, border */
.timeline-btn {
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: #f0f0f0;
  color: #555;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

/* Efecto hover en los botones */
.timeline-btn:hover {
  background-color: #2d7a3e;
  color: white;
  border-color: #2d7a3e;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(45, 122, 62, 0.3);
}

/* Botón activo (seleccionado) */
/* Este estilo se aplica cuando el botón está activo */
.timeline-btn.active {
  background-color: #2d7a3e;
  color: white;
  border-color: #2d7a3e;
  box-shadow: 0 4px 12px rgba(45, 122, 62, 0.4);
}

/* ========================================
   CONTENIDO DE LA LÍNEA DE TIEMPO
   Layout con CSS Grid para imagen y texto
   Modifica grid-template-columns para cambiar proporciones
======================================== */

.timeline-content {
  position: relative;
  min-height: 400px;
}

/* Cada elemento de la línea de tiempo (uno por año) */
/* Por defecto están ocultos, solo el activo se muestra */
.timeline-item {
  display: none; /* Oculto por defecto */
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Elemento activo (visible) */
.timeline-item.active {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% texto, 50% imagen */
  gap: 40px;
  align-items: center;
  opacity: 1;
  animation: fadeIn 0.5s ease;
}

/* Animación de aparición suave */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   COLUMNA DE TEXTO (Izquierda)
   Contiene el título y los párrafos informativos
======================================== */

.timeline-text {
  padding: 10px;
}

/* Título de cada período histórico */
.timeline-text h3 {
  font-size: 2rem;
  color: #2d7a3e;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Párrafos del contenido histórico */
.timeline-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
  text-align: justify;
}

/* ========================================
   COLUMNA DE IMAGEN (Derecha)
   Contenedor responsivo para las imágenes
======================================== */

.timeline-image {
  width: 100%;
  height: 80%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Imagen responsive que se ajusta al contenedor */
.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Efecto zoom al pasar el mouse sobre la imagen */
.timeline-image:hover img {
  transform: scale(1.05);
}

/* ========================================
   SECCIÓN 3: CARDS INFORMATIVAS
   Tres tarjetas flotantes con información institucional
======================================== */

.info-cards-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

/* ========================================
   GRID DE CARDS
   Layout horizontal de 3 columnas para las cards
   Modifica grid-template-columns para cambiar cantidad
======================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* 3 cards en fila (desktop) */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;

}

/* ========================================
   ESTILOS DE CADA CARD
   Diseño flotante con sombras y efectos hover
   Para personalizar: background, border-radius, box-shadow
======================================== */

.info-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Efecto hover en las cards */
/* Elevación y cambio de sombra al pasar el mouse */
.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(45, 122, 62, 0.15);
}

/* ========================================
   ICONO DE LA CARD
   Círculo decorativo con icono SVG
   Para cambiar: background-color, width, height
======================================== */

.card-icon {
  width: 80px;
  height: 80px;
  background-color: #2d7a3e; /* Color verde corporativo */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

/* SVG dentro del círculo de icono */
.card-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

/* Efecto de rotación del icono al hacer hover en la card */
.info-card:hover .card-icon {
  transform: rotate(360deg);
  background-color: #256331; /* Verde más oscuro */
}

/* ========================================
   TÍTULO DE LA CARD
   Heading h2 para cada card
======================================== */

.card-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

/* ========================================
   TEXTO DE LA CARD
   Contenido descriptivo de cada card
======================================== */

.card-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  text-align: center;
}

/* ========================================
   RESPONSIVE DESIGN - TABLETS
   Ajustes para pantallas medianas (hasta 768px)
======================================== */

@media (max-width: 768px) {
  /* Banner hero más pequeño en tablets */
  .hero-banner {
    min-height: 300px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* Botones de línea de tiempo: 3 por fila en tablets */
  .timeline-buttons {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contenido de timeline: columna única (texto arriba, imagen abajo) */
  .timeline-item.active {
    grid-template-columns: 1fr;
  }

  .timeline-text h3 {
    font-size: 1.6rem;
  }

  .timeline-text p {
    font-size: 1rem;
  }

  /* Cards: 2 por fila en tablets */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 2rem;
  }
}

/* ========================================
   RESPONSIVE DESIGN - MÓVILES
   Ajustes para pantallas pequeñas (hasta 480px)
======================================== */

@media (max-width: 480px) {
  /* Banner más compacto en móviles */
  .hero-banner {
    min-height: 250px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Botones de timeline: 2 por fila en móviles */
  .timeline-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .timeline-btn {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  /* Secciones con menos padding en móviles */
  .timeline-section,
  .info-cards-section {
    padding: 50px 15px;
  }

  .section-title {
    font-size: 1.7rem;
    margin-bottom: 35px;
  }

  .timeline-text h3 {
    font-size: 1.4rem;
  }

  .timeline-text p {
    font-size: 0.95rem;
  }

  /* Cards: columna única en móviles */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .info-card {
    padding: 30px 20px;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .card-text {
    font-size: 0.95rem;
  }

  .card-icon {
    width: 70px;
    height: 70px;
  }

  .card-icon svg {
    width: 35px;
    height: 35px;
  }
}
.info-cards-section {
  padding: 40px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}
.cards-grid-mision-vision {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 3 cards en fila (desktop) */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.Proposito-Superior {
  text-align: center;
  padding: 60px 20px;
  background-color: #2d7a3e;
  color: white;
  width: 100%;
  height: auto;
}
.Proposito-Superior h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: #0f0e0e;
}
.Proposito-Superior p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;

}
.frase-cierre {
  text-align: center;
  font-size: 1rem;
  color: #000000;
  margin: 40px 20px;
  font-style: italic;
}

#header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
}


