/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* NAVBAR (MÁS DELGADO EN ESCRITORIO) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    /* 🔽 antes 15px */
    background: #fff;
    position: relative;
    z-index: 2000;
}

.logo img {
    width: 85px;
    /* 🔽 antes 85px */
}

/* MENÚ */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li a {
    color: #000;
    text-decoration: none;
    margin-left: 18px;
    font-weight: bold;
    font-size: 15px;
    /* 🔽 un poco más compacto */
}

/* ICONO MENU */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    z-index: 2100;
    color: #000;
}

/* HERO */
.hero {
    position: relative;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* OVERLAY */
.hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    top: 0;
    left: 0;
    z-index: 1;
}

/* TEXTO HERO */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
}

/* TITULO */
.hero-text h1 {
    font-size: 2.7rem;
    line-height: 1.3;
}

/* LINEAS */
.line1 {
    display: block;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

.line2 {
    display: block;
    color: #00eaff;
    text-shadow:
        0 0 5px #00eaff,
        0 0 10px #00eaff,
        0 0 20px #00eaff,
        0 0 40px #00bcd4;
}

.hero-text p {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #fff;
}

/* CONTENIDO */
.content {
    padding: 40px 20px;
    text-align: center;
    flex: 1;
}

.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    border: 1px solid #ddd;
    padding: 20px;
    width: 250px;
    border-radius: 10px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.4);
}

/* FOOTER */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 15px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    /* NAVBAR más cómodo en móvil */
    .navbar {
        padding: 12px 20px;
        /* 🔼 un poco más alto en móvil */
    }

    .logo img {
        width: 75px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height: 100vh;
        background: red;
        flex-direction: column;
        padding-top: 60px;
        transition: 0.4s;
        z-index: 2050;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin-bottom: 20px;
        padding-left: 20px;
    }

    .nav-menu li a {
        color: white;
        font-size: 20px;
    }

    .menu-toggle.active {
        color: white;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}







/* ===== CLASES ===== */
.clases {
    max-width: 1100px;
    margin: 80px auto;
    text-align: center;
    padding: 0 20px;
}

.clases h1 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: rgb(220, 20, 20);
}

/* GRID */
.clases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    align-items: start;
}

/* CARD */
.clase-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.clase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* IMAGEN */
.clase-card img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    background: #000;
    padding: 10px;
}

/* TITULO */
.clase-card h3 {
    margin: 15px 0;
}

/* BOTÓN */
.btn-info {
    margin-bottom: 10px;
    padding: 10px 20px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-info:hover {
    background: #333;
}

/* INFO (ANIMACIÓN SUAVE) */
.info {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 15px;
    transition:
        max-height 0.5s ease,
        opacity 0.3s ease,
        padding 0.3s ease;
}

/* ACTIVO */
.clase-card.active .info {
    max-height: 1000px;
    opacity: 1;
    padding: 15px;
}

/* BLOQUES */
.tipo-info {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
    text-align: left;
    background: #f5f5f5;
}

.tipo-info h4 {
    margin-bottom: 5px;
}

/* HORARIOS */
.horario-modalidad {
    margin-top: 8px;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
    padding-top: 5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .clase-card img {
        max-height: 200px;
    }
}