/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FFFFFF;
    color: #2D3436;
    line-height: 1.6;
}

/* HEADER */
.site-header {
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    color: #2D3436;
}

.logo-text .highlight {
    color: #4F9DFF;
}

#logo-text {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease, transform 1s ease;
}

/* Cuando se activa */
#logo-text.active {
    opacity: 1;
    transform: scale(1);
}

/*Animacion de carga */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

#loader-text {
    font-size: 48px;
    font-weight: bold;
    color: #2D3436;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#loader-text span {
    opacity: 0;
    transform: translateY(50px);
    animation: letterIn 0.6s forwards;
}

/* Animación base */
@keyframes letterIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones con delays */
#loader-text span:nth-child(1) { animation-delay: 0s; }
#loader-text span:nth-child(2) { animation-delay: 0.05s; }
#loader-text span:nth-child(3) { animation-delay: 0.1s; }
#loader-text span:nth-child(4) { animation-delay: 0.2s; }
#loader-text span:nth-child(5) { animation-delay: 0.25s; }
#loader-text span:nth-child(6) { animation-delay: 0.3s; }
#loader-text span:nth-child(7) { animation-delay: 0.35s; }
#loader-text span:nth-child(8) { animation-delay: 0.4s; }
#loader-text span:nth-child(9) { animation-delay: 0.45s; }
#loader-text span:nth-child(10) { animation-delay: 0.5s; }
#loader-text span:nth-child(11) { animation-delay: 0.55s; }
#loader-text span:nth-child(12) { animation-delay: 0.6s; }
#loader-text span:nth-child(13) { animation-delay: 0.65s; }

/* Colores diferentes */
.highlight {
    color: #4F9DFF;
}



/* BOTÓN HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #2D3436;
    cursor: pointer;
}

/* NAVEGACIÓN */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #2D3436;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #4F9DFF;
}

/* FOOTER */
footer {
    background-color: #ffffff;
    color: #7B8A8B;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    border-top: 1px solid #E0E0E0;
}

footer a {
    color: #4F9DFF;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    color: #1E88E5;
    text-decoration: underline;
}

/* BOTONES */
a.button, a.button:visited {
    display: inline-block;
    padding: 14px 28px;
    background-color: #4F9DFF;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    font-size: 18px;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

a.button:hover {
    background-color: #1E88E5;
    transform: translateY(-2px);
}


/* RESPONSIVE - MÓVIL */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        background-color: #ffffff;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
    }

    .main-nav.active {
        display: block;
    }

    .site-header .container {
        flex-direction: column;
    }
}


/* OCULTAR scrollbar por defecto */
body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background-color: rgba(79, 157, 255, 0.5); /* Azul de tu marca, semi transparente */
    border-radius: 10px;
    transition: background-color 0.3s;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(79, 157, 255, 0.8); /* Se hace más fuerte si pasas encima */
}


.idioma-selector {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.idioma-selector a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #2D3436;
  transition: color 0.3s ease;
}

.idioma-selector a:hover {
  color: #4F9DFF;
}

.idioma-selector a.active {
  color: #4F9DFF;
  font-weight: bold;
  text-decoration: underline;
}
