.course-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    min-height: 180px;
    border-radius: 1.2em 1.2em 0 0;
    overflow: hidden;
    padding: 10px 0;
}
.course-img {
    max-width: 90%;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: none;
}
/* ================================
   PÁGINA PRINCIPAL - HOME
   ================================ */

/* Variables para mantener consistencia */
.text-accent {
    color: var(--accent-color);
}

/* ================================
   HERO SECTION - DISEÑO PREMIUM
   ================================ */
.hero-home {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3d3d3d 100%);
    color: white;
    padding: 4rem 0;
    border-bottom: 4px solid #ffcc00;
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo decorativo */
.hero-home::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.hero-home::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 1.5rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
    color: #ffffff;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content .text-accent {
    color: #ffcc00;
    position: relative;
    display: inline-block;
    font-weight: 700;
    background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    color: #e8e8e8;
    letter-spacing: 0.3px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   MAIN CONTENT SECTION
   ================================ */
.main-content {
    padding: 2.5rem 0 3rem;
}

/* Header de sección */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    color: #2d2d2d;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-title i {
    color: #ffcc00;
    font-size: 1.8rem;
}

.section-description {
    color: #666;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   GRID DE CURSOS - HOME
   ================================ */
.courses-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ================================
   TARJETAS DE CURSO - MEJORADAS
   ================================ */
.course-card-home {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Imagen del curso */
.course-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.2em 1.2em 0 0;
    padding: 0;
}

.course-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    background: #fff;
    display: block;
    margin: 0 auto;
    transition: transform 0.4s ease;
}

.course-card-home:hover .course-img {
    transform: scale(1.1);
}

.course-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
}

.course-price-tag {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
    color: #2d2d2d;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(255, 204, 0, 0.4);
}

/* Badge de estado */
.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.status-badge.disponible {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    color: white;
}

.status-badge.ultimos {
    background: linear-gradient(135deg, #ff9800 0%, #ffb142 100%);
    color: white;
}

.status-badge.agotado {
    background: linear-gradient(135deg, #dc3545 0%, #e85563 100%);
    color: white;
}

/* Cuerpo de la tarjeta */
.course-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-title-home {
    color: #2d2d2d;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.course-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Detalles del curso */
.course-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 0.85rem;
}

.detail-item i {
    color: #ffcc00;
    font-size: 0.9rem;
}

/* Acciones de la tarjeta */
.card-actions {
    margin-top: auto;
}

.btn-curso-home {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
    color: #2d2d2d;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 3px 10px rgba(255, 204, 0, 0.3);
}

.btn-curso-home:hover {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    color: #ffcc00;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 45, 45, 0.3);
}

.btn-curso-disabled {
    background: #e0e0e0;
    color: #999;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: not-allowed;
    width: 100%;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 992px) {
    .hero-home {
        padding: 3.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .courses-grid-home {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-home {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .courses-grid-home {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .course-img-wrapper {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .hero-home {
        padding: 2.5rem 0;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.65rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .course-price-tag {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }
}

/* ================================
   ESTILOS PARA PÁGINA DE DETALLE
   ================================ */

.img-banner-detail {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
    background: #e0e0e0;
}

.tab-btn.active {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
    color: #2d2d2d;
}

.tab-pane {
    display: none !important;
}

.tab-pane.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-pago-pro {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    border-top: 5px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.price-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.info-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    backdrop-filter: blur(10px);
}

main.container {
    padding-top: 20px;
}