/* Paleta de colores inspirada en la selva peruana - Versión Vibrante */
:root {
    --primary-green: #4CAF50;
    --dark-green: #2E7D32;
    --light-green: #DCEDC8;
    --accent-yellow: #FFEB3B;
    --accent-orange: #FF9800;
    --vibrant-blue: #03A9F4;
    --vibrant-pink: #E91E63;
    --text-dark: #1B3022;
    --white: #ffffff;
    --bg-light: #F9FBE7;
    --font-main: 'Quicksand', sans-serif;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    font-size: 1.1rem;
}

/* Tipografía accesible */
h1, h2, h3 {
    color: var(--dark-green);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header y Navegación */
header {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    color: var(--white);
    padding: 0.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5rem;
    background: var(--accent-yellow);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 4px 0 #FBC02D;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    line-height: 1;
    color: var(--white);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

.logo-text span {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Logo Versión Grande */
.logo-big {
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

.logo-big .logo-icon {
    width: 120px;
    height: 120px;
    font-size: 5rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 0 #FBC02D;
}

.logo-big .logo-text h1, .logo-big .logo-text h3 {
    font-size: 2.2rem;
    color: var(--dark-green);
    text-shadow: none;
    margin-bottom: 5px;
}

.logo-big .logo-text span {
    font-size: 1.1rem;
    color: var(--accent-orange);
    text-transform: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s;
}

nav a:hover {
    background-color: var(--accent-yellow);
    color: var(--dark-green);
    transform: translateY(-2px);
}

/* Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Animación Hamburguesa activa */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Secciones */
.section-padding {
    padding: 100px 10%;
}

.bg-light {
    background-color: var(--bg-light);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(45deg, var(--light-green), var(--white));
    border-radius: 30px;
    border: 5px dashed var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 10px 10px 0px var(--light-green);
}

/* Hero Section */
.hero {
    min-height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&q=80&w=1000') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 40px 20px;
}

.hero-content h2 {
    color: var(--accent-yellow);
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    text-shadow: 4px 4px 0px var(--dark-green);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    margin-bottom: 2.5rem;
    max-width: 900px;
    background: rgba(0,0,0,0.2);
    padding: 10px 20px;
    border-radius: 15px;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(to bottom, var(--accent-orange), #E65100);
    color: var(--white);
    padding: 18px 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    border-radius: 50px;
    box-shadow: 0 6px 0px #BF360C;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(3px);
    box-shadow: 0 3px 0px #BF360C;
}

/* Grid de Juegos */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.game-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-card .btn-primary {
    margin-top: auto;
    width: fit-content;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
}

.game-card:nth-child(1) { border-top: 10px solid var(--vibrant-blue); }
.game-card:nth-child(2) { border-top: 10px solid var(--vibrant-pink); }
.game-card:nth-child(3) { border-top: 10px solid var(--accent-orange); }
.game-card:nth-child(4) { border-top: 10px solid var(--primary-green); }

.game-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.icon-placeholder {
    font-size: 5rem;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.1));
}

/* Objetivos */
.goals-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

.goals-list li {
    background: var(--white);
    margin-bottom: 20px;
    padding: 25px 35px;
    border-radius: 20px;
    border-left: 10px solid var(--primary-green);
    font-weight: bold;
    font-size: clamp(1rem, 3vw, 1.3rem);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.goals-list li::before {
    content: '🍃';
}

/* Creadoras */
.creator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.creator-card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 3px solid var(--light-green);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.creator-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--primary-green);
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.creator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-card h3 {
    color: var(--dark-green);
    font-size: 1.8rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
    margin-top: 80px;
}

/* Accesibilidad: Alto Contraste */
.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

.high-contrast header, .high-contrast footer {
    background: #000 !important;
    border-bottom: 2px solid #fff;
}

.high-contrast .bg-light, .high-contrast .creator-card, .high-contrast .game-card, .high-contrast .image-placeholder, .high-contrast .goals-list li {
    background-color: #000 !important;
    color: #fff !important;
    border: 3px solid #fff !important;
    box-shadow: none !important;
}

.high-contrast h1, .high-contrast h2, .high-contrast h3, .high-contrast p, .high-contrast a, .high-contrast li {
    color: #fff !important;
}

.high-contrast .btn-primary {
    background: #ffff00 !important;
    color: #000 !important;
    box-shadow: none !important;
}

#contrast-toggle {
    background: var(--accent-yellow);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-main);
    color: var(--dark-green);
    box-shadow: 0 4px 0px #FBC02D;
    transition: all 0.2s;
}

#contrast-toggle:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0px #FBC02D;
}

/* Responsive */
@media (max-width: 992px) {
    .section-padding {
        padding: 60px 5%;
    }
}

@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: flex;
        order: 2;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-green);
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        display: block;
        padding: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.2rem;
    }

    #contrast-toggle {
        margin-right: 15px;
        order: 1;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        height: auto;
        padding: 60px 20px;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 40px 15px;
    }

    .game-card, .creator-card {
        padding: 20px;
    }

    .btn-primary {
        width: 100%;
    }
}
