/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #FFFCFA;
  overflow-x: hidden; /* Evita scroll horizontal */
}

/* Ocultar la barra de scroll en navegadores WebKit y Firefox */
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Ocultar el overflow cuando el menú está abierto */
body.menu-open {
  overflow: hidden;
}

/* Header Styles */
.header {
  background-color: #FFFCFA;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 50px;
  flex-wrap: nowrap;
  position: relative;
}

.logo {
  width: 156.76px;
  height: 75px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Burger Menu Icon */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 10;
}

.burger-menu span {
  background-color: #776354;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.burger-menu.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Styles */
.nav-links {
  display: flex;
  align-items: center;
  height: 150px;
}

.nav-links a {
  margin: 0 15px;
  text-decoration: none;
  color: #776354;
  font-size: 20px;
  font-weight: 500;
  padding: 20px 0; /* Aumenta el espacio superior e inferior para más altura */
}

/* Language Dropdown */
.language {
  position: relative;
  margin-right: 15px;
}

.language .dropdown-content {
  display: flex;
  flex-direction: row; /* Organiza las banderas en una fila */
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  border-radius: 5px;
  padding: 5px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.language .dropdown-content.show {
  max-height: 100px;
  opacity: 1;
}

.language .dropdown-content .flag {
  margin-right: 5px; /* Espacio de 3px entre banderas */
  margin-left: 5px;
}

.language .dropdown-content .flag:last-child {
  margin-right: 0;
}

.language .dropdown-content .flag img {
  display: block;
}

.contact {
  background-color: #776354;
  color: #fff !important;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  width: 262px;
  height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.nav-links.active .contact {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.6s;
}



/* Mobile Logo (Hidden by default) */
.mobile-logo {
  display: none;
  margin-bottom: 20px;
}

.mobile-logo img {
  width: 120px;
  height: auto;
}

/* Animación de los enlaces del menú */
@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Footer Styles */
.footer {
  background-color: #776354 !important;
  color: #fff;
  padding: 20px 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer .logo {
  border: 1px solid #fff;
  width: 203.62px;
  height: 91.59px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.footer .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer .columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.footer .column {
  margin: 20px 20px;
  flex: 1 1 200px;
}

.footer .column h3 {
  margin-bottom: 10px;
  font-size: 25px;
  font-weight: 500;
}

.footer .column p {
  margin: 5px 0;
  font-size: 20px;
  color: #fff !important; 
}

.copyright {
  background-color: #AB834D;
  color: #fff;
  text-align: left;
  padding: 10px 70px;
  font-size: 14px;
  height: 80px;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.copyright p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

/* scan face. */
.btn {
  background-color: #D0E6A5;
  color: #5A462C;
  /* Define el color inicial del contenido, incluido el SVG */
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  /* Transición suave */
}

.btn:hover {
  background-color: #5A462C;
  color: #FFFFFF;
  /* Cambia el color del texto y SVG */
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
  color: #fff;
  /* Color del texto */
  background-color: #749E32;
  /* Color de fondo */
  border-color: #749E32;
  /* Color del borde */
}

.oval-container {
  width: 100%;
  max-width: 640px; /* Ancho máximo del video */
  aspect-ratio: 4 / 3; /* Relación de aspecto del óvalo */
  border: 1px solid #c3c388; /* Borde del contenedor ovalado */
  border-radius: 50% / 40%; /* Forma ovalada */
  overflow: hidden; /* Oculta el contenido que se sale del contenedor */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto; /* Centrado horizontal */
}

.video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que el video ocupe todo el contenedor */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .footer .column h3 {
    font-size: 22px;
  }
  .footer .column p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  * {
    box-sizing: border-box;
  }
  /* Header adjustments */
  .header-container {
    padding: 10px 20px;
    flex-wrap: wrap;
  }

 

  /* Mostrar el logo dentro del menú en móviles */
  .mobile-logo {
    display: block;
  }

  /* Burger Menu Icon */
  .burger-menu {
    display: flex;
    position: absolute;
    top: 25px;
    right: 20px;
  }

  /* Navigation adjustments */
  .nav-links {
    display: flex;
  align-items: center;
  height: 150px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    background-color: rgba(255, 252, 250, 0.95);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9;
  }

  .nav-links.active {
    flex-direction: column;
  align-items: flex-start;
    transform: translateX(0);
  }

  /* Efecto hover solo para los enlaces del menú de hamburguesa */
.nav-links.active  .seccion:hover {
  background-color: #d1b99a; /* Cambia el color de fondo */
  color: #fff !important; /* Cambia el color del texto */
  border-radius: 5px;
  padding: 20px 15px;
  margin-left: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}


  /* Ocultar el overflow del body cuando el menú está abierto */
  body.menu-open {
    overflow: hidden;
  }

  /* Menu links animation */
  .nav-links a,
  .nav-links .language,
  .nav-links .contact {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .nav-links.active a,
  .nav-links.active .language,
  .nav-links.active .contact {
    opacity: 1;
    transform: translateX(0);
  }

  /* Staggered transition for menu links */
  .nav-links a:nth-of-type(1) {
    transition-delay: 0.2s;
  }
  .nav-links a:nth-of-type(2) {
    transition-delay: 0.3s;
  }
  .nav-links a:nth-of-type(3) {
    transition-delay: 0.4s;
  }
  .nav-links .language {
    transition-delay: 0.5s;
  }
  .nav-links .contact {
    transition-delay: 0.6s;
  }

  /* Language Dropdown adjustments */
  .language {
    width: 10px;
  }

  .language .dropdown-content {
    position: relative;
    margin-top: 2px;
    padding: 5px;
  }

  .language .dropdown-content .flag {
    width: auto;
    padding-bottom: 5px;
  }

  /* Contact Button adjustments */
  .contact {
    width: 100%;
    margin-top: 20px;
    margin-left: 0;
  }

  /* Footer adjustments */
  .footer {
    padding: 20px 30px;
  }

  .footer .columns {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer .column {
    margin: 0 0 20px 0;
    flex: 1 1 100%;
  }

  .footer .logo {
    margin-bottom: 20px;
    width: 150px;
    height: auto;
  }

  .footer .column h3 {
    font-size: 20px;
  }

  .footer .column p {
    font-size: 16px;
  }

  .copyright {
    font-size: 12px;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 15px 20px;
  }

  .footer .logo {
    width: 120px;
  }

  .footer .column h3 {
    font-size: 18px;
  }

  .footer .column p {
    font-size: 14px;
  }

  .copyright {
    font-size: 10px;
    padding: 10px;
  }
}

/* Ajustes adicionales para evitar conflictos */
@media (max-width: 375px) {
  .nav-links a,
  .contact {
    font-size: 14px;
  }

  .footer .column h3 {
    font-size: 16px;
  }

  .footer .column p {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .nav-links a,
  .contact {
    font-size: 12px;
  }

  .footer .column h3 {
    font-size: 14px;
  }

  .footer .column p {
    font-size: 12px;
  }
}
