/* FUENTES DEPORTIVAS IMPORTADAS */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@300;400;500;600;700&family=Archivo+Black&family=Roboto:wght@300;400;500;600;700&display=swap');

/* VARIABLES PARA TEMA DEPORTIVO MEJORADO */
:root {
    /* Colores energéticos y vibrantes */
    --sport-primary: #00d4aa; /* Verde brillante deportivo */
    --sport-secondary: #1e40af; /* Azul eléctrico */
    --sport-accent: #ff4757; /* Rojo vibrante */
    --sport-energy: #ffd700; /* Amarillo energético */
    --sport-success: #2ed573; /* Verde césped */
    --sport-water: #3742fa; /* Azul acuático */
    --sport-adventure: #ff6b35; /* Naranja aventura */
    --sport-neutral: #4b5563;
    --sport-light: #f8fafc;
    --sport-dark: #1a202c;
    --sport-glass: rgba(248, 250, 252, 0.9);
    
    /* Texturas y patrones */
    --texture-field: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%2322c55e" opacity="0.05"/><path d="M0 50h100M50 0v100" stroke="%2316a34a" stroke-width="0.5" opacity="0.1"/></svg>');
    --texture-court: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23d97706" opacity="0.03"/><rect x="0" y="45" width="100" height="10" fill="%23f59e0b" opacity="0.08"/></svg>');
    --texture-track: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><ellipse cx="50" cy="50" rx="45" ry="30" fill="none" stroke="%23ef4444" stroke-width="2" opacity="0.06"/></svg>');
    
    /* Efectos y sombras deportivas */
    --sport-shadow: 0 20px 40px rgba(0, 212, 170, 0.15);
    --sport-shadow-hover: 0 25px 50px rgba(0, 212, 170, 0.25);
    --glow-primary: 0 0 30px rgba(0, 212, 170, 0.3);
    --glow-accent: 0 0 25px rgba(255, 71, 87, 0.3);
    
    /* Gradientes dinámicos */
    --gradient-energy: linear-gradient(135deg, #00d4aa 0%, #1e40af 50%, #ff4757 100%);
    --gradient-field: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-water: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --gradient-adventure: linear-gradient(135deg, #ff6b35 0%, #f97316 100%);
}

/* TEMA OSCURO OPTIMIZADO */
[data-bs-theme="oscuro"] {
    --sport-primary: #00f5d4;
    --sport-secondary: #00bbf9;
    --sport-accent: #ff006e;
    --sport-energy: #fee75c;
    --sport-success: #4ade80;
    --sport-water: #22d3ee;
    --sport-adventure: #fb923c;
    --sport-light: #0f172a;
    --sport-dark: #f1f5f9;
    --sport-glass: rgba(15, 23, 42, 0.8);
}

/* TIPOGRAFÍAS DEPORTIVAS */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.page-title {
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 2px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-info h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
}

/* FONDO PRINCIPAL CON TEXTURAS DEPORTIVAS */
body {
    background: 
        var(--texture-field),
        var(--texture-court),
        radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 71, 87, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 60% 60%, rgba(30, 64, 175, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--sport-light) 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: var(--sport-dark);
    position: relative;
    overflow-x: hidden;
}

/* TEMA OSCURO */
[data-bs-theme="oscuro"] body {
    background: 
        var(--texture-track),
        radial-gradient(circle at 20% 80%, rgba(0, 245, 212, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 110, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 60% 60%, rgba(0, 187, 249, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

/* ELEMENTOS DECORATIVOS DEPORTIVOS MEJORADOS */
.sport-decoration {
    position: fixed;
    font-size: clamp(40px, 8vw, 120px);
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
    filter: blur(0.5px);
    animation: float-sport 6s ease-in-out infinite, rotate-gentle 20s linear infinite;
}

.sport-decoration-svg {
    position: fixed;
    width: clamp(60px, 12vw, 150px);
    height: clamp(60px, 12vw, 150px);
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
    color: var(--sport-primary);
    animation: float-sport 8s ease-in-out infinite, pulse-glow 4s ease-in-out infinite;
}

/* POSICIONAMIENTO DEPORTIVO ESTRATÉGICO */
.sport-decoration:nth-of-type(1) { 
    top: 10%; left: 5%; 
    animation-delay: -2s; 
    color: var(--sport-primary);
}
.sport-decoration:nth-of-type(2) { 
    top: 60%; right: 8%; 
    animation-delay: -4s; 
    color: var(--sport-accent);
}
.sport-decoration:nth-of-type(3) { 
    bottom: 15%; left: 12%; 
    animation-delay: -1s; 
    color: var(--sport-water);
}

.sport-decoration-svg:nth-of-type(4) { 
    top: 25%; left: 85%; 
    animation-delay: -3s; 
}
.sport-decoration-svg:nth-of-type(5) { 
    bottom: 30%; right: 75%; 
    animation-delay: -5s; 
}
.sport-decoration-svg:nth-of-type(6) { 
    top: 70%; left: 25%; 
    animation-delay: -2.5s; 
}

/* SECCIÓN HERO MEJORADA CON ENERGÍA DEPORTIVA */
.hero-section {
    position: relative;
    padding: 6rem 2rem;
    background: var(--gradient-energy);
    border-radius: 32px;
    margin-bottom: 4rem;
    overflow: hidden;
    color: white;
    box-shadow: var(--sport-shadow);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="white" opacity="0.08"/><circle cx="50" cy="70" r="1" fill="white" opacity="0.06"/><circle cx="30" cy="85" r="2.5" fill="white" opacity="0.1"/></svg>'),
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 40%);
    animation: shimmer-sports 8s linear infinite;
}

.hero-section::after {
    content: '🏃‍♂️ ⚽ 🏀 🎾 🏊‍♀️ 🚴‍♂️';
    position: absolute;
    top: -10%;
    right: -20%;
    font-size: 60px;
    opacity: 0.08;
    transform: rotate(15deg);
    animation: float-icons 12s ease-in-out infinite;
    pointer-events: none;
}

.page-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        0 0 40px rgba(255,255,255,0.2);
    background: linear-gradient(45deg, #ffffff, #fee75c, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-glow 3s ease-in-out infinite alternate;
}

.page-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ILUSTRACIÓN HERO DINÁMICA */
.hero-illustration {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    padding: 30px;
    background: 
        radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    animation: hero-pulse 4s ease-in-out infinite;
    box-shadow: 
        0 0 60px rgba(255,255,255,0.2),
        inset 0 0 20px rgba(255,255,255,0.1);
}

/* SECCIÓN DE CURSOS CON ENERGÍA */
.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--sport-dark);
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
}

.section-title::before {
    content: '💪';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.6;
    animation: bounce-icon 2s ease-in-out infinite;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: var(--gradient-energy);
    border-radius: 3px;
    box-shadow: var(--glow-primary);
    animation: width-pulse 3s ease-in-out infinite;
}

/* TARJETAS DEPORTIVAS MEJORADAS */
.curso-card {
    background: var(--sport-glass);
    backdrop-filter: blur(20px) saturate(200%);
    border: 2px solid rgba(0, 212, 170, 0.2);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: var(--sport-shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}

.curso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-energy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

/* TEMA OSCURO - TARJETAS */
[data-bs-theme="oscuro"] .curso-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(0, 245, 212, 0.3);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 245, 212, 0.1);
}

/* EFECTOS HOVER DEPORTIVOS */
.curso-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: var(--sport-shadow-hover), var(--glow-primary);
    border-color: var(--sport-primary);
}

.curso-card:hover::before {
    transform: scaleX(1);
    box-shadow: var(--glow-primary);
}

.curso-card.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: slide-up-bounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ICONOS DEPORTIVOS ESPECÍFICOS MEJORADOS */
.card-illustration {
    width: 120px;
    height: 120px;
    margin: 0 auto 2.5rem;
    padding: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Iconos específicos por curso */
.curso-card:nth-child(1) .card-illustration {
    background: var(--gradient-field);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
}

.curso-card:nth-child(2) .card-illustration {
    background: var(--gradient-water);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.4);
}

.curso-card:nth-child(3) .card-illustration {
    background: var(--gradient-adventure);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.4);
}

/* EFECTOS DINÁMICOS PARA ICONOS */
.card-illustration::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 15px 15px;
    animation: sparkle-rotate 10s linear infinite;
    opacity: 0.6;
}

.curso-card:hover .card-illustration {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.5);
}

.card-illustration svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.curso-card:hover .card-illustration svg {
    transform: scale(1.1);
}

/* INFORMACIÓN DE TARJETAS MEJORADA */
.card-info h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sport-dark);
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
    text-align: center;
    position: relative;
}

.card-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--sport-neutral);
    margin: 0 0 2.5rem 0;
    font-weight: 400;
}

/* TAGS DEPORTIVOS ENERGÉTICOS */
.card-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.nivel, .year-info {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nivel {
    background: var(--gradient-field);
    color: white;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.year-info {
    background: var(--gradient-adventure);
    color: white;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

.nivel:hover, .year-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 212, 170, 0.4);
}

/* ANIMACIONES DEPORTIVAS */
@keyframes float-sport {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes rotate-gentle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.04; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.08; 
        transform: scale(1.05);
    }
}

@keyframes shimmer-sports {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes float-icons {
    0%, 100% { transform: translateY(0px) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(12deg); }
}

@keyframes title-glow {
    0% { text-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 40px rgba(255,255,255,0.2); }
    100% { text-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 60px rgba(255,235,92,0.4); }
}

@keyframes hero-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 60px rgba(255,255,255,0.2);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 80px rgba(255,235,92,0.3);
    }
}

@keyframes bounce-icon {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes width-pulse {
    0%, 100% { width: 120px; }
    50% { width: 160px; }
}

@keyframes slide-up-bounce {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sparkle-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* RESPONSIVIDAD DEPORTIVA */
@media (max-width: 768px) {
    .cursos-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 0;
    }
    
    .curso-card {
        padding: 2rem 1.5rem;
    }
    
    .card-illustration {
        width: 100px;
        height: 100px;
        padding: 25px;
    }
    
    .hero-section {
        padding: 4rem 1.5rem;
    }
    
    .sport-decoration {
        font-size: clamp(30px, 6vw, 80px);
    }
}

/* MEJORAS DE PERFORMANCE */
.curso-card, .card-illustration, .hero-section {
    contain: layout style paint;
    will-change: transform, box-shadow;
}

/* ACCESIBILIDAD MEJORADA */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* SECCIÓN DE BENEFICIOS */
.benefits-section {
    margin: 5rem 0;
    padding: 4rem 2rem;
    background: 
        radial-gradient(circle at 30% 70%, rgba(0, 212, 170, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 71, 87, 0.05) 0%, transparent 50%);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}

.benefits-section::before {
    content: '💪🏃‍♂️⚽🏊‍♀️🚴‍♂️🏀';
    position: absolute;
    top: -10px;
    left: -10%;
    font-size: 40px;
    opacity: 0.04;
    transform: rotate(-10deg);
    pointer-events: none;
    animation: float-benefits 15s ease-in-out infinite;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--sport-glass);
    backdrop-filter: blur(16px) saturate(180%);
    border: 2px solid rgba(0, 212, 170, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(0, 212, 170, 0.1), 
        transparent
    );
    transition: left 0.5s ease;
}

.benefit-card:hover::before {
    left: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--sport-primary);
    box-shadow: var(--sport-shadow), var(--glow-primary);
}

/* TEMA OSCURO - BENEFIT CARDS */
[data-bs-theme="oscuro"] .benefit-card {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(0, 245, 212, 0.2);
}

.benefit-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: benefit-bounce 3s ease-in-out infinite;
}

.benefit-card:nth-child(1) .benefit-icon { animation-delay: 0s; }
.benefit-card:nth-child(2) .benefit-icon { animation-delay: 0.5s; }
.benefit-card:nth-child(3) .benefit-icon { animation-delay: 1s; }
.benefit-card:nth-child(4) .benefit-icon { animation-delay: 1.5s; }

.benefit-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--sport-dark);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benefit-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--sport-neutral);
    margin: 0;
}

[data-bs-theme="oscuro"] .benefit-card h3 {
    color: var(--sport-dark);
}

[data-bs-theme="oscuro"] .benefit-card p {
    color: #cbd5e1;
}

/* ANIMACIONES ADICIONALES */
@keyframes float-benefits {
    0%, 100% { transform: translateX(0) rotate(-10deg); }
    50% { transform: translateX(20px) rotate(-8deg); }
}

@keyframes benefit-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

/* TEMA OSCURO - AJUSTES FINALES */
[data-bs-theme="oscuro"] .card-info h3 {
    color: var(--sport-dark);
}

[data-bs-theme="oscuro"] .card-info p {
    color: #cbd5e1;
}

[data-bs-theme="oscuro"] .section-title {
    color: var(--sport-dark);
}

[data-bs-theme="oscuro"] .benefits-section {
    background: 
        radial-gradient(circle at 30% 70%, rgba(0, 245, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 0, 110, 0.06) 0%, transparent 50%);
}
/* ============================================
   ESTILOS DE IMPRESIÓN OPTIMIZADOS
   ============================================ */

@media print {
    /* RESET GENERAL PARA IMPRESIÓN */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }

    /* OCULTAR ELEMENTOS INNECESARIOS */
    #preloader-placeholder,
    #header-placeholder,
    #theme-toggle-placeholder,
    #arrow-button-placeholder,
    #footer-placeholder,
    .sport-decoration,
    .sport-decoration-svg,
    .hero-section::before,
    .hero-section::after,
    .hero-illustration,
    .card-illustration::before,
    .benefit-card::before,
    .benefits-section::before,
    nav,
    header,
    footer,
    button,
    .btn,
    .skip-link {
        display: none !important;
    }

    /* CONFIGURACIÓN DE PÁGINA */
    @page {
        margin: 2cm;
        size: A4 portrait;
    }

    /* BODY Y CONTENEDOR PRINCIPAL */
    body {
        font-family: 'Georgia', 'Times New Roman', serif;
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
        background: white;
        margin: 0;
        padding: 0;
    }

    .page-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    /* SECCIÓN HERO SIMPLIFICADA */
    .hero-section {
        background: white !important;
        border: 2px solid #000;
        border-radius: 0;
        padding: 1.5cm 1cm;
        margin-bottom: 1cm;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .page-title {
        font-family: 'Arial', sans-serif;
        font-size: 24pt;
        font-weight: bold;
        color: #000 !important;
        text-align: center;
        margin-bottom: 0.5cm;
        background: white !important;
        -webkit-text-fill-color: #000 !important;
        letter-spacing: normal;
    }

    .page-subtitle {
        font-size: 11pt;
        color: #333 !important;
        text-align: center;
        margin-bottom: 0.5cm;
        opacity: 1;
    }

    /* TÍTULOS DE SECCIÓN */
    .section-title {
        font-family: 'Arial', sans-serif;
        font-size: 18pt;
        font-weight: bold;
        color: #000 !important;
        text-align: center;
        margin: 1cm 0 0.75cm 0;
        text-transform: uppercase;
        border-bottom: 2px solid #000;
        padding-bottom: 0.3cm;
        page-break-after: avoid;
    }

    .section-title::before,
    .section-title::after {
        display: none;
    }

    /* CONTENEDOR DE CURSOS */
    .cursos-container {
        display: block;
        width: 100%;
    }

    /* TARJETAS DE CURSO */
    .curso-card {
        background: white !important;
        border: 1.5px solid #333;
        border-radius: 0;
        padding: 0.75cm;
        margin-bottom: 0.75cm;
        box-shadow: none;
        page-break-inside: avoid;
        opacity: 1;
        transform: none;
    }

    .curso-card::before {
        display: none;
    }

    /* ILUSTRACIONES DE TARJETAS */
    .card-illustration {
        width: 3cm;
        height: 3cm;
        margin: 0 auto 0.5cm;
        padding: 0;
        background: white !important;
        border: 1px solid #000;
        border-radius: 50%;
        box-shadow: none;
    }

    .card-illustration svg {
        width: 100%;
        height: 100%;
        filter: none;
        stroke: #000 !important;
        fill: #000 !important;
    }

    /* INFORMACIÓN DE TARJETAS */
    .card-info h3 {
        font-family: 'Arial', sans-serif;
        font-size: 14pt;
        font-weight: bold;
        color: #000 !important;
        text-align: center;
        margin: 0 0 0.4cm 0;
        page-break-after: avoid;
    }

    .card-info p {
        font-size: 11pt;
        line-height: 1.5;
        color: #000 !important;
        margin: 0 0 0.5cm 0;
        text-align: justify;
    }

    .card-info p strong {
        font-weight: bold;
        color: #000 !important;
    }

    /* TAGS Y ETIQUETAS */
    .card-tags {
        display: flex;
        gap: 0.5cm;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 0.5cm;
    }

    .nivel,
    .year-info {
        padding: 0.2cm 0.5cm;
        border: 1.5px solid #000;
        border-radius: 0;
        font-size: 10pt;
        font-weight: bold;
        color: #000 !important;
        background: white !important;
        box-shadow: none;
    }

    /* SECCIÓN DE BENEFICIOS */
    .benefits-section {
        background: white !important;
        border: 1.5px solid #000;
        border-radius: 0;
        padding: 1cm;
        margin: 1cm 0;
        page-break-inside: avoid;
    }

    .benefits-grid {
        display: block;
        width: 100%;
    }

    .benefit-card {
        background: white !important;
        border: 1px solid #666;
        border-radius: 0;
        padding: 0.5cm;
        margin-bottom: 0.5cm;
        page-break-inside: avoid;
    }

    .benefit-icon {
        font-size: 18pt;
        text-align: center;
        margin-bottom: 0.3cm;
        animation: none;
    }

    .benefit-card h3 {
        font-family: 'Arial', sans-serif;
        font-size: 12pt;
        font-weight: bold;
        color: #000 !important;
        text-align: center;
        margin: 0 0 0.3cm 0;
    }

    .benefit-card p {
        font-size: 10pt;
        line-height: 1.4;
        color: #000 !important;
        text-align: justify;
        margin: 0;
    }

    /* SALTOS DE PÁGINA ESTRATÉGICOS */
    .cursos-seccion {
        page-break-before: avoid;
    }

    .benefits-section {
        page-break-before: auto;
    }

    /* ENLACES */
    a {
        color: #000 !important;
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        font-style: italic;
    }

    /* EVITAR HUÉRFANOS Y VIUDAS */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        orphans: 3;
        widows: 3;
    }

    p {
        orphans: 3;
        widows: 3;
    }
}