.partners-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partners-section img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}
/* SECCIÓN COMPROMISO */

.compromiso-section {
    padding: 3rem 1rem;
    background-color: #92419f;
    color: white;
}

.why-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: black;
}

.compromiso-text {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
    font-size: 1.1rem;
    font-family: "DM Sans", sans-serif;
}

/* GRID */

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1500px;
    margin: 0 auto;
}

/* CARDS – ahora blancas */

.valor-card {
    background-color: #fff;
    color: #000;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-5px);
}

/* HEADER dentro de la card */

.valor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.valor-card h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.3rem;
}

/* ICONOS COLOR CORPORATIVO */

.icon-rosa { color: #e64386 !important; }
.icon-naranja { color: #fe9a26 !important; }
.icon-turquesa { color: #6dc7d0 !important; }
.icon-morado { color: #92419f !important; }



.active{
    background-color: #450c4e !important;
}

.about-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}

.about-card {
    min-width: 100%;
    scroll-snap-align: start;
    flex-shrink: 0;
    background: #F9F8F2;
    padding: 20px 20px 60px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}
.carousel-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-cards {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0;
  
  /* Ocultar la barra de scroll */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.carousel-cards::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}


.carousel-item {
  display: flex;
  flex-shrink: 0;      /* evita que la card se encoja */
  width: 100%;          /* ocupa el ancho del contenedor */
  max-width: 1000px;    /* evita que se expanda demasiado */
  padding: 20px;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  scroll-snap-align: start; /* para que el scroll “encaje” */
  box-sizing: border-box;
}

.carousel-item img {
  width: 45%;        /* siempre a la izquierda */
  max-width: 400px;  /* límite de tamaño */
  height: auto;      /* mantiene proporción */
  object-fit: contain;
  border-radius: 10px;
}

.carousel-text {
  width: calc(55% - 20px); /* resto del espacio para texto */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Media query para móviles */
@media (max-width: 780px) {
  .carousel-item {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .carousel-item img {
    width: 100%;
    height: 300px;
  }

  .carousel-text {
    width: 100%;
  }
}


.carousel-text h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #333;
}

.carousel-text p {
  margin-top: 8px;
  font-size: 1rem;
  color: #555;
}

/* DOTS */
.carousel-dots {
  margin-top: 0px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  background: #d3c6d7;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dots button.active {
  background: #450c4e;
}

/* Sección ODS */
#ods {
  background-color: white;
  padding: 50px 20px;
}

#ods p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: black;
}

#ods .ods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
}

#ods .ods-card {
  width: 100%;
  padding-top: 100%; /* fuerza la altura cuadrada */
  position: relative;
}

#ods .ods-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 90%;
  object-fit: contain;
  margin: auto;
  right: 0;
  bottom: 0;
  display: block;
}


#ods .ods-card p {
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Imagen por defecto (escritorio) */
.partners-img {
  width: 100%;
  height: auto;
}

/* Imagen para móviles */
@media (max-width: 768px) {
  .partners-img {
    content: url("/imagenes/apoyomovil.png");
  }
}
