/* ================================
   Estilos principales del sitio
   ================================ */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-oscuro);
  padding-bottom: 70px; /* espacio para bottom-nav en móviles */
  line-height: 1.6;
}

/* ================================
   Header
   ================================ */
header {
  background-color: #73b040; /* Verde oficial de la paleta */
  color: var(--color-claro);
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-content img {
  height: 70px;
  width: auto;
}

.header-content h1 {
  font-family: 'CaldasCamina', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.2rem;
  color: var(--color-claro);
  letter-spacing: 1px;
}

.header-content p {
  font-family: 'Montserrat', sans-serif; /* Subtítulos en Montserrat */
  font-size: 1rem;
  margin: 0;
  color: #ffffff;
}

/* ================================
   Navegación horizontal (desktop)
   ================================ */
.menu-horizontal {
  background-color: #b7d06a; /* Verde claro oficial */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.menu-horizontal a {
  padding: 1rem;
  color: #442614; /* Marrón institucional */
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.menu-horizontal a:hover {
  background-color: #73b040; /* Verde institucional como hover */
  color: #ffffff;
}

/* ================================
   Banner
   ================================ */
.banner {
  position: relative;
  background: url('../images/banners/banner-principal.jpg') center/cover no-repeat;
  height: 300px;
  background-color: #e4f1f2; /* Azul claro oficial si no carga la imagen */
}

.banner-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: rgba(255, 255, 255, 0.9); /* Blanco semitransparente */
  color: #442614; /* Texto marrón oficial */
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  max-width: 90%;
  font-family: 'Montserrat', sans-serif;
}

/* ================================
   Cards
   ================================ */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.card {
  background-color: var(--color-claro);
  border-radius: 12px;
  padding: 1.5rem;
  width: 280px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  text-align: left;
}

.card:hover {
  transform: scale(1.03);
}

.card h3 {
  color: #73b040; /* Verde oficial */
  font-family: 'CaldasCamina', sans-serif;
  margin-bottom: 0.5rem;
}

/* ================================
   Footer
   ================================ */
footer {
  background-color: #b7d06a; /* Verde claro oficial */
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 3rem;
  color: #442614; /* Marrón institucional */
}

footer p {
  margin: 0.3rem 0;
}

/* ================================
   Bottom navigation (móvil)
   ================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #73b040; /* Verde oficial */
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.bottom-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottom-nav a i {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

/* ================================
   Responsive (móviles y tablets)
   ================================ */
@media (max-width: 768px) {
  .menu-horizontal {
    display: none;
  }

  .bottom-nav {
    display: flex;
  }

  .card {
    width: 90%;
  }

  .header-content h1 {
    font-size: 1.6rem;
  }

  .header-content p {
    font-size: 0.9rem;
  }

  .banner {
    height: 220px;
  }

  .banner-text {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}
