/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 0.90rem;
  }
}

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

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
}
body.menu-open {
  overflow: hidden; /* Evita el desplazamiento del fondo */
}

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--black-color);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav__logo, 
.nav__burger, 
.nav__close {
  color: var(--white-color);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 3.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    background-color: var(--black-color);
    overflow: auto;
    opacity: 0;
    transform: translateY(-20px);
    transition: top .4s ease-out, opacity .3s ease-out, transform .3s ease-out;
    pointer-events: none; 
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    background-color: var(--black-color);
    padding-top: 1rem;
  }
}

.nav__link {
  color: var(--white-color);
  background-color: var(--black-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}

.nav__link:hover {
  background-color: var(--black-color-light);
}

/* Show menu */
.show-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link, 
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--white-color);
  background-color: var(--black-color-light);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover, 
.dropdown__sublink:hover {
  background-color: var(--black-color);
}

.dropdown__menu, 
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu */
.show-dropdown {
  max-height: 1000px;
  overflow: visible;
  transition: max-height .4s ease-in;
}

/* Rotate dropdown icon */
.show-dropdown .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top .3s;
  }
}




/******************* Banner styles *********************/
.header-banner {
  position: relative;
  width: 100%;
  height: 600px; /* Ajusta la altura según lo que necesites */
  background: url(imgs/BANNER.avif) no-repeat center center;
  background-size: cover;
  background-position: center center; /* Centra la imagen */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  box-sizing: border-box;
  padding-top: 80px; /* Añade un espacio superior para que el menú no se solape */
}

.banner-logo {
  position: absolute;
  top: 120px; /* Ajusta la distancia desde la parte superior según lo que necesites */
  width: 250px; /* Ajusta el tamaño del logo */
  height: auto;
  object-fit: contain; /* Asegura que la imagen mantenga su relación de aspecto */
}

.header-banner h1 {
  font-size: 2.5em;
  font-weight: bold;
  margin: 0;
  margin-top: 100px;
}

.slogan {
  color: gold;
  font-size: 1.5em;
  font-weight: bold;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  margin-top: 10px; /* Espacio entre el título y el eslogan */
  display: block;
}

/* Media Queries */
@media (max-width: 768px) {
  .header-banner {
    height: 500px; /* Aumentamos la altura en pantallas medianas */
    background-size: cover;
    background-position: center top; /* Centramos la imagen hacia la parte superior */
  }

  .header-banner h1 {
    font-size: 2em;
  }

  .slogan {
    font-size: 1.3em;
  }

  .banner-logo {
    top: 10px; /* Ajusta la distancia en pantallas más pequeñas */
    width: 120px;
    margin-top: 100px;
  }
}

@media (max-width: 480px) {
  .header-banner {
    height: 450px; /* Aumentamos la altura en pantallas muy pequeñas */
    background-size: cover;
    background-position: center top;
  }

  .header-banner h1 {
    font-size: 1.6em;
  }

  .slogan {
    font-size: 1.2em;
  }

  .banner-logo {
    top: 5px; /* Ajusta la distancia en pantallas más pequeñas */
    width: 100px;
  }
}



/* Para evitar el desbordamiento en dispositivos móviles */
body, html {
  overflow-x: hidden; /* Evita desplazamiento horizontal */
}


/********************* Estilos para la sección del título **********************/
.typing-title {
  text-align: center;
  padding: 0;
  background-color: #f4f4f4;
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  width: 100%;
  flex-direction: column; /* Mantener todo centrado en columna */
  overflow: hidden; /* Evitar que se desborde el contenido */
}

.machine-typewriter {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* Para que el texto esté centrado */
  text-align: center;
}

.machine-typewriter h2 {
  font-size: 2.5em;
  font-weight: bold;
  color: #333; /* Color del título principal */
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1.2; /* Mantener el texto alineado */
  flex-wrap: wrap; /* Permite el salto de línea si es necesario */
  width: 100%; /* Para que ocupe todo el espacio */
}

#typed-text {
  border-right: 3px solid #333; /* Borde del cursor */
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  padding-left: 5px;
  margin-left: 10px;
  vertical-align: bottom; /* Alineación al fondo */
  color: #d4af37; /* Color dorado para el texto de la máquina de escribir */
}

/* Media Queries para dispositivos pequeños */
@media screen and (max-width: 768px) {
  .typing-title {
    height: 200px; /* Mantén la altura para dispositivos medianos */
  }

  .machine-typewriter h2 {
    font-size: 1.8em; /* Ajuste el tamaño del texto */
  }

  /* Crear un salto de línea cuando el texto sea largo */
  .machine-typewriter h2 span {
    display: block; /* Hace que el texto se muestre en un nuevo bloque */
    margin-top: 10px; /* Añadir espacio entre líneas */
  }
}

@media screen and (max-width: 480px) {
  .typing-title {
    height: 150px; /* Ajusta la altura de la sección en pantallas más pequeñas */
  }

  .machine-typewriter h2 {
    font-size: 1.5em; /* Reduce el tamaño del texto en dispositivos más pequeños */
  }

  .machine-typewriter h2 span {
    display: block; /* Asegura que el texto se muestre en un salto de línea */
    margin-top: 10px;
  }
}
/**********************Seccion de que nos diferencia************************/
.diferencia {
  background: linear-gradient(135deg, #1a1a1a, #333333); /* Degradado suave que combina con el negro */
  color: white; /* Letras blancas */
  padding: 2rem;
  border-radius: 10px;
  width: 100%; /* Asegura que ocupe todo el ancho */
  margin: 0 auto;
}

.title-center {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  word-wrap: break-word; /* Evita que las palabras largas desborden */
}

.text-justify {
  text-align: justify;
  max-width: 100%; /* Aprovecha todo el ancho de la pantalla */
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem; /* Separación entre párrafos */
  padding: 0 1rem; /* Margen lateral para evitar desbordamiento */
}

/* Media Queries para dispositivos pequeños */
@media screen and (max-width: 768px) {
 .diferencia {
    padding: 1.5rem; /* Menos espacio de relleno en pantallas más pequeñas */
 }

 .title-center {
    font-size: 1.8rem; /* Tamaño de fuente más pequeño */
 }

 .text-justify {
    font-size: 1rem; /* Tamaño de fuente más pequeño */
    padding: 0 1rem; /* Agregar pequeño margen lateral */
 }
}

@media screen and (max-width: 480px) {
 .diferencia {
   padding: 1rem; /* Menos espacio de relleno en móviles */
 }

 .title-center {
   font-size: 1.6rem; /* Tamaño de fuente más pequeño */
 }

 .text-justify {
   font-size: 0.9rem; /* Tamaño de fuente más pequeño */
   padding: 0 1rem; /* Agregar pequeño margen lateral */
 }
 
}

/********************Seccion de benefisos de afiliados *****************/
.diagonal-section {
  background: linear-gradient(135deg, #1a1a1a, #333333);
  padding: 60px 20px;
  position: relative;
}
.diagonal-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0073e6;
  transform: skewY(-5deg);
  transform-origin: top left;
  z-index: -1;
}
.diagonal-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
.diagonal-container h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.diagonal-container p {
  font-size: 1.2rem;
  line-height: 1.6;
}
.image-placeholder {
  margin-top: 20px;
}
.image-placeholder img {
  max-width: 50%;
  height: auto;
  border-radius: 10px;
}


.sponsors-section {
  background: #f8f8f8;
  padding: 50px 20px;
  text-align: center;
}
.sponsors-container h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.sponsors-container h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #0073e6;
}
.carousel {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  max-width: 80%;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  animation: slide 10s linear infinite;
}
.carousel-track img {
  width: 150px;
  margin: 0 15px;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
/*=============== ESTILOS PARA EL PIE DE PÁGINA ===============*/
.footer-section {
  background-color: #2c2c2c;
  color: #fff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden; /* Evita el desbordamiento */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem; /* Agrega espacio entre las columnas */
  max-width: 100%; /* Asegura que no se desborde */
}

.footer-container > div {
  flex: 1;
  min-width: 250px; /* Asegura que los elementos no se desborden en pantallas pequeñas */
  margin: 1rem;
}

.footer-links h3, 
.footer-socials h3, 
.footer-contact h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 0.5rem 0;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #f7b731;
}

.footer-socials .social-icons a {
  color: #fff;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color 0.3s;
}

.footer-socials .social-icons a:hover {
  color: #f7b731;
}

.footer-contact p {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-bottom p {
  color: #ccc;
}

.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(39, 39, 39, 0.7), rgba(0, 0, 0, 0.7));
  z-index: -1;
  opacity: 0.5;
}

/*=============== Responsividad para pantallas pequeñas ===============*/
@media (max-width: 768px) {
  .footer-container {
     flex-direction: column;
     align-items: center;
  }

  .footer-container > div {
     min-width: 100%; /* Los elementos ocupan el 100% en pantallas pequeñas */
     margin: 0.5rem 0;
  }

  .footer-socials .social-icons {
     display: flex;
     justify-content: center;
     gap: 1rem;
  }
}

