/* 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: 1.25em;
  font-weight: 100;
}

h4 {
  font-size: 1.75em;
  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: 40px;
  line-height: 35px;
}

#hero h1 span {
  color: #AEC3C3;
}

#hero img {
  width: 450px;
}