/* ================= TITULO ================= */

/*.hero-custom { 
    padding: 160px 20px 100px;
    background: linear-gradient(135deg, #d44300 0%, #ff6c28 100%);
    color: white;
    text-align: center;
    margin-bottom: 50px;
} */

.hero-custom {
    padding: 160px 20px 100px;
    background: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
    url('fondo-landing.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
    text-align: center;
    margin-bottom: 50px;
}

.hero-custom h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-custom h1 span {
    color: #ff3b3b; /* Color de acción fuerte */
}

.hero-custom p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 35px;
    opacity: 0.9;
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 60px 0 40px;
    color: #0b1c3d;
}

/* ================= GRID ================= */

.promo-grid {
    display: grid;
    /* Ajustamos el minmax para que las tarjetas no sean tan angostas */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px;
    max-width: 1200px; /* Aumentado de 1200px para que se extienda más en desktop */
    margin: auto;
    padding: 20px 10px; /* Reducimos padding lateral para ganar espacio */
}

/* ================= CARD ================= */

.promo-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* ================= IMAGE ================= */

.promo-card img {
    width: 100%;
    height: auto;              /* deja que la altura sea proporcional */
    object-fit: contain;        /* muestra toda la imagen sin recortar */
    max-height: 280px;          /* limita altura en desktop */
    background-color: #f5f5f5;  /* fondo neutro para espacios vacíos */
}

.image-box {
    width: 100%;
    height: 260px;               /* altura uniforme en desktop */
    background-color: #f8f8f8;    /* fondo neutro */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-box img {
    width: 100%;           /* Forzamos el ancho al 100% */
    height: 100%;          /* Forzamos el alto al 100% */
    object-fit: cover;     /* RELLENA el espacio recortando lo sobrante */
    object-position: center; /* Centra la imagen para que el recorte sea parejo */
}

/* ================= INFO ================= */

.product-info {
    padding: 20px;
    text-align: left;
}

.links-titulos {
    color: #0b1c3d;
    font-size: 1.2rem;
    font-weight: 700;
}

.links-titulos:hover {
    color: #ff3b3b;
}

/* ================= DESCRIPTION ================= */

.product-info {
    padding: 20px 15px; /* Ajuste fino del espacio interno */
    text-align: left;
}

.product-info p {
    font-size: 1rem;    /* Un toque más grande para legibilidad */
    color: #444;
    line-height: 1.4;
    width: 100%;        /* Forzamos a que use todo el ancho de la card */
    margin-bottom: 15px;
}

/* ================= PRICE ================= */

.price {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price span:first-child {
    font-size: 1.1rem;
    color: #ffffff;
}

.price span:last-child {
    font-size: 1.8rem;
    color: #f57c00;
    font-weight: bold;
}

/* ================= BUTTON ================= */

.product-buttons {
    margin-top: 15px;
}

.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: linear-gradient(135deg, #d62828, #ff3b3b);
    transform: scale(1.03);
}

.btn:disabled {
    background: gray;
    cursor: not-allowed;
}


/* ================= BANNER ================= */

.courses-banner {
    background: linear-gradient(135deg, #0b1c3d, #1f3c88);
    color: white;
    padding: 70px 20px;
    text-align: center;
}

.courses-banner h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.courses-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .courses-banner h1 {
        font-size: 2rem;
    }
}


/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .section-title {
        font-size: 2rem;
    }


    .promo-card img {
        max-height: 300px;     /* menor para celulares */
    }


    .price span:last-child {
        font-size: 1.5rem;
    }

    .image-box {
        height: 300px;      /* Reducimos la altura en móviles para que no ocupe toda la pantalla */
    }

.promo-grid {
        grid-template-columns: 1fr; /* Una sola columna que ocupa todo el ancho */
        padding: 15px 8px;          /* Casi nada de margen a los bordes del celu */
        gap: 25px;
    }

    .promo-card {
        border-radius: 12px;        /* Bordes un poco más filosos en móvil queda mejor */
    }

    .section-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }

}

/* Ajustes para Celulares muy pequeños (Pantallas menores a 480px) */
@media (max-width: 480px) {


.product-info {
        padding: 15px 12px;
    }
    
    .links-titulos {
        font-size: 1.1rem;
    }

    .image-box {
        height: 190px; /* Altura equilibrada para que se vea la info rápido */
    }

}