* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0f141e;
    color: white;
}

header {
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    z-index: 10;
}

/* 🔥 Contenedor del logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 50%;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: rgb(255, 0, 0);
}

nav a {
    text-decoration: none;
    margin: 0 15px;
    color: #ff0000;
    font-weight: 300;
    transition: 0.3s;
}

nav a:hover { 
    color: #ff0000; 
}

/* HERO */
.hero {
    height: 100vh;
    background: url("img/IMG_4815.JPEG") center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-left: 60px;
}

.hero-content h1 {
    font-size: 55px;
    font-weight: 800;
}

.hero-content h2 {
    font-size: 30px;
    margin: 10px 0;
}

.hero-content p {
    margin-top: 10px;
    font-size: 18px;
    max-width: 450px;
}

.hero-content button {
    margin-top: 20px;
    padding: 12px 25px;
    background: #ff0000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

.hero-content button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* CURSOS POPULARES */
.popular {
    padding: 80px 50px;
    text-align: center;
}

.popular h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
}

.cards {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 15px;
}

.card {
    background: #101722;
    border-radius: 15px;
    overflow: hidden;
    width: 260px;
    min-width: 260px;
    height: 600px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.card h3 {
    margin-top: 15px;
    color: #ff0000;
    font-size: 22px;
}

.card p {
    margin-top: 10px;
    font-size: 15px;
    padding: 0 15px;
}

.precio {
    display: block;
    margin-top: 10px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #FFD700;
    text-align: center;
}

/* SECCIÓN INSPIRE */
.inspire {
    padding: 100px 50px;
    text-align: center;
    background: url("img/R.jpeg") center/cover no-repeat;
    background-attachment: fixed;
}

.inspire h1 {
    font-size: 45px;
    font-weight: 800;
}

.inspire p {
    margin: 10px 0 20px;
    font-size: 17px;
}

/* CARRUSEL */
.carousel-container {
    position: relative;
    width: 80%;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    width: 300%;
    animation: slide 15s infinite ease-in-out;
}

.carousel-track img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

@keyframes slide {
    0% { transform: translateX(0); }
    30% { transform: translateX(0); }

    33% { transform: translateX(-100%); }
    63% { transform: translateX(-100%); }

    66% { transform: translateX(-200%); }
    96% { transform: translateX(-200%); }

    100% { transform: translateX(0); }
}

/* BOTONES DEL CARRUSEL */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 15px;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* CONTACTO */
.contacto {
    padding: 80px 50px;   /* 🔥 ARREGLADO PARA QUE NO SE CORTE EN iPHONE */
    background: #0f141e;
    text-align: center;
}

.contacto h2 {
    font-size: 32px;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 30px;
}

.contacto-container {
    max-width: 900px;
    margin: auto;
    background: #101722;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.contacto button {
    padding: 14px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.contacto button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.whatsapp-logo {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.whatsapp-logo img {
    width: 55px;
    height: auto;
    opacity: 0.9;
    transition: 0.3s ease;
}

.whatsapp-logo img:hover {
    transform: scale(1.08);
    opacity: 1;
}

/* UBICACIÓN */
.ubicacion {
    padding: 80px 50px;
    background: #0f141e;
    text-align: center;
    margin-top: 30px;
}

.ubicacion h2 {
    font-size: 32px;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 30px;
}

.ubicacion-container {
    max-width: 900px;
    margin: auto;
    background: #101722;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.ubicacion-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

/* FOOTER */
footer p {
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

/* RESPONSIVE — TABLET Y CELULAR */
@media (max-width: 768px) {

    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    nav a {
        margin: 0 8px;
        font-size: 16px;
    }

    .logo-container img {
        height: 40px;
        width: 40px;
    }
    
    .logo {
        font-size: 20px;
    }

    .hero {
        height: auto;
        padding: 120px 20px 60px;
        text-align: center;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 35px;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-content button {
        width: 90%;
    }

    .cards {
        fle
