/* Variables CSS basadas en el diseño original */
:root {
    --primary-blue: #0046b5;
    --secondary-blue: #005bd4;
    --primary-orange: #ff9966;
    --secondary-orange: #ff8040;
    --dark-bg: #000000;
    --light-bg: #ffffff;
    --gray-text: #666666;
    --border-radius: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--primary-orange) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Efectos de fondo animados */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    top: 30%;
    left: 70%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Contenedor principal del login */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 10;
    animation: slideIn 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo y header */
.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: logoGlow 2s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s linear infinite;
}

.logo {
    width: 60px;
    height: 60px;
    z-index: 2;
    position: relative;
}

@keyframes logoGlow {
    from {
        box-shadow: 0 0 20px rgba(0, 70, 181, 0.5);
    }
    to {
        box-shadow: 0 0 30px rgba(0, 70, 181, 0.8);
    }
}

@keyframes shine {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.logo-text {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.logo-subtitle {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(0, 70, 181, 0.2);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: var(--gray-text);
    transition: all 0.3s ease;
}

.form-input:focus::placeholder {
    opacity: 0.6;
    transform: translateX(10px);
}

/* Botón de login */
.login-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 70, 181, 0.4);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(-1px);
}

/* Enlaces adicionales */
.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.login-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.login-link:hover {
    color: var(--primary-orange);
    transform: translateY(-1px);
}

.login-link:hover::after {
    width: 100%;
}

/* Indicador de carga */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        margin: 20px;
        padding: 30px 25px;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .floating-shape {
        display: none;
    }
}

/* Efecto de partículas opcional */
.particle {
    position: absolute;
    background: rgba(255, 153, 102, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 4s linear infinite;
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1);
    }
}
/* From Uiverse.io by Zain-Muhammad — VERSION CORREGIDA + MENÚ HACIA ARRIBA */
.tooltip-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  --clr-btn: #0054c9;           /* Azul profesional */
  --clr-dropdown: #1a1a2e;      /* Fondo oscuro elegante */
  --clr-nav-hover: #0054c9;     /* Azul más claro al hover */
  --clr-dropdown-hov: #2a2a40;  /* Hover del menú */
  --clr-dropdown-link-hov: #0054c9; /* Azul en hover de enlaces */
  --clr-light: #ffffff;
}

.nav-link {
  position: relative;
}

.tooltip-wrapper > .tooltip-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tooltip-container,
.tooltip-menu-with-icon {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link > .tooltip-tab {
  color: var(--clr-light);
  background: var(--clr-btn);
  padding: 0.8rem 1rem;
  letter-spacing: 1px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  column-gap: 10px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid #0054c9;
  border-radius: 50px;
  box-shadow: 0 6px 18px rgba(183, 162, 162, 0.4); /* 👈 Tu sombra personalizada */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}

.nav-link > .tooltip-tab:hover svg {
  transform: rotate(360deg);
  transition: transform 0.4s ease-in-out;
}

.tooltip-links {
  text-decoration: none;
  color: var(--clr-light);
}

.nav-link svg {
  fill: #fff;
  width: 16px;
  height: 16px;
}

/* 🔥 CAMBIO CLAVE: Tooltip se abre HACIA ARRIBA */
.tooltip {
  position: absolute;
  bottom: 100%;                /* ← ¡Ahora se abre hacia arriba! */
  left: 20%;
  transform: translateX(-50%) translateY(10px); /* ← Lo subimos antes de mostrarlo */
  min-width: 14rem;
  max-width: 18rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 15px 0 0 0;
  z-index: 1001;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--clr-dropdown);
  border: 1px solid #00c1d5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ✅ Flecha que apunta HACIA ABAJO (desde el menú hacia el botón) */
.tooltip::after {
  content: "";
  width: 14px;
  height: 14px;
  background-color: var(--clr-dropdown); /* Mismo fondo que el menú */
  position: absolute;
  bottom: -7px;                 /* ← ¡Ahora está debajo del menú! */
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  box-shadow: 0 6px 20px rgba(2, 22, 36, 0.4);
  z-index: -1;
}

.tooltip .tooltip-menu-with-icon {
  padding: 10px 0;
  position: relative;
}

.tooltip-link {
  position: relative;
}

.tooltip-link:not(:nth-last-child(2)) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-link > a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  column-gap: 10px;
  background-color: transparent;
  color: var(--clr-light);
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.tooltip-menu-with-icon svg {
  height: 20px;
  width: 20px;
  fill: #fff;
}

/* ✅ HOVER DEL BOTÓN */
.nav-link:hover > .tooltip-tab {
  transform: scale(1.08);
  background: var(--clr-nav-hover);
  border-color: var(--clr-nav-hover);
  box-shadow: 0 8px 20px rgba(0, 84, 201, 0.5); /* ← Actualizado a tu azul */
}

/* ✅ MOSTRAR TOOLTIP AL HOVER — AHORA SE ABRE HACIA ARRIBA */
.nav-link:hover > .tooltip {
  transform: translateX(-50%) translateY(0); /* ← Lo bajamos a su posición final */
  opacity: 1;
  pointer-events: auto;
}

/* ✅ HOVER EN LOS ENLACES DEL MENÚ */
.tooltip-link > a:hover {
  background-color: var(--clr-dropdown-link-hov);
  color: white;
  transform: translateX(5px);
}
/* Modal Overlay */
.modal-backdrop {
  display: none;
  position: fixed;
  z-index: 9998;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Modal Container */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  padding: 30px;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { transform: translate(-50%, -70%); opacity: 0; }
  to { transform: translate(-50%, -50%); opacity: 1; }
}

/* Cerrar modal */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  margin-top: -10px;
  margin-right: -15px;
  transition: color 0.3s;
}

.close:hover {
  color: #0054c9;
}

/* Formulario dentro de la modal */
.modal-content h2 {
  color: #0054c9;
  margin-bottom: 10px;
  text-align: center;
}

.modal-content p {
  color: #555;
  text-align: center;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0054c9;
  box-shadow: 0 0 20px rgba(0, 84, 201, 0.2);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
}

/* Botón de envío */
#supportForm button {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(135deg, #0054c9, #0046b5);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#supportForm button:hover {
  background: linear-gradient(135deg, #0046b5, #003a9e);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 84, 201, 0.4);
}