* { 
  box-sizing: border-box; 
}
html, body { 
  margin: 0; 
  padding: 0; 
}

ul { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
}

a { 
  text-decoration: none; 
  color: inherit; 
}

body { 
  font-family: 'Inter'; 
  color: #222; 
  background: #fff; 
}

.logo img {   
  height: 270px;
  display: block;
}

/*INICIO DE MENU*/

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: transparent;
  backdrop-filter: blur(12px) saturate(180%);

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  height: 80px;
}

.menu { 
  display: flex; 
  align-items: center; 
  gap: 22px; 
}

.menu > li { 
  position: relative; 
}

.menu > li > a { 
  font-size: 14px; 
  letter-spacing: -0.5px; 
  color: #000;
  padding: 6px 2px; 
}

.menu > li > a:hover { 
  color: #c10c0c;
}


/*SUBMENU USER */
#userIconContainer {
  width: 32px;
  height: 32px;
  visibility: hidden;
}

#userIconContainer img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

body.user-logged #userIconContainer {
  visibility: visible; 
}

body.user-logged .login {
  display: none; 
}

.user-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: 45px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  min-width: 150px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.user-dropdown.visible {
  display: flex;
}

.user-dropdown a {
  padding: 10px 14px;
  font-size: 14px;
  color: #000;
  text-decoration: none;
}

.user-dropdown a:hover {
  background: rgba(0,0,0,0.06);
}

/*CELULAR PROFILE */
@media (max-width: 768px) {

  #userIconContainer {
    position: relative;
  }

  .user-dropdown {
    position: fixed;
    top: 150px !important;
    right: 12px !important;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    max-width: 90vw;  
    padding: 18px 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-align: center;
    width: 240px;
  }

  .user-dropdown a {
    font-size: 15px;
    padding: 10px 0;
    display: block;
  }
}

/*SUBMENU USER */

.has-sub > a::after { 
  content: " ▾"; 
  font-size: 12px; 
}

.submenu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 200px;
  border-radius: 10px;
  padding: 8px 0;
  list-style: none;
  display: none;
  z-index: 999;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.submenu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  letter-spacing: -0.3px;
  color: #000;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.submenu a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.has-sub:hover > .submenu {
  display: block;
}

.navbar.scrolled .submenu {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .submenu a {
  color: #000;
  text-shadow: none;
}

.navbar.scrolled .submenu a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

/* FIN DE MENU */

.hero {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: #000;

}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}


/* TABLETS (768px - 1024px) */
@media (max-width: 1024px) {
  .navbar { 
    padding: 10px 20px; 
  }
  .menu { 
    gap: 10px; 
  }
}

@media (max-width: 1024px) {
  .submenu { 
    display: none; 
  } 
  .has-sub.active > .submenu { 
    display: block; 
  }
}

/* CELULAR TRADICIONAL (max 767px) */
@media (max-width: 767px) {
  .navbar {
    flex-direction: column;
    height: auto;
  }

  .logo img {
    height: 160px;
  }

  .menu {
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
  }

  .menu li a {
    font-size: 13px;
  }
}



/*BURGER COMPLETO*/
.burger {
  display: none;
  position: absolute;
  right: 20px;
  top: 28px;
}

.burger span {
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

@media (max-width: 768px) {
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    width: 26px;
    height: 18px;
    cursor: pointer;
    position: absolute;
    top: 28px;
    right: 24px;
    z-index: 30;
  }

/*BURGER LOGO*/
@media (max-width: 768px) {

  .menu li {
    margin: 14px 0;
  }

  .menu a {
    font-size: 15px;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.5px;
  }

  .submenu {
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    display: none;
    text-align: center;
    margin-top: 4px;
    transition: all 0.35s ease;
  }

  .has-sub.active > .submenu {
    display: block;
  }
  body {
    overflow-y: auto;
  }

  body.has-menu-open {
    overflow-y: auto !important;
}
}
}

/*FIN DE BURGER*/

/* MENÚ MÓVIL */
@media (max-width: 768px) {

  .navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(18px) saturate(160%);
    z-index: 2000;
  }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    position: absolute;
    left: 16px;
    top: 26px;
    z-index: 3000;
    cursor: pointer;
  }

  .burger span {
    height: 3px;
    background: #000;
    border-radius: 50px;
    transition: 0.3s ease;
  }

  .burger.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

  .logo img {
    height: 130px;
    position: absolute;
    left: 50%;
    top: -30px;
    transform: translateX(-50%);
    z-index: 1000;
  }

  #userIconContainer {
    visibility: hidden;              
    position: absolute;
    list-style: none;
    right: 16px;
    top: 18px;
    z-index: 3000;
  }

  body.user-logged #userIconContainer {
    visibility: visible !important;  
  }

  .menu {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    padding-top: 100px;
    background: rgba(32, 31, 31, 0.45);
    backdrop-filter: blur(12px) saturate(180%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 1500;
  }

  .menu.active {
    opacity: 1;
    pointer-events: auto;
  }

  .menu li a {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
  }

  .submenu {
    display: none !important;
    flex-direction: column;
    gap: 10px;
  }

  .has-sub.active > .submenu {
    display: flex !important;
  }
}