/* Estilo del cuerpo para evitar scroll lateral innecesario */
body {
    overflow-x: hidden;
}

/* El copo de nieve */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 990000000000000099; /* Para que esté por encima de todo */
    color: #FFF;   /* Color blanco */
    user-select: none;
    pointer-events: none; /* Importante: permite hacer clic a través de la nieve */
    animation-name: fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

/* La animación de caída */
@keyframes fall {
    to {
        transform: translateY(105vh);
    }
}


  /* Mobile first - hide by default */
  .desktop-navigation {
    display: none;
  }
  
  /* Show on desktop */
  @media (min-width: 1325px) {
    .desktop-navigation {
      display: block;
    }
  }
  
  @import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;700&display=swap');

  
  .top-bar {
    width: 100%;
    background: #141c2a00;
    color: #cacbd2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    font-size: 14px;
    letter-spacing: 0.1px;
    transition: top 0.3s, opacity 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    height: 34px;
    min-height: 34px;
    box-sizing: border-box;  
  
  }
  
  .top-bar-left {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: 12px;
    min-width: 0;
  }
  
  .top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-right: 18px;
    justify-content: flex-end;
  }
  
  .new-badge {
    background: linear-gradient(-131deg, #c822cb, #e069e2, #c822cb);
-webkit-background-clip: text;
color: transparent;
 /*#D56F2A;*/
    font-size: 19px; /* 15 */
    font-weight: bold !important; 
    display: inline-block;
  }
  
  .top-bar-text {
    color: #cacbd2;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    font-weight: bold !important;
  }
  
  .top-bar-link {
    background: linear-gradient(-131deg, #c822cb, #e069e2, #c822cb);
    -webkit-background-clip: text;
    color: transparent;

    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin: 0 -2px 0 0;
    white-space: nowrap;
    transition: color 0.2s;
  }
  .top-bar-link:hover {
    color: #C622C9;
    text-decoration: underline;
  }


  @keyframes slideDown {
    from {
      transform: translateY(-100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .top-bar-link-btn {
    background-color: #c822cbcc !important;
    /*border: 2px solid #c822cbcc !important;*/
    /*background: linear-gradient(-131deg, #c822cbcc, #e069e2cc, #c822cbcc);*/ 
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 10px 4px;
    margin: -4px 0 0;
    border-radius: 0;
    height: 34px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    border-radius: 0px 0px 5px 5px;
    transition: all 0.3s;
    animation: slideDown 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(-100%);
  }
  
  .top-bar-right a:nth-child(1) { animation-delay: 0.1s; }
  .top-bar-right a:nth-child(2) { animation-delay: 0.2s; }
  .top-bar-right a:nth-child(3) { animation-delay: 0.3s; }

  .top-bar-link-btn:hover {
    text-decoration: underline;
    color: #C622C9;
  }

  .top-bar-link-btn i {
    color: #ffffff !important;
    margin-right: 5px;
  }
  
  
  
  @media (max-width: 700px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 2px 4px;
        font-size: 12px;
    }
    .top-bar-left, .top-bar-right {
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
    }
    .top-bar-right {
        justify-content: flex-end;
    }
    .top-bar-text {
        max-width: 120px;
    }
  }
  
  /* Contenido de la barra superior pequeña */
  .top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4px 24px;
    gap: 10px;
  }
  .top-bar .welcome {
    font-weight: 500;
    font-size: 1em;
  }
  .top-bar .status {
    background: linear-gradient(-131deg, #c822cb, #e069e2, #c822cb);
    color: #cacbd2;
    border-radius: 10px;
    padding: 2px 10px;
    margin: 0 10px;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  .top-bar .contact-icons a {
    color: #cacbd2;
    margin-left: 10px;
    font-size: 1.2em;
    text-decoration: none;
    transition: color 0.2s;
  }
  .top-bar .contact-icons a:hover {
    color: #8ADCFC;
  }
  
  @media (max-width: 700px) {
    .top-bar-content {
        flex-direction: column;
        align-items: center;
        padding: 4px 8px;
        gap: 3px;
    }
    .top-bar .welcome {
        font-size: 0.97em;
    }
    .top-bar .status {
        margin: 2px 0;
        font-size: 0.89em;
    }
    .top-bar .contact-icons a {
        font-size: 1.1em;
        margin-left: 7px;
    }
  }
  
  /* Barra de navegación principal fija y transparente al inicio */
  .main-navbar {
    width: 100%;
    background: rgba(255,255,255,0.0); /* Transparente al principio */
    color: #cacbd2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 72px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
    position: fixed;
    top: 36px;
    left: 0;
    z-index: 1000;
    transition: background 0.3s, color 0.3s, top 0.3s;
    font-weight: bold;
    /* Permite que los menús desplegables salgan de la barra */
    overflow: visible;
  }
  
  /* Loading bar under the navbar */
  .nav-loading-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
    z-index: 1001;
  }
  .nav-loading-bar.done {
    opacity: 0;
    transition: opacity 0.7s ease;
  }
  .nav-loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(-131deg, #c822cb, #e069e2, #c822cb);
    box-shadow: 0 0 12px rgba(198, 34, 201, 0.6);
    animation: navProgress 1.2s ease-in-out infinite;
    transform: translateX(-100%);
  }
  @keyframes navProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
  }
  
  /* Logo dentro de la barra de navegación */
  .main-navbar .logo {
    display: flex;
    align-items: center;
    margin-left: 8px;
  }
  .main-navbar .logo img {
    height: 50px; /* 36 */
    vertical-align: middle;
    margin-right: 10px;
    display: block;
  }
  
  
  
  /* Cambia el color de la barra al hacer scroll */
  .main-navbar.scrolled {
    background: #12121a7e;
    color: #cacbd2;
    top: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
  }
  
  .main-navbar .logo {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 2px;
  }
  
  /* Contenedor de los enlaces de navegación (horizontal) */
  .main-navbar .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    height: 72px; /* match navbar height */
    gap: 28px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    line-height: 1;
  }
  
  /* Estilo de los enlaces de la barra de navegación */
  .main-navbar .nav-links a {
    text-decoration: none;
    color: inherit;
    font-size: 1.07rem;
    transition: color 0.2s;
    padding: 0 14px; /* remove vertical padding to avoid extra bottom space */
    border-radius: 5px;
    display: inline-flex; /* allow flex centering */
    align-items: center;
  }
  
  /* Ensure nav items are perfectly centered */
  .main-navbar .nav-links > li { 
    display: flex; 
    align-items: center; 
    height: 72px;
    margin: 0;
    padding: 0;
    line-height: 1;
  }
  .main-navbar .nav-links > li > a,
  .main-navbar .nav-links > li > .dropbtn,
  .main-navbar .nav-links > li > a.dropbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;            /* fill li (72px) */
    padding: 0 14px;         /* only horizontal padding */
    line-height: 1;
    margin: 0;
  }
  
  /* Cada botón/enlace de la barra de navegación */
  .main-navbar .nav-links li {
    position: relative;
    }
  
    /* Estilos para el menú desplegable */
    .dropdown-content {
      display: block;
      position: absolute;
      background-color: #141C2A;
      min-width: 800px;
      box-shadow: 0 15px 30px rgba(0,0,0,0.15);
      z-index: 9999;
      border-radius: 12px;
      overflow: hidden;
      top: calc(100% + 10px);
      left: -390px;
      right: 0;
      margin: 0 auto;
      width: calc(100% - 40px);
      max-width: 1200px;
      opacity: 0;
      visibility: hidden;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
      border: 1px solid #12121A;
      padding: 20px;
      transform-origin: top center;
      perspective: 1000px;
      box-sizing: border-box;
    }
    .dropdown-content:hover {
      background-color: #1d2533;
    }
  
    /* Asegura que el menú no toque los bordes en pantallas pequeñas */
    @media (max-width: 1200px) {
      .dropdown-content {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        margin: 0;
      }
    }
    
    /* Animación de entrada del menú */
    @keyframes menuFadeIn {
      from {
        opacity: 0;
        transform: translateY(15px) rotateX(-15deg);
      }
      to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
      }
    }
    
    /* Animación de salida del menú */
    @keyframes menuFadeOut {
      from {
        opacity: 1;
        transform: translateY(0) rotateX(0);
      }
      to {
        opacity: 0;
        transform: translateY(15px) rotateX(-15deg);
      }
    }
    
    /* Menú de idiomas */
    .language-select .dropdown-content {
      min-width: 220px;
      left: auto;
      right: 0;
      transform: translateY(10px);
      padding: 10px 0;
      margin: 0;
      width: auto;
      max-width: none;
      background-color: #141C2A;
    }
    
    .language-select .dropdown-content.language-option {
      padding: 0;
    }
    
    .language-option {
      display: flex !important;
      align-items: center;
      padding: 12px 20px !important;
    }
    
    .language-option .flag {
      font-size: 1.4em;
      margin-right: 12px;
    }
    
    .language-name {
      font-weight: 600;
      color: #cacbd2;
      font-size: 0.95em;
    }
    
    .language-desc {
      color: #cacbd2;
      font-size: 0.85em;
      margin-top: 2px;
    }
    
    /* Mega menú */
    .mega-menu-content {
      display: flex;
      flex-wrap: wrap;
      padding: 0;
    }
    
    .mega-menu-section {
      flex: 1;
      min-width: 240px;
      padding: 20px;
      border-right: 1px solid rgba(0,0,0,0.05);
    }
    
    .mega-menu-section:last-child {
      border-right: none;
    }
    
    .mega-menu-section h4 {
      color: #C622C9;
      margin: 0 0 15px 0;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(0,0,0,0.05);
      font-size: 1.1em;
      position: relative;
      overflow: hidden;
    }
    
    /* Efecto de subrayado animado */
    .mega-menu-section h4::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: linear-gradient(90deg, #C622C9, #9b1e9e);
      transition: width 0.5s ease;
    }
    
    .mega-menu-section:hover h4::after {
      width: 50px;
    }
    
    .mega-menu-item {
      display: flex !important;
      align-items: flex-start;
      padding: 12px 15px !important;
      margin: 5px 0;
      border-radius: 8px;
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
      text-decoration: none !important;
      transform: translateX(-5px);
      opacity: 0;
      animation: menuItemFadeIn 0.4s forwards;
    }
    
    /* Animación de entrada de los ítems del menú */
    @keyframes menuItemFadeIn {
      from {
        opacity: 0;
        transform: translateX(-10px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }
    
    /* Retraso escalonado para los ítems del menú */
    .mega-menu-item:nth-child(1) { animation-delay: 0.05s; }
    .mega-menu-item:nth-child(2) { animation-delay: 0.1s; }
    .mega-menu-item:nth-child(3) { animation-delay: 0.15s; }
    .mega-menu-item:nth-child(4) { animation-delay: 0.2s; }
    
    .mega-menu-item i {
      font-size: 1.4em;
      color: #C622C9;
      margin-right: 15px;
      margin-top: 4px;
      min-width: 24px;
      text-align: center;
      transition: all 0.3s ease;
      transform: scale(1);
    }
    
    .mega-menu-item:hover i {
      transform: scale(1.2) rotate(5deg);
      color: #9b1e9e;
    }
    
    .mega-menu-text {
      flex: 1;
    }
    
    .mega-menu-title {
      display: block;
      font-weight: 600;
      color: #333;
      margin-bottom: 3px;
      font-size: 0.95em;
    }
    
    .mega-menu-desc {
      display: block;
      color: #666;
      font-size: 0.85em;
      line-height: 1.4;
    }
    
    .mega-menu-item:hover {
      background-color: #f9f0ff;
      transform: scale(1.02) !important;
      box-shadow: 0 5px 15px rgba(198, 34, 201, 0.1);
    }
    
    /* Efecto de elevación al pasar el ratón */
    .mega-menu-item {
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1), box-shadow 0.3s ease;
    }
    
    .mega-menu-item:hover .mega-menu-title {
      color: #C622C9;
    }
  
    /* Mostrar menú desplegable al pasar el mouse o enfocar */
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
      opacity: 1;
      visibility: visible;
      animation: menuFadeIn 0.4s forwards;
    }
    
    /* Coming soon section styles */
    .coming-soon-section {
      position: relative;
      opacity: 0.7;
      pointer-events: none;
    }
    
    .coming-soon-section .badge {
      background-color: #ffc107;
      color: #000;
      font-size: 0.7em;
      padding: 0.25em 0.5em;
      border-radius: 4px;
      margin-left: 8px;
      font-weight: bold;
      text-transform: uppercase;
    }
    
    .coming-soon-section .mega-menu-item {
      cursor: not-allowed;
      background-color: rgba(0, 0, 0, 0.05);
    }
    
    /* Ocultar menú con animación */
    .dropdown:not(:hover):not(:focus-within) .dropdown-content {
      animation: menuFadeOut 0.3s forwards;
    }
    
    .language-select:hover .dropdown-content,
    .language-select:focus-within .dropdown-content {
      transform: translateY(0);
    }
  
    /* Enlaces dentro del menú desplegable */
    .dropdown-content a {
      color: #cacbd2;
      padding: 12px 20px;
      text-decoration: none;
      display: flex;
      align-items: center;
      font-size: 0.95rem;
      background: none;
      border: none;
      text-align: left;
      transition: all 0.3s ease;
      position: relative;
      border-left: 3px solid transparent;
    }
  
    /* Separador entre elementos del menú */
    .dropdown-content a:not(:last-child) {
      border-bottom: 1px solid rgba(0,0,0,0.05);
    }
  
    /* Efecto hover en los enlaces del menú desplegable */
    .dropdown-content a:hover {
      background-color: #1d2533;
      color: #C622C9;
      padding-left: 22px;
    }
  
    /* Iconos de bandera en el menú de idiomas */
    .dropdown-content .dropdown {
      position: relative;
      display: inline-block;
      /* Asegura que el menú no se cierre al pasar el ratón al espacio entre botón y menú */
    }
    
    /* Pseudo-elemento para mantener el menú abierto al pasar el ratón */
    .dropdown::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 0;
      width: 100%;
      height: 20px;
      background: transparent;
      z-index: 10000;
    }
  
    .dropdown-content .flag {
      width: 20px;
      display: inline-block;
      text-align: center;
      margin-right: 20px;
      font-size: 1.1em;
    }
  
    /* Botón de selección de idioma con icono de bandera */
    .language-select .dropbtn {
      display: flex;
      align-items: center;
      gap: 6px;
      padding-right: 24px !important;
      position: relative;
    }
  
    /* Contenedor del ícono de bandera */
    .language-select .dropbtn .flag-container {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      margin-right: 6px;
    }
  
    /* Estilo para el icono de bandera en el menú de idioma */
    .flag {
      font-size: 1.2em;
      margin-right: 6px;
      display: inline-block;
      line-height: 1;
    }
  
    /* Texto del idioma */
    .language-select .dropbtn .language-text {
      display: inline-block;
      vertical-align: middle;
    }
  
    /* ... */