/* Reset y box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body y fuente Montserrat */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: white;
  color: #333737;
  line-height: 1.5;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Fuentes */

h1 {
font-size: 3em;
font-weight: 100;
}
h2 {
  font-size: 2em;
  line-height: 35px;
  font-weight: 100;
}
h3 {
  font-size: 1em;
  font-weight: 100;
}

p {
  font-size: 0.8em;
  font-weight: 100;
}
i {
  margin-right: 10px;
}

a {
  font-size: 0.9em;
  font-weight: 100;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.1s ease;
}

/* FONDOS */
.imagen-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.imagen-fondo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.5); 
  z-index: 1;
}

.fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1);
  transition: transform 2s ease;
  transform-origin: center center;
  pointer-events: none;
}

.fondo.zoom-activo {
  transform: scale(1.2);
}

/* ANIMACIÓN TEXTOS */

.zoom-text, .slide-text {
  opacity: 0;
  transition: transform 1.5s ease, opacity 0.8s ease;
}

.zoom-text {
  transform: scale(2);
}

.zoom-activo {
  transform: scale(1);
  opacity: 1;
}

.slide-text {
  transform: translateX(-50px);
}

.slide-activo {
  transform: translateX(0);
  opacity: 1;
}

.zoom-text,
.slide-text {
  transition-delay: 0s;
}

.zoom-small-text {
  opacity: 0;
  transform: scale(0.5);
  transition: transform 1.5s ease, opacity 0.8s ease;
}

.zoom-small-activo {
  transform: scale(1);
  opacity: 1;
}

@media (max-width: 600px) {
  .slide-text, .zoom-text, .zoom-small-text {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .slide-activo, .zoom-activo, .zoom-small-activo {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* NAVEGACION SUAVE */
html {
  scroll-behavior: smooth;
}

/* CONTENIDOS */

.contenido {
  position: relative;
  z-index: 2;
  max-width: 75%;
  text-align: center;
  justify-content: center;
}

@media (max-width: 768px) { 
  .contenido {
    max-width: 90%;
  }
}

/* HEADER */
header {
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

header .container {
  display: flex;
  justify-content: space-between;
  width: 75%;
  margin: 10px auto auto auto;
  align-items: center;
  padding:1px 5px 1px 5px;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 50px; 
}

header .container.scroll-activo {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
  margin-top: 5px;
  margin-left: 15px;
  margin-right: 20px;
   display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
}

.desktop-nav {
  display: flex;    
  align-items: center;
  gap: 20px;
}

.desktop-nav a {
  color: #333737;
  cursor: pointer;
  text-align: center;
  padding: 5px 5px 5px 5px;
}

.desktop-nav a:hover,
.desktop-nav a.active-link {
  color: #757F7F;
}

/* Hamburguesa */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  margin-left: 40px;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #333737;
  transition: all 0.3s ease;
}

/* Menú móvil */
.mobile-menu {
  display: none;
  position: fixed;
  top: 120px;
  left: 0;
  width: 100%;
  height: 75%;
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  opacity: 0;
  backdrop-filter: blur(4px);
}

.mobile-nav {
  display: flex;
  background-color: white;
  border-radius: 5%;
  flex-direction: column;
  align-items: center;
  padding: 20% 10%;
  max-width: 700px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav a {  
  width: 100%;  
  text-align: center;  
  color: #333737;
  padding: 0px 60px;
  margin-bottom: 10px;
  border: 1px solid #AEC3C3;
  border-radius: 50px;      
}

.mobile-nav a.active-link {
  color: #AEC3C3;
}

.mobile-nav .boton-agora {
  justify-content: center;
  padding: 5px 40px;
}

/* Hamburguesa */
.menu-toggle:checked ~ .mobile-menu {
  display: flex;
  opacity: 1;
}

.menu-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: #333737;
}

.menu-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  background-color: #333737;
}

/* Bloquear scroll */
.menu-toggle:checked ~ .mobile-menu {
  overflow: hidden;
}

@media (max-width: 768px) {
  header .container {
    justify-content: center;
    padding:1px 20px 1px 20px ;
  }
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .logo {
    padding-left: 35px;
  }
  .mobile-menu:not(.visible) {
    display: none;
  }
}

/* SECCIONES */

/* HERO */
#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#hero h1 {
  margin-bottom: 25px;
  line-height: 35px;
}

#hero h1 span {
  color: #AEC3C3;
}

#hero h3 {
  line-height: 25px;
  margin-bottom: 30px;
}

.contenedor-hero {
  position: relative;
  width: 100%;
  height: 340px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 25px;
  padding-top: 20px;
  align-items: flex-start;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.contenedor-hero h2 {
  line-height: 30px;
  margin-bottom: 50px;
}

.carrusel {
  position: relative;
  overflow: hidden;
  width: 300px;
  height: auto;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.carrusel-contenedor {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: max-content; 
  align-items: flex-start;
}

.carrusel-item {
  flex: 0 0 auto; 
  width: 300px;
  display: flex;             
  flex-direction: column;       
  align-items: center;      
  text-align: center;
  box-sizing: border-box;             
}

.carrusel-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}


.carrusel-item a h2 {
  color: #333737;
  margin-bottom: 5px;
}

.carrusel-item a p {
  color: #333737;
}


hr {
  width: 200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
}

.contenedor-hero img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  #hero h1 {
    margin-top: 20px;
  }
  #hero h3 {
    margin-bottom: 20px;
  }
.contenedor-hero {
    width: 90%;
  }
}


/* ASSISTANT */
#assistant {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#assistant h2 {
  margin-top: 100px;
  margin-bottom: 40px;
}

.descripcion-assistant {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  flex-direction: row;
}

.texto-assistant {
  width: 500px;
  height: auto;
  justify-content: right;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
}

.titulo-assistant {
  margin-bottom: 30px;
  text-align: right;
}

.lista-assistant {
  line-height: 2;
  list-style-type: none;
  font-size: 0.8em;
  text-align: right;
  margin-bottom: 20px;
}

.parrafo-assistant {
  text-align: right;
}

.video-assistant {
  position: relative;
  width: 400px;
  height: auto;
}

.video-assistant video {
  width: 100%;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  #assistant h2 {
    margin-top: 80px;
    margin-bottom: 20px;
  }
  .descripcion-assistant {
  flex-direction: column;
  }
  .texto-assistant {
    width: 95%;
  }
  .video-assistant {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
  } 
}

/* OPTIMIZED */
#optimized {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#optimized h2 {
  margin-top: 100px;
  margin-bottom: 40px;
}

.descripcion-optimized {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  flex-direction: row;
}

.texto-optimized {
   width: 500px;
  height: auto;
  justify-content: right;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
}

.titulo-optimized {
  margin-bottom: 30px;
  text-align: right;
}

.lista-optimized {
  line-height: 2;
  list-style-type: none;
  font-size: 0.8em;
  text-align: right;
  margin-bottom: 20px;
}

.video-optimized {
  position: relative;
  width: 500px;
  height: auto;
}

.video-preview {
  cursor: pointer;
   width: 100%;
  margin: 0;
  padding: 0;
}

.video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  backdrop-filter: blur(2px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.video-wrapper {
  position: relative;
  width: 80vw;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#video-ampliado {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cerrar-video {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #333737;
  cursor: pointer;
  z-index: 2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#optimized hr {
  position: relative;
  width: 75%;
  margin-top: 30px;
  margin-bottom: 50px;
  margin-left: auto;
  margin-right: auto;
}

.descripcion-optimized2 {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  flex-direction: column;
}

.texto-optimized2 {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.imagenes-optimized {
  width: 100%;
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 40px auto;
  flex-direction: row;
}

.imagenes-optimized img {
  cursor: pointer;
  width: 200px;
  height: auto;
  border-radius:15px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.imagenes-optimized img:hover {
  transform: scale(1.05);
}

.overlay-zoom {
  display: none;
  position: fixed;
  inset: 0;
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.zoom-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cerrar-zoom, .flecha-zoom {
  margin-right: 0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  background-color: white;
  border-radius: 50px;
}

.imagen-ampliada-zoom {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.cerrar-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  color: #333737;
  z-index: 2;
  cursor: pointer;
}

.flecha-zoom {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #333737;
  z-index: 2;
  cursor: pointer;
}

.flecha-prev {
  left: 10px;
}

.flecha-next {
  right: 10px;
}

@media (max-width: 768px) {
  #optimized h2 {
    margin-top: 80px;
    margin-bottom: 20px;
  }
  .descripcion-optimized {
    flex-direction: column;
  }
  .texto-optimized {
    width: 95%;
  }
  .video-optimized {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
  } 
  .texto-optimized2 {
  width: 95%;
  margin-bottom: 20px;
  } 

  .imagenes-optimized {
    width: 80%;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
  }
  .imagenes-optimized img {
    width: 300px;
    height: auto;
  }
}

  @media (max-width: 600px) and (orientation: portrait) {
  .video-wrapper {
    width: 80vw;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
  }
}

/* CAPACITED */
#capacited {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#capacited h2 {
  margin-top: 100px;
  margin-bottom: 40px;
}

.descripcion-capacited {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  flex-direction: row;
}

.texto-capacited {
   width: 500px;
  height: auto;
  justify-content: right;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
}

.titulo-capacited {
  margin-bottom: 30px;
  text-align: right;
}

.lista-capacited {
  line-height: 2;
  list-style-type: none;
  font-size: 0.8em;
  text-align: right;
  margin-bottom: 20px;
}

.imagen-capacited {
  position: relative;
  width: 500px;
  height: auto;
}

.imagen-capacited img {
  width: 100%;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  #capacited h2 {
    margin-top: 80px;
    margin-bottom: 20px;
  }
  .descripcion-capacited {
  flex-direction: column;
  }
   .texto-capacited {
   width: 95%;
  }
  .imagen-capacited {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }
}