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

body {
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(#f2f1f5);
    min-height: 100vh;
}

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links span {
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-links span:hover {
    color: #4ecdc4;
}

.btn-iniciar {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-iniciar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.hero-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: black;
}

.hero-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    width: 100%;
    padding: 20px 40px;
    align-items: center;
}

/* Texto */
.contenedor-texto {
    text-align: justify;
    font-size: 16px;
    margin-left: 10px;
}

/* Imagen centrada */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contáctanos */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Botones uno debajo del otro */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Responsive: se apila en pantallas pequeñas */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr; /* una sola columna en móvil */
        text-align: center;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
    text-align: center; /* Centrar texto */
    padding: 50px 20px;
}

.hero-text {
    max-width: 800px; /* Para que no ocupe toda la pantalla */
    background: rgba(255, 255, 255, 0.1); /* Fondo semitransparente opcional */
    padding: 30px;
    border-radius: 15px;
    color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffd700; /* Amarillo bonito */
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.highlight {
    color: #00c4ff; /* Resalta STEM y EDUTAINMENT */
    font-weight: bold;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.large-logo {
    width: 300px;
    height: 300px;
    background: linear-gradient(
        45deg,
        #ff6b6b,
        #4ecdc4,
        #45b7d1,
        #96ceb4,
        #feca57
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 80px;
    font-weight: bold;
    animation: pulse 4s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.contact-section {
    text-align: center;
    margin-top: 40px;
}

.contact-buttons {
    display: flex;
    flex-direction: column; /* uno debajo del otro */
    gap: 15px; /* espacio entre botones */
    align-items: center;
}

.btn-contact {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    color: white;
}

/* WHATSAPP */
.btn-whatsapp {
    background: linear-gradient(45deg, #25d366, #128c7e);
}

/* REGISTRARSE */
.btn-register {
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    gap: 22px; /* Espacio entre la imagen y el texto */
    padding: 22px 20px;
    background: linear-gradient(45deg, #4267b2, #365899); /* Gradiente azul */
    border-radius: 25px;
}

.btn-register img {
    width: 24px; /* Tamaño del icono */
    height: 24px;
}

/* HOVERS */
.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp:hover {
    background: linear-gradient(45deg, #1ebd5b, #0f6c5e);
}

.btn-register:hover {
    background: linear-gradient(45deg, #365899, #4b79db); /* Azul más oscuro */
}

/* Programs Section */
.programs {
    padding: 80px 0;
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
}

.programs h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 60px;
    font-weight: bold;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.program-card {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    font-weight: bold;
}

.big-builders .program-icon {
    background: linear-gradient(45deg, #ff9a56, #ff6b35);
}

.galileo .program-icon {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.bricks .program-icon {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.program-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.program-details {
    color: #666;
    font-size: 1rem;
}

/* News Section */
.news {
    background: rgba(255, 255, 255, 0);
    padding: 80px 0;
    margin: 40px 0;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.news h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 60px;
    font-weight: bold;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.news-content {
    padding: 30px;
}

.news-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.news-description {
    color: #666;
    line-height: 1.6;
}

.winter-workshop {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 40px;
}

.winter-workshop h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Más alto que todo */
}


/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.footer-text {
    flex: 1;
}

.footer-text p {
    line-height: 1.6;
    margin-bottom: 15px;
}
footer {
    position: relative;
    z-index: 1; /* Debajo del modal */
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* Siempre detrás del modal */
}


.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #4267b2, #e74c3c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: #4ecdc4;
    font-size: 1.3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.contact-icon {
    width: 20px;
    height: 20px;
    background: #4ecdc4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-around 15s linear infinite;
}

@keyframes float-around {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .large-logo {
        width: 200px;
        height: 200px;
        font-size: 60px;
    }

    .nav-links {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.highlight {
    color: #4ecdc4;
    font-weight: bold;
}

.age-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin: 5px 0;
}

.duration-badge {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin: 5px 0;
}


 .modal-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.6);
        justify-content: center;
        align-items: center;
        z-index: 10000000;
    }
    .modal-overlay.show { 
        display: flex; 
    }
    .modal-container {
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        width: 90%;
        max-width: 600px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        max-height: 80vh;
        overflow-y: auto;
    }
    .modal-header { 
        text-align:center; 
        margin-bottom:20px; 
        position: relative;
    }
    .close-btn { 
        position: absolute;
        right: 0;
        top: 0;
        font-size: 24px; 
        cursor: pointer; 
        border: none; 
        background: none;
        color: #666;
        padding: 5px;
    }
    .close-btn:hover {
        color: #000;
    }
body {
        background: linear-gradient(135deg, #f5f6fa 60%, #e0f7fa 100%);
        font-family: 'Arial', sans-serif;
        color: #222;
    }
    /* NAVBAR RESPONSIVO */
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    .nav-links {
        display: flex;
        align-items: center;
        gap: 20px;
        font-weight: 600;
        font-size: 1rem;
    }
    .navbar-toggle {
        display: none;
        background: none;
        border: none;
        font-size: 2rem;
        color: #0984e3;
        cursor: pointer;
        margin-left: 10px;
    }
    @media (max-width: 800px) {
        .nav-links {
            display: none;
            position: absolute;
            top: 60px;
            right: 0;
            background: #fff;
            flex-direction: column;
            gap: 0;
            width: 220px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.12);
            border-radius: 0 0 12px 12px;
            z-index: 1000;
        }
        .nav-links.show {
            display: flex;
        }
        .navbar-toggle {
            display: block;
        }
    }
    /* FORMULARIO DE CONTACTO SIN GRADIENTE */
    .modal-container {
        background: #fff;
        padding: 32px 24px;
        border-radius: 18px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.12);
        max-width: 420px;
        margin: 0 auto;
        border-top: 5px solid #00b894;
        border-bottom: 5px solid #f9ca24;
        position: relative;
    }
    .modal-header h2 {
        color: #0984e3;
        font-weight: bold;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }
    .modal-header .modal-subtitle {
        color: #636e72;
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .form-group {
        margin-bottom: 18px;
        position: relative;
    }
    .form-group label {
        font-weight: bold;
        color: #e74c3c;
        margin-bottom: 6px;
        display: block;
        letter-spacing: 0.5px;
    }
    .form-group input[type="text"],
    .form-group input[type="tel"] {
        width: 100%;
        padding: 12px 16px 12px 40px;
        border-radius: 12px;
        border: 1.5px solid #00b894;
        background: #f9f9f9;
        font-size: 1rem;
        color: #222;
        outline: none;
        transition: border 0.2s;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }
    .form-group input[type="text"]:focus,
    .form-group input[type="tel"]:focus {
        border: 1.5px solid #f9ca24;
        background: #fff;
    }
    .form-group input[type="text"]::placeholder,
    .form-group input[type="tel"]::placeholder {
        color: #b2bec3;
    }
    .form-group .input-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.2rem;
        color: #00b894;
    }
    .modal-body button[type="submit"] {
        width: 100%;
        background: #0984e3;
        color: #fff;
        font-weight: bold;
        border: none;
        border-radius: 25px;
        padding: 14px 0;
        font-size: 1.1rem;
        margin-top: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        letter-spacing: 1px;
        transition: background 0.2s, box-shadow 0.2s;
    }
    .modal-body button[type="submit"]:hover {
        background: #00b894;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }
    .close-btn {
        color: #e74c3c;
        font-size: 2rem;
        top: 10px;
        right: 10px;
    }
    .close-btn:hover {
        color: #00b894;
    }
    /* --- FIN FORMULARIO --- */
    /* --- COLORES EN SECCIONES Y BOTONES --- */
    .btn-whatsapp {
        background: linear-gradient(45deg, #25d366, #00b894);
        color: #fff;
        font-weight: bold;
        font-size: 1.1rem;
    }
    .btn-register {
        background: linear-gradient(45deg, #e74c3c, #f9ca24);
        color: #fff;
        font-weight: bold;
        font-size: 1.1rem;
    }
    .winter-workshop {
        background: linear-gradient(135deg, #f9ca24, #00b894);
        color: #222;
    }
    .winter-workshop .btn-contact {
        background: linear-gradient(45deg, #e74c3c, #0984e3);
        color: #fff;
    }
    .footer-logo img {
        filter: drop-shadow(0 2px 8px #f9ca24);
    }
    .footer-section h3, .contact-info h3 {
        color: #0984e3;
    }
    .social-icon {
        background: linear-gradient(45deg, #e74c3c, #00b894);
    }
    .modal-header { 
        text-align:center; 
        margin-bottom:20px; 
        position: relative;
    }
    .close-btn { 
        position: absolute;
        right: 0;
        top: 0;
        font-size: 24px; 
        cursor: pointer; 
        border: none; 
        background: none;
        color: #666;
        padding: 5px;
    }
    .close-btn:hover {
        color: #000;
    }

    .btn-iniciar {
        background: #0984e3;
        color: #fff;
        border: none;
        border-radius: 25px;
        padding: 12px 36px;
        font-weight: bold;
        font-size: 1.1rem;
        letter-spacing: 1px;
        box-shadow: 0 4px 16px rgba(9,132,227,0.18);
        transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
        position: relative;
        overflow: hidden;
        display: inline-block;
        text-decoration: none;
    }
    .btn-iniciar:hover {
        background: #00b894;
        color: #fff;
        box-shadow: 0 8px 32px 0 #00b89444, 0 0 0 4px #00b89433;
        transform: translateY(-2px) scale(1.05);
        text-decoration: none;
    }
    .btn-iniciar:active {
        background: #0984e3;
        box-shadow: 0 2px 8px rgba(9,132,227,0.18);
        transform: scale(0.98);
    }
    .btn-iniciar:visited {
        color: #fff;
        text-decoration: none;
    }
    .btn-register:hover {
        background: #ff9800;
        color: #fff;
    }
    .btn-register {
        text-decoration: none;
    }
    .programs-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-bottom: 32px;
    }
    @media (max-width: 900px) {
        .programs-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    @media (max-width: 600px) {
        .programs-grid {
            grid-template-columns: 1fr;
        }
    }
    .section-title {
        font-size: 2.3rem;
        font-weight: bold;
        text-align: center;
        margin-bottom: 32px;
        letter-spacing: 2px;
        border-radius: 18px;
        padding: 16px 0;
        box-shadow: 0 2px 12px #00b89433;
        color: #fff;
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
    }
    .section-title.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .section-title.programas {
        background: #e74c3c;
        text-shadow: 0 2px 12px #c0392b, 0 1px 0 #fff;
    }
    .section-title.talleres {
        background: #8e44ad;
        text-shadow: 0 2px 12px #6c3483, 0 1px 0 #fff;
    }
    .program-card {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
    }
    .program-card.visible {
        opacity: 1;
        transform: translateY(0);
    }