* body {
    margin: 0;
    font-family: 'Poppins', sans-serif; /* ← NUEVA FUENTE */
    background: #eef2f7;
}


/* HERO */
.hero {
    height: 90vh;
    background: url("capacitacion_imagen.jpeg") center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-left: 60px;
    position: relative;
}

.hero-content {
    color: #151585;
    max-width: 500px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #1e88e5;
    color: white;
    text-decoration: none;
    border-radius: 25px;
}

/* PRODUCTOS */
.productos {
    padding: 60px;
    background: #eef2f7;
}

.titulo {
    text-align: center;
    margin-bottom: 40px;
    color: #0d47a1;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-decoration: none;
    color: black;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform .3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* ====== PÁGINAS DE CURSOS ====== */

/* Fondo general gris */
.curso-contenido {
    padding: 60px;
    background: #363333; /* GRIS */
}

/* HERO DEL CURSO */
.curso-hero {
    background-image: url("descarga (1).jfif"); /* cambia imagen */
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
}

/* Texto sobre la imagen */
.curso-overlay {
    padding: 60px;
    color: #000;
}

/* CUADROS PRINCIPALES AZUL REY */
.curso-card {
    background: #0F0B4D; /* AZUL REY */
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    color: #ffffff;
}

/* TÍTULOS DENTRO DE LOS CUADROS */
.curso-card h2 {
    color: #ffffff;
    margin-bottom: 15px;
}

/* LISTAS */
.curso-card ul {
    padding-left: 20px;
}

.curso-card li {
    margin-bottom: 8px;
}

/* BOTÓN VOLVER */
.volver {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    font-weight: bold;
    color: #1e3a8a;
}

/* ====== MODAL ====== */
.modal {
    display: none;
    position: fixed;
    background: rgba(0,0,0,0.6);
    width: 100%;
    height: 100%;
    top: 0;
}

.modal-contenido {
    background: #ffffff;
    width: 350px;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.modal-contenido input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}


/* ====== ANIMACIÓN DE ENTRADA PARA CONTENIDO DEL CURSO ====== */

/* Estado inicial */
.curso-contenido {
    animation: aparecerContenido 1s ease forwards;
}

/* Animación */
@keyframes aparecerContenido {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación escalonada para los cuadros */
.curso-card {
    opacity: 0;
    animation: aparecerTarjeta 0.8s ease forwards;
}

/* Delay progresivo */
.curso-card:nth-child(1) { animation-delay: 0.2s; }
.curso-card:nth-child(2) { animation-delay: 0.4s; }
.curso-card:nth-child(3) { animation-delay: 0.6s; }
.curso-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes aparecerTarjeta {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ====== ESTILO PROFESIONAL PARA CURSOS ====== */

.curso-contenido {
    padding: 60px;
    background: #f1f3f6; /* gris */
    animation: aparecerContenido 1s ease forwards;
}

/* ANIMACIÓN GENERAL */
@keyframes aparecerContenido {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TARJETAS PROFESIONALES */
.curso-card {
    background: linear-gradient(135deg, #1e3a8a, #274bb5);
    padding: 35px;
    margin-bottom: 30px;
    border-radius: 18px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.18);
    color: #ffffff;
    position: relative;
    overflow: hidden;

    opacity: 0;
    animation: aparecerTarjeta 0.8s ease forwards;
}

/* ENTRADA ESCALONADA */
.curso-card:nth-child(1) { animation-delay: 0.2s; }
.curso-card:nth-child(2) { animation-delay: 0.4s; }
.curso-card:nth-child(3) { animation-delay: 0.6s; }
.curso-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes aparecerTarjeta {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TEXTO INTERNO */
.curso-card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.curso-card p,
.curso-card li {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
}

/* DETALLE DECORATIVO */
.curso-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #ffffff;
    opacity: 0.3;
}

/* HOVER PROFESIONAL */
.curso-card:hover {
    transform: translateY(-6px);
    transition: 0.3s ease;
}



/* ===== BOTONES DE CURSOS - ESTILO PROFESIONAL ===== */

.boton-curso {
    background: transparent; /* conserva diseño */
    border: 2px solid #1e3a8a; /* marco azul rey */
    color: #1e3a8a;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;

    /* sombra suave */
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.25);

    transition: all 0.3s ease;
}

/* HOVER */
.boton-curso:hover {
    background: #1e3a8a;
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.45);
    transform: translateY(-3px);
}

/* EFECTO CLICK */
.boton-curso:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(30, 58, 138, 0.35);
}

/* ===== QR EN HERO ===== */

.qr-container{
    margin-top: 30px;
    text-align: center;
}

.qr{
    width: 120px;
    height: 120px;
    margin-top: 10px;
    background: white;
    padding: 8px;
    border-radius: 10px;
}

/* ===== RESPONSIVE PARA CELULARES ===== */

@media (max-width: 768px){

    /* HERO */
    .hero{
        height: auto;
        padding: 40px 20px;
        text-align: center;
        justify-content: center;
    }

    .hero-overlay{
        width: 100%;
    }

    .hero h1{
        font-size: 28px;
    }

    .hero p{
        font-size: 16px;
    }

    /* BOTONES */
    .hero-btn{
        display: block;
        margin: 10px auto;
        width: 80%;
    }

    /* PRODUCTOS */
    .productos{
        padding: 30px 20px;
    }

    .productos-grid{
        grid-template-columns: 1fr; /* una columna */
    }

    /* TARJETAS */
    .card{
        padding: 20px;
    }

}
