/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #FFF9C4 0%, #B3E5FC 50%, #F8BBD0 100%);
    min-height: 100vh;
    color: #333;
}

/* ===== ENCABEZADO ===== */
header {
    background: linear-gradient(90deg, #FF6F61, #FFD93D, #6BCB77, #4D96FF);
    padding: 20px 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-contenido {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-family: 'Fredoka One', cursive;
    color: white;
    font-size: 2em;
    text-shadow: 3px 3px 0 #FF6F61, 5px 5px 0 rgba(0,0,0,0.2);
}

.logo p {
    color: #FFF9C4;
    font-size: 0.85em;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 30px;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s;
    font-size: 0.95em;
}

nav a:hover, nav a.activo {
    background: #FFD93D;
    color: #333;
    transform: scale(1.05);
}

/* ===== HERO ===== */
.hero {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 60px 40px;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-contenido h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.8em;
    color: #FF6F61;
    text-shadow: 2px 2px 0 #FFD93D;
    margin-bottom: 15px;
}

.hero-contenido p {
    font-size: 1.15em;
    color: #555;
    margin-bottom: 25px;
    max-width: 500px;
}

.hero-imagen img {
    width: 280px;
    animation: flotar 3s ease-in-out infinite;
}

@keyframes flotar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== BOTONES ===== */
.btn-principal {
    display: inline-block;
    background: linear-gradient(135deg, #6BCB77, #4D96FF);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2em;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 0 #3A7BD5;
    transition: all 0.2s;
}

.btn-principal:hover {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #3A7BD5;
}

.btn-secundario {
    display: inline-block;
    background: #FF6F61;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-left: 10px;
    box-shadow: 0 4px 0 #C0392B;
}

/* ===== SECCIONES GENERALES ===== */
.seccion {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.seccion h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.3em;
    color: #4D96FF;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 0 #FFD93D;
}

/* ===== TARJETAS ===== */
.grid-tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.tarjeta {
    background: white;
    border-radius: 25px;
    padding: 30px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 4px solid #FFD93D;
    text-align: center;
}

.tarjeta:hover {
    transform: translateY(-10px) rotate(-2deg);
    border-color: #FF6F61;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.tarjeta .icono {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.tarjeta h3 {
    font-family: 'Fredoka One', cursive;
    color: #FF6F61;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.tarjeta p {
    color: #666;
    font-size: 0.95em;
}

/* ===== NOSOTROS ===== */
.nosotros-contenido {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.nosotros-texto p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.valor {
    background: #FFF9C4;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 3px solid #FFD93D;
}

.valor .emoji {
    font-size: 2.5em;
}

.valor h4 {
    font-family: 'Fredoka One', cursive;
    color: #FF6F61;
    margin-top: 10px;
}

/* ===== EQUIPO ===== */
.equipo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.miembro {
    background: white;
    border-radius: 25px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 4px solid #B3E5FC;
}

.miembro .avatar {
    font-size: 4em;
    margin-bottom: 15px;
}

.miembro h4 {
    font-family: 'Fredoka One', cursive;
    color: #4D96FF;
    font-size: 1.2em;
}

.miembro p {
    color: #888;
    font-size: 0.9em;
    margin-top: 5px;
}

/* ===== UBICACIÓN ===== */
.mapa-container {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 5px solid #FFD93D;
    margin-bottom: 30px;
}

.mapa-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.info-ubicacion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid #6BCB77;
}

.info-item .icono {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.info-item h4 {
    font-family: 'Fredoka One', cursive;
    color: #6BCB77;
    margin-bottom: 8px;
}

.info-item p {
    color: #666;
    font-size: 0.95em;
}

/* ===== CONTACTO ===== */
.formulario {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 5px solid #FFD93D;
}

.formulario label {
    display: block;
    font-weight: 700;
    color: #4D96FF;
    margin-bottom: 8px;
    margin-top: 15px;
}

.formulario input,
.formulario textarea {
    width: 100%;
    padding: 12px 18px;
    border: 3px solid #B3E5FC;
    border-radius: 15px;
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    outline: none;
    transition: border 0.3s;
}

.formulario input:focus,
.formulario textarea:focus {
    border-color: #FF6F61;
}

.formulario button {
    margin-top: 25px;
    width: 100%;
}

/* ===== JUEGO ===== */
.juego-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: 5px solid #FFD93D;
    text-align: center;
}

.juego-container h2 {
    font-family: 'Fredoka One', cursive;
    color: #4D96FF;
    font-size: 2em;
    margin-bottom: 20px;
}

.info-juego {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: #FF6F61;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.barra-progreso {
    background: #FFF9C4;
    height: 15px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progreso {
    height: 100%;
    background: linear-gradient(90deg, #6BCB77, #4D96FF);
    width: 0%;
    transition: width 0.4s;
    border-radius: 10px;
}

.opciones {
    display: grid;
    gap: 15px;
    margin: 25px 0;
}

.opcion {
    background: #FFF9C4;
    border: 3px solid #FFD93D;
    border-radius: 20px;
    padding: 18px;
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Nunito', sans-serif;
}

.opcion:hover {
    background: #FFD93D;
    transform: scale(1.02);
}

.opcion.correcta {
    background: #6BCB77;
    border-color: #4CAF50;
    color: white;
}

.opcion.incorrecta {
    background: #FF6F61;
    border-color: #E53935;
    color: white;
}

.puntaje-final {
    font-family: 'Fredoka One', cursive;
    font-size: 4em;
    color: #FF6F61;
    text-shadow: 3px 3px 0 #FFD93D;
    margin: 20px 0;
}

.oculto {
    display: none;
}

/* ===== PIE ===== */
footer {
    background: linear-gradient(90deg, #4D96FF, #6BCB77, #FFD93D, #FF6F61);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    font-weight: 700;
}

footer .redes {
    margin-top: 10px;
    font-size: 1.5em;
    letter-spacing: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-contenido {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .hero-contenido h2 {
        font-size: 2em;
    }
    .hero-imagen img {
        width: 200px;
    }
    .nosotros-contenido {
        grid-template-columns: 1fr;
    }
}
