:root {
  --first-color: #00abff;
  --button-color: hsl(0, 0%, 17%);
  --title-color: hsl(0, 0%, 15%);
  --text-color: hsl(0, 0%, 35%);
  --container-color: #fff;

  --body-font: 'Roboto', sans-serif;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --font-medium: 600;

  --mb-1: 1rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
}
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/* Solo estructura interna del main */
.grid {
  display: grid;
}

.main {
  overflow: hidden;
}

.section {
  padding: 6.5rem 0 1rem;
}

.section__title {
  position: relative;
  font-size: 1.5rem;
  margin-bottom: var(--mb-3);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

h1, h2, h3, h4 {
    color: hsl(0, 0%, 35%);
    font-weight: 600;
}


.section__title-center {
  font-size: 1.5rem;
  margin-bottom: var(--mb-2);
  text-align: center;
  line-height: 140%;
}

/* ---------- HISTORIA ---------- */
.story__container {
  row-gap: 7.5rem;
}

.story__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-1);
}

.story__description {
  margin-bottom: var(--mb-2-5);
}

.story__images {
  position: relative;
}

.story__img,
.story__square {
  width: 250px;
}

.story__square {
  height: 250px;
}

.story__img {
  position: absolute;
  left: 3rem;
  top: -3rem;
}

/* ---------- OBJETIVOS Y MAPA ---------- */
.about__container {
  gap: 2.5rem;
}

.about__data {
  text-align: start;
}

.about__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about__description {
  margin-bottom: var(--mb-1);
}

.about__img-mapa img,
.about__img img {
  width: 12rem;
  border-radius: 15px;
}

.mapa__img iframe {
  border-radius: 10px;
}

/* ---------- VIDEO ---------- */
.video__container {
  padding-bottom: 1rem;
}

.video__content {
  display: flex;
  align-items: center;
  position: relative;
}

.video__description {
  text-align: start;
  margin-bottom: var(--mb-2-5);
}

.video__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: var(--mb-1);
}

.icon-redes {
  font-size: 2rem;
}

.icon-redes:hover {
  color: var(--text-color);
}

.video__file {
  border-radius: 15px;
}

/* ---------- RESPONSIVE SOLO PARA MAIN ---------- */
@media (max-width: 320px) {
  .story__square,
  .story__img {
    width: 180px;
    height: 180px;
  }

  .video__container {
    padding: 0;
  }


}

@media (min-width: 576px) {
  .video__container {
    display: grid;
    grid-template-columns: .6fr;
    justify-content: center;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__data {
    text-align: initial;
  }

  .about__img {
    order: 1;
  }

  .mapa__img {
    order: -1;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0 1rem;
  }

  .story__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .story__section-title {
    text-align: initial;
  }

  .story__section-title::before {
    margin: initial;
  }

  .story__images {
    order: -1;
  }

  .video__description {
    padding: 0 2rem;
  }

  .video__container {
    grid-template-columns: .7fr .7fr;
  }
}

@media (min-width: 992px) {
  .story__container {
    column-gap: 8rem;
  }

  .story__img,
  .story__square {
    width: 450px;
  }

  .story__square {
    height: 450px;
  }

  .about__container {
    column-gap: 6rem;
  }

  .about__data {
    padding-left: 2rem;
  }
  .about__img-mapa img {
    width: 15rem;
    border-radius: 15px;
  }
}

@media (min-width: 1024px) {
  .story__container {
    column-gap: 13rem;
    padding-top: 3rem;
  }

  .story__img {
    left: 5rem;
  }
}
.main > .container {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
/* ================= VIDEO SECTION SOLO ================== */
.video-section {
  padding: 6.5rem 0 1rem;
}

.video-section__title {
  position: relative;
  font-size: 1rem;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.video-section__container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding-bottom: 1rem;
}

.video-section__content {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex: 1 1 300px;
  position: relative;
}

.video-section__description {
  max-width: 400px;
  margin: 0 auto;
  text-align: start;
  margin-bottom: 2.5rem;
  color: hsl(0, 0%, 35%);
  font-family: 'Roboto', sans-serif;
  font-size: 0.938rem;
}

.video-section__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
}

.video-section__icon a i {
  font-size: 2rem;
  transition: color 0.3s;
}

.video-section__icon a i:hover {
  color: hsl(0, 0%, 55%);
}

.video-section__file {
  border-radius: 15px;
  width: 100%;
  max-width: 500px;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 576px) {
  .video-section__container {
    display: grid;
    grid-template-columns: .6fr;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .video-section {
    padding: 8rem 0 1rem;
  }

  .video-section__container {
    grid-template-columns: .7fr .7fr;
  }

  .video-section__description {
    padding: 0 2rem;
  }
}

@media (min-width: 576px) {
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__img {
    order: 1;
  }
}

@media (min-width: 992px) {
  .about__container {
    column-gap: 6rem;
  }

  .about__data {
    padding-left: 2rem;
  }

  .about__img img {
    width: 470px;
  }
}
.about__container {
  display: grid;
  gap: 2.5rem;
}

.about__data {
  text-align: start;
}

.about__description {
  margin-bottom: var(--mb-1);
}

.about__img img {
  width: 100%;
  border-radius: 15px;
}

.svg__img {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Contenedor exterior: oculta el exceso */
.slider__container {
  overflow: hidden;
  position: relative;
}

/* Track de desplazamiento: se moverá horizontalmente */
.slide-track {
  display: flex;
  width: max-content;
}

/* Cada slide */
.slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  padding: 0 1rem;
}

.slide img {
  width: 100%;
  max-width: 160px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.slide img:hover {
  transform: translateY(-10px);
  opacity: 1;
}

/* Animación de scroll continuo */
@keyframes scroll-slider {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* ==== CONTENEDOR GENERAL ==== */
.services__container {
  display: grid;
  gap: 2rem;
  justify-content: center;
  padding-block: 2rem;
}

@media (min-width: 768px) {
  .services__container {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

/* ==== BLOQUE INDIVIDUAL ==== */
.services__data {
  text-align: center;
  padding: 1rem;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;

  height: 320px; /* altura fija sugerida */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.services__data:hover {
  transform: translateY(-4px);
}

/* ==== TITULITOS COMO "MISIÓN" ==== */
.services__subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--title-color, #222);
}

/* ==== IMAGEN (PNG que reemplazó al SVG) ==== */
.services__img img {
  width: 100%;
  max-width: 120px;
  margin-inline: auto;
  margin-bottom: 1rem;
  display: block;
}

/* ==== TEXTO DESCRIPTIVO ==== */
.services__description {
  font-size: 0.938rem;
  color: var(--text-color, #555);
  line-height: 1.6;
}
.empresas-slider {
  overflow: hidden;
  width: 100%;
  background: #fff;
  padding: 20px 0;
}

.empresas-track {
  display: flex;
  width: max-content; /* importante para que ocupe solo el ancho del contenido */
  animation: scrollEmpresas 150s linear infinite;
}

.empresa-item {
  flex: 0 0 auto;
  padding: 0 20px; /* espacio entre logos */
}

.empresa-item img {
  height: 150px;   /* ajusta según diseño */
  width: auto;
  object-fit: contain;
  display: block;
}

/* clave: solo desplazamos una "mitad" (el primer bloque) */
@keyframes scrollEmpresas {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
