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

.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: 15px;
}

.hero-custom h1 span {
    color: #ff3b3b;
}

.hero-custom p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 25px;
    opacity: 0.9;
}

/* ================= TITULOS ================= */

.section-title {
    text-align: center;
    font-size: 2.3rem;
    margin: 50px 0 30px;
    color: #0b1c3d;
}

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

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 20px 10px;
    
}

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

/* Tarjeta principal */
.promo-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Obliga a todas a medir lo mismo en la misma fila */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

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

.image-box {
    width: 100%;
    height: 240px;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Contenedor de info */
.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ocupa todo el espacio disponible */
    padding: 20px;
}

/* Bloque de texto superior */
.text-content {
    margin-bottom: 20px;
}

.links-titulos {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
    font-weight: 400;
}

.links-titulos a {
    text-decoration: none;
    color: #d24d00;
}

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

.product-info p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.35;
    margin-bottom: 10px;
}

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

/* Bloque de precios: EL TRUCO MAESTRO */
.price-section {
    margin-top: auto; /* Empuja este bloque y el botón al final */
    text-align: center;
    padding-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.6rem;
    display: block;
}

.current-price {
    font-size: 2rem;
    color: #f57c00;
    font-weight: 400;
    display: block;
}
/* ================= BUTTON ================= */

.product-buttons {
    margin-top: auto; /* 🔥 SIEMPRE ABAJO */
}

/* Botones */
.btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #ff3b3b;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    border-radius: 4px;
    border: none;
}

.btn-disabled {
    background-color: #9ca3af !important;
}
.btn:hover {
    background: linear-gradient(135deg, #d62828, #ff3b3b);
    transform: scale(1.02);
}

/*BOTON IA */
.btn-ia {
    display: flex;
    align-items: center;
    justify-content: center; /* 🔥 centra contenido */
    gap: 8px;

    background: linear-gradient(45deg, #ff3c5f, #ff8c00);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.4s ease;
}

.btn-ia:hover {
        background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
   transform: none;
}


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

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

.courses-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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


/* ================= RESPONSIVE (TABLETS Y CELULARES) ================= */

@media (max-width: 768px) {
    /* HERO: Más impacto en pantallas medianas */
    .hero-custom {
        padding: 120px 15px 60px;
    }

    .hero-custom h1 {
        font-size: 2.2rem; /* Tamaño más legible */
        padding: 0 10px;
    }

    .hero-custom p {
        font-size: 1.15rem;
    }

    /* TITULOS DE SECCIÓN */
    .section-title {
        font-size: 2rem;
        margin: 40px 0 20px;
        padding: 0 15px;
    }

    /* GRID: Una sola columna pero con mejor margen */
    .promo-grid {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 30px; /* Más espacio entre tarjetas para que no se peguen */
    }

    .image-box {
        height: 280px; /* Imagen un poco más grande en móviles para lucir los autos */
    }

    /* PRECIOS EN MÓVIL */
    .old-price {
        font-size: 1.4rem;
    }

    .current-price {
        font-size: 2.2rem; /* Precio grande para llamar la atención */
    }
}

/* ================= CELULARES (PANTALLAS CHICAS) ================= */

@media (max-width: 480px) {
    /* HERO */
    .hero-custom h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    /* INFO DE PRODUCTO: Evitar que el texto se vea apretado */
    .product-info {
        padding: 20px 15px; /* Más aire interno */
    }

    .links-titulos {
        font-size: 1.8rem; /* Antes tenías 1rem, era muy chico. Ahora destaca más */
        font-weight: 700;
        margin-bottom: 12px;
    }

    .product-info p {
        font-size: 1rem; /* Texto base estándar para lectura cómoda */
        line-height: 1.5;
    }

    .image-box {
        height: 220px;
    }

    /* BOTONES: Más grandes para que sea fácil tocarlos con el pulgar */
    .btn {
        padding: 16px;
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* PRECIOS */
    .current-price {
        font-size: 2rem;
    }
    
    .old-price {
        font-size: 1.2rem;
    }
}