/* ================= HERO CUSTOM (BANNER PRINCIPAL) ================= */

.hero-custom {
    padding: 100px 20px;
    background: linear-gradient(135deg, #0b1c3d 0%, #1f3c88 100%);
    color: white;
    text-align: center;
}

.hero-custom h1 {
    font-size: 3.5rem;
    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;
}

.hero-button {
    display: inline-block;
    padding: 18px 40px;
    background: #f57c00;
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(245, 124, 0, 0.3);
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(245, 124, 0, 0.4);
    background-color: #ff9800;
}

/* ================= SECTION TITLES ================= */

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #0b1c3d;
    margin: 80px 0 40px;
    text-transform: uppercase;
    letter-spacing: -1px;
    padding-left: 10px;
    padding-right: 10px;
}


/* ================= NEWS GRID (BLOG) ================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

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

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.4rem;
}

.news-date {
    padding: 0 20px;
    font-size: 0.85rem;
    color: #888;
}

.news-card p {
    padding: 15px 20px;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

.leer-mas {
    padding: 15px 20px;
    color: #1f3c88;
    text-decoration: none;
    font-weight: 700;
    border-top: 1px solid #f0f0f0;
}

/* ================= PROMO GRID (CURSOS) ================= */

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.promo-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.promo-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.product-info {
    padding: 0; /* Limpiamos padding para manejarlo interno */
    text-align: center;
}

.links-titulos {
    color: #0b1c3d;
    transition: color 0.3s;
}

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

.price {
    padding: 20px;
    background: #f8f9fa;
}

.btn {
    width: 100%;
    padding: 20px;
    background: #0b1c3d;
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #ff3b3b;
}

/* ================= PRESENTACION DE APP ================= */

.about-section.app-presentation {
    background: #ffffff;
    padding: 80px 20px;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1300px; /* Ancho total de la web */
    margin: 0 auto;
    gap: 60px; /* Espacio entre imagen y texto */
}

/* Controlamos el tamaño de la imagen aquí */
.about-image-box {
    flex: 1;
    max-width: 500px; /* EVITA QUE QUEDE ENORME */
}

.about-image-box img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.about-text-content {
    flex: 1.2; /* El texto ocupa un poco más de espacio */
    text-align: left;
}

.about-text-content h2 {
    font-size: 2.5rem;
    color: #0b1c3d;
    margin-bottom: 20px;
}

.app-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.app-features li {
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* RESPONSIVE: En el celu se pone una cosa bajo la otra */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column; /* Imagen arriba, texto abajo */
        text-align: center;
        gap: 30px;
    }

    .about-image-box {
        max-width: 100%; /* En el celu que ocupe el ancho disponible */
    }

    .about-text-content {
        text-align: center;
    }

    .app-features li {
        justify-content: center;
    }
}

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

@media (max-width: 768px) {
    .hero-custom h1 {
        font-size: 2.2rem;
    }
    .hero-custom p {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .promo-grid, .news-grid {
        padding: 0 15px;
    }
}