.luxbar-default {
  width: 100%;
  position: relative;
}

.luxbar-fixed {
  width: 98%;
  max-width: 1600px;
  position: fixed;
  top: 15px;
  left: 1%;
  right: 1%;
  margin: 0 auto;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 9999999 !important;
  transition: all 0.3s ease;
  overflow: visible !important;
}

.luxbar-hamburger span,
.luxbar-hamburger span::before,
.luxbar-hamburger span::after {
  display: block;
  height: 3px;
  width: 26px;
  transition: 0.6s ease;
  background-color: #333;
  border-radius: 5px;
  position: relative;
}

.luxbar-hamburger span::before,
.luxbar-hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
}

.luxbar-hamburger span::before {
  transform: translateY(-8px);
}

.luxbar-hamburger span::after {
  transform: translateY(8px);
}

.luxbar-checkbox:checked + .luxbar-menu .luxbar-hamburger span {
  background-color: transparent;
}

.luxbar-checkbox:checked + .luxbar-menu .luxbar-hamburger span::before {
  transform: rotate(45deg) translateY(0);
}

.luxbar-checkbox:checked + .luxbar-menu .luxbar-hamburger span::after {
  transform: rotate(-45deg) translateY(0);
}

.luxbar-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 100%;
  overflow: visible !important;
}

.luxbar-menu {
  min-height: 80px;
  transition: 0.6s ease;
  width: 100%;
  overflow: visible !important;
}

.luxbar-navigation {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding-left: 0;
  margin: 0;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .luxbar-navigation {
    flex-direction: row !important;
    height: 80px !important;
    justify-content: flex-end !important;
  }
}

.luxbar-menu a,
.luxbar-item a {
  text-decoration: none;
  color: #333 !important;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.luxbar-navigation > .luxbar-item {
  height: 80px;
  display: flex;
  align-items: center;
}

.luxbar-item a:hover {
  background-color: rgba(252, 87, 85, 0.1);
  color: var(--rojo) !important;
}

.luxbar-hamburger {
  padding: 18px 24px;
  position: relative;
  cursor: pointer;
  z-index: 10000000 !important;
  margin-left: auto;
  display: none; /* Oculto por defecto (Escritorio) */
}

@media screen and (max-width: 767px) {
  .luxbar-hamburger {
    display: block; /* Solo visible en móvil */
  }
}

.luxbar-checkbox {
  display: none
}

@media screen and (max-width: 767px) {
  .luxbar-checkbox:not(:checked)~.luxbar-menu .luxbar-item,
  .luxbar-checkbox:not(:checked)~.luxbar-menu .dropdown,
  .luxbar-checkbox:not(:checked)~.luxbar-menu #redes-sociales {
    display: none !important;
  }
}

.luxbar-checkbox:not(:checked)~.luxbar-menu {
  overflow: hidden;
  max-height: 60px; /* Altura mínima funcional */
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxbar-checkbox:checked~.luxbar-menu {
  max-height: 2000px;
}

.header-social-icons {
  display: none;
  align-items: center;
  margin-left: auto;
  gap: 15px;
}

@media screen and (max-width: 767px) {
  .header-social-icons {
    display: flex;
  }
  
  .header-social-icons img {
    width: 36px !important; /* Aún más grandes */
    height: 36px !important;
  }

  .luxbar-hamburger {
    margin-left: 10px !important;
  }
}

.dropdown-checkbox {
  display: none;
}

.dropdown-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 10px;
  vertical-align: middle;
  border-top: 6px solid #666;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  transition: transform 0.3s ease;
}

@media screen and (min-width: 768px) {
  .dropdown-checkbox, .dropdown-label {
    display: none;
  }
  
  .dropdown > a {
    display: flex !important;
  }
  
  .dropdown:hover > ul {
    display: block !important;
  }
}

.desktop-only {
  display: flex !important;
}

.mobile-only {
  display: none !important;
}

@media screen and (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }
}

@media screen and (min-width: 768px) {
  .dropdown:hover > ul {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) !important;
    max-height: none !important;
  }
}

.dropdown {
  position: relative;
}

.dropdown>ul {
  display: none;
  position: absolute;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 20px;
  min-width: 260px;
  z-index: 1000010 !important;
  overflow: hidden;
}

.dropdown>ul .luxbar-item {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

.dropdown>ul .luxbar-item a {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  padding: 15px 0 !important;
  margin: 0 !important;
  height: auto !important;
  line-height: 1 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

.dropdown>ul .luxbar-item a:hover {
  background-color: #f8f9fa !important;
  color: var(--rojo) !important;
}

.dropdown:hover>ul {
  display: block;
}

.luxbar-brand img {
  width: 140px;
  margin: 25px 0 0 35px;
  transition: all 0.3s ease;
  position: absolute;
  left: 0 !important;
  top: 0;
  z-index: 10000005 !important;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

/******************************************************************************/
/* REDES */
/******************************************************************************/
header #redes-sociales {
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 30px 0 10px;
}

header #redes-sociales a {
  display: flex;
  align-items: center;
  margin: 0 5px;
}

header #redes-sociales img {
  width: 35px !important;
  height: auto !important;
  transition: transform 0.3s ease;
}

header #redes-sociales img:hover {
  transform: scale(1.2);
}

/******************************************************************************/
/* RESPONSIVE MOBILE */
/******************************************************************************/
@media screen and (max-width: 767px) {
  .luxbar-fixed {
    width: 96% !important;
    left: 2% !important;
    right: 2% !important;
    top: 10px !important;
    border-radius: 40px !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  .luxbar-brand img {
    width: 115px !important; /* Maximizado */
    margin: 8px 0 0 15px !important; /* Ceñido al borde superior */
    z-index: 10000010 !important;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
  }

  .luxbar-hamburger {
    padding: 16px 12px !important; /* Centrado en 60px */
    margin-right: 5px;
  }

  .luxbar-menu {
    border-radius: 25px !important;
    background-color: rgba(255, 255, 255, 0.99) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
    width: 100% !important;
    padding-top: 10px;
    padding-bottom: 20px;
    height: auto !important;
    max-height: 60px; /* Altura mínima */
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .luxbar-checkbox:checked ~ .luxbar-menu {
    max-height: 2000px;
  }

  .luxbar-header {
    height: 60px !important; /* Altura mínima */
  }

  .luxbar-navigation {
    padding: 10px 0 !important;
    align-items: flex-start !important;
  }

  .luxbar-navigation .luxbar-item {
    width: 100% !important;
    height: auto !important;
    padding: 5px 15px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important; /* Forzar que los hijos se apilen verticalmente */
    align-items: center !important;
    
    /* Efecto Cortina Inicial */
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Animación de entrada cuando el checkbox está activo */
  .luxbar-checkbox:checked ~ .luxbar-menu .luxbar-item {
    opacity: 1;
    transform: translateY(0);
  }

  /* Delays escalonados para las opciones */
  .luxbar-navigation .luxbar-item:nth-child(2) { transition-delay: 0.10s; }
  .luxbar-navigation .luxbar-item:nth-child(3) { transition-delay: 0.15s; }
  .luxbar-navigation .luxbar-item:nth-child(4) { transition-delay: 0.20s; }
  .luxbar-navigation .luxbar-item:nth-child(5) { transition-delay: 0.25s; }
  .luxbar-navigation .luxbar-item:nth-child(6) { transition-delay: 0.30s; }

  .luxbar-navigation .luxbar-item a,
  .dropdown-label {
    justify-content: center !important; /* Texto centrado */
    text-align: center !important;
    padding: 18px 25px !important;
    font-size: 18px !important;
    width: 100% !important;
    background-color: #fff !important;
    border-radius: 15px !important; /* Aspecto de tarjeta */
    color: #333 !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    margin: 5px 0 !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }

  .dropdown-label {
    display: flex !important;
    position: relative;
  }

  .dropdown-arrow {
    position: absolute;
    right: 25px;
  }

  .luxbar-navigation .luxbar-item a:hover,
  .dropdown-label:hover {
    background-color: rgba(252, 87, 85, 0.05) !important;
    color: var(--rojo) !important;
  }

  /* Ocultar el link original de Cursos en móvil */
  .dropdown > a {
    display: none !important;
  }

  header #redes-sociales {
    display: none !important; 
  }

  /* Comportamiento del Acordeón Dinámico con JS */
  .dropdown-label.is-open {
    background-color: rgba(252, 87, 85, 0.08) !important;
    border-color: rgba(252, 87, 85, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    color: var(--rojo) !important;
    z-index: 2;
    position: relative;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  .dropdown-label.is-open .dropdown-arrow {
    transform: rotate(180deg);
    border-top-color: var(--rojo);
  }

  .dropdown > ul.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 auto 15px auto !important;
    padding: 15px 10px !important;
    transform: translateY(-5px) !important;
  }

  /* Estado cerrado del submenú para animación */
  .dropdown>ul {
    display: none !important;
    max-height: 0; /* Sin !important para que JS pueda cambiarlo */
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    position: static !important;
    transform: translateY(-20px) !important;
    width: 88% !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    background-color: #e8e8e8 !important;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.08) !important;
    border-radius: 0 0 20px 20px !important;
    border: 1px solid rgba(0,0,0,0.05);
    border-top: none;
    box-sizing: border-box !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1;
  }

  .dropdown>ul .luxbar-item {
    padding: 4px 5px !important;
  }

  .dropdown>ul .luxbar-item a {
    padding: 14px 15px !important;
    font-size: 15px !important;
    color: #444 !important;
    background-color: rgba(255,255,255,0.7) !important; /* Tarjetas semi-transparentes sobre fondo oscuro */
    border-radius: 10px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03) !important;
    justify-content: center !important;
    border: none !important;
    margin: 0 !important;
  }

  .dropdown>ul .luxbar-item a:hover {
    background-color: #fff !important;
    color: var(--rojo) !important;
  }

  .dropdown>ul .luxbar-item a::before {
    display: none !important; /* Quitar viñeta para centrado limpio */
  }
}