:root {
    --primary-color: #87CEEB;
    /* Azul Cielo */
    --secondary-color: #FFD700;
    /* Dorado */
    --accent-color: #FFF8DC;
    /* Crema/Blanco suave */
    --text-color: #333333;
    --white: #ffffff;
    --font-heading: 'Fredoka', sans-serif;
    /* Amigable/Infantil */
    --font-body: 'Nunito', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--accent-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #4a90e2;
    /* Un azul un poco más fuerte para texto */
}

/* Header */
header {
    background-color: var(--white);
    padding: 0.2rem 0;
    /* Más compacto aún */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ... */

.logo img {
    max-height: 120px;
    /* Reducido un poco para ganar espacio */
    /* Aumentado de 80px a 160px */
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

/* ... (resto del css) ... */

/* 3. Personaje Flotante (Alex) */
.floating-character {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px;
    /* Tamaño controlado del icono */
    z-index: 999;
    /* Animación combinada: Flotar + Saludar (rotación) */
    animation: floatAndWave 3s ease-in-out infinite;
    cursor: pointer;
    transform-origin: bottom center;
    /* Para que rote desde abajo */
    transition: transform 0.3s;
}

.floating-character:hover {
    animation-play-state: paused;
    /* Se detiene al pasar el mouse para interactuar */
    transform: scale(1.1) rotate(0deg);
}

@keyframes floatAndWave {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(5deg);
    }

    /* Saluda derecha */
    50% {
        transform: translateY(0px) rotate(0deg);
    }

    75% {
        transform: translateY(-5px) rotate(-5deg);
    }

    /* Saluda izquierda */
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.social-icons-header a {
    margin-left: 10px;
    font-size: 1.2rem;
    color: #555;
}

.social-icons-header a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffffff 100%);
    padding: 3rem 0;
    text-align: center;
    border-bottom-left-radius: 50% 10%;
    border-bottom-right-radius: 50% 10%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 0 #d4b106;
    transition: transform 0.1s;
}

.btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: underline;
}

/* Responsive */
/* Responsive Cleaned Up */
@media (max-width: 768px) {
    .navbar {
        position: relative;
        padding: 1rem;
    }

    .hamburger {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: var(--primary-color);
    }

    /* Ocultar iconos sociales en header versión móvil */
    .social-icons-header {
        display: none;
    }

    .nav-menu {
        display: none;
        /* Oculto por defecto */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
        z-index: 2000;
        /* Asegurar que esté encima de todo */
    }

    .nav-menu.active {
        display: flex !important;
        /* Forzar mostrar al activarse */
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .container {
        width: 95%;
    }

    /* Ajustes flotantes móvil */
    .floating-character,
    .floating-character-left {
        width: 70px !important;
        bottom: 10px;
        display: block !important;
    }

    .floating-character-left {
        left: 10px;
    }

    .floating-character {
        right: 10px;
    }

    .floating-message,
    .floating-message-left {
        bottom: 90px !important;
        font-size: 0.8rem;
        padding: 5px 10px;
        max-width: 150px;
        z-index: 1002;
    }

    .floating-message-left {
        display: none !important;
    }
}

@media (max-width: 480px) {

    .floating-character,
    .floating-character-left {
        width: 60px !important;
    }
}

.floating-message::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent;
    display: block;
    width: 0;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Estilos para Bella (Izquierda) */
.floating-character-left {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 120px;
    z-index: 999;
    animation: floatAndWave 3s ease-in-out infinite;
    animation-delay: 1.5s;
    cursor: pointer;
    transform-origin: bottom center;
    transition: transform 0.3s;
}

.floating-character-left:hover {
    animation-play-state: paused;
    transform: scale(1.1) rotate(0deg);
}

/* 4. Quiz Styles */
.quiz-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quiz-options button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: 0.3s;
}

.quiz-options button:hover {
    background: #f0f8ff;
    border-color: var(--primary-color);
}