/* ========================================================= */
/*                     ESTILOS GENERALES                     */
/* ========================================================= */

body {
  margin: 0;
  padding: 0;
  background: #e0f2e5;
  font-family: Arial, Helvetica, sans-serif;
}

.container-wrapper {
  max-width: 1200px;
  margin: auto;
  background: #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding-bottom: 30px;
  box-sizing: border-box;
}

/* ========================================================= */
/*                     TARJETAS SUPERIORES                   */
/* ========================================================= */

.tarjetas-contenedor {
  display: flex;
  gap: 20px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.tarjetas-contenedor > div {
  flex: 1;
  background: #f2fff4;
  border: 1px solid #d6e9d6;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
}

/* UL de documentos */
.docpdf ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.docpdf ul li a {
  display: block;
  color: #000;
  white-space: nowrap;
  text-decoration: none;
}

/* Imagen dentro de la tarjeta */
.caja-info img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 10px;
}

/* ========================================================= */
/*                          RESPONSIVE                       */
/* ========================================================= */

@media (max-width: 900px) {
  .tarjetas-contenedor {
    flex-direction: column;
  }
}

/* ========================================================= */
/*                        SLIDER SWIPER                      */
/* ========================================================= */

.slider-container {
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.slider-container .swiper {
  width: 100%;
  height: 320px;
}

@media (max-width: 600px) {
  .slider-container .swiper {
    height: 260px;
  }
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}

/* ========================================================= */
/*                   FLECHAS Y PAGINACIÓN                    */
/* ========================================================= */

.swiper-button-next,
.swiper-button-prev {
  color: #4CAF50 !important;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.3));
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #3a8f42 !important;
}

.swiper-pagination-bullet {
  background: #4CAF50 !important;
  opacity: 0.4;
}

.swiper-pagination-bullet-active {
  background: #3a8f42 !important;
  opacity: 1;
  transform: scale(1.2);
}

/* ========================================================= */
/*   CUADROS (Visión, Misión, Valores, etc.) EN CELULAR     */
/* ========================================================= */

.cuadros-contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

/* Cada cuadro ocupa la mitad de la pantalla en tablet */
.cuadro {
  flex: 1 1 calc(50% - 20px);
  min-width: 260px;
  box-sizing: border-box;
}

/* En celular → uno debajo del otro, todos iguales */
@media (max-width: 600px) {
  .cuadro {
    flex: 1 1 100%;
    min-width: 100% !important;
  }
}

/* ========================================================= */
/*       GRID RESPONSIVE PARA LAS 4 CAJAS INFORMATIVAS       */
/* ========================================================= */

    .cajas-info {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      width: 100%;
      padding: 20px;
      box-sizing: border-box;
    }
    
    .cajas-info .box img {
      width: 100%;
      height: auto;
      display: block;
      margin-top: 10px;
    }
    
    /* Tablet: 2 columnas */
    @media (max-width: 900px) {
      .cajas-info {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    
    /* Celular: 1 por fila */
    @media (max-width: 600px) {
      .cajas-info {
        grid-template-columns: 1fr;
      }
    }

/* ========================================================= */
/*   FORZAR GRID RESPONSIVE PARA LAS CAJAS INFORMATIVAS     */
/* ========================================================= */

.cajas-info {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.cajas-info .box {
  width: 100% !important;
  padding: 10px !important;
  text-align: center !important;
}

.cajas-info .box img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin-top: 10px !important;
}

/* Tablet: 2 columnas */
@media (max-width: 900px) {
  .cajas-info {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Celular: 1 por fila */
@media (max-width: 600px) {
  .cajas-info {
    grid-template-columns: 1fr !important;
  }
}

/* =============================================== */
/*   ARREGLO DE NAV EN CELULAR (SE DESCENTRA)      */
/* =============================================== */

nav, .menu, ul.menu, .nav-menu {
  max-width: 100% !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
}

nav ul li {
  display: inline-block !important;
  white-space: nowrap !important;
}

nav {
  padding: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}


/* ========================================================= */
/*     CUADROS INFORMATIVOS (4 IMÁGENES) — 2 POR FILA        */
/* ========================================================= */

.cajas-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

.cajas-info .box img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tablet */
@media (max-width: 900px) {
  .cajas-info {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Celular — 2 columnas */
@media (max-width: 600px) {
  .cajas-info {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 10px !important;
  }

  .cajas-info .box h4 {
    font-size: 13px !important;
    line-height: 14px !important;
    margin-bottom: 6px !important;
  }
}

/* ========================================================= */
/*     CAJAS SUPERIORES — REDUCIR TAMAÑO Y ESPACIOS          */
/* ========================================================= */

.tarjetas-contenedor > div {
  padding: 14px !important;      /* antes 20px */
  border-radius: 6px !important;
}

.tarjetas-contenedor .docpdf ul li a {
  font-size: 14px !important;
  line-height: 16px !important;
}

.tarjetas-contenedor .caja-info p {
  font-size: 14px !important;
  margin-bottom: 10px !important;
}

.tarjetas-contenedor img {
  margin-top: 6px !important;
  border-radius: 6px;
  max-height: 140px !important;  /* Evita que la imagen crezca demasiado */
  object-fit: cover !important;
}

/* Mejor distribución en pantallas pequeñas */
@media (max-width: 600px) {
  .tarjetas-contenedor > div {
    padding: 12px !important;
  }

  .tarjetas-contenedor img {
    max-height: 120px !important;
  }
}

/* ========================================================= */
/*                 PALETA DE COLORES STC                    */
/* ========================================================= */

:root {
  --verde-stc: #2e8b57;
  --verde-suave: #e0f2e5;
  --borde-suave: #d3e7d3;
  --sombra-suave: rgba(0, 0, 0, 0.08);
  --sombra-media: rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --radius-small: 6px;
}

/* ========================================================= */
/*                  ESTILO DE CAJAS SUPERIORES               */
/* ========================================================= */

.tarjetas-contenedor > div {
  background: #ffffff;
  border: 1px solid var(--borde-suave);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 2px 6px var(--sombra-suave);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarjetas-contenedor > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px var(--sombra-media);
}

/* texto */
.tarjetas-contenedor p,
.tarjetas-contenedor ul li a {
  color: #222 !important;
  font-size: 15px;
  line-height: 1.4;
}

/* imagen */
.tarjetas-contenedor img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  margin-top: 10px;
  border-radius: var(--radius-small);
}

/* mobile */
@media (max-width: 600px) {
  .tarjetas-contenedor > div {
    padding: 12px;
  }
  .tarjetas-contenedor img {
    max-height: 120px;
  }
}

/* ========================================================= */
/*             CAJAS INFORMATIVAS (4 TARJETAS)               */
/* ========================================================= */

.cajas-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

.cajas-info .box {
  background: #ffffff;
  border: 1px solid var(--borde-suave);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 6px var(--sombra-suave);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cajas-info .box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px var(--sombra-media);
}

/* textos */
.cajas-info .box h4 {
  font-size: 15px;
  line-height: 18px;
  color: var(--verde-stc);
  margin-bottom: 8px;
}

/* imágenes */
.cajas-info .box img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Tablet */
@media (max-width: 900px) {
  .cajas-info {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Celular — 2 por fila */
@media (max-width: 600px) {
  .cajas-info {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px;
  }
  .cajas-info .box h4 {
    font-size: 13px;
  }
}

/* ========================================================= */
/*                MEJORAS GENERALES DE ESPACIADO             */
/* ========================================================= */

section, .main, .slider-container {
  margin-bottom: 20px;
}

.container-wrapper {
  padding-bottom: 30px;
}

body, p, ul, li {
  margin: 0;
  padding: 0;
}

/* ========================================================= */
/*                 SLIDER — ESTILO MODERNIZADO               */
/* ========================================================= */

.slider-container .swiper {
  border-radius: var(--radius);
  box-shadow: 0 4px 10px var(--sombra-media);
}

.swiper-slide img {
  border-radius: var(--radius);
}

/* flechas */
.swiper-button-next,
.swiper-button-prev {
  color: var(--verde-stc) !important;
}

/* bullets */
.swiper-pagination-bullet {
  background: var(--verde-stc) !important;
  opacity: 0.4;
}

.swiper-pagination-bullet-active {
  background: #1e6d42 !important;
  opacity: 1;
  transform: scale(1.2);
}

/* ========================================================= */
/*                NAV — ESTILO ARMÓNICO Y CENTRADO           */
/* ========================================================= */

nav {
  background: #ffffff;
  border-bottom: 1px solid var(--borde-suave);
  box-shadow: 0 2px 4px var(--sombra-suave);
  padding: 5px 0;
}

nav ul li a {
  color: var(--verde-stc) !important;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: var(--radius-small);
}

nav ul li a:hover {
  background: var(--verde-suave);
}

/* móvil - evitar descuadres */
@media (max-width: 600px) {
  nav, nav ul, nav ul li {
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ========================================================= */
/*                FOOTER — MODERNO Y LIMPIO                  */
/* ========================================================= */

footer {
  background: var(--verde-suave);
  padding: 20px;
  text-align: center;
  color: #333;
  font-size: 14px;
  border-top: 1px solid var(--borde-suave);
}

footer * {
  margin: 0;
  padding: 0;
}

/* ========================================================= */
/*     MEJORA DE ESTILO — CAJA "DESCARGA DOCUMENTOS"         */
/* ========================================================= */

.docpdf {
  padding: 18px !important;
}

.docpdf .tidoc {
  font-size: 18px !important;
  font-weight: bold;
  color: var(--verde-stc);
  margin-bottom: 12px;
}

/* íconos PDF más grandes y alineados */
.docpdf ul li a i {
  font-size: 24px !important;  /* antes 20px */
  margin-right: 8px;
  color: var(--verde-stc) !important;
}

/* texto más grande y legible */
.docpdf ul li a {
  font-size: 16px !important;    /* antes 14-15 */
  line-height: 18px !important;
  color: #222 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* efecto suave al pasar el mouse (desktop) */
.docpdf ul li a:hover {
  color: var(--verde-stc) !important;
  text-decoration: underline;
}

/* versión móvil — un poquito más ajustado */
@media (max-width: 600px) {
  .docpdf {
    padding: 14px !important;
  }

  .docpdf ul li a {
    font-size: 15px !important;
  }

  .docpdf ul li a i {
    font-size: 22px !important;
  }
}

/* ========================================================= */
/*     FORZAR CAMBIOS EN "DESCARGA DOCUMENTOS"               */
/* ========================================================= */

.docpdf {
  padding: 18px !important;
  background: #ffffff !important;
  border-radius: 10px !important;
  border: 1px solid #d3e7d3 !important;
}

.docpdf .tidoc {
  font-size: 20px !important;
  font-weight: bold !important;
  margin-bottom: 12px !important;
  color: #2e8b57 !important;
}

/* íconos PDF */
.docpdf ul li a i {
  font-size: 26px !important;
  color: #2e8b57 !important;
  margin-right: 10px !important;
}

/* texto */
.docpdf ul li a {
  font-size: 17px !important;
  line-height: 20px !important;
  color: #000 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}


/* ==================== */
/*       CARRUSEL       */
/* ==================== */

.slider-container .swiper {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

@media (max-width: 600px) {
  .slider-container .swiper { height: 260px; }
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* ======================== */
/*    CAJAS: DOCUMENTOS     */
/* ======================== */

.docpdf,
.caja-info {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #d3e7d3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.docpdf .tidoc {
  font-size: 19px;
  font-weight: bold;
  color: #2e8b57;
  margin-bottom: 10px;
}

.docpdf ul li a {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #222;
}

.docpdf ul li a i {
  font-size: 22px;
  color: #2e8b57;
}

/* ================================ */
/*     CAJAS SUPERIORES (2)         */
/* ================================ */

.tarjetas-contenedor {
  display: flex;
  gap: 20px;
  padding: 20px 0;
}

@media (max-width: 900px) {
  .tarjetas-contenedor { flex-direction: column; }
}

/* ================================ */
/*     4 CAJAS INFORMATIVAS         */
/* ================================ */

.cajas-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 15px 0;
}

@media (max-width: 900px) {
  .cajas-info { grid-template-columns: repeat(2, 1fr); }
}

.cajas-info .box {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #d3e7d3;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: 0.2s;
}

.cajas-info .box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.cajas-info .box img {
  width: 100%;
  border-radius: 10px;
  margin-top: 6px;
}

.cajas-info .box h4 {
  font-size: 15px;
  color: #2e8b57;
  margin-bottom: 5px;
}
