/* --- ESTILOS PROFESIONALES CHATAPUCURSO.COM --- */

html {
    height: 100%;
}

body {
    /* Fuente limpia para párrafos */
    font-family: 'Inter', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* APLICACIÓN DE FUENTE INDUSTRIAL A TÍTULOS */
h1, h2, h3, .nav-links a, .cta-button, .badge, .price {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* 2. HEADER STICKY */
header {
    background-color: #FFD700;
    color: #CC0000;
    padding: 10px 20px;
    border-bottom: 5px solid #CC0000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    header h1 {
        font-size: 2.8em;
        margin: 0;
        letter-spacing: 1px;
    }

    header .subtitle {
        display: none;
    }

/* Navegación Escritorio */
.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

    .nav-links li a {
        text-decoration: none;
        color: #CC0000;
        font-weight: 700;
        font-size: 1.2em;
        padding: 5px 10px;
        border-radius: 4px;
        transition: all 0.2s ease-in-out;
    }

        .nav-links li a:hover {
            background-color: #CC0000;
            color: #FFD700;
        }

        /* BOTÓN ENTRAR (Con efecto Hover) */
        .nav-links li a.btn-entrar {
            background-color: #CC0000;
            color: white;
            border: 2px solid #000;
            box-shadow: 2px 2px 0px #000;
            transition: all 0.3s ease;
            display: inline-block;
        }

            .nav-links li a.btn-entrar:hover {
                transform: translateY(-4px); /* EFECTO FLOTAR */
                box-shadow: 4px 6px 0px #000;
            }

            .nav-links li a.btn-entrar:active {
                transform: translate(2px, 2px);
                box-shadow: 0px 0px 0px #000;
            }

.menu-toggle {
    display: none;
    cursor: pointer;
}

.close-menu-container {
    display: none;
}

/* 3. HERO SECTION */
.hero {
    background-image: linear-gradient(to right, #CC0000, #ff4d4d);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

    .hero h2 {
        font-size: 3em;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .hero .hero-subtitle {
        font-size: 1.2em;
        font-weight: 600;
        color: #FFD700;
        max-width: 800px;
        margin: 0 auto 30px auto;
    }

/* BOTÓN COMPRAR PRINCIPAL (Con efecto Hover) */
.cta-button {
    background-color: #FFD700;
    color: #CC0000;
    padding: 15px 30px;
    font-size: 1.6em;
    font-weight: 700;
    text-decoration: none;
    border: 3px solid #000;
    border-radius: 5px;
    display: inline-block;
    margin-top: auto;
    box-shadow: 3px 3px 0px #000;
    transition: all 0.3s ease; /* Transición suave */
}

    .cta-button:hover {
        transform: translateY(-5px); /* EFECTO FLOTAR */
        box-shadow: 5px 8px 0px #000; /* Sombra más pronunciada al flotar */
    }

    .cta-button:active {
        transform: translate(3px, 3px);
        box-shadow: 0px 0px 0px #000;
    }

/* 4. CURSOS Y GRID */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 3em;
    color: #CC0000;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-bottom: 50px;
}

.courses {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 15px;
}

.course-card {
    background: white;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

    .course-card:hover {
        border-color: #CC0000;
        transform: translateY(-5px);
    }

.badge {
    background-color: #CC0000;
    color: white;
    padding: 5px 10px;
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 1.1em;
    border-radius: 5px;
    transform: rotate(15deg);
    z-index: 10;
}

.course-title {
    color: #00509E;
    font-size: 1.6em;
    margin: 10px 0;
    letter-spacing: 0.5px;
}

.course-description {
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.5;
}

.price {
    font-size: 2.5em;
    color: #008000;
    margin: 15px 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.5em;
}

/* 5. TESTIMONIOS Y FOOTER */
.testimonials {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-top: 2px dashed #ccc;
    margin-top: 40px;
}

.testimonial-box {
    font-style: italic;
    color: #555;
    margin-top: 20px;
    max-width: 600px;
    margin: 20px auto;
    line-height: 1.6;
}

footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 20px;
    font-size: 0.8em;
    margin-top: auto;
}

/* --- ESTILOS PROFESIONALES CHATAPUCURSO.COM --- */

html {
    height: 100%;
}

body {
    /* Fuente limpia para párrafos */
    font-family: 'Inter', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* APLICACIÓN DE FUENTE INDUSTRIAL A TÍTULOS */
h1, h2, h3, .nav-links a, .cta-button, .badge, .price {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* 2. HEADER STICKY */
header {
    background-color: #FFD700;
    color: #CC0000;
    padding: 10px 20px;
    border-bottom: 5px solid #CC0000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    header h1 {
        font-size: 2.8em;
        margin: 0;
        letter-spacing: 1px;
    }

    header .subtitle {
        display: none;
    }

/* Navegación Escritorio */
.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

    .nav-links li a {
        text-decoration: none;
        color: #CC0000;
        font-weight: 700;
        font-size: 1.2em;
        padding: 5px 10px;
        border-radius: 4px;
        transition: all 0.2s ease-in-out;
    }

        .nav-links li a:hover {
            background-color: #CC0000;
            color: #FFD700;
        }

        /* BOTÓN ENTRAR (Con efecto Hover) */
        .nav-links li a.btn-entrar {
            background-color: #CC0000;
            color: white;
            border: 2px solid #000;
            box-shadow: 2px 2px 0px #000;
            transition: all 0.3s ease;
            display: inline-block;
        }

            .nav-links li a.btn-entrar:hover {
                transform: translateY(-4px); /* EFECTO FLOTAR */
                box-shadow: 4px 6px 0px #000;
            }

            .nav-links li a.btn-entrar:active {
                transform: translate(2px, 2px);
                box-shadow: 0px 0px 0px #000;
            }

.menu-toggle {
    display: none;
    cursor: pointer;
}

.close-menu-container {
    display: none;
}

/* 3. HERO SECTION */
.hero {
    background-image: linear-gradient(to right, #CC0000, #ff4d4d);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

    .hero h2 {
        font-size: 3em;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .hero .hero-subtitle {
        font-size: 1.2em;
        font-weight: 600;
        color: #FFD700;
        max-width: 800px;
        margin: 0 auto 30px auto;
    }

/* BOTÓN COMPRAR PRINCIPAL (Con efecto Hover) */
.cta-button {
    background-color: #FFD700;
    color: #CC0000;
    padding: 15px 30px;
    font-size: 1.6em;
    font-weight: 700;
    text-decoration: none;
    border: 3px solid #000;
    border-radius: 5px;
    display: inline-block;
    margin-top: auto;
    box-shadow: 3px 3px 0px #000;
    transition: all 0.3s ease; /* Transición suave */
}

    .cta-button:hover {
        transform: translateY(-5px); /* EFECTO FLOTAR */
        box-shadow: 5px 8px 0px #000; /* Sombra más pronunciada al flotar */
    }

    .cta-button:active {
        transform: translate(3px, 3px);
        box-shadow: 0px 0px 0px #000;
    }

/* 4. CURSOS Y GRID */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 3em;
    color: #CC0000;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-bottom: 50px;
}

.courses {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 15px;
}

.course-card {
    background: white;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

    .course-card:hover {
        border-color: #CC0000;
        transform: translateY(-5px);
    }

.badge {
    background-color: #CC0000;
    color: white;
    padding: 5px 10px;
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 1.1em;
    border-radius: 5px;
    transform: rotate(15deg);
    z-index: 10;
}

.course-title {
    color: #00509E;
    font-size: 1.6em;
    margin: 10px 0;
    letter-spacing: 0.5px;
}

.course-description {
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.5;
}

.price {
    font-size: 2.5em;
    color: #008000;
    margin: 15px 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.5em;
}

/* 5. TESTIMONIOS Y FOOTER */
.testimonials {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-top: 2px dashed #ccc;
    margin-top: 40px;
}

.testimonial-box {
    font-style: italic;
    color: #555;
    margin-top: 20px;
    max-width: 600px;
    margin: 20px auto;
    line-height: 1.6;
}

footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 20px;
    font-size: 0.8em;
    margin-top: auto;
}

/* --- 6. RESPONSIVE MEDIA QUERIES (MENÚ MÓVIL ARREGLADO) --- */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

        header h1 {
            font-size: 2.2em;
        }

    .menu-toggle {
        display: block;
    }

        .menu-toggle span {
            display: block;
            width: 30px;
            height: 4px;
            background-color: #CC0000;
            margin: 6px 0;
            border-radius: 2px;
        }

    /* MENÚ MÓVIL CONSISTENTE CON LA MARCA */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #FFD700; /* Fondo Amarillo Saul */
        flex-direction: column;
        align-items: center; /* Centrado para más impacto */
        justify-content: flex-start;
        padding-top: 20px;
        transition: right 0.3s ease-in-out;
        z-index: 2000;
        overflow-y: auto;
    }

        .nav-links.active {
            right: 0;
        }

    .close-menu-container {
        display: flex;
        width: 100%;
        justify-content: flex-end;
        padding: 0 30px 20px 0;
        border-bottom: 2px solid rgba(204, 0, 0, 0.2);
    }

    .close-menu {
        font-size: 3em;
        font-weight: bold;
        color: #CC0000; /* Equis Roja */
        cursor: pointer;
        line-height: 1;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

        .nav-links li a {
            display: block;
            padding: 20px;
            font-size: 1.8em; /* Letras grandes y pesadas */
            color: #CC0000; /* Texto Rojo */
            border-bottom: 2px solid rgba(204, 0, 0, 0.2);
            letter-spacing: 1px;
        }

            .nav-links li a:hover {
                background-color: #CC0000;
                color: #FFD700;
            }

            /* Botón Entrar en móvil arreglado */
            .nav-links li a.btn-entrar {
                background-color: transparent;
                color: #008000; /* Verde Dinero */
                border: none;
                box-shadow: none;
                margin-top: 10px;
                font-size: 2em;
            }

    .hero h2 {
        font-size: 2.2em;
    }

    .courses {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* --- 6. RESPONSIVE MEDIA QUERIES (MENÚ MÓVIL ARREGLADO) --- */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

        header h1 {
            font-size: 2.2em;
        }

    .menu-toggle {
        display: block;
    }

        .menu-toggle span {
            display: block;
            width: 30px;
            height: 4px;
            background-color: #CC0000;
            margin: 6px 0;
            border-radius: 2px;
        }

    /* MENÚ MÓVIL CONSISTENTE CON LA MARCA */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #FFD700; /* Fondo Amarillo Saul */
        flex-direction: column;
        align-items: center; /* Centrado para más impacto */
        justify-content: flex-start;
        padding-top: 20px;
        transition: right 0.3s ease-in-out;
        z-index: 2000;
        overflow-y: auto;
    }

        .nav-links.active {
            right: 0;
        }

    .close-menu-container {
        display: flex;
        width: 100%;
        justify-content: flex-end;
        padding: 0 30px 20px 0;
        border-bottom: 2px solid rgba(204, 0, 0, 0.2);
    }

    .close-menu {
        font-size: 3em;
        font-weight: bold;
        color: #CC0000; /* Equis Roja */
        cursor: pointer;
        line-height: 1;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

        .nav-links li a {
            display: block;
            padding: 20px;
            font-size: 1.8em; /* Letras grandes y pesadas */
            color: #CC0000; /* Texto Rojo */
            border-bottom: 2px solid rgba(204, 0, 0, 0.2);
            letter-spacing: 1px;
        }

            .nav-links li a:hover {
                background-color: #CC0000;
                color: #FFD700;
            }

            /* Botón Entrar en móvil arreglado */
            .nav-links li a.btn-entrar {
                background-color: transparent;
                color: #008000; /* Verde Dinero */
                border: none;
                box-shadow: none;
                margin-top: 10px;
                font-size: 2em;
            }

    .hero h2 {
        font-size: 2.2em;
    }

    .courses {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    <style >
    /* REGLA DE HIERRO: Nada puede ser más ancho que la pantalla del celular */
    html, body {
        max-width: 100vw;
        overflow-x: hidden; /* Corta de raíz el desplazamiento horizontal fantasma */
        margin: 0;
        padding: 0;
    }

    * {
        box-sizing: border-box; /* Evita que el padding sume ancho extra a las cajas */
    }

    </style >
}
