/**
 * Estilos Principales - Sistema CETDE
 * Rediseno visual moderno y elegante global.
 */

:root {
    --color-primario: #5b4bff;
    --color-primario-oscuro: #3d2be3;
    --color-acento: #00c2ff;
    --color-acento-suave: #e8fbff;
    --color-exito: #11b67a;
    --color-advertencia: #ffb020;
    --color-fondo: #f3f6ff;
    --color-fondo-card: #ffffff;
    --color-texto: #1f2440;
    --color-texto-suave: #66709a;
    --color-borde: #e6e9f8;
    --fuente-principal: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --fuente-titulos: 'Manrope', 'Inter', sans-serif;
    --sombra-suave: 0 8px 24px rgba(41, 54, 127, 0.08);
    --sombra-media: 0 14px 36px rgba(41, 54, 127, 0.14);
    --sombra-fuerte: 0 24px 56px rgba(46, 59, 143, 0.2);
    --transicion-suave: all 0.25s ease;
}

* { box-sizing: border-box; }

.site-body {
    font-family: var(--fuente-principal);
    line-height: 1.65;
    color: var(--color-texto);
    background:
        radial-gradient(circle at 8% 0%, rgba(91, 75, 255, 0.16), transparent 34%),
        radial-gradient(circle at 100% 18%, rgba(0, 194, 255, 0.16), transparent 36%),
        var(--color-fondo);
}

.site-main { min-height: 65vh; }
h1, h2, h3, h4, h5, h6 { font-family: var(--fuente-titulos); letter-spacing: -0.02em; color: #171d3f; }
.text-muted, .text-light-emphasis { color: var(--color-texto-suave) !important; }

.navbar-cetde {
    background: linear-gradient(120deg, #1d2a84, #364cc9 38%, #3a2ebe);
    box-shadow: 0 10px 28px rgba(28, 39, 110, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.header-search { position: relative; min-width: 220px; }
.header-search .form-control {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    padding-left: 2rem;
}
.header-search .form-control::placeholder { color: rgba(255, 255, 255, 0.82); }
.header-search .form-control:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow: none;
}
.header-search-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
}

.navbar-brand { font-size: 1.55rem; font-weight: 800; letter-spacing: 0.02em; }
.navbar-nav .nav-link {
    font-weight: 600;
    transition: var(--transicion-suave);
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
}
.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.btn {
    font-weight: 700;
    border-radius: 0.75rem;
    padding: 0.62rem 1.1rem;
    transition: var(--transicion-suave);
    box-shadow: var(--sombra-suave);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sombra-media); }
.btn-primary {
    background: linear-gradient(135deg, var(--color-primario), var(--color-primario-oscuro));
    border: none;
}
.btn-primary:hover { background: linear-gradient(135deg, #4d3ef2, #3321d6); }
.btn-outline-primary {
    border-color: rgba(91, 75, 255, 0.45);
    color: var(--color-primario-oscuro);
}
.btn-outline-primary:hover { background: rgba(91, 75, 255, 0.1); color: #2f1ee0; border-color: transparent; }

.card {
    background: var(--color-fondo-card);
    border: 1px solid rgba(83, 100, 186, 0.11);
    border-radius: 1.1rem;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion-suave);
    overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra-media); }
.card .card-title, .card h5, .card h4 { color: #171d3f; }
.card-3d, .testimonial-card { transform-style: preserve-3d; }
.card-3d:hover, .testimonial-card:hover { transform: translateY(-6px) rotateX(2deg) rotateY(-2deg); }

.form-control, .form-select {
    border-radius: 0.75rem;
    border: 1px solid var(--color-borde);
    background: #fcfdff;
    transition: var(--transicion-suave);
    padding: 0.75rem 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: rgba(91, 75, 255, 0.55);
    box-shadow: 0 0 0 0.22rem rgba(91, 75, 255, 0.18);
    background: #fff;
}

.alert {
    border: 1px solid rgba(83, 100, 186, 0.14);
    border-radius: 0.9rem;
    font-weight: 500;
    box-shadow: var(--sombra-suave);
}

.badge {
    font-weight: 700;
    border-radius: 0.6rem;
    padding: 0.38rem 0.62rem;
    letter-spacing: 0.02em;
}

.table {
    border-radius: 0.95rem;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
}

.breadcrumb { background: transparent; padding: 0; margin-bottom: 1.5rem; }
.breadcrumb-item a { color: var(--color-primario-oscuro); text-decoration: none; font-weight: 600; }
.breadcrumb-item.active { color: var(--color-texto-suave); }

.bg-gradient-primary {
    background: linear-gradient(130deg, #1e2d92, #3c53db 45%, #4b36e5 80%) !important;
    position: relative;
    overflow: hidden;
}
.bg-gradient-primary::after {
    content: "";
    position: absolute;
    inset: auto -20% -55% auto;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.23), transparent 62%);
}

/* ========================================
   FOOTER MEJORADO
   ======================================== */
.footer-cetde {
    background: linear-gradient(155deg, #0a0f2e, #1a2562 55%, #232963);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

/* Decoración de fondo del footer */
.footer-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(91, 75, 255, 0.08), transparent 70%);
    pointer-events: none;
}

/* Logo del footer */
.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

/* Descripción del footer */
.footer-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Slogan del footer */
.footer-slogan {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    border-left: 3px solid #ffc107;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #ffc107;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-slogan i {
    color: #ffc107;
}

/* Títulos del footer */
.footer-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primario), transparent);
    border-radius: 2px;
}

/* Enlaces del footer */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-links a i {
    color: var(--color-primario);
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    color: #fff;
}

/* Información de contacto */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: var(--color-primario);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    min-width: 20px;
}

.contact-item span,
.contact-item a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #fff;
}

/* Redes sociales */
.footer-social h6 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-link:hover::before {
    background: rgba(255, 255, 255, 0.2);
}

.social-link.facebook {
    background: linear-gradient(135deg, #3b5998, #2d4373);
}

.social-link.instagram {
    background: linear-gradient(135deg, #e1306c, #c13584, #833ab4);
}

.social-link.tiktok {
    background: linear-gradient(135deg, #000000, #333333);
}

.social-link.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-link.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

/* Botón WhatsApp del footer */
.btn-whatsapp-footer {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    width: 100%;
}

.btn-whatsapp-footer:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.footer-bottom strong {
    color: #fff;
    font-weight: 700;
}

.bg-primary-soft {
    background: rgba(91, 75, 255, 0.2) !important;
    color: #fff !important;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

/* Responsive del footer */
@media (max-width: 991px) {
    .footer-cetde {
        padding: 3rem 0 2rem;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .footer-cetde {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-bottom {
        margin-top: 2rem !important;
        padding-top: 2rem !important;
    }
    
    .footer-bottom .col-md-6 {
        text-align: center !important;
    }
}

.shadow-soft { box-shadow: var(--sombra-suave); }
.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.spinner-cetde {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid rgba(91, 75, 255, 0.2);
    border-top-color: var(--color-primario);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Oferta comercial */
.oferta-card {
    border: 1px solid rgba(90, 76, 255, 0.2);
    box-shadow: 0 16px 36px rgba(59, 54, 170, 0.14);
    border-radius: 1.1rem;
    background: linear-gradient(180deg, #ffffff, #f9faff);
}
.countdown .count-box {
    flex: 1;
    background: linear-gradient(180deg, #f9f9ff, #eef2ff);
    border: 1px solid #dde3ff;
    border-radius: 0.75rem;
    text-align: center;
    padding: 0.5rem;
}
.countdown .count-box span {
    display: block;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-primario);
    line-height: 1.1;
}
.countdown .count-box small { font-size: 0.75rem; color: var(--color-texto-suave); }

.btn-cta-pulse { animation: pulseCTA 1.8s infinite; }
@keyframes pulseCTA {
    0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(255, 176, 32, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); }
}

/* Mejoras de bloques comunes */
.list-group-item {
    border-color: #edf0fa;
    color: var(--color-texto);
}
.progress {
    height: 0.75rem;
    border-radius: 999px;
    background: #e8ecfb;
}
.progress-bar {
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5a4cff, #2f79ff);
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}
.trust-strip span {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--color-borde);
    border-radius: 0.8rem;
    padding: 0.7rem 0.8rem;
    text-align: center;
    font-weight: 700;
    color: #273072;
    box-shadow: var(--sombra-suave);
}
.avatar-pill {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5b4bff, #2f79ff);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}
.video-showcase-card {
    background: linear-gradient(120deg, rgba(91, 75, 255, 0.09), rgba(0, 194, 255, 0.07));
    border: 1px solid rgba(91, 75, 255, 0.16);
}
.video-showcase-card h3 { margin-bottom: 0.35rem; }
.whatsapp-float {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #19d66b, #09a14a);
    color: #fff;
    box-shadow: 0 14px 28px rgba(9, 161, 74, 0.35);
    z-index: 1080;
    text-decoration: none;
    font-size: 1.6rem;
    transition: var(--transicion-suave);
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.02); color: #fff; }

/* Navbar mobile estilo app */
@media (max-width: 991px) {
    .navbar-cetde .navbar-collapse {
        margin-top: 0.7rem;
        background: rgba(18, 27, 79, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 0.95rem;
        padding: 0.8rem;
        backdrop-filter: blur(8px);
        box-shadow: 0 14px 32px rgba(11, 18, 56, 0.45);
    }
}

.mobile-buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1055;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #dce3ff;
    backdrop-filter: blur(6px);
    padding: 0.65rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -10px 24px rgba(25, 35, 94, 0.18);
}

#carouselEspecializacion .carousel-item {
    min-height: 120px;
    padding: 0.25rem 2.4rem;
}
#carouselEspecializacion .carousel-control-prev-icon,
#carouselEspecializacion .carousel-control-next-icon {
    filter: invert(34%) sepia(89%) saturate(1993%) hue-rotate(227deg) brightness(95%) contrast(92%);
}

@media (max-width: 991px) {
    .navbar-nav .nav-link { padding: 0.5rem 0.75rem; }
    .btn { padding: 0.58rem 1rem; }
    .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body { padding-bottom: 4.4rem; }
}


/* Estilos para página de detalle de curso */
.accordion-button:not(.collapsed) {
    background-color: rgba(91, 75, 255, 0.1);
    color: var(--color-primario);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(91, 75, 255, 0.15);
}

.accordion-item {
    border: 1px solid var(--color-borde);
    border-radius: 0.75rem !important;
    overflow: hidden;
}

.accordion-button {
    border-radius: 0.75rem !important;
    font-weight: 600;
}

.accordion-body {
    background: #f8f9ff;
}

/* Badges mejorados */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.bg-primary-subtle {
    background-color: rgba(91, 75, 255, 0.1) !important;
}

.bg-info-subtle {
    background-color: rgba(0, 194, 255, 0.1) !important;
}

.bg-success-subtle {
    background-color: rgba(17, 182, 122, 0.1) !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 176, 32, 0.1) !important;
}

.text-primary {
    color: var(--color-primario) !important;
}

.text-info {
    color: var(--color-acento) !important;
}

.text-success {
    color: var(--color-exito) !important;
}

.text-warning {
    color: var(--color-advertencia) !important;
}

/* Sticky sidebar mejorado */
.sticky-lg-top {
    transition: var(--transicion-suave);
}

/* Animación para checks */
.fa-check-circle {
    animation: checkPulse 0.5s ease-out;
}

@keyframes checkPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Hover effects para botones sociales */
.btn-outline-primary:hover {
    background-color: #3b5998;
    border-color: #3b5998;
    color: white;
}

.btn-outline-info:hover {
    background-color: #1DA1F2;
    border-color: #1DA1F2;
    color: white;
}

.btn-outline-success:hover {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
}

/* Mejora visual de listas */
ul li {
    line-height: 1.8;
}

/* Card hover effect mejorado */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .sticky-lg-top {
        position: relative !important;
        top: 0 !important;
    }
}


/* ========================================
   ESTILOS PARA PÁGINA DE DETALLE DE CURSO
   ======================================== */

/* Countdown Timer Styles */
.countdown-inline {
    font-family: var(--fuente-titulos);
}

.countdown-box-small {
    background: linear-gradient(135deg, #fff, #f8f9ff);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.05em;
}

.countdown-box-small span {
    color: #fff;
}

/* Countdown en Sidebar */
.countdown-urgente {
    background: linear-gradient(135deg, #ff4757, #ff6348);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(255, 71, 87, 0.3);
    animation: pulseGlow 2s infinite;
}

.countdown-urgente h5 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.countdown-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    padding: 1rem 0.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.countdown-box .number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #ff4757;
    line-height: 1;
    margin-bottom: 0.25rem;
    font-family: var(--fuente-titulos);
}

.countdown-box .label {
    display: block;
    font-size: 0.7rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 71, 87, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(255, 71, 87, 0.5), 0 0 20px rgba(255, 71, 87, 0.3);
    }
}

/* Pulse Badge Animation */
.pulse-badge {
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
    }
}

/* Gradient Overlay para Imagen */
.bg-gradient-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), transparent);
}

.curso-preview-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.curso-preview-img {
    transition: transform 0.5s ease;
}

.curso-preview-container:hover .curso-preview-img {
    transform: scale(1.05);
}

/* Sidebar Sticky Mejorado */
.sidebar-compra {
    position: sticky;
    top: 20px;
    z-index: 100;
}

.precio-destacado {
    background: linear-gradient(135deg, #f8f9ff, #fff);
    border: 2px solid var(--color-primario);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--sombra-media);
}

.precio-original {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: #999;
    font-weight: 600;
}

.precio-actual {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-primario);
    line-height: 1;
    margin: 0.5rem 0;
    font-family: var(--fuente-titulos);
}

.precio-mensual {
    font-size: 1rem;
    color: var(--color-texto-suave);
    font-weight: 600;
}

.descuento-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

/* Botón Inscribirse Pulsante */
.btn-inscribir-ahora {
    background: linear-gradient(135deg, var(--color-advertencia), #ff9500);
    border: none;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 24px rgba(255, 176, 32, 0.4);
    transition: all 0.3s ease;
    animation: pulseButton 2s infinite;
    width: 100%;
    margin-bottom: 1rem;
}

.btn-inscribir-ahora:hover {
    background: linear-gradient(135deg, #ff9500, #ff8000);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 176, 32, 0.5);
    color: #fff;
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 176, 32, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(255, 176, 32, 0.6), 0 0 20px rgba(255, 176, 32, 0.3);
    }
}

/* Botón WhatsApp Destacado en Sidebar */
.btn-whatsapp-sidebar {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.9rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1.5rem;
}

.btn-whatsapp-sidebar:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.btn-whatsapp-sidebar i {
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

/* Lista de Beneficios en Sidebar */
.beneficios-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.beneficios-lista li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-borde);
    display: flex;
    align-items-center;
    font-weight: 500;
}

.beneficios-lista li:last-child {
    border-bottom: none;
}

.beneficios-lista li i {
    color: var(--color-exito);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Alerta de Urgencia */
.alerta-urgencia {
    background: linear-gradient(135deg, #fff3cd, #fff8e1);
    border: 2px solid #ffc107;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    animation: pulseAlert 3s infinite;
}

@keyframes pulseAlert {
    0%, 100% {
        border-color: #ffc107;
    }
    50% {
        border-color: #ff9800;
    }
}

.alerta-urgencia strong {
    color: #d84315;
    font-weight: 800;
}

/* Garantía Badge */
.garantia-badge {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 2px solid var(--color-exito);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.garantia-badge i {
    font-size: 2rem;
    color: var(--color-exito);
    margin-bottom: 0.5rem;
}

.garantia-badge strong {
    display: block;
    color: var(--color-exito);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

/* Botones de Compartir */
.btn-compartir {
    transition: all 0.3s ease;
}

.btn-compartir:hover {
    transform: translateY(-2px);
}

/* Card de Contacto WhatsApp */
.whatsapp-contacto-card {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border: 2px solid #25D366;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}

.whatsapp-contacto-card i {
    font-size: 3rem;
    color: #25D366;
    margin-bottom: 1rem;
}

.whatsapp-contacto-card h5 {
    color: #128C7E;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.whatsapp-contacto-card p {
    color: #666;
    margin-bottom: 1rem;
}

.whatsapp-contacto-card .btn {
    background: #25D366;
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.whatsapp-contacto-card .btn:hover {
    background: #128C7E;
    transform: scale(1.05);
}

/* Responsive Adjustments para Detalle de Curso */
@media (max-width: 991px) {
    .sidebar-compra {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
    
    .precio-actual {
        font-size: 2.5rem;
    }
    
    .countdown-boxes {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .countdown-box .number {
        font-size: 1.5rem;
    }
    
    .countdown-box .label {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .precio-actual {
        font-size: 2rem;
    }
    
    .btn-inscribir-ahora {
        font-size: 1rem;
        padding: 0.85rem 1.5rem;
    }
    
    .countdown-box .number {
        font-size: 1.2rem;
    }
}

/* Mejoras adicionales para acordeón de módulos */
.accordion-item {
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 12px rgba(91, 75, 255, 0.15);
}

.accordion-button::after {
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

/* Animación para lecciones */
.accordion-body li {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

.accordion-collapse.show .accordion-body li {
    opacity: 1;
}

.accordion-body li:nth-child(1) { animation-delay: 0.05s; }
.accordion-body li:nth-child(2) { animation-delay: 0.1s; }
.accordion-body li:nth-child(3) { animation-delay: 0.15s; }
.accordion-body li:nth-child(4) { animation-delay: 0.2s; }
.accordion-body li:nth-child(5) { animation-delay: 0.25s; }
.accordion-body li:nth-child(6) { animation-delay: 0.3s; }
.accordion-body li:nth-child(7) { animation-delay: 0.35s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge de descuento en imagen */
.badge.bg-danger, .badge.bg-warning {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mejora visual de estadísticas */
.d-flex.align-items-center strong {
    font-size: 1.1rem;
    margin: 0 0.25rem;
}

/* Hover effect para testimonios */
.card.border {
    transition: all 0.3s ease;
}

.card.border:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}


/* ========================================
   ESTILOS PARA PÁGINA DE CURSOS MEJORADA
   ======================================== */

/* Banner de Oferta Flash */
.oferta-flash-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.oferta-flash-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
}

.precio-oferta {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.precio-actual-oferta {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.precio-antes-oferta {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: line-through;
}

.ahorro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-weight: 800;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.count-box-oferta {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    text-align: center;
    min-width: 70px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.count-box-oferta span {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: #667eea;
    line-height: 1;
}

.count-box-oferta small {
    display: block;
    font-size: 0.7rem;
    color: #666;
    margin-top: 0.25rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Card de Filtros */
.filtros-card {
    background: linear-gradient(to bottom, #ffffff, #f8f9ff);
    border-radius: 1rem;
}

.filtros-card .form-select,
.filtros-card .form-control {
    border: 2px solid #e6e9f8;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filtros-card .form-select:focus,
.filtros-card .form-control:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 0.2rem rgba(91, 75, 255, 0.15);
}

.filtros-card .form-range {
    height: 8px;
}

.filtros-card .form-range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-primario);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(91, 75, 255, 0.3);
}

/* Stats Box */
.stats-box {
    border: 2px solid #e6e9f8;
}

.stat-item i {
    display: block;
}

/* Cards de Cursos Mejorados */
.curso-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
}

.curso-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(91, 75, 255, 0.2);
    border-color: var(--color-primario);
}

/* Imagen del Curso */
.curso-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.curso-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.curso-card:hover .curso-card-image img {
    transform: scale(1.1);
}

/* Overlay de Imagen */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 75, 255, 0.95), rgba(118, 75, 162, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
    font-weight: 700;
    font-size: 1.1rem;
}

.curso-card:hover .image-overlay {
    opacity: 1;
}

.image-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Badges sobre la Imagen */
.curso-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
}

.badge-descuento {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    animation: pulseBadge 2s infinite;
}

.badge-modalidad {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Cuerpo del Card */
.curso-card-body {
    padding: 1.5rem;
}

/* Título del Curso */
.curso-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 60px;
}

.title-link {
    color: #1f2440;
    text-decoration: none;
    transition: color 0.3s ease;
}

.title-link:hover {
    color: var(--color-primario);
}

/* Descripción */
.curso-card-description {
    color: #66709a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    min-height: 60px;
}

/* Información del Curso */
.curso-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #66709a;
    font-weight: 600;
}

.info-item i {
    font-size: 1rem;
}

/* Rating y Estudiantes */
.curso-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-number {
    font-weight: 700;
    color: #1f2440;
    margin-left: 0.5rem;
}

.rating-count {
    color: #66709a;
    font-size: 0.85rem;
}

.students {
    color: #66709a;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Footer del Card */
.curso-footer {
    margin-top: 1rem;
}

/* Sección de Precio */
.precio-section {
    margin-bottom: 1rem;
}

.precio-original {
    font-size: 0.95rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 600;
}

.precio-actual {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primario);
    line-height: 1;
    margin: 0.25rem 0;
}

.precio-mensual {
    font-size: 0.85rem;
    color: #66709a;
    font-weight: 600;
}

/* Botones de Acción */
.curso-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-action {
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91, 75, 255, 0.3);
}

/* Beneficios Rápidos */
.curso-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f2f8;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #66709a;
    font-weight: 600;
}

.benefit-item i {
    font-size: 1rem;
}

/* CTA Final */
.cta-final {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.cta-final h3,
.cta-final .lead {
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .oferta-flash-banner .row {
        text-align: center;
    }
    
    .precio-actual-oferta {
        font-size: 2rem;
    }
    
    .curso-card-image {
        height: 200px;
    }
    
    .curso-card-title {
        font-size: 1.1rem;
        min-height: auto;
    }
    
    .curso-card-description {
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .curso-card-image {
        height: 180px;
    }
    
    .precio-actual-oferta {
        font-size: 1.75rem;
    }
    
    .count-box-oferta {
        min-width: 60px;
        padding: 0.5rem 0.75rem;
    }
    
    .count-box-oferta span {
        font-size: 1.5rem;
    }
    
    .precio-actual {
        font-size: 1.75rem;
    }
    
    .curso-badges {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animación de entrada para cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.curso-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.curso-card:nth-child(1) { animation-delay: 0.1s; }
.curso-card:nth-child(2) { animation-delay: 0.2s; }
.curso-card:nth-child(3) { animation-delay: 0.3s; }
.curso-card:nth-child(4) { animation-delay: 0.4s; }
.curso-card:nth-child(5) { animation-delay: 0.5s; }
.curso-card:nth-child(6) { animation-delay: 0.6s; }

/* Hover effect para botones de paginación */
.pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    font-weight: 700;
    border: 2px solid #e6e9f8;
    color: var(--color-primario);
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--color-primario);
    border-color: var(--color-primario);
    color: #fff;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--color-primario);
    border-color: var(--color-primario);
}

/* Estilos para el carrusel del hero */
#heroCarousel {
    max-height: 420px;
}

#heroCarousel .carousel-inner {
    background: transparent;
}

#heroCarousel .carousel-item img {
    border-radius: 0.75rem;
    background: transparent;
}

/* Ocultar flechas de navegación */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    display: none;
}

#heroCarousel .carousel-indicators {
    margin-bottom: -2rem;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

#heroCarousel .carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* Animación de fade para el carrusel */
#heroCarousel .carousel-item {
    transition: opacity 0.6s ease-in-out;
}

#heroCarousel .carousel-item.active,
#heroCarousel .carousel-item-next,
#heroCarousel .carousel-item-prev {
    display: block;
}

#heroCarousel .carousel-item-next:not(.carousel-item-start),
#heroCarousel .carousel-item-prev:not(.carousel-item-end) {
    opacity: 0;
}

#heroCarousel .carousel-item-next.carousel-item-start,
#heroCarousel .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

/* Responsive para el carrusel */
@media (max-width: 768px) {
    #heroCarousel {
        max-height: 300px;
    }
}

/* Estilos para preview de videos en admin */
.galeria-item video,
.hero-imagen-item video {
    pointer-events: none;
}

/* Mejoras visuales para elementos multimedia */
.ratio video {
    background: #000;
}

/* Animación para botones de play */
@keyframes pulse-play {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.fa-play-circle {
    animation: pulse-play 2s ease-in-out infinite;
}

/* Mejoras para modales de video */
.modal-body video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Hover effects para galería */
.galeria-card .position-relative::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeria-card:hover .position-relative::after {
    opacity: 1;
}

/* Estilos para badges de tipo de medio */
.badge.bg-danger,
.badge.bg-dark {
    font-weight: 600;
    padding: 0.4rem 0.6rem;
}
