:root{
  --fist-BckColor: #ebe8e8;
  --secound-color: #222222; /* #202020 */
  --third-bckcolor: #f0f0f0;
  --fourth-TextColor:  #202020;
  --sixth-TextColor: #e4e2e2; /*texto*/
  --seventhBackColor: #f0efef; /* grid-item */
}

/* General Reset y Ajustes */
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  background-color: var(--fist-BckColor);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-top: 12vh; 
  z-index: 8;
}

/* Estilo para el encabezado */
header {
  background: linear-gradient(to right, #000000 50%, #f7872b 50%);
  text-align: center;
  height: 10vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Estilo para el hexágono y el logo */
.hexagon {
  width: 95%;
  height: 100%;
  background-color: #404040;
  clip-path: polygon(20% 0%, 80% 0%, 85% 50%, 80% 100%, 20% 100%, 15% 50%);
  position: relative;
}

.logo {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35vh;
  height: auto;
  max-width: 100% auto;
}

/* Estilo para la barra de navegación */
nav {
  background-color: #222;
  color: var(--sixth-TextColor);
  position: fixed;
  top: 10vh;
  width: 100%;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  padding-left: 0px;
  margin-left: 0px;
  margin-top: 0px;
  border-top: 0px;

}

.menu-btn {
  background: #444;
  border: none;
  color: #f5f5f5;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  position: fixed;
  top: 12vh;
  right: 10px;
  z-index: 30;
  display: block;
  opacity: 0;
}

/* Estilo para los enlaces de la barra de navegación */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  background-color: rgba(34, 34, 34, 0.5); 
  width: 100%;
  left: 0;
  content: 0px;
  padding: 0px;
  margin-left: 0px;
  z-index: 20;

  opacity: 1; /* Inicialmente oculto */
  transform: translateY(-10px); /* Desplazado hacia arriba */
  transition: opacity 0.3s ease, transform 0.3s ease; /* Transiciones suaves */
  pointer-events: auto; 
  
}

/* Estilo para el efecto blur */
.blur {
  background-color: rgba(34, 34, 34, 0.5);
  backdrop-filter: blur(5px);
}
div.blur{
  background-color: #25D366;
  
}

/* Aplica el efecto blur solo en pantallas grandes (mayores a 768px) */
@media (min-width: 769px) {
  .blur {
    backdrop-filter: blur(15px); 
  }
}

@media (max-width: 768px) {
  .blur {
    backdrop-filter: none;
  }
}


.nav-links a {
  color: var(--sixth-TextColor);
  text-decoration: none;
  padding: 5px 10px;
  font-size: 18px;
  margin-top: 1vh;
  padding-bottom: 0%;
  margin-bottom: 1vh;

}

.nav-links a:hover {
  background-color: #75f19033;
  border-radius: 5px;

  color: #f7872b;
  transform: scale(1.2);
  transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
}



.nav-links.active {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: fixed;
  top: 10vh;
  left: 0;
  padding: 10px 0;
  margin-bottom: 20px auto ;
  z-index: 20;
  justify-content: center;

  background-color: rgba(34, 34, 34, 0.7); 
  backdrop-filter: blur(15px); 
    opacity: 1; /* Totalmente visible */
    transform: translateY(0); /* Posición inicial */
    pointer-events: auto; /* Habilita interacción */
}



/* Estilo para el contenedor del carrusel */
.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  padding: 2vh 0;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-slides {
  display: flex; 
  transition: transform 0.5s ease; 
  width: 100%;
}

/* Estilo para cada elemento del carrusel */
.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  flex: 0 0 100%; 
  display: block; 
  opacity: 1; 
}

/* Asegura que las imágenes llenen su contenedor */
.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

/* Estilos para los botones de control del carrusel */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--sixth-TextColor);
  color: var(--first-BckColor);
  padding: 2vh;
  cursor: pointer;
  font-size: medium;
  border: none;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Efecto hover para los botones de control */
.carousel-control:hover {
  background-color: var(--secound-color);
  color: var(--sixth-TextColor);
 
}

/* Posición de los botones de control */
.carousel-control.prev {
  left: 1vh;
}

.carousel-control.next {
  right: 1vh;
}

.carousel-control:focus {
  outline: 2px solid #2bf777;
}

/* Estilos adaptados para Móviles */
@media (max-width: 768px) {
  .carousel-control {
    padding: 2vh;
    font-size: xxx-large;
  }

  .carousel-control.prev {
    left: 10px;
  }

  .carousel-control.next {
    right: 10px;
  }
}
/* Estilos apdatados para pantallas pequeñas */ 
@media (max-width: 480px){
  .carousel-control {
    padding: 0.9vh;
    font-size:x-small;
  }

  .carousel-control.prev {
    left: 10px;
  }

  .carousel-control.next {
    right: 10px;
  }
}



/********** end_footer **********/

/* Estilo para el botón de WhatsApp */
.whatsapp-btn {
  position: fixed;
  bottom: 120px;
  right: 30px;
  background-color: #25D366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease; 
  animation: balanceo 4s infinite;
}

/* Animación balanceo */
@keyframes balanceo {
  0%, 100% {
    transform: scale(1) rotate(15deg);
  }
  
  50% {
    transform: scale(1.2) rotate(0deg);
  }
  20% {
    transform: scale(1.2) rotate(-15deg);
  }
}


.whatsapp-btn img {
  width: 50px;
}

.whatsapp-btn:hover {
  transform: scale(1.3);
}


/* Estilo para el botón de subir */
.scroll-up-btn {
  position: fixed;
  bottom: 60px;
  right: 30px;
  background-color: #f7872b;
  border: none;
  color: var(--fist-BckColor);
  font-size: 24px;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease; 
}

.scroll-up-btn:hover {
  background-color: #e07b00;
  transform: scale(1.2);
}

/* Estilo para la línea */
.linea {
  margin: 0 auto;
  max-width: 92%;
}

/* Estilo para las secciones de texto */
.container-iniciotext, .phase-text, .text-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: justify;
}

.text-video, h2 {
  text-align: center;
  margin-bottom: 0;
  padding: 0.1%;
  max-width: 100%;
  justify-content: center;
  font-size: a;
}

.video-container {
  flex: 1;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.video-container video {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}


.container-iniciotext h2, .phase-text h2, .text-content h2 {
  font-size: x-large;
  margin: 10px auto;
  text-align: center;
}

.container-iniciotext p, .phase-text p, .text-content p {
  font-size: 18px;
  line-height: 1.6;
}

/* Estilo actualizado para la sección de imagen y texto */
.image-text-section {
  padding: 10px 0;
  background-color: var(--third-bckcolor);
  margin: 8vh;
}

.image-text-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-radius: 16px;
}

.image-text-section .image-container {
  flex: 1;
  max-width: 50%;
  padding-right: 10px;
}

.image-text-section .image-container img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.image-text-section .text-content {
  flex: 1;
  max-width: 50%;
  padding-left: 10px;
}

.image-text-section .text-content h2 {
  font-size: 1.5rem;
  color: #191010;
  margin-bottom: 15px;
}

.image-text-section .text-content p {
  font-size: 0.875rem;
  color: #2b2a29;
  line-height: 1.6;
}

/* Estilo para la sección de video y texto */
.video-text-section .container {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 95%;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.video-container {
  flex: 1;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.video-container video {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.text-content {
  flex: 1;
}

/* Media Queries para versión móvil */
@media (max-width: 768px) {
  .menu-btn {
      display: block;
      position: fixed;
      top: 12vh;
      right: 10px;
      background: #444;
      border: none;
      color: var(--fist-BckColor);
      font-size: 24px;
      padding: 10px;
      cursor: pointer;
      z-index: 30;
      opacity: 1;
  }

  .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      background: #222;
      position: fixed;
      top: 10vh;
      left: 0;
      z-index: 20;
      padding: 10px 0;
  }

  .nav-links.active {
      display: flex;
      flex-direction: column; 
  }


  .container-iniciotext h2, .phase-text h2, .text-content, .text-video, h2 {
      font-size: 24px;
      max-width:  100%;
  }

  .container-iniciotext p, .phase-text p, .text-content, .text-video, p {
      font-size: 16px;
  }

  .image-text-section .container,
  .video-text-section .container {
      flex-direction: column;
      padding: 0px;
      max-width: 90%;
      justify-content: center;
      border-radius: 16px;
  }

  .video-container video {
      max-width: 100%;
      margin: 20px 0;
      border-radius: 10px;
      box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  }

  .image-text-section {
      padding: 10px 0;
      background-color: #f5f5f5;
      margin: 0vh;
  }
}

/* Estilos generales para la cuadrícula */
.grid-container {
  display: grid;
  max-width: 90%;
  width: 90%;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 20px;
  margin: 0 auto; /* Centra la cuadrícula */
}

.grid-item {
  background-color: var(--seventhBackColor);
  border-radius: 10px;
  text-align: center;
  padding: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item img {
  width: 10vh;
  height: 10vh;
  margin-bottom: 15px;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: scale(1.05);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  background-color: #FFF7F0;
}

.grid-item:hover img {
  transform: scale(1.1);
}

.grid-item h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.grid-item p {
  font-size: 0.9em;
  color: #777;
}

/* Efecto hover para cambiar el color del texto */
.grid-item:hover h3, 
.grid-item:hover p {
  color: var(--primaryColor);
}

.grid-item:hover h3 {
  color: #307a49;
  transform: scale(1.2);
  transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
}

.grid-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: calc(0.1s * var(--item-index));
}


.product-text {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  color: #ff0000;
}

.grid-item.active .product-text, h3  {
  display: block;
}

.grid-item.active, .grid-item.active p {
  background-color: #e7d9d1;
  color: #000000;
  font-family: 'Open Sans', Arial, sans-serif;

}

.grid-item.active h3 {
  color: #307a49;
  font-style:normal;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* Media query para pantallas móviles */
@media (max-width: 768px) {
  .grid-container {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
      gap: 10px;
      margin: 0 auto; 
      max-width: 90%;
      width: 90%;
      justify-content: center;
  }

  .grid-item {
      padding: 10px;
  }

  .grid-item img {
      width: 80px;
      height: 80px;
      margin-bottom: 10px;
      border-radius: 16px;
  }

  .grid-item h3 {
      font-size: 1em;
      transform: none;
  }

  .grid-item p {
      font-size: 0.8em;
  }



  .video-container video {
    max-width: 90%;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  }

}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    max-width: 95%;
    justify-content: center;
    gap: 10px;
  }

  .grid-item {
    padding: 10px;
  }

  .grid-item img {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
  }

  .container-iniciotext h2, .phase-text h2, .text-content, .text-video, h2 {
    font-size: large;
    max-width:  100%;
}

}



/****** Footer Links ******/
.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.footer-links:hover {
  background: rgba(var(--primary-rgb), 0.1);
}


/********** Footer **********/
.footer {
  text-align: center;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  color:#E9E9E9;
  height: 5px auto;
}

.footer-content {
  display: flex;
  align-items: center;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}



/* Estilo del corazón */
.corazon {
  position: relative;
  width: 25px;
  height: 25px;
  background-color: red;
  transform: rotate(-45deg);
  margin: 12.5px  auto;
  animation: latido 1s infinite;
}

.corazon::before,
.corazon::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: red;
  border-radius: 50%;
}

.corazon::before {
  top: -12.5px;
  left: 0;
}

.corazon::after {
  left: 12.5px;
  top: 0;
  bottom: 0;
}

/* Animación para simular el latido del corazón */
@keyframes latido {
  0%, 100% {
    transform: scale(0.7) rotate(-45deg);
  }
  50% {
    transform: scale(0.5) rotate(-45deg);
  }
}
