.menu {
  margin: 0px;
  background-color: var(--color-principal);
  font-size: 25px;
  color: white;
  padding: 10px 0;
  width: 100%;
}

.menu a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 10px 15px;
  transition: background 0.3s;
  margin-bottom: 0;
}

.menu a:hover {
  color: var(--color-secundario);
  font-size: 30px;
}

.logo img {
  margin-left: 30px;
  width: 90px;
  height: 90px;
}

.Iniciar img {
  margin-right: 5px;
  width: 60px;
  height: 60px;
}

.footer {
  background-color: var(--color-principal);
  color: white;
  padding: 10px 0;
  margin-top: 5px;
  font-size: 20px;
}

.footer a {
  color: var(--color-secundario);
  text-decoration: none;
  font-size: 20px;
  font-family: 'Poppins', sans-serif;
}

.footer a:hover {
  text-decoration: underline;
}

.footer table {
  color: white;
  width: 100%;
}

.logito {
  width: 150px;   
  height: 150px;  
}

.ig, .wts, .fb {
  margin-right: 20px;
  vertical-align: middle;
  height: 30px;
  width: 30px;
}

.creditos {
  text-align: center;
  font-size: 15px;
}

.menu .btn-cerrar {
  padding: 6px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu .btn-cerrar img {
  width: 24px; /* tamaño base parecido al texto */
  height: 24px;
  display: block;
}

/* Hover igual que el resto del menú */
.menu .btn-cerrar:hover img {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.user-label {
  font-weight: bold;              /* Negrita */
  color: white;                   /* Igual que el texto del menú */
  font-family: 'Poppins', sans-serif;
  margin-left: 10px;
  white-space: nowrap;            /* Evita saltos de línea */
  overflow: hidden;
  text-overflow: ellipsis;        /* Corta con puntos si es muy largo */
  max-width: 150px;               /* Limita ancho base */
}

@media (max-width: 1024px) {
.btn-cerrar img {
    width: 40px;
    height: 40px;
  }
  .user-label {
    font-size: 16px;
    max-width: 120px;
  }
  }

@media (max-width: 768px) {
   .user-label {
    font-size: 14px;
    max-width: 100px;
  }
.menu .logo {
    display: none;
  }
  .btn-cerrar img {
    width: 32px;
    height: 32px;
  }

  /* Forzar que el menú sea horizontal con flexbox */
  .menu {
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center;
    gap: 10px; /* espacio entre links */
    padding: 10px 5px;
  }

  /* Los enlaces del menú con letra más pequeña y menos padding */
  .menu a {
    font-size: 16px;      /* Tamaño de fuente más pequeño */
    padding: 8px 10px;    /* Menos padding para que quepan */
    white-space: nowrap;  /* Evitar que el texto se divida en varias líneas */
  }

  /* Evitar que cambie el tamaño al hacer hover (opcional) */
.menu > a:hover {
  color: var(--color-secundario);
  font-size: 17px; /* o el tamaño normal que quieras para los links del menú */
}

  }


  @media (max-width: 480px) {
      .user-label {
    font-size: 1px;
    max-width: 90px;
  }
    .btn-cerrar img {
    width: 26px;
    height: 26px;
  }
    .menu .logo {
    display: none;
  }
  .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 5px;
    
    overflow-x: auto; /* permite scroll si no cabe */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
  }
  .menu::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  .menu a {
    font-size: 14px;
    white-space: nowrap;
    padding: 6px 10px;
    flex-shrink: 0;
  }
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 20px;
    font-size: 12px; /* letra más pequeña general */
    text-align: center;
    line-height: 1.4;
  }
  .footer table {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    border-collapse: collapse;
  }
  .footer table td {
    padding: 8px 5px;
  }
  .footer .logito {
    display: none;
  }

  /* Solo los <b> dentro del footer para títulos */
  .footer b {
    font-size: 12px;
    font-weight: 700;
  }
}

@media (max-width: 425px){
  .user-label {
    font-size: 11px;
    max-width: 80px;
  }
 .btn-cerrar img {
    width: 24px;
    height: 24px;
  }
  .menu {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 4px 3px !important;
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    background-color: var(--color-principal) !important; /* si tienes fondo */
  }
  .menu::-webkit-scrollbar {
    display: none !important;
  }
  .menu .logo {
    display: none !important;
  }
  .menu a {
    flex-shrink: 1 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    padding: 3px 6px !important;
    font-size: 11px !important;
    max-width: 70px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: white !important;
    font-weight: 600 !important;
    text-align: center !important;
  }
   .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 20px;
    font-size: 11px; /* más pequeño para 425 */
    text-align: center;
    line-height: 1.4;
  }
  .footer table {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-collapse: collapse;
  }
  .footer table td {
    padding: 6px 5px;
  }
  .footer .logito {
    display: none;
  }
  .footer b {
    font-size: 11px;
    font-weight: 700;
  }
}

@media (max-width: 375px) {
  .user-label {
    font-size: 11px;
    max-width: 70px;
  }
  .btn-cerrar img {
    width: 20px;
    height: 20px;
  }
  /* Contenedor menú: flex y scroll horizontal */
  .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;                  /* menos espacio entre botones */
    padding: 6px 3px;          /* menos padding */
    background-color: var(--color-principal);
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;        /* evitar scroll horizontal */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .menu::-webkit-scrollbar {
    display: none;
  }
  .menu .logo {
    display: none !important;
  }
  .menu a {
    flex-shrink: 1;            /* permite reducir tamaño */
    min-width: 0;              /* sin mínimo */
    white-space: nowrap;
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 4px 7px;          /* padding más pequeño */
    font-size: 11px;           /* fuente un poco más grande que antes */
    max-width: 80px;           /* limita ancho máximo */
    overflow: hidden;
    text-overflow: ellipsis;   /* corta texto largo con puntos */
    transition: color 0.3s ease, font-size 0.3s ease;
    text-align: center;
  }
  .menu a:hover {
    color: var(--color-secundario);
    font-size: 14px;           /* tamaño más grande en hover */
  }
   .footer b {
    font-size: 10px;
    font-weight: 700;
  }

  .footer a {
    font-size: 10px;
  }
  .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 20px;
    font-size: 8px; /* más pequeño para 425 */
    text-align: center;
    line-height: 1.4;
  }
 }

 @media (max-width: 320px) {
   .user-label {
    font-size: 9px;
    max-width: 60px;
  }
  .btn-cerrar img {
    width: 18px;
    height: 18px;
  }
   .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding: 5px 2px;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: var(--color-principal);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .menu::-webkit-scrollbar {
    display: none;
  }
  .menu .logo {
    display: none !important;
  }
  .menu a {
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    padding: 3px 5px;
    font-size: 9px;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
    font-weight: bold;
    text-align: center;
  }
    .footer b {
    font-size: 10px;
    font-weight: 700;
  }

  .footer a {
    font-size: 10px;
  }
  .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 20px;
    font-size: 8px; /* más pequeño para 425 */
    text-align: center;
    line-height: 1.4;
  }
 }

/* ================================
      ÁREA DEL USUARIO (DROPDOWN)
================================ */

/* Contenedor general */
.user-area {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Icono de usuario (FontAwesome) */
.user-icon {
  font-size: 28px;
  color: white;
}

/* Flechita */
.user-arrow {
  font-size: 16px;
  color: white;
  transition: transform 0.5s ease;
}

/* Dropdown oculto */
.user-dropdown {
  position: absolute;
  top: 33px;
  left: 0;
  background: white;
  border-radius: 8px;
  min-width: 160px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
  padding: 10px 0;
  
  opacity: 0;              /* empieza invisible */
  transform: translateY(-10px); /* un poco más arriba */
  pointer-events: none;    /* no clickeable mientras está invisible */
  transition: opacity 0.4s ease, transform 0.4s ease; /* transición suave */
  z-index: 999;
}

/* Mostrar dropdown con efecto */
.user-area:hover .user-dropdown {
  opacity: 1;              /* visible */
  transform: translateY(0); /* baja a su posición normal */
  pointer-events: auto;    /* ahora sí se puede interactuar */
}

/* Flecha animada */
.user-area:hover .user-arrow {
  transform: rotate(180deg);
  transition: transform 0.4s ease; /* suaviza también la rotación */
}


/* Enlaces del dropdown */
.user-dropdown a {
  display: block;
  color: #333;
  padding: 8px 15px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 16px; /* tamaño fijo */
}

.user-dropdown a:hover {
  color: rgb(112, 4, 4); /* color vino */
  font-size: 16px; /* tamaño fijo, no se agranda */
  background: transparent;
}
/* Mostrar dropdown al pasar */
.user-area:hover .user-dropdown {
  display: block;
}

/* Animar la flecha */
.user-area:hover .user-arrow {
  transform: rotate(180deg);
}
/* Botón iniciar sesión igual que los links del menú */
.menu .btniniciar {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  font-size: 24px;
  font-family: 'Poppins', sans-serif;
  background: none;     /* sin fondo */
  border: none;         /* sin borde */
  cursor: pointer;
  transition: color 0.3s ease, font-size 0.3s ease;
}

.menu .btniniciar:hover {
  background-color: var(--color-principal);
  color: var(--color-secundario);
  font-size: 28px;
}

.logo-alert {
    margin-top: -50px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 140px; /* un poco más grande */
    height: auto;
    margin-bottom: 0px; 
    
}
.popup-alert .swal2-html-container {
    margin-top: 0; /* elimina espacio extra sobre el texto */
    padding-top: 0;
}
