body {
  font-family: 'Exo',  !important;

}

.section-padded {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

#quienes-somos h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 1rem;
}

#quienes-somos h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.about-block {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
  margin-top: 3rem;
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about-block.reverse {
  flex-direction: row-reverse;
}

.about-content {
  flex: 1;
  min-width: 300px;
}

.about-content h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.about-content h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 1.2rem;
}

.about-image {
  flex: 1;
  min-width: 350px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}


/* ==============================================
ESTILOS PARA LA SECCIÓN DE TRAYECTORIA (ESTADÍSTICAS)
============================================== */

/* Contenedor Principal de las Estadísticas */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 30px 0;
    margin-bottom: 40px;
    background-color: #f7f9fb;
    border-radius: 10px;
}

/* Estilo de cada Tarjeta/Ítem de Estadística */
.stat-item {
    text-align: center;
    padding: 20px 10px;
    border-right: 1px solid #e0e0e0;
}

/* Elimina el borde derecho del último elemento */
.stat-item:last-child {
    border-right: none;
}

/* Iconos */
.stat-icon {
    font-size: 3em;
    color: #3d8a46;
    margin-bottom: 10px;
}

/* El Número */
.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
    font-family: 'Exo', sans-serif;
    margin-bottom: 5px;
}

/* La Descripción */
.stat-label {
    font-size: 1em;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==============================================
 ESTILOS PARA LA SECCIÓN DEL EQUIPO:
  ===============================================*/

/* Estilos para el contenedor de las tarjetas individuales */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Estilos para cada tarjeta individual */
.team-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.team-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid #3d8a46;
}

.team-card h4 {
    margin-top: 0;
    font-size: 1.3em;
    color: #333 !important;
}

.team-card .role {
    color: #3d8a46;
    font-weight: 600;
    margin-bottom: 10px;
}

.team-card .social-links a {
    color: #333;
    font-size: 1.5em;
    margin: 0 5px;
    transition: color 0.3s;
}

.team-card .social-links a:hover {
    color: #007bff;
}

#nuestro-equipo
  {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
    padding-bottom: 0.5rem !important;
}


/* ==============================================
   SECCIÓN: CÓMO TRABAJAMOS (imagen superior)
   ============================================== */

.work-methodology {
    background: linear-gradient(180deg, #f8fcf8 0%, #eaf8ea 100%);
    padding: 3rem 0rem;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 2rem;
}

.work-methodology:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(61, 138, 70, 0.15);
}

/* Encabezado */
.methodology-header {
    max-width: 1200px;
    margin: 0 auto 2.5rem;
}

.methodology-header h2 {
    color: var(--primary-color);
    font-size: 2.6rem;
    margin-bottom: 1rem;
    position: relative;
}

.methodology-header h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0.8rem auto 0;
    border-radius: 5px;
}

.methodology-header p {
    font-size: 1.1rem;
    color: var(--dark-color);
    line-height: 1.7;
}

/* Imagen superior */
.methodology-image-top {
    margin: 3rem auto;
    max-width: 900px;
}

.methodology-image-top img {
    width: 70%;
    border-radius: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.methodology-image-top img:hover {
    transform: scale(1.02);
}

/* Contenido */
.methodology-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.methodology-content h3 {
    font-size: 1.8rem;
    color: #3d8a46;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.methodology-content p {
    font-size: 1.05rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

/* Pilares */
.methodology-pillars {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.pillar-card {
    background-color: #fff;
    border-radius: 1.2rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    text-align: center;
    flex: 1 1 280px;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(61, 138, 70, 0.15);
}

.pillar-icon {
    font-size: 2.5rem;
    color: #3d8a46;
    margin-bottom: 1rem;
}

.pillar-card h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    color: #2e2e2e !important;
}

.pillar-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.closing-text {
    margin-top: 3rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: #e3f3e3;
    border-left: 5px solid #3d8a46;
    border-radius: 0.5rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.6;
}


/* Media Query para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    /* Quienes Somos */
    .work-methodology {
        padding: 3rem 1.5rem;
    }

    .methodology-header h2 {
        font-size: 2.2rem;
    }

    .methodology-pillars {
      flex-wrap: wrap;
    }

    .pillar-card {
        flex: 1 1 100%;
    }

    /* Quienes Somos (existente) */
    .about-block {
      flex-direction: column;
      gap: 2rem;
      padding: 1.5rem;
      margin-bottom: 3rem;
    }

    .about-block.reverse {
      flex-direction: column;
    }

    .about-content, .about-image {
      min-width: 100%;
    }

    .about-content h3 {
      text-align: center;
      font-size: 1.5rem;
    }

    .about-content h3::after {
      left: 50%;
      transform: translateX(-50%);
    }

    .section-padded {
      padding: 3rem 1.5rem;
    }

    #quienes-somos h2 {
      font-size: 2rem;
      margin-bottom: 2rem;
    }
    
    .about-image {
      min-width: 100%;
    }

    /* Trayectoria (Estadísticas) - 2 columnas */
    .stats-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    /* borde derecho para la disposición en 2 columnas */
    .stat-item {
      border-right: 1px solid #e0e0e0;
    }
    
    .stat-item:nth-child(2n) {
        border-right: none;
    }
    .stat-item:last-child {
        border-right: none;
    }
    .stat-item:nth-child(3) {
        border-right: 1px solid #e0e0e0;
    }
}

/* Media Query para móviles pequeños */
@media (max-width: 576px) {
    .section-padded {
      padding: 2rem 1rem;
    }
    
    #quienes-somos h2 {
      font-size: 1.8rem;
    }
    
    .about-content p {
      font-size: 1rem;
    }

    /* Trayectoria (Estadísticas) - 1 columna */
    .stats-container {
      grid-template-columns: 1fr;
    }
    
    .stat-item {
      border-right: none;
      border-bottom: 1px solid #e0e0e0;
    }

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

    .stat-number {
        font-size: 2em;
    }

    /* Equipo */
    .team-card img {
        width: 120px;
        height: 120px;
    }
    .team-card h4 {
        font-size: 1.2em;
    }
    .team-card .role {
        font-size: 0.9em;
    }
}

/* Media Query para pantallas medianas (tabletas) */
@media (min-width: 769px) and (max-width: 992px) {
    /* Quienes Somos */
    .about-block {
      flex-direction: column;
      gap: 2rem;
    }
    
    .about-block.reverse {
      flex-direction: column;
    }
    
    .about-content, .about-image {
      min-width: 100%;
    }
    
    .about-content h3 {
      text-align: center;
    }
    
    .about-content h3::after {
      left: 50%;
      transform: translateX(-50%);
    }

    /* Trayectoria (Estadísticas) - Mantener 4 columnas o ir a 2 */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-item {
      border-right: 1px solid #e0e0e0;
    }
    
    .stat-item:nth-child(2n) {
        border-right: none;
    }
    .stat-item:nth-child(3) {
        border-right: 1px solid #e0e0e0;
    }
    .stat-item:last-child {
        border-right: none;
    }

}

.about-content p,
.methodology-header .lead,
.methodology-content p,
.pillar-card p,
.team-card .bio,
.team-intro p {
    text-align: justify;
}

.closing-text {
    text-align: justify;
}

.about-block.layout-vertical {
    flex-direction: column;
}

.about-block.layout-vertical .about-content {
    text-align: center;
}
.about-block.layout-vertical .about-content h3::after {
    left: 50%;
    transform: translateX(-50%);
}
