/* ===== Importar las fuentes ===== */
@font-face {
  font-family: 'Sansation';
  src: url('../assets/fonts/sansation_regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Sansation';
  src: url('../assets/fonts/sansation_bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Sansation';
  src: url('../assets/fonts/sansation_light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Square721';
  src: url('../assets/fonts/square-721-extended-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Square721';
  src: url('../assets/fonts/square-721-extended-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* ===== Variables de colores ===== */
:root {
  --color-principal: #e74011;
  --color-secundario: #f39568;
  --color-texto: #606060;
}

/* ===== Reset básico ===== */
html{
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Sansation', Arial, sans-serif;
  color: var(--color-texto);
  background-color: #fff;
  line-height: 1.5;
}

/* ===== Estilos ejemplo ===== */
header {
  text-align: center;
  padding: 10px 10px;
  background-color: white;
  color: #fff;
}

.titulo {
  font-family: 'Square721', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--color-principal);
}

.subtitulo {
  font-family: 'Sansation', Arial, sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
  color: #fff;
}

/* ===== Header y Menú ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #ffffff; /* puedes cambiar si quieres un fondo distinto */
  border-bottom: 1px solid #eaeaea;
}


.menu ul {
  list-style: none;
  display: flex;
  gap: 30px; /* espacio entre items */
}

.menu ul li a {
  font-family: 'Sansation', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-texto); /* gris */
  text-decoration: none;
  transition: color 0.3s;
}

.menu ul li a:hover {
  color: var(--color-principal); /* efecto hover rojo */
}

.navbar-brand img {
  width: 200px;
  height: auto; /* mantiene la proporción original */
}

/* En pantallas pequeñas */
@media (max-width: 768px) {
  .navbar-brand img {
    width: 100px;
  }
}

/* Logo */
.navbar-brand img {
  width: 200px;
  height: auto;
}

/* En móviles */
@media (max-width: 768px) {
  .navbar-brand img {
    width: 100px;
  }

  /* Alinear menú desplegable a la derecha */
  .navbar-collapse {
    text-align: right; /* alinea todo el contenido a la derecha */
  }

  .navbar-nav {
    flex-direction: column; /* mantiene vertical los links */
    align-items: flex-end;  /* los alinea a la derecha */
  }

  .navbar-nav .nav-link {
    margin-left: 0;
    margin-bottom: 10px;
  }
}

/* Menú links */
.navbar-nav .nav-link {
  font-family: 'Sansation', Arial, sans-serif;
  font-weight: 400;
  color: var(--color-texto);
  margin-right: 50px;
  margin-left: 50;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--color-principal);
}

/* hero secc */
#hero {
  height: 580px;
  position: relative;
  overflow: hidden;
}

#hero .carousel-item img {
  height: 530px;
  object-fit: cover;
}

#hero .carousel-caption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0;
}

.hero-title {
  font-family: 'Square721', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  text-transform: uppercase;
}

/* Animación de aparición del texto solo en el slide activo */
.carousel-item.active .hero-title {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Tamaño más pequeño en móviles */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem; /* aproximadamente 2 puntos menos */
  }
}


/* menu overlay*/

@media (max-width: 768px) {
  /* Menú overlay con más transparencia */
  .navbar-collapse {
    position: absolute;
    top: 100%; /* justo debajo del navbar */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* más transparente */
    z-index: 9999;
    padding: 15px 0;
    backdrop-filter: blur(5px); /* efecto blur opcional */
  }

  /* Menú vertical y alineado a la derecha */
  .navbar-nav {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }

  .navbar-nav .nav-link {
    margin-left: 0;
    margin-bottom: 10px;
    font-size: 1rem;
  }
}

/*Nosotros*/

.nosotros-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 40px 0;
}

.nosotros-info-container{
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1280px;
  width: 100%;
  margin: 20px 0;

}

.nosotros-content-container{
  width: 50%;

}

.nosotros-title-container h2{
  color: var(--color-principal);
  font-family: 'Square721', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

@media screen and (max-width: 768px){
  .nosotros-info-container{
    flex-direction: column;
    width: 90%;
  }

  .nosotros-content-container{
    width: 100%;
  }
}

.trabajo-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: var(--color-principal);
}

.trabajo-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
}

.trabajo-content-container{
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.trabajo-content-container h2{
  color: #ffffff74;
  font-family: 'Square721', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.trabajo-item{
  color: #fff;
  font-family: 'Square721', sans-serif;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 3px;
}


.trabajo-item img{
  width: 40px;
}

.trabajo-img-container{
  width: 50%;
}

.trabajo-img-container img{
  width: 600px;
  height: 500px;
}

.hacemos-content-container h2{
  color:#ffffff74;
  font-size: 2.5rem;
}

.hacemos-container{
  flex-direction: row-reverse;
  margin-top: 20px;
  align-items: start;

}

.hacemos-img-container img{
  width: 600px;
} 

.hacemos-item img{
  width: 40px;
}

@media screen and (max-width: 768px){
  .hacemos-container, .trabajo-container{
    flex-direction: column;
    width: 100%;
    align-items: start;
  }

  .hacemos-content-container h2, .trabajo-content-container h2{
    text-align: center;
    font-size: 1.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }

  .trabajo-content-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .trabajo-item{
    width: 90%;
    margin-left: 20px;
  }

  .trabajo-item img{
    width: 60px;
  }

  .hacemos-img-container img, .trabajo-img-container img{
    width: 400px;
    height: 300px;
  }
}

.products-section{

  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 40px 0;
}

.products-title-container h2{
  color: var(--color-principal);
  font-family: 'Square721', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 5px;
  margin: 0 0 40px;
}

.products-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #9e9b9b59;
  padding: 0 30px;
  border-radius: 15px;
}

.products-item img{
  width: 200px;
  mix-blend-mode: multiply;
}

.products-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1280px;
}

.products-item h4{
  font-size: 1.2rem;
  text-align: center;
}

.products-item p{
  opacity: 0.8;
}

.first-row, .second-row, .third-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 20px;
}

@media screen and (max-width: 768px) {
  .first-row, .second-row, .third-row {
    flex-direction: column;
  }

  .products-title-container h2{    
    letter-spacing: 0;
  }
}

.carousel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 40px;
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  display: flex;
  overflow: hidden;
  position: relative;
}

.group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  animation: scrollLoop 25s linear infinite; /* más rápido que antes */
}

.group img {
  width: 400px;
  border-radius: 15px;
  flex-shrink: 0;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.group img:hover {
  transform: scale(1.05);
}

/* Animación desplazamiento */
@keyframes scrollLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .group img {
    width: 250px;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}


.btn-solicitar{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

.btn-solicitar a{
  text-decoration: none;
  color: #fff;
  padding: 10px 20px;
  background: var(--color-principal);
  border-radius: 15px;
  font-weight: 700;
  text-align: center;
  font-family: 'Square721', sans-serif;
}


.elegirnos-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 40px;
}

.elegirnos-title-container h2{
  color: var(--color-principal);
  font-family: 'Square721', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 5px;
  margin-bottom: 40px;
}

.elegirnos-cards-container{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}


.elegirnos-card{
  width: 350px;
  height: 300px;
  border-radius: 15px;
  background: var(--color-secundario);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  text-align: center;

}

.elegirnos-card img{
  width: 100px;
}

.elegirnos-card p{
  font-size: 2rem;
  color: #fff;

}

.ubication-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 40px;
}

.ubication-title-container h2{
  color: var(--color-principal);
  font-family: 'Square721', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 5px;
  margin-bottom: 40px;
}

.ubication{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1280px;
}

.ubication iframe{
  width: 90%;
}

.contact-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 40px;
  padding-bottom: 40px;
  background: var(--color-principal);
}

.contact-title-container h2{
  color: #fff;
  font-family: 'Square721', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 5px;
  margin: 40px 0;
}

.form-container{
  display: flex;
  width: 100%;
  max-width: 1280px;
  justify-content: center;
}

.form{
  display: flex;
  justify-content: space-around;
  width: 100%;
  gap: 20px;
}

.form-group{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.message-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.message-container textarea{
  height: 152px;
  resize: none;
}

.btn-container{
  display: flex;
  width: 100%;
}

.btn-container button{
  background: #fff;
  color: var(--color-principal);
  font-weight: 700;
  border: none;
}

@media screen and (max-width: 768px){
  .form{
    flex-direction: column;
    width: 90%;
  }
  
  .elegirnos-cards-container{
    flex-direction: column;
    width: 90%;
  }

  .elegirnos-title-container h2{
    text-align: center;
  }
}

.footer{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 40px;
}

.footer-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
}

.footer-img-container{
  width: 100%;
}

.footer-img-container img{
  width: 200px;
}

.footer-content-container{
  width: 500px;
  display: flex;
  flex-direction: column;
  align-items: end;
  padding-right: 30px;
}

@media screen and (max-width: 768px){
  .footer-container{
    flex-direction: column;
    align-items: center;
    width: 90%;
  }

  .footer-content-container{
    width: 100%;
    align-items: center;
    padding-right: 0;
  }

  .footer-img-container{
    display: flex;
    justify-content: center;
  }

  .footer{
    margin-top: 0;
  }
}


.hacemos-img-container {
  width: 600px; /* ancho deseado */
  height: 500px; /* alto igual al ancho para cuadrado */
  overflow: hidden;
  position: relative;
}

.hacemos-img-container video.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover; /* mantiene la proporción y recorta lo que sobresale */
  display: block;
  clip-path: inset(0 0 0 0); /* recorte cuadrado (relleno todo) */
}


/* Primera fila: solo imágenes */
.first-row-only-images {
  display: flex;
  justify-content: center; /* centra las imágenes en la fila */
  gap: 20px;               /* espacio entre las imágenes */
  margin-bottom: 20px;
  padding: 10px;
  background: none;
  box-shadow: none;
  flex-wrap: wrap;          /* permite que los items se muevan a la siguiente fila si no caben */
}

/* Cada item de la fila */
.first-row-only-images .products-item {
  flex: 0 0 38%;          /* cada imagen ocupa 30% del ancho del contenedor */
  margin: 0;
  padding: 10px;
  border: none;
  box-shadow: none;
  background: none;
}

/* La imagen dentro de cada item */
.first-row-only-images .products-item img {
  width: 100%;             /* ocupa todo el ancho del item */
  height: auto;
  display: block;
  border-radius: 8px;

  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: none;
}

/* Media query para móviles */
@media (max-width: 768px) {
  .first-row-only-images .products-item {
    flex: 0 0 100%;       /* cada imagen ocupa todo el ancho en móviles */
    padding: 5px;         /* padding más pequeño */
  }
}

.trabajo-img-container {
  position: relative;
  width: 100%;
  max-width: 600px; /* mismo ancho que la imagen original */
  aspect-ratio: 1 / 1; /* mantiene el formato cuadrado */
  overflow: hidden;
}

.trabajo-img-container .video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover; /* asegura que el video se recorte bien al cuadrado */
  border-radius: inherit;
}


/* Texto e íconos más chicos en ambas secciones */
.trabajo-content-container h2 {
  font-size: 30px; /* antes probablemente 2rem o más */
  margin-bottom: 1rem;
}

.trabajo-item {
  font-size: 0.9rem; /* reduce el tamaño del texto */
  display: flex;
  align-items: center;
  gap: 8px; /* espacio entre ícono y texto */
  margin-bottom: 0.5rem;
}

.trabajo-item img {
  width: 30px; /* achica el ícono */
  height: auto;
  vertical-align: middle;
}

/* Si querés que solo se aplique a la primera sección (VALORES FUNDACIONALES) */
.trabajo-section:not(.hacemos-section) .trabajo-item {
  font-size: 0.85rem;
}

.trabajo-section:not(.hacemos-section) .trabajo-item img {
  width: 30px;
}


.hacemos-container {
  display: flex;
  align-items: center;      /* centra verticalmente texto y video */
  justify-content: center;  /* centra horizontalmente el conjunto dentro del contenedor */
  gap: 40px;                /* espacio entre video y texto */
  flex-wrap: wrap;          /* permite que se acomoden uno debajo del otro en pantallas pequeñas */
}

.hacemos-img-container {
  flex: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 0; /* sin margen en móviles */
}

/* 👇 margen solo en pantallas grandes */
@media (min-width: 768px) {
  .hacemos-img-container {
    margin-bottom: 30px;
  }
}


/* Contenedor general */
.elegirnos-cards-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px; /* 👈 más margen entre cards (ajustable) */
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Estilo de cada card */
.elegirnos-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

/* Tipografía y estilo del texto */
.elegirnos-card p {
  font-family: 'Square721';
  font-size: 20px;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* Iconos */
.elegirnos-card img {
  width: 50px;
  height: auto;
}

.elegirnos-card img {
  width: 70px; /* antes 50px */
  height: auto;
}

.carousel-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  background-color: #f9f9f9;
}

.carousel-container {
  text-align: center;
  max-width: 900px;
  width: 90%;
}

.main-image img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}

.thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.thumbnails img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: transform 0.3s, opacity 0.3s;
}

.thumbnails img:hover {
  transform: scale(1.05);
  opacity: 1;
}

.thumbnails img.active {
  border: 3px solid #ffcc00;
  opacity: 1;
}

@media (max-width: 600px) {
  .thumbnails img {
    width: 70px;
    height: 50px;
  }
}

.carousel-section {
  text-align: center;
  padding: 40px 20px;
}

.carousel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-image-container {
  position: relative;
  width: 80%;
  max-width: 900px;
  overflow: hidden;
}

.main-image-container img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.thumbnails img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, opacity 0.2s, border-color 0.2s;
}

.thumbnails img:hover {
  transform: scale(1.05);
  opacity: 0.85;
  border-color: #ffc107;
}


/* --- Diseño general --- */
.products-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.second-row,
.third-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: center;
}

.products-item {
  flex: 1;
  text-align: center;
}

/* --- En móviles: dos por fila, ocupando todo el ancho --- */
@media (max-width: 768px) {
  .second-row,
  .third-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    width: 100%;
  }

  .products-item {
    width: 90%;
    max-width: 90%;
    box-sizing: border-box;
  }

  .products-item img {
    width: 90%;
    height: auto;
  }

  .products-container {
    padding: 0 10px; /* pequeño margen lateral opcional */
  }
}

@media (max-width: 768px) {
  .second-row,
  .third-row {
    column-gap: 0px;
  }
}



@media (max-width: 768px) {
  .first-row-only-images img {
    max-width: 100%; /* ocupa más ancho en móvil */
    transform: scale(1.1); /* 👈 agranda un poco la imagen visualmente */
  }

  .first-row-only-images {
    flex-direction: column; /* opcional: las pone una debajo de la otra */
    align-items: center;
    gap: 16px;
  }
}


/* 👇 solo en escritorio las agrandamos */
@media (min-width: 992px) {
  .first-row-only-images img {
    max-width: 850px; /* agrandadas en escritorio */

