:root {
      --verde-dark:   #2e5e3e;
      --verde-mid:    #3a6b47;
      --verde-light:  #4e8b5f;
      --verde-pale:   #d6e9dc;
      --gris-dark:    #4a4a4a;
      --gris-mid:     #6b6b6b;
      --gris-light:   #c0c0c0;
      --acento:       #3a6b47;   /* verde para acentos */
      --acento-hover: #2e5e3e;
      --fondo:        #f2f5f2;
      --blanco:       #ffffff;
      --borde:        rgba(58,107,71,0.18);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'Roboto', sans-serif;
      color: var(--gris-dark);
      background: var(--fondo);
    }

    /* ── TOP BAR ── */
    #topbar {
      background: var(--verde-dark);
      color: rgba(255,255,255,0.85);
      font-size: 0.775rem;
      font-weight: 400;
      letter-spacing: 0.02em;
      padding: 6px 0;
      border-bottom: 2px solid var(--verde-light);
    }

    #topbar .topbar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 6px;
    }

    #topbar .info-group {
      display: flex;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap;
    }

    #topbar .info-item {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    #topbar .info-item i {
      color: var(--verde-pale);
      font-size: 0.82rem;
    }

    .topbar-sep {
      width: 1px;
      height: 14px;
      background: rgba(255,255,255,0.2);
    }

    /* Social icons */
    .social-icons {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .social-icons a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 26px;
      border-radius: 4px;
      color: rgba(255,255,255,0.75);
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.15);
      transition: background 0.2s, color 0.2s;
      font-size: 0.78rem;
      text-decoration: none;
    }

    .social-icons a:hover {
      background: var(--verde-light);
      color: var(--blanco);
      border-color: var(--verde-light);
    }

    /* ── NAVBAR ── */
    #main-nav {
      background: var(--blanco);
      border-bottom: 3px solid var(--verde-mid);
      box-shadow: 0 2px 16px rgba(46,94,62,0.1);
      padding: 0;
    }

    .navbar-brand {
      display: flex;
      align-items: center;
      text-decoration: none;
      padding: 8px 0;
    }

    .logo-img {
      height: 58px;
      width: auto;
      display: block;
    }

    /* Nav links */
    .navbar-nav .nav-link {
      font-family: 'Roboto', sans-serif;
      font-size: 0.8rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.09em;
      color: var(--gris-dark) !important;
      padding: 22px 16px !important;
      position: relative;
      transition: color 0.2s;
    }

    .navbar-nav .nav-link::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 3px;
      background: var(--verde-mid);
      transition: width 0.25s ease;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
      color: var(--verde-dark) !important;
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
      width: 70%;
    }

    /* Dropdown */
    .dropdown-menu {
      border: none;
      border-top: 3px solid var(--verde-mid);
      border-radius: 0 0 6px 6px;
      box-shadow: 0 8px 28px rgba(46,94,62,0.14);
      min-width: 180px;
      padding: 4px 0;
      background: var(--blanco);
    }

    .dropdown-item {
      font-size: 0.78rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: var(--gris-dark);
      padding: 11px 20px;
      transition: background 0.15s, color 0.15s, padding-left 0.15s;
      border-left: 3px solid transparent;
    }

    .dropdown-item:hover {
      background: var(--verde-pale);
      color: var(--verde-dark);
      padding-left: 24px;
      border-left-color: var(--verde-mid);
    }

    .dropdown-label {
      font-size: 0.63rem;
      font-weight: 600;
      color: var(--gris-mid);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 8px 20px 5px;
      display: block;
      border-bottom: 1px solid #eaeaea;
      margin-bottom: 2px;
    }

    /* Hamburger */
    .navbar-toggler { border-color: var(--verde-mid); }
    .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233a6b47' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* ── NOTICIAS SECTION ── */
    #noticias {
      padding: 44px 0 60px;
      background: var(--fondo);
    }
    #noticias2 {
      padding: 44px 0 60px;
      background: var(--fondo);
    }

    .section-eyebrow {
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: var(--verde-light);
      margin-bottom: 5px;
    }

    .section-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.7rem;
      font-weight: 700;
      color: var(--verde-dark);
      margin-bottom: 24px;
      line-height: 1.2;
    }

    /* ── NEWS SIDEBAR ── */
    .news-sidebar {
      display: flex;
      flex-direction: column;
      border: 1px solid var(--borde);
      border-radius: 8px;
      overflow: hidden;
      background: var(--blanco);
      box-shadow: 0 2px 10px rgba(46,94,62,0.07);
      height: 100%;
    }

    .news-sidebar-header {
      background: var(--verde-dark);
      color: var(--blanco);
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      padding: 10px 14px;
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .news-sidebar-header i { color: var(--verde-pale); font-size: 0.8rem; }

    .news-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 12px 14px;
      cursor: pointer;
      border-bottom: 1px solid #eff3ef;
      transition: background 0.18s, border-left-color 0.18s;
      border-left: 4px solid transparent;
      background: var(--blanco);
    }

    .news-item:last-child { border-bottom: none; }

    .news-item.active {
      background: linear-gradient(to right, #eaf3ec, #f6faf6);
      border-left-color: var(--verde-mid);
    }

    .news-item:hover:not(.active) {
      background: #f5faf6;
      border-left-color: var(--verde-pale);
    }

    .news-number {
      font-size: 0.62rem;
      font-weight: 700;
      color: var(--gris-light);
      min-width: 18px;
      padding-top: 2px;
      letter-spacing: 0.03em;
    }

    .news-item.active .news-number { color: var(--verde-mid); }

    .news-thumb {
      width: 44px;
      height: 44px;
      border-radius: 4px;
      object-fit: cover;
      flex-shrink: 0;
      border: 1px solid rgba(0,0,0,0.07);
    }

    .news-meta { flex: 1; min-width: 0; }

    .news-date {
      font-size: 0.62rem;
      font-weight: 500;
      color: var(--gris-mid);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 3px;
    }

    .news-item.active .news-date { color: var(--verde-light); }

    .news-headline {
      font-size: 0.76rem;
      font-weight: 600;
      color: var(--gris-dark);
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .news-item.active .news-headline { color: var(--verde-dark); }

    /* ── CAROUSEL ── */
    #mainCarousel {
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 28px rgba(46,94,62,0.18);
    }

    .carousel-item img {
      width: 100%;
      height: 480px;
      object-fit: cover;
      display: block;
    }

    .carousel-caption {
      background: linear-gradient(to top,
        rgba(30,60,38,0.94) 0%,
        rgba(30,60,38,0.45) 65%,
        transparent 100%);
      left: 0; right: 0; bottom: 0;
      padding: 40px 28px 24px;
      text-align: left;
    }

    .carousel-caption .cap-tag {
      display: inline-block;
      background: var(--verde-light);
      color: var(--blanco);
      font-size: 0.62rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      padding: 3px 10px;
      border-radius: 2px;
      margin-bottom: 8px;
    }

    .carousel-caption h5 {
      font-family: 'Playfair Display', serif;
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--blanco);
      margin-bottom: 7px;
      line-height: 1.35;
    }

    .carousel-caption p {
      font-size: 0.78rem;
      color: rgba(255,255,255,0.75);
      margin-bottom: 14px;
    }

    .btn-noticia {
      font-size: 0.73rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      padding: 7px 18px;
      border-radius: 4px;
      background: var(--verde-light);
      color: var(--blanco);
      border: 1.5px solid var(--verde-light);
      transition: background 0.2s, border-color 0.2s;
      text-decoration: none;
      display: inline-block;
    }

    .btn-noticia:hover {
      background: var(--verde-dark);
      border-color: var(--verde-dark);
      color: var(--blanco);
    }

    /* Carousel controls */
    .carousel-control-prev, .carousel-control-next {
      width: 40px;
      top: auto;
      bottom: 22px;
      background: rgba(58,107,71,0.75);
      border-radius: 4px;
      height: 34px;
      opacity: 1;
      transition: background 0.2s;
    }

    .carousel-control-prev:hover, .carousel-control-next:hover {
      background: var(--verde-dark);
    }

    .carousel-control-prev { left: auto; right: 52px; }
    .carousel-control-next { right: 8px; }

    .carousel-control-prev-icon,
    .carousel-control-next-icon { width: 14px; height: 14px; }

    /* Indicators */
    .carousel-indicators [data-bs-target] {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: rgba(255,255,255,0.4);
      border: none;
      margin: 0 3px;
    }
    .carousel-indicators .active { background: var(--verde-pale); }

/* ── FOOTER ── */

#footer-strip {
  background: var(--verde-dark);
  color: rgba(255,255,255,0.85);
  padding: 40px 0;
  border-top: 2px solid var(--verde-mid);
  display: flex;
  justify-content: center; /* ← Centra el contenido horizontalmente */
}

/* Contenedor interno que centra y limita el ancho */
#footer-strip .footer-container {
  max-width: 1200px; /* ← Ancho máximo del contenido */
  width: 100%;
  padding: 0 20px; /* ← Espacio interno para móviles */
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Estilos para las columnas */
#footer-strip .footer-col h4 {
  color: var(--verde-pale);
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#footer-strip .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer-strip .footer-col ul li {
  margin-bottom: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
  cursor: pointer;
}

#footer-strip .footer-col ul li:hover {
  color: white;
}

/* Mapa */
#footer-strip .footer-map iframe {
  width: 100%;
  height: 200px;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 992px) {
  #footer-strip .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  #footer-strip .footer-map {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  #footer-strip .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }
}

/*TERMINA FOOTER*/

/* Responsive */
@media (max-width: 992px) {
  #footer-strip {
    grid-template-columns: 1fr 1fr; /* 2 columnas en tablets */
    gap: 30px;
  }
  
  #footer-strip div:last-child {
    grid-column: 1 / -1; /* El mapa ocupa todo el ancho */
  }
}

@media (max-width: 600px) {
  #footer-strip {
    grid-template-columns: 1fr; /* 1 columna en móviles */
    gap: 25px;
  }
}
/*TERMINA FOOTER*/

    /* ── RESPONSIVE ── */
    @media (max-width: 767px) {
      .carousel-item img { height: 240px; }
      .section-title { font-size: 1.3rem; }
      .carousel-caption h5 { font-size: 0.95rem; }
      .news-sidebar { margin-bottom: 20px; height: auto; }
      .logo-img { height: 46px; }
    }

    @media (max-width: 575px) {
      #topbar .info-group { flex-direction: column; align-items: flex-start; gap: 4px; }
      .topbar-sep { display: none; }
    }
    
    /* Cuadrícula personalizada de 9 columnas */
    .grid-9-columnas {
      display: grid;
      /* En móviles se adapta a 3 columnas, en tabletas a 5 y en PC a 9 */
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
    
    @media (min-width: 768px) {
      .grid-9-columnas {
        grid-template-columns: repeat(5, 1fr);
      }
    }
    
    @media (min-width: 1200px) {
      .grid-9-columnas {
        grid-template-columns: repeat(9, 1fr);
      }
    }

    /* Animación para los botones */
    .btn-animado {
      transition: all 0.3s ease-in-out;
      position: relative;
      overflow: hidden;
    }

    .btn-animado:hover {
      transform: translateY(-5px); /* Eleva el botón */
      box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Agrega sombra profunda */
      filter: brightness(1.1); /* Lo hace un poco más brillante */
    }

    .btn-animado:active {
      transform: translateY(-1px);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    }/* Contenedor para carrusel de infografías y micrositios */
      .content-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
      }

      /* Ajuste del carrusel de infografías */
      .infografia-carousel {
        max-width: 1200px;
        margin: 0 auto;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
        width: 80%;
      }

      .infografia-carousel .carousel-item img {
        height: 600px;
        object-fit: cover;
      }

      /* Ajuste de micrositios */
      .micrositios-wrapper {
        max-width: 1100px;
        margin: 0 auto;
        padding: 20px 0;
      }

      .grid-9-columnas {
        display: grid;
        grid-template-columns: repeat(9, 1fr);
        gap: 12px;
        max-width: 1100px;
        margin: 0 auto;
      }

      .btn-animado {
        background: white !important;
        border: 1px solid #e0e0e0 !important;
        color: #333 !important;
        border-radius: 10px !important;
        transition: all 0.3s ease;
        padding: 15px 10px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 120px;
        width: 100%;
      }

      .btn-animado:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        border-color: #2c6b3a !important;
        background: #f8f9fa !important;
      }

      .btn-animado img {
        height: 50px;
        width: auto;
        margin-bottom: 8px;
      }

      .btn-animado p {
        margin: 0;
        font-size: 0.75rem;
        font-weight: 600;
        color: #333;
        text-align: center;
        line-height: 1.2;
      }

      .section-tittle {
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        color: #2c3e50;
        text-align: center;
        margin-bottom: 30px;
        font-size: 2rem;
      }

      /* Responsive para micrositios */
      @media (max-width: 992px) {
        .grid-9-columnas {
          grid-template-columns: repeat(3, 1fr);
          gap: 10px;
        }
      }

      @media (max-width: 768px) {
        .grid-9-columnas {
          grid-template-columns: repeat(2, 1fr);
          gap: 8px;
        }
        
        .btn-animado {
          min-height: 100px;
          padding: 10px !important;
        }
        
        .btn-animado img {
          height: 40px;
        }
        
        .btn-animado p {
          font-size: 0.65rem;
        }

        .infografia-carousel .carousel-item img {
          height: 250px;
        }
      }

      @media (max-width: 480px) {
        .grid-9-columnas {
          grid-template-columns: repeat(2, 1fr);
          gap: 6px;
        }
        
        .btn-animado {
          min-height: 80px;
          padding: 8px !important;
        }
        
        .btn-animado img {
          height: 30px;
        }
        
        .btn-animado p {
          font-size: 0.55rem;
        }

        .infografia-carousel .carousel-item img {
          height: 180px;
        }
      }