/* Importar fuentes llamativas: 'Chewy' para títulos (más infantil) y 'Poppins' para texto (moderno/legible) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Chewy&display=swap');

/* --- Variables y Reset Básico --- */
:root {
    --purple: #5c3894; /* Color principal del diseño original */
    --yellow: #fdd835; /* Color de acento para niños */
    --green: #8bc34a;
    --red: #e53935;
    --blue: #2196f3;
    --text-dark: #333;
    --text-light: #fff;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f4f7f6; /* Fondo suave */
}
.top-bar {
    background: #67266c;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}
        
.top-bar a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s;
}
        
.top-bar a:hover {
    opacity: 0.8;
}
        
.social-icons {
    display: flex;
    gap: 0.8rem;
}
        
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s;
}
        
.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
}
        
/* Header */
header {
    background: #510488;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo-link {
    text-decoration: none;
    color: inherit;
}
        
.logo-container img {
    height: 80px;
    width: auto;
}
        
.logo-text {
     color: white;
}
        
.logo-text h1 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}
        
.logo-text .subtitle {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 300;
}
        
.logo-text .tagline {
    font-size: 0.75rem;
    margin-top: 0.2rem;
    opacity: 0.9;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

nav {
    display: flex;
    gap: 2rem;
    position: relative;
}
        
nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: opacity 0.3s;
    position: relative;
}
        
nav a:hover {
    opacity: 0.8;
}
        
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s;
}
        
nav a:hover::after {
    width: 100%;
}
.dropbtn {
    color: white;
    padding: 10px 15px;
    font-weight: 600;
    margin-left: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    padding: 10px 15px; 
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #8227d8;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10;
    display: none; 
    border-radius: 0 0 5px 5px;
}

.dropdown-content a {
    color:ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section {
    background-color: var(--purple);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Para el fondo, si añades una imagen/patrón */
}

.hero-section h1 {
    font-family: 'Chewy', cursive;
    font-size: 3.5em;
    margin-bottom: 5px;
    color: var(--yellow); /* Título en amarillo para resaltar */
    text-shadow: 3px 3px var(--text-dark);
}

.pre-venta, .dates, .start-date {
    font-size: 1.2em;
    font-weight: 700;
    margin: 5px 0;
}

/* Diseño del Badge de Descuento */
.discount-badge {
    background-color: var(--red);
    color: var(--text-light);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    border: 5px solid var(--yellow);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    animation: pulse 1.5s infinite; /* Animación simple */
}

.dscto-text {
    font-size: 0.9em;
    font-weight: 700;
}

.dscto-percent {
    font-family: 'Chewy', cursive;
    font-size: 3.5em;
    line-height: 1;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- 2. INTRODUCCIÓN Y MODALIDAD --- */
.intro-section {
    text-align: center;
    padding: 40px 0;
    background-color: var(--text-light);
    border-bottom: 3px dashed var(--yellow);
}

.intro-section h2 {
    font-family: 'Chewy', cursive;
    color: var(--purple);
    font-size: 2em;
}

.module-info {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: var(--blue);
    color: var(--text-light);
    display: inline-block;
    border-radius: 10px;
}

.module-info h3 {
    margin: 0;
    font-size: 1.5em;
}

.levels-section {
    padding: 60px 0;
    background-color: #e8eaf6;
}

.levels-section > .container > h2 {
    font-family: 'Chewy', cursive;
    text-align: center;
    color: var(--red);
    margin-bottom: 40px;
    font-size: 2.5em;
}

.level-card {
    background-color: var(--text-light);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 10px solid;
    transition: transform 0.3s ease;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.level-card h3 {
    font-family: 'Chewy', cursive;
    font-size: 2em;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--yellow);
}

.level-card h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--purple);
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--purple);
    display: inline-block;
    padding-right: 10px;
}

.level-card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.level-card li {
    background-color: #f0f4c3;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 500;
    border: 1px solid var(--green);
}

.initial-level { border-left-color: var(--green); }
.initial-level li { background-color: #e8f5e9; }

.primary-1-4-level { border-left-color: var(--blue); }
.primary-1-4-level li { background-color: #e3f2fd; }

.primary-5-6-level { border-left-color: var(--yellow); }
.primary-5-6-level li { background-color: #fffde7; }

.secondary-1-3-level { border-left-color: var(--purple); }
.secondary-1-3-level li { background-color: #ede7f6; }

.secondary-pre-level { border-left-color: var(--red); }
.secondary-pre-level li { background-color: #ffebee; }

.contact-section {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

.contact-section h2 {
    font-family: 'Chewy', cursive;
    color: var(--yellow);
    margin-bottom: 20px;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.1em;
}

.contact-info p:last-child {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--green);
}
.contact-info p a {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.4rem 3%;
        font-size: 0.75rem;
        gap: 0.8rem;
        top: 0;
    }
    
    .top-bar a {
        font-size: 0.75rem;
    }
    
    header {
        padding: 0.8rem 3%;
        flex-wrap: wrap;
        top: 38px;
    }
    
    .logo-container {
        flex: 1;
        gap: 0.5rem;
    }
    
    .logo-container img {
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text .tagline {
        font-size: 0.65rem;
    }
    
    .menu-toggle {
        display: block;
        order: 3;
    }
    
    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: #510488;
        order: 4;
        padding: 1rem 0;
        margin-top: 0.5rem;
    }
    
    nav.active {
        display: flex;
    }
    
    nav a {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropbtn {
        width: 100%;
        text-align: left;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #6a1b9a;
        border-radius: 0;
    }
    
    .dropdown-content a {
        padding-left: 2rem;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }

    .discount-badge {
        width: 120px;
        height: 120px;
    }
    
    .dscto-percent {
        font-size: 2.8em;
    }

    .level-card li {
        width: 100%;
        text-align: center;
    }
}