/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

#top {
  background: rgb(255, 255, 255);
}

h2 {
  font-size: 1.5em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 20px;
}

h3 {
  text-align: center;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 0.03em;
}

h4 {
  font-size: 0.9em;
  font-weight: 600;
}

/* CABECERA Y NAVEGADOR */
#cabeza {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  color: #fff;
  background: #1889ec;
  padding: 8px;
  font-size: 0.85em;
  font-weight: 300;
  letter-spacing: 0.1em;
}

#cabeza a {
  padding: 0.6em;
}

.menu-toggle {
  display: block;
  font-size: 2em;
  background: none;
  border: none;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: black;
}

#navegador {
  position: sticky;
  width: 100%;
  top: 0;
  background: white; /* Asegura que no sea transparente al hacer scroll */
  z-index: 1000; /* Para que quede encima de otros elementos */
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0px 5%;
  margin: 10px 0px;
  flex-wrap: wrap;
  box-shadow: 0px 3px 6px -4px rgba(35, 35, 35, 0.64);
}

.logo img {
  height: 2.7em;
}

.navegador-lista {
  width: 90%;
  display: none;
  flex-direction: column;
  align-items: center;
  list-style: none;
  font-size: 1.1em;
  letter-spacing: 0.03em;
  gap: 15px;
  background: #fff;
  position: absolute;
  top: 70px;
  /* Ajusta según tu navbar */
  right: 20px;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.navegador-lista.active {
  display: flex;
}

.navegador-lista a {
  text-decoration: none;
  color: black;
}

.navegador-lista a:hover {
  cursor: pointer;
}

.cotiza a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #01c501;
  color: white;
  padding: 10px 20px;
  margin-left: 0.8em;
  margin-right: 0.8em;
  border-radius: 30px;
}

.cotiza img {
  height: 1.3em;
}

/* BANNER */

#reco2 {
  border-radius: 25px;
  width: 100%;
  height: auto;
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.2);
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  object-fit: cover;
}

/* PRODUCTOS */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  position: relative;
  gap: 10px;
  padding: 10px;
}

.item-productos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.item-productos img {
  position: absolute;
  width: 9em;
}

.circulo-productos {
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 8em;
  width: 8em;
  color: white;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: transform 0.4s ease-out;
}

.circulo-productos:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in;
}

/*  CARRUSEL  */
.reco {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 25px;
  padding: 0.5px 20px 15px;
  background: #1889ec;
  border-radius: 25px;
}

.reco .swiper {
  /* separaciones entre slides */
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 12px;
  height: auto;
}

.card {
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden; /* por si la imagen sobresale */
  margin-bottom: 15px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
  transition: box-shadow 1s ease-out;
}

.card:hover {
  background: #fff;
  box-shadow: 0 5px 8px rgba(251, 251, 251, 0.64);
  transition: box-shadow 0.3s ease-in;
}

.card-img {
  width: 100%;
  aspect-ratio: 1 / 1; /* cuadrada */
  object-fit: cover; /* recorte proporcional */
  border-radius: 8px;
  transition: none;
}

.reco h2 {
  color: #fff;
  margin-bottom: 10px;
}

.reco h3 {
  margin-top: 7px;
}

.reco-swiper .swiper-button-next,
.reco-swiper .swiper-button-prev {
  color: #1889ec;
}
.reco-swiper .swiper-button-next:hover,
.reco-swiper .swiper-button-prev:hover {
  color: #ffffff;
}

#reco2 .swiper-button-next,
#reco2 .swiper-button-prev {
  color: #c7c7c7;
  transition: color 0.3s;
}

#reco2 .swiper-button-next:hover,
#reco2 .swiper-button-prev:hover {
  color: #eeeeee; /* Color al pasar el mouse */
}

#reco2 .swiper-pagination-bullet {
  background-color: #9ca3af;
  opacity: 1;
}

#reco2 .swiper-pagination-bullet-active {
  background-color: #fff;
}

/* COTIZA */
#cotizacion {
  font-size: 1.4em;
  letter-spacing: 0.03em;
}

#cotizacion a {
  text-decoration: none;
}

/* NOSOTROS */
.nosotros-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.persona {
  display: flex;
  justify-content: center;
  width: 50%;
  margin: 10px 0px 10px 0px;
}

.info {
  border-radius: 25px;
  background: #ececec;
  padding: 30px;
}

.persona img {
  margin-bottom: 10px;
  width: 100%;
  max-width: 300px;
}

/* CONTACTANOS */
.contactanos-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin: 0 5%;
  gap: 20px;
  margin-top: 20px;
}

.contactanos-wrapper iframe {
  flex: 1;
  border: 0;
  border-radius: 25px;
  width: 100%;
  height: 250px;
  min-height: 300px;
}

.contactanos-info {
  background: #1889ec;
  width: 100%;
  color: white;
  padding: 20px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0.3;
}

.contactanos-info p {
  font-weight: 300;
  margin-bottom: 0.3em;
}

/* FOOTER */
#pie {
  width: 100%;
  background: #1889ec;
  color: white;
  margin-top: 30px;
  padding: 10px 0;
  border-radius: 25px;
}

.pie-wrapper {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin: 0 5%;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.socials img {
  height: 2em;
}

/*  PAGINA DE PRODUCTOS  */

#producto-main {
  display: flex;
  margin: -12px 30px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

#producto-main2 {
  background: #f6f6f6;
  border: solid 2px #fff;
  border-radius: 25px;
  display: flex;
  padding: 20px 20px;
  margin: 20px 0px 0px 0px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pro-card {
  width: 90%;
  height: 90%;
  object-fit: cover;
}

.pro-card h4 {
  font-weight: 400;
  letter-spacing: 0.7px;
  margin-top: 12px;
}

.foto-main img {
  width: 100%;
  object-fit: cover; /* recorte proporcional */
  border-radius: 16px;
}

#producto-main h2 {
  margin-bottom: 30px;
}

#producto-main2 h2 {
  color: #000;
  margin: 0px 0px 10px;
}

.descripcion {
  text-align: center;
  margin: 15px 20px 15px 20px;
}

#producto-main p {
  text-align: center;
}

.fotos-sec {
  display: grid;
  width: 100%;
  /*grid-template-columns: repeat(3, minmax(0, 1fr));*/
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 12px;
  align-items: start; /* evita estiramientos raros */
  margin-top: 15px;
  text-align: center;
  object-fit: cover;
}

.fotos-sec img {
  width: 100%;
  height: 100%; /* respeta la proporción de la foto */
  display: block; /* quita espacios blancos abajo de la img inline */
  overflow: hidden;
  border-radius: 50%;
}

.linea {
  border-bottom: 2px solid #e0e0e0;
  margin: 35px 30px 28px;
}
/* Al final de tu CSS */
@media (min-width: 1024px) {
  /* mejora lectura en pantallas grandes */
  .container,
  main,
  #top {
    font-size: 1em;
    /* ancho máx del contenido */
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  /* Barra promocional (#cabeza) está bien; solo aumenta aire si quieres */
  #cabeza {
    justify-content: center;
    font-size: 1em;
    padding: 10px 0;
  }

  #cotizacion-header {
    display: none;
  }

  /* Navbar */
  #navegador {
    padding: 10px 40px;
    margin: 16px 0;
  }

  .menu-toggle {
    display: none;
  }

  /* ocultar hamburguesa en desktop */

  .navegador-lista {
    position: static;
    /* deja de ser dropdown flotante */
    display: flex !important;
    /* visible en fila */
    flex-direction: row;
    width: auto;
    gap: 40px;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .cotiza a {
    padding: 10px 22px;
  }
}

@media (min-width: 1024px) {
  #reco2 {
    max-width: 1200px;
    margin: 0 auto 24px;
  }

  /* si son imágenes dentro del slide */
  .swiper-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 10px;
  }
}

@media (min-width: 768px) {
  .grid-productos {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .circulo-productos {
    width: 11.5em;
    height: 11.5em;
  }

  .item-productos img {
    width: 13.5em;
  }
}

@media (min-width: 1200px) {
  #contenedor-productos {
    max-width: 1200px;
    margin-inline: auto;
  }

  .grid-productos {
    justify-content: space-around;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .circulo-productos {
    width: 12.5em;
    height: 12.5em;
  }

  .item-productos img {
    width: 13em;
  }
}

@media (min-width: 1024px) {
  .reco {
    padding: 8px 40px 20px;
  }

  .reco .swiper {
    max-width: 1200px;
    margin: 0 auto;
  }

  .card {
    border-radius: 24px;
    padding: 14px;
  }

  .card-img {
    aspect-ratio: 4 / 3;
  }

  /* rectangular en desktop */
}

@media (min-width: 1024px) {
  #cotizacion {
    display: none;
  }
}

@media (min-width: 992px) {
  .nosotros-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
    padding: 0 40px;
  }

  .persona {
    width: 19%;
    margin: 0;
    justify-content: flex-start;
  }

  .persona img {
    max-width: 100%;
  }

  .info {
    flex: 1;
    border-radius: 10px;
  }
}

@media (min-width: 992px) {
  .contactanos-wrapper {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 40px;
  }

  .contactanos-wrapper iframe {
    width: 60%;
    height: 380px;
    min-height: 380px;
  }

  .contactanos-info {
    width: 40%;
    padding: 28px;
    border-radius: 10px;
  }
}

@media (min-width: 992px) {
  #pie {
    padding: 18px 0;
  }

  .pie-wrapper {
    flex-direction: row;
    text-align: left;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
  }

  .socials {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  #producto-main {
    max-width: 1100px;
    margin: 0 auto;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .foto-main {
    flex: 1;
  }

  .foto-main img {
    width: 100%;
    border-radius: 50%;
  }

  .descripcion {
    flex: 1;
    margin: 0;
    /* quitamos márgenes negativos móviles */
    padding: 20px 24px;
  }

  /* Galería secundaria: 2x2 */
  .fotos-sec {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 18px;
  }

  .fotos-sec img {
    aspect-ratio: 4 / 3;
    /* todas con misma altura visual */
    object-fit: cover;
  }
}
