/* VARIABLES GLOBALES - TEMA TECNOLÓGICO AVANZADO */
:root {
    /* Colores principales - Paleta cibernética */
    --primary-electric: #00d4ff;
    --primary-neon: #7c3aed;
    --primary-cyber: #ff0080;
    --accent-green: #00ff88;
    --accent-orange: #ff6b35;
    
    /* Fondos y superficies */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-surface: #1a1a2e;
    --bg-glass: rgba(26, 26, 46, 0.7);
    --bg-card: rgba(15, 15, 25, 0.8);
    
    /* Textos */
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-accent: #00d4ff;
    
    /* Bordes y líneas */
    --border-glow: rgba(0, 212, 255, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.1);
    
    /* Sombras y efectos */
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #ff0080 100%);
    --gradient-surface: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 15, 25, 0.9) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

/* TEMA CLARO - Adaptación futurista */
[data-bs-theme="claro"] {
    --bg-dark: #f8fafc;
    --bg-darker: #ffffff;
    --bg-surface: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(248, 250, 252, 0.8);
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-subtle: rgba(0, 0, 0, 0.1);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
    --gradient-glow: radial-gradient(circle at center, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
}

/* CONFIGURACIÓN BASE DEL BODY */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    cursor: none; /* Ocultar cursor por defecto */
}

/* CURSOR PERSONALIZADO CON PARTÍCULAS */
#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.8) 0%, rgba(124, 58, 237, 0.4) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.1s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

#cursor-follower::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
}

/* Partículas del cursor */
.cursor-particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: var(--primary-electric);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.8;
    animation: cursorParticleFade 0.8s ease-out forwards;
}

/* FONDO TECNOLÓGICO ANIMADO */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        var(--bg-darker);
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        linear-gradient(90deg, var(--text-primary) 1px, transparent 1px),
        linear-gradient(0deg, var(--text-primary) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: circuitMove 30s linear infinite;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-electric);
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 10px var(--primary-electric);
    animation: float 8s infinite linear;
}

/* FLUJOS DE DATOS */
.data-stream {
    position: fixed;
    width: 2px;
    height: 100vh;
    background: linear-gradient(180deg, transparent, var(--primary-electric), transparent);
    opacity: 0.6;
    animation: dataFlow 4s ease-in-out infinite;
    z-index: -1;
}

.data-stream:nth-child(3) {
    left: 10%;
    animation-delay: 0s;
}

.data-stream:nth-child(4) {
    left: 30%;
    animation-delay: -1s;
}

.data-stream:nth-child(5) {
    right: 20%;
    animation-delay: -2s;
}

.data-stream:nth-child(6) {
    right: 40%;
    animation-delay: -3s;
}

/* CONTENEDOR PRINCIPAL */
.page-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* SECCIÓN HERO MEJORADA */
.hero-section {
    position: relative;
    padding: 6rem 3rem;
    margin-bottom: 6rem;
    background: var(--gradient-surface);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    opacity: 0.5;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 212, 255, 0.05) 10px,
            rgba(0, 212, 255, 0.05) 20px
        );
    animation: slidePattern 15s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.page-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.tech-icon {
    width: 80px;
    height: 80px;
    padding: 1.5rem;
    background: var(--gradient-surface);
    border: 2px solid var(--border-glow);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glow);
    animation: iconFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.tech-icon:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
}

.tech-icon:nth-child(2) { animation-delay: -1s; }
.tech-icon:nth-child(3) { animation-delay: -2s; }

.tech-icon svg {
    width: 100%;
    height: 100%;
    color: var(--primary-electric);
}

/* SECCIÓN DE CURSOS */
.cursos-seccion {
    margin: 6rem 0;
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.cursos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

/* TARJETAS MEJORADAS CON EFECTOS FUTURISTAS */
.curso-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-card);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px);
}

.curso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.curso-card:hover::before {
    opacity: 1;
}

.curso-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 
        var(--shadow-heavy),
        0 0 40px rgba(0, 212, 255, 0.2);
    border-color: var(--border-glow);
}

.curso-card.fade-in {
    opacity: 1;
    transform: translateY(0);
    animation: slideInUp 0.8s ease-out forwards;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.card-illustration {
    width: 120px;
    height: 120px;
    padding: 2rem;
    background: var(--gradient-surface);
    border: 2px solid var(--border-glow);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.3;
    animation: patternMove 10s linear infinite;
}

.card-illustration svg {
    width: 60px;
    height: 60px;
    color: var(--primary-electric);
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.card-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: center;
}

.card-info p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    text-align: justify;
}

.card-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nivel, .year-info {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nivel {
    background: linear-gradient(135deg, var(--primary-neon), var(--primary-cyber));
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.year-info {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-orange));
    color: white;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.nivel:hover, .year-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

/* OCULTAR EL BOTÓN DE TEMA ORIGINAL COMPLETAMENTE */
#theme-toggle-placeholder .toggle-switch,
#theme-toggle-placeholder .container-boton-cambiar-tema,
.container-boton-cambiar-tema {
    display: none !important;
}

/* ACCESIBILIDAD */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-electric);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* ANIMACIONES */
@keyframes circuitMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(60px) translateY(60px); }
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

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

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 30px rgba(0, 212, 255, 0.5); }
    50% { text-shadow: 0 0 50px rgba(124, 58, 237, 0.8); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(12px, 12px); }
}

@keyframes dataFlow {
    0%, 100% { 
        opacity: 0.2; 
        transform: scaleY(0.5);
    }
    50% { 
        opacity: 1; 
        transform: scaleY(2);
    }
}

@keyframes cursorParticleFade {
    0% {
        opacity: 0.8;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translateY(-20px);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        cursor: auto; /* Restaurar cursor normal en móviles */
    }
    
    #cursor-follower {
        display: none; /* Ocultar cursor personalizado en móviles */
    }
    
    .page-container {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 4rem 2rem;
        margin-bottom: 4rem;
    }
    
    .hero-visual {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .tech-icon {
        width: 60px;
        height: 60px;
        padding: 1rem;
    }
    
    .cursos-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .curso-card {
        padding: 2rem;
    }
    
    .card-tags {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cursos-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .curso-card {
        padding: 1.5rem;
    }
    
    .card-illustration {
        width: 100px;
        height: 100px;
        padding: 1.5rem;
    }
    
    .card-illustration svg {
        width: 50px;
        height: 50px;
    }
    
    .card-info h3 {
        font-size: 1.3rem;
    }
    
    .card-info p {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .nivel, .year-info {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* MODO REDUCIDO DE MOVIMIENTO */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle,
    .data-stream,
    .circuit-pattern {
        display: none;
    }
    
    body {
        cursor: auto;
    }
    
    #cursor-follower {
        display: none;
    }
}

/* ============= BOTÓN CIRCULAR FUTURISTA SOL/LUNA ============= */

@keyframes techButtonAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(180deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.4),
            0 0 40px rgba(0, 212, 255, 0.2),
            inset 0 2px 4px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 212, 255, 0.6),
            0 0 60px rgba(0, 212, 255, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
}

.tech-theme-container {
    position: fixed !important;
    top: 2rem !important;
    right: 2rem !important;
    z-index: 10000 !important;
    opacity: 0;
    animation: techButtonAppear 1s ease 0.5s forwards;
}

.tech-circular-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.9) 0%, 
        rgba(30, 41, 59, 0.9) 50%, 
        rgba(15, 23, 42, 0.9) 100%);
    border: 2px solid rgba(0, 212, 255, 0.5);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.tech-circular-button input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.theme-icon {
    width: 28px;
    height: 28px;
    fill: #FDB813;
    transition: all 400ms ease;
    filter: drop-shadow(0 0 8px rgba(253, 184, 19, 0.6));
    z-index: 1;
}

.sun-icon, .moon-icon {
    transition: opacity 400ms ease;
}

.tech-circular-button:hover {
    transform: scale(1.1);
    border-color: rgba(0, 212, 255, 0.8);
    animation: pulseGlow 2s infinite;
}

.tech-circular-button:hover .theme-icon {
    transform: scale(1.1);
    fill: #ffffff;
}

.tech-circular-button.dark-mode {
    background: linear-gradient(135deg, 
        rgba(30, 27, 75, 0.9) 0%, 
        rgba(88, 28, 135, 0.9) 50%, 
        rgba(30, 27, 75, 0.9) 100%);
    border-color: rgba(255, 0, 128, 0.6);
    box-shadow: 
        0 0 20px rgba(255, 0, 128, 0.4),
        0 0 40px rgba(255, 0, 128, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.tech-circular-button.dark-mode .theme-icon {
    fill: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* Partículas cósmicas */
.tech-circular-button::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(
        rgba(0, 212, 255, 0.1),
        rgba(124, 58, 237, 0.1),
        rgba(255, 0, 128, 0.1),
        rgba(0, 212, 255, 0.1)
    );
    opacity: 0;
    transition: opacity 400ms ease;
    z-index: -1;
}

.tech-circular-button:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .tech-theme-container {
        top: 1.5rem !important;
        right: 1.5rem !important;
    }
    
    .tech-circular-button {
        width: 50px;
        height: 50px;
    }
    
    .theme-icon {
        width: 24px;
        height: 24px;
    }
}
/* Añade estos estilos adicionales al final de tu archivo tecnologia-computacion.css */

/* MEJORAS PARA EL ICONO DEL SOL Y LUNA */
.theme-icon {
    width: 28px;
    height: 28px;
    transition: all 400ms ease;
    filter: drop-shadow(0 0 8px rgba(253, 184, 19, 0.6));
    z-index: 1;
}

.sun-icon, .moon-icon {
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.sun-icon circle {
    fill: #FDB813;
    transition: fill 300ms ease;
}

.sun-icon path {
    stroke: #FDB813;
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke 300ms ease;
}

.moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
    fill: #E2E8F0;
}

/* Estados hover mejorados */
.tech-circular-button:hover .sun-icon circle {
    fill: #ffffff;
}

.tech-circular-button:hover .sun-icon path {
    stroke: #ffffff;
}

.tech-circular-button:hover .moon-icon {
    fill: #ffffff;
}

/* Animación de rotación para los rayos del sol */
.tech-circular-button:hover .sun-icon {
    animation: sunRotate 2s linear infinite;
}

@keyframes sunRotate {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

/* Modo oscuro específico para los iconos */
.tech-circular-button.dark-mode .theme-icon {
    fill: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.tech-circular-button.dark-mode .moon-icon {
    fill: #E2E8F0;
}

/* Efecto de pulsación en el tema oscuro */
.tech-circular-button.dark-mode:hover .moon-icon {
    animation: moonPulse 2s ease-in-out infinite;
}

@keyframes moonPulse {
    0%, 100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: rotate(5deg) scale(1.05);
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .sun-icon, .moon-icon {
        transition: opacity 200ms ease !important;
        transform: none !important;
    }
    
    .tech-circular-button:hover .sun-icon {
        animation: none !important;
    }
    
    .tech-circular-button.dark-mode:hover .moon-icon {
        animation: none !important;
    }
}

/* Responsivo para iconos */
@media (max-width: 768px) {
    .theme-icon {
        width: 24px;
        height: 24px;
    }
}

.tech-text {
    /* Reemplazando Inter */
    font-family: var(--font-primary);
    font-weight: 400;
}

.code-block,
.tech-code {
    /* Reemplazando JetBrains Mono */
    font-family: var(--font-mono);
    font-weight: 400;
}
/* ============================================
   ESTILOS DE IMPRESIÓN - TECNOLOGÍA Y COMPUTACIÓN
   ============================================ */

@media print {
    /* === RESETEO GENERAL === */
    * {
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* === CONFIGURACIÓN DE PÁGINA === */
    @page {
        margin: 2cm;
        size: A4 portrait;
    }
    
    body {
        background: white !important;
        color: #000000 !important;
        font-size: 12pt;
        line-height: 1.5;
        cursor: auto !important;
    }
    
    /* === OCULTAR ELEMENTOS INNECESARIOS === */
    #header-placeholder,
    #footer-placeholder,
    #theme-toggle-placeholder,
    #arrow-button-placeholder,
    #preloader-placeholder,
    #cursor-follower,
    .tech-background,
    .circuit-pattern,
    .floating-particles,
    .particle,
    .cursor-particle,
    .data-stream,
    .tech-theme-container,
    .tech-circular-button,
    .skip-link,
    nav,
    button,
    .social-media,
    .redes-sociales {
        display: none !important;
    }
    
    /* === CONTENEDOR PRINCIPAL === */
    .page-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* === SECCIÓN HERO === */
    .hero-section {
        background: white !important;
        border: 2px solid #000000;
        border-radius: 0;
        padding: 1.5cm;
        margin-bottom: 1.5cm;
        page-break-inside: avoid;
    }
    
    .hero-section::before,
    .hero-section::after {
        display: none !important;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .page-title {
        font-size: 24pt;
        font-weight: bold;
        color: #000000 !important;
        background: none !important;
        -webkit-text-fill-color: #000000 !important;
        margin-bottom: 0.5cm;
        text-shadow: none !important;
    }
    
    .page-subtitle {
        font-size: 14pt;
        color: #333333 !important;
        margin-bottom: 1cm;
    }
    
    .hero-visual {
        display: none !important;
    }
    
    /* === TÍTULOS DE SECCIÓN === */
    .section-title {
        font-size: 18pt;
        font-weight: bold;
        color: #000000 !important;
        text-align: left;
        margin-top: 1cm;
        margin-bottom: 0.8cm;
        border-bottom: 2px solid #000000;
        padding-bottom: 0.3cm;
        page-break-after: avoid;
    }
    
    .section-title::after {
        display: none !important;
    }
    
    /* === CONTENEDOR DE CURSOS === */
    .cursos-seccion {
        margin: 0;
    }
    
    .cursos-container {
        display: block;
        padding: 0;
    }
    
    /* === TARJETAS DE CURSOS === */
    .curso-card {
        background: white !important;
        border: 2px solid #000000;
        border-radius: 0;
        padding: 1cm;
        margin-bottom: 1cm;
        page-break-inside: avoid;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .curso-card::before {
        display: none !important;
    }
    
    .card-header {
        display: none !important;
    }
    
    .card-illustration {
        display: none !important;
    }
    
    .card-info h3 {
        font-size: 16pt;
        font-weight: bold;
        color: #000000 !important;
        margin-bottom: 0.5cm;
        text-align: left;
    }
    
    .card-info p {
        font-size: 12pt;
        line-height: 1.6;
        color: #000000 !important;
        margin-bottom: 0.5cm;
        text-align: justify;
    }
    
    /* === ETIQUETAS === */
    .card-tags {
        display: flex;
        gap: 0.5cm;
        flex-wrap: wrap;
        margin-top: 0.5cm;
    }
    
    .nivel,
    .year-info {
        background: white !important;
        color: #000000 !important;
        border: 2px solid #000000 !important;
        padding: 0.3cm 0.6cm;
        border-radius: 0;
        font-size: 10pt;
        font-weight: bold;
        display: inline-block;
    }
    
    .nivel::before {
        content: "Nivel: ";
    }
    
    .year-info::before {
        content: "Duración: ";
    }
    
    /* === SALTOS DE PÁGINA === */
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    article, section {
        page-break-inside: avoid;
    }
    
    /* === ENLACES === */
    a {
        color: #000000 !important;
        text-decoration: underline;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666666;
    }
}