* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #faf7ff;
    color: #2d2238;
}

/* HEADER */

.header {
    background: linear-gradient(135deg, #f4e7ff, #dcc3f7);
    padding: 20px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(95, 55, 130, 0.15);
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-box img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.logo-box h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    color: #5c2d91;
}

.logo-box p {
    color: #7a4ba0;
    font-weight: 600;
}

.menu {
    display: flex;
    gap: 22px;
}

.menu a {
    text-decoration: none;
    color: #4b256f;
    font-weight: 700;
    transition: 0.3s ease;
}

.menu a:hover {
    color: #b624e8;
}

/* HERO */

.hero {
    min-height: 85vh;
    padding: 80px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    background: linear-gradient(135deg, #ffffff, #f2e4ff);
}

.hero-texto {
    animation: aparecer 1s ease;
}

.hero-texto h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 55px;
    color: #4d2278;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-texto p {
    font-size: 20px;
    color: #5f4b6f;
    margin-bottom: 35px;
    line-height: 1.7;
}

.btn-principal {
    display: inline-block;
    background: linear-gradient(135deg, #a855f7, #d946ef);
    color: white;
    padding: 16px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.35);
    transition: 0.3s;
}

.btn-principal:hover {
    transform: translateY(-5px);
}

.hero-img img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 45px rgba(90, 50, 120, 0.25);
}

/* CARRUSEL */

.carrusel {
    width: 90%;
    margin: 50px auto;
    height: 380px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide.activo {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* MAIN */

main {
    width: 90%;
    margin: auto;
}

section {
    margin: 80px 0;
}

section h2 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: 38px;
    color: #4d2278;
    margin-bottom: 35px;
}

.nosotros {
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(120, 70, 150, 0.12);
    text-align: center;
}

.nosotros p {
    font-size: 19px;
    line-height: 1.8;
}

/* INFO */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card-info {
    background: white;
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(120, 70, 150, 0.12);
    transition: 0.3s;
}

.card-info:hover {
    transform: translateY(-8px);
}

.card-info img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 20px;
}

.card-info h3 {
    color: #6b21a8;
    font-size: 25px;
    margin: 20px 0 10px;
}

.card-info p {
    line-height: 1.7;
}

/* CURSOS */

.curso-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.curso-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(120, 70, 150, 0.15);
    transition: 0.3s;
}

.curso-card:hover {
    transform: translateY(-10px);
}

.curso-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.curso-card h3 {
    font-size: 26px;
    color: #5c2d91;
    padding: 20px 20px 5px;
}

.curso-card p {
    padding: 0 20px;
    line-height: 1.6;
}

.curso-card span,
.curso-card strong {
    display: block;
    padding: 8px 20px;
}

.curso-card strong {
    font-size: 22px;
    color: #b624e8;
}

.curso-card a {
    display: block;
    text-align: center;
    margin: 20px;
    padding: 13px;
    background: linear-gradient(135deg, #a855f7, #d946ef);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
}

/* HORARIOS */

.horarios table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(120, 70, 150, 0.15);
}

.horarios th {
    background: #7e22ce;
    color: white;
    padding: 18px;
}

.horarios td {
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.horarios tr:hover {
    background: #f6edff;
}

/* CLASES */

.clases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.clase-card {
    background: white;
    text-align: center;
    padding: 40px 25px;
    border-radius: 25px;
    box-shadow: 0 12px 30px rgba(120, 70, 150, 0.15);
    transition: 0.3s;
}

.clase-card:hover {
    transform: translateY(-8px);
}

.clase-card i {
    font-size: 50px;
    color: #a855f7;
    margin-bottom: 20px;
}

.clase-card h3 {
    color: #5c2d91;
    font-size: 25px;
}

/* FORMULARIO */

.contacto form {
    max-width: 650px;
    margin: auto;
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 12px 30px rgba(120, 70, 150, 0.15);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contacto input,
.contacto select,
.contacto textarea {
    padding: 15px;
    border: 2px solid #ead7ff;
    border-radius: 15px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

.contacto textarea {
    min-height: 120px;
    resize: none;
}

.contacto button {
    background: linear-gradient(135deg, #a855f7, #d946ef);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.contacto button:hover {
    transform: scale(1.03);
}

/* CHAT */

.chat-flotante {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: white;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 34px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 999;
    animation: pulso 1.8s infinite;
}

/* FOOTER */

footer {
    background: #4d2278;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 80px;
}

/* ANIMACIONES */

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulso {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-texto h2 {
        font-size: 38px;
    }

    .info-grid,
    .curso-grid,
    .clases-grid {
        grid-template-columns: 1fr;
    }

    .carrusel {
        height: 250px;
    }
}

.redes-contacto {
    background: white;
    padding: 45px 25px;
    border-radius: 25px;
    box-shadow: 0 12px 30px rgba(120, 70, 150, 0.15);
    text-align: center;
}

.redes-botones {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.redes-botones a {
    width: 180px;
    padding: 15px 20px;
    border-radius: 40px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.redes-botones a:hover {
    transform: translateY(-5px);
}

.redes-botones i {
    font-size: 24px;
}

.facebook {
    background: #1877F2;
}

.instagram {
    background: #E4405F;
}

.tiktok {
    background: #000;
}
.whatsapp-red{
    background:#25D366;
}
