/* ============================================================
   Curso Destacado
   ============================================================ */

.featured-course-section {
    margin-bottom: 4rem;
}

.featured-course-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 420px;
    background: linear-gradient(135deg, #0f1729 0%, #1a2a3a 50%, #0d2420 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(46, 179, 152, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(46, 179, 152, 0.35);
}

/* Decoración de fondo: líneas de grid sutil */
.featured-course-bg-decoration {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(46, 179, 152, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 179, 152, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Glow en esquina superior izquierda */
.featured-course-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(46, 179, 152, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.featured-course-content {
    position: relative;
    z-index: 1;
    padding: 3rem 3rem 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    width: fit-content;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.45);
    animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(245, 158, 11, 0.45); }
    50%       { box-shadow: 0 2px 20px rgba(245, 158, 11, 0.7); }
}

.featured-course-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.1rem;
    letter-spacing: -0.01em;
}

.featured-course-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    max-width: 480px;
}

.featured-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.featured-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.featured-price-pill {
    background: rgba(46, 179, 152, 0.2);
    color: #5edbc4;
    border-color: rgba(46, 179, 152, 0.35);
    font-weight: 700;
}

.featured-course-actions {
    margin-top: auto;
}

.featured-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 2.1rem;
    background: #2eb398;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s, gap 0.2s;
    box-shadow: 0 4px 18px rgba(46, 179, 152, 0.4);
}

.featured-btn-primary:hover {
    background: #34c9ac;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(46, 179, 152, 0.55);
    gap: 0.85rem;
}

/* Zona visual: imagen */
.featured-course-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2.5rem 2.5rem 1rem;
}

.featured-image-frame {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(46, 179, 152, 0.25);
}

.featured-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.featured-course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.featured-course-card:hover .featured-course-image {
    transform: scale(1.04);
}

.featured-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2a3a 0%, #0d2420 60%, #1a3a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(46, 179, 152, 0.35);
}

/* Responsive */
@media (max-width: 960px) {
    .featured-course-card {
        grid-template-columns: 1fr;
    }

    .featured-course-visual {
        padding: 0 2rem 2rem;
    }

    .featured-image-frame {
        height: 240px;
    }

    .featured-course-content {
        padding: 2.5rem 2rem 1.5rem;
    }

    .featured-course-title {
        font-size: 1.65rem;
    }
}

@media (max-width: 640px) {
    .featured-course-content {
        padding: 2rem 1.5rem 1.25rem;
    }

    .featured-course-title {
        font-size: 1.4rem;
    }

    .featured-course-description {
        font-size: 0.95rem;
    }

    .featured-image-frame {
        height: 200px;
    }
}

/* ============================================================
   Resto de utilidades del index
   ============================================================ */

.no-courses-index {
    text-align: center;
    grid-column: 1 / -1;
    color: #666;
    padding: 2rem;
}

.form-inline {
    display: inline;
}

/* Estilos para packs en el index */
.pack-card {
    border: 2px solid #58a6ff;
    position: relative;
}

.pack-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #58a6ff;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.pack-image {
    background: linear-gradient(135deg, #58a6ff 0%, #1f6feb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-image-content {
    color: #fff;
    opacity: 0.9;
}

.pack-courses-count {
    color: #58a6ff;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.5rem 0;
}
