:root {
    --primary-color: #4A90E2;
    --secondary-color: #FF6B6B;
    --accent-color: #FFD93D;
    --background-color: #F8F9FA;
    --text-color: #2D3436;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.main-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInDown 1s ease-out;
}

.title-highlight {
    color: var(--accent-color);
    display: inline-block;
    position: relative;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.title-highlight:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 40px;
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    width: 300px;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.age-selector {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.age-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.age-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.age-btn {
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.age-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.nav-button {
    padding: 15px 30px;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.register-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.login-btn {
    background: linear-gradient(135deg, #4A90E2 0%, #67B26F 100%);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-invitado {
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.nav-button:hover {
    transform: translateY(-3px);
}

.register-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.login-btn:hover {
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

.btn-invitado:hover {
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.5);
}

.learning-section {
    padding: 40px 20px;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.learning-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.learning-card:nth-child(1) {
    background: linear-gradient(135deg, #FF9A9E 0%, #FAD0C4 100%);
}

.learning-card:nth-child(2) {
    background: linear-gradient(135deg, #A8EDEA 0%, #FED6E3 100%);
}

.learning-card:nth-child(3) {
    background: linear-gradient(135deg, #96FBC4 0%, #F9F586 100%);
}

.learning-card:nth-child(4) {
    background: linear-gradient(135deg, #E0C3FC 0%, #8EC5FC 100%);
}

.learning-card:nth-child(5) {
    background: linear-gradient(135deg, #FFD1FF 0%, #FAD0C4 100%);
}

.learning-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.learning-card strong {
    display: block;
    font-size: 1.5rem;
    color: #2D3436;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.learning-card p {
    color: #2D3436;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.site-footer {
    text-align: center;
    padding: 30px;
    background: var(--primary-color);
    color: white;
    margin-top: 40px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        width: 200px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .nav-button {
        width: 100%;
        justify-content: center;
    }
}
