body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    animation: particle 15s linear infinite;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.particle-1 {
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    animation: particle 15s linear infinite;
}

.particle-2 {
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #60a5fa, #93c5fd);
    animation: drift 20s ease-in-out infinite;
}

.particle-3 {
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #93c5fd, #dbeafe);
    animation: orbit 25s linear infinite;
}

.particle-star {
    width: 3px;
    height: 3px;
    background: #fbbf24;
    animation: twinkle 3s ease-in-out infinite;
    box-shadow: 0 0 6px #fbbf24;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    transform-origin: left;
    z-index: 1000;
}

.nav-item.active {
    color: #60a5fa !important;
}

.nav-item.active i {
    color: #60a5fa !important;
}

.section-padding {
    padding-bottom: 6rem;
}

.stats-counter {
    font-size: 3rem;
    font-weight: 900;
}

.skill-bar {
    height: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 10px;
    transition: width 2s ease-in-out;
}

::-webkit-scrollbar {
    width: 14px;
    background: #e5e7eb;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    background-color: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(125deg, #1e3a8a, #60a5fa);
    border-radius: 10px;
    border: 2px solid #e5e7eb;
}

/* 🌌 AGUJERO NEGRO - ELEMENTOS PRINCIPALES */
.black-hole-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.black-hole-container.active {
    opacity: 1;
    width: 200px;
    height: 200px;
}

/* 🌀 NÚCLEO DEL AGUJERO NEGRO */
.black-hole-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        transparent 20%,
        rgba(0, 0, 0, 0.8) 25%,
        rgba(0, 0, 0, 0.95) 40%,
        #000000 50%
    );
    border-radius: 50%;
    animation: rotate-core 3s linear infinite;
}

@keyframes rotate-core {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 🌪️ DISCO DE ACRECIÓN (múltiples anillos) */
.accretion-disk {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid;
    animation: orbit linear infinite;
}

.accretion-disk:nth-child(1) {
    width: 120%;
    height: 120%;
    border-color: rgba(255, 100, 0, 0.8);
    animation-duration: 2s;
    box-shadow: 0 0 20px rgba(255, 100, 0, 0.6);
}

.accretion-disk:nth-child(2) {
    width: 140%;
    height: 140%;
    border-color: rgba(255, 150, 50, 0.6);
    animation-duration: 3s;
    animation-direction: reverse;
    box-shadow: 0 0 30px rgba(255, 150, 50, 0.4);
}

.accretion-disk:nth-child(3) {
    width: 160%;
    height: 160%;
    border-color: rgba(255, 200, 100, 0.4);
    animation-duration: 4s;
    box-shadow: 0 0 40px rgba(255, 200, 100, 0.3);
}

.accretion-disk:nth-child(4) {
    width: 180%;
    height: 180%;
    border-color: rgba(255, 255, 150, 0.3);
    animation-duration: 5s;
    animation-direction: reverse;
    box-shadow: 0 0 50px rgba(255, 255, 150, 0.2);
}

@keyframes orbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg) scale(1.1);
    }
}

/* ⚡ EFECTOS DE HAWKING RADIATION */
.hawking-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.8;
    animation: hawking-radiation 2s ease-out infinite;
}

@keyframes hawking-radiation {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) scale(0);
        opacity: 0;
    }
}

/* 🌊 ONDAS GRAVITACIONALES */
.gravitational-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(100, 150, 255, 0.3);
    border-radius: 50%;
    animation: gravity-wave 3s ease-out infinite;
}

@keyframes gravity-wave {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    100% {
        width: 500%;
        height: 500%;
        opacity: 0;
    }
}

/* 🚀 EFECTOS DE SUCCIÓN EN ELEMENTOS */
.being-sucked {
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: spiral-in 2s ease-in forwards;
    z-index: 1000;
}

@keyframes spiral-in {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(var(--target-x)) translateY(var(--target-y))
            rotate(180deg) scale(0.5);
        opacity: 0.7;
    }
    100% {
        transform: translateX(var(--target-x)) translateY(var(--target-y))
            rotate(360deg) scale(0);
        opacity: 0;
    }
}

/* 🌠 EFECTOS DE DISTORSIÓN ESPACIAL */
.space-distortion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        transparent 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.1) 35%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 8888;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-out;
}

.space-distortion.active {
    opacity: 1;
    animation: reality-bend 4s ease-in-out infinite;
}

@keyframes reality-bend {
    0%,
    100% {
        filter: blur(0px) hue-rotate(0deg);
        transform: scale(1);
    }
    50% {
        filter: blur(2px) hue-rotate(180deg);
        transform: scale(1.05);
    }
}

/* 🎭 CONTENIDO SECRETO POST-SUCCIÓN */
.secret-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 1s ease-out;
}

.secret-content.reveal {
    opacity: 1;
    pointer-events: all;
    animation: cosmic-reveal 2s ease-out forwards;
}

@keyframes cosmic-reveal {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(180deg);
        filter: blur(10px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

/* 🎨 EFECTOS EN SKILL BARS DURANTE SUCCIÓN */
.skill-bar.being-sucked .skill-progress {
    animation: energy-drain 2s ease-out forwards;
}

@keyframes energy-drain {
    0% {
        width: var(--original-width);
    }
    50% {
        width: 100%;
        box-shadow: 0 0 30px currentColor;
    }
    100% {
        width: 0%;
    }
}

/* 💫 ESTADO ORIGINAL PARA RESET */
.original-position {
    transition: all 1s ease-out;
}

/* 🌟 KONAMI CODE INDICATOR */
.konami-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-family: monospace;
    font-size: 14px;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease-out;
}

.konami-indicator.visible {
    opacity: 1;
    transform: translateX(0);
}

.konami-indicator .key {
    display: inline-block;
    background: #333;
    padding: 2px 6px;
    margin: 0 2px;
    border-radius: 3px;
    font-size: 12px;
}

.konami-indicator .key.pressed {
    background: #0f7;
    color: #000;
}

/* 🎵 EFECTOS DE SONIDO VISUALES */
.sound-wave {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    z-index: 9998;
    animation: sound-ripple 1s ease-out forwards;
}

@keyframes sound-ripple {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* 🌈 EFECTO ARCOÍRIS FINAL */
.rainbow-text {
    background: linear-gradient(
        45deg,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #0000ff,
        #4b0082,
        #9400d3
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-flow 3s ease-in-out infinite;
}

@keyframes rainbow-flow {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 🚀 LOADING SCREEN IMPROVEMENTS */
#loading {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

#mainContent {
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Loading progress animations */
#loadingProgress {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* ===== ESTILOS OPTIMIZADOS PARA IMPRESIÓN PROFESIONAL ===== */

@media print {
    /* ===== CONFIGURACIÓN BÁSICA DE PÁGINA ===== */
    @page {
        size: A4;
        margin: 1.5cm 2cm 2cm 2cm;

        /* Header en cada página */
        @top-center {
            content: "Bryan A. Rodríguez - Perfil Profesional";
            font-family: "Inter", sans-serif;
            font-size: 10pt;
            color: #333;
            border-bottom: 1px solid #ddd;
            padding-bottom: 5px;
            margin-bottom: 10px;
        }

        /* Footer en cada página */
        @bottom-right {
            content: "Página " counter(page) " de " counter(pages);
            font-family: "Inter", sans-serif;
            font-size: 9pt;
            color: #666;
        }

        @bottom-left {
            content: "📧 info@bryro.me | 📱 +507 6580-9010 | 🌐 bryro.me";
            font-family: "Inter", sans-serif;
            font-size: 9pt;
            color: #666;
        }
    }

    /* ===== RESET COMPLETO PARA IMPRESIÓN ===== */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html,
    body {
        width: 100% !important;
        height: auto !important;
        background: white !important;
        color: #222 !important;
        font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
        font-size: 11pt !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* ===== OCULTAR ELEMENTOS NO NECESARIOS ===== */
    #loading,
    .scroll-indicator,
    nav,
    .bottom-nav,
    .particles,
    .floating-shapes,
    .section-bg-effects,
    .black-hole-container,
    .space-distortion,
    .secret-content,
    .konami-indicator,
    .particle,
    .particle-1,
    .particle-2,
    .particle-3,
    .particle-star,
    .hawking-particle,
    .gravitational-wave,
    .sound-wave,
    button[onclick="window.print()"],
    .no-print {
        display: none !important;
    }

    /* ===== CONTENEDOR PRINCIPAL ===== */
    #mainContent {
        opacity: 1 !important;
        pointer-events: all !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ===== TIPOGRAFÍA PROFESIONAL ===== */
    h1 {
        font-size: 24pt !important;
        font-weight: 800 !important;
        color: #1a1a1a !important;
        margin: 0 0 15pt 0 !important;
        text-align: center !important;
        border-bottom: 2pt solid #333 !important;
        padding-bottom: 10pt !important;
        page-break-after: avoid !important;
    }

    h2 {
        font-size: 18pt !important;
        font-weight: 700 !important;
        color: #2d3748 !important;
        margin: 20pt 0 12pt 0 !important;
        border-bottom: 1pt solid #666 !important;
        padding-bottom: 5pt !important;
        page-break-after: avoid !important;
    }

    h3 {
        font-size: 14pt !important;
        font-weight: 600 !important;
        color: #4a5568 !important;
        margin: 15pt 0 8pt 0 !important;
        page-break-after: avoid !important;
    }

    h4 {
        font-size: 12pt !important;
        font-weight: 600 !important;
        color: #4a5568 !important;
        margin: 10pt 0 5pt 0 !important;
    }

    p,
    li {
        font-size: 11pt !important;
        line-height: 1.5 !important;
        color: #333 !important;
        margin-bottom: 8pt !important;
    }

    /* ===== SECCIONES PRINCIPALES ===== */
    section {
        background: white !important;
        border: none !important;
        margin: 0 !important;
        padding: 20pt 0 !important;
        page-break-inside: avoid !important;
        width: 100% !important;
    }

    /* Salto de página antes de ciertas secciones */
    #sobre-mi,
    #experiencia,
    #habilidades,
    #certificaciones {
        page-break-before: always !important;
    }

    /* ===== CONTENEDORES Y LAYOUTS ===== */
    .max-w-7xl,
    .max-w-4xl {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .grid {
        display: block !important;
        columns: 1 !important;
    }

    .grid-cols-2,
    .grid-cols-3,
    .lg\\:grid-cols-2,
    .lg\\:grid-cols-3,
    .md\\:grid-cols-2,
    .md\\:grid-cols-3 {
        columns: 2 !important;
        column-gap: 15pt !important;
        column-fill: balance !important;
    }

    /* ===== HERO SECTION - INFORMACIÓN PERSONAL ===== */
    #inicio {
        text-align: center !important;
        padding: 10pt 0 20pt 0 !important;
        border-bottom: 2pt solid #333 !important;
        margin-bottom: 20pt !important;
    }

    #inicio h1 {
        font-size: 28pt !important;
        margin-bottom: 10pt !important;
        border: none !important;
    }

    #inicio .typing-animation {
        font-size: 14pt !important;
        font-weight: 600 !important;
        color: #4a5568 !important;
        margin-bottom: 15pt !important;
    }

    #inicio .typing-animation::after {
        content: "DBA • DEV • IT • EH • ADVISER" !important;
    }

    /* Grid de información personal */
    #inicio .grid-cols-2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10pt !important;
        margin: 15pt 0 !important;
    }

    /* Stats del hero */
    #inicio .grid-cols-3:last-of-type {
        display: flex !important;
        justify-content: space-around !important;
        margin-top: 15pt !important;
        padding-top: 15pt !important;
        border-top: 1pt solid #ddd !important;
    }

    .stats-counter {
        font-size: 18pt !important;
        font-weight: 800 !important;
        color: #2d3748 !important;
    }

    /* ===== CARDS Y CONTENEDORES ===== */
    .bg-white\\/5,
    .bg-white\\/10,
    .backdrop-blur-md,
    .card-hover,
    .group {
        background: white !important;
        border: 1pt solid #ddd !important;
        border-radius: 6pt !important;
        padding: 12pt !important;
        margin-bottom: 12pt !important;
        box-shadow: 0 2pt 4pt rgba(0, 0, 0, 0.1) !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* ===== EXPERIENCIA PROFESIONAL ===== */
    #experiencia .relative {
        position: static !important;
    }

    /* Ocultar timeline visual */
    #experiencia .absolute {
        display: none !important;
    }

    /* Mejorar cards de experiencia */
    #experiencia .bg-white\\/5 {
        margin-bottom: 15pt !important;
        padding: 15pt !important;
    }

    #experiencia h3 {
        font-size: 14pt !important;
        color: #2d3748 !important;
        margin-bottom: 5pt !important;
    }

    #experiencia .text-2xl {
        font-size: 12pt !important;
        font-weight: 600 !important;
        color: #4a5568 !important;
    }

    #experiencia .text-gray-400 {
        color: #666 !important;
        font-size: 10pt !important;
    }

    #experiencia ul li {
        margin-bottom: 4pt !important;
        padding-left: 15pt !important;
        position: relative !important;
    }

    #experiencia ul li::before {
        content: "•" !important;
        position: absolute !important;
        left: 0 !important;
        color: #333 !important;
        font-weight: bold !important;
    }

    /* ===== HABILIDADES Y SKILLS ===== */
    #habilidades .skill-bar {
        height: 8pt !important;
        background: #e5e7eb !important;
        border: 1pt solid #d1d5db !important;
        border-radius: 4pt !important;
        margin: 5pt 0 10pt 0 !important;
        position: relative !important;
    }

    #habilidades .skill-progress {
        height: 100% !important;
        background: #374151 !important;
        border-radius: 3pt !important;
        position: relative !important;
    }

    /* Mostrar porcentajes al final de las barras */
    #habilidades .skill-progress::after {
        content: attr(data-percentage) !important;
        position: absolute !important;
        right: -25pt !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 9pt !important;
        font-weight: 600 !important;
        color: #374151 !important;
    }

    /* Agregar porcentajes via CSS para las barras principales */
    #habilidades .skill-progress[style*="95%"]::after {
        content: "95%" !important;
    }
    #habilidades .skill-progress[style*="90%"]::after {
        content: "90%" !important;
    }
    #habilidades .skill-progress[style*="85%"]::after {
        content: "85%" !important;
    }
    #habilidades .skill-progress[style*="80%"]::after {
        content: "80%" !important;
    }
    #habilidades .skill-progress[style*="75%"]::after {
        content: "75%" !important;
    }

    /* Ocultar la órbita de tecnologías */
    .tech-orbit,
    .relative.h-96 {
        display: none !important;
    }

    /* ===== PROYECTOS ===== */
    #proyectos .grid {
        columns: 1 !important;
    }

    #proyectos .bg-white\\/5 {
        margin-bottom: 15pt !important;
        page-break-inside: avoid !important;
    }

    /* ===== CERTIFICACIONES ===== */
    #certificaciones .grid {
        columns: 2 !important;
        column-gap: 15pt !important;
    }

    #certificaciones .bg-white\\/5 {
        break-inside: avoid !important;
        margin-bottom: 12pt !important;
    }

    /* Mejorar visualización de certificaciones */
    #certificaciones .w-16 {
        width: 30pt !important;
        height: 30pt !important;
        float: left !important;
        margin-right: 10pt !important;
        margin-bottom: 5pt !important;
    }

    #certificaciones img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 4pt !important;
        border: 1pt solid #ddd !important;
    }

    /* ===== ICONOS Y ELEMENTOS VISUALES ===== */
    i.fas,
    i.fab {
        color: #666 !important;
        margin-right: 6pt !important;
    }

    /* ===== INFORMACIÓN DE CONTACTO ===== */
    #contacto {
        background: #f8f9fa !important;
        border: 2pt solid #333 !important;
        border-radius: 8pt !important;
        padding: 20pt !important;
        margin-top: 20pt !important;
        page-break-inside: avoid !important;
    }

    #contacto h2 {
        text-align: center !important;
        margin-bottom: 15pt !important;
    }

    #contacto .grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15pt !important;
    }

    #contacto a {
        color: #333 !important;
        text-decoration: none !important;
    }

    #contacto a::after {
        content: " (" attr(href) ")" !important;
        font-size: 9pt !important;
        color: #666 !important;
    }

    #contacto .bg-gradient-to-r {
        background: #e5e7eb !important;
        border: 2pt solid #333 !important;
        text-align: center !important;
        padding: 15pt !important;
    }

    /* ===== FOOTER ===== */
    footer {
        background: white !important;
        border-top: 2pt solid #333 !important;
        padding: 15pt 0 !important;
        margin-top: 20pt !important;
        page-break-inside: avoid !important;
    }

    footer .grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 15pt !important;
    }

    footer h3 {
        font-size: 12pt !important;
        border-bottom: 1pt solid #ddd !important;
        padding-bottom: 5pt !important;
        margin-bottom: 10pt !important;
    }

    footer ul li {
        margin-bottom: 4pt !important;
    }

    footer a {
        color: #333 !important;
        text-decoration: none !important;
    }

    /* ===== QR CODES PARA ENLACES (Opcional) ===== */
    .print-qr {
        display: inline-block !important;
        width: 60pt !important;
        height: 60pt !important;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="white"/><text x="50" y="50" font-family="monospace" font-size="12" text-anchor="middle" dy=".3em">QR</text></svg>') !important;
        background-size: contain !important;
        float: right !important;
        margin-left: 10pt !important;
    }

    /* ===== MEJORAS ESPECÍFICAS PARA CONTENIDO ===== */

    /* Gradientes a colores sólidos */
    .gradient-text {
        background: none !important;
        color: #2d3748 !important;
        -webkit-text-fill-color: initial !important;
    }

    /* Tags y badges */
    .px-3.py-1 {
        background: #e5e7eb !important;
        color: #374151 !important;
        border: 1pt solid #d1d5db !important;
        border-radius: 3pt !important;
        padding: 2pt 6pt !important;
        font-size: 9pt !important;
        margin: 1pt 2pt !important;
        display: inline-block !important;
    }

    /* Botones */
    .bg-blue-600,
    .bg-green-500,
    .bg-purple-600 {
        background: #374151 !important;
        color: white !important;
        border: 1pt solid #000 !important;
        padding: 8pt 12pt !important;
        border-radius: 4pt !important;
        font-weight: 600 !important;
        text-align: center !important;
        display: inline-block !important;
    }

    /* ===== OPTIMIZACIONES FINALES ===== */

    /* Eliminar todas las animaciones */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    /* Mejorar contraste para impresión B&N */
    .text-blue-400,
    .text-green-400,
    .text-purple-400,
    .text-yellow-400,
    .text-orange-400 {
        color: #374151 !important;
        font-weight: 600 !important;
    }

    .text-gray-300,
    .text-gray-400 {
        color: #4a5568 !important;
    }

    .text-white {
        color: #1a1a1a !important;
    }

    /* Optimización para texto pequeño */
    .text-xs,
    .text-sm {
        font-size: 10pt !important;
    }

    .text-lg {
        font-size: 12pt !important;
    }

    .text-xl {
        font-size: 14pt !important;
    }

    .text-2xl {
        font-size: 16pt !important;
    }

    .text-3xl {
        font-size: 18pt !important;
    }

    .text-4xl,
    .text-5xl {
        font-size: 20pt !important;
    }

    /* ===== INFORMACIÓN ADICIONAL PARA CV ===== */

    /* Agregar fechas de impresión */
    #inicio::after {
        content: "CV Generado el: " attr(data-print-date) !important;
        display: block !important;
        text-align: right !important;
        font-size: 9pt !important;
        color: #666 !important;
        margin-top: 10pt !important;
        font-style: italic !important;
    }

    /* Optimizar espaciado para mejor aprovechamiento */
    .space-y-6 > *,
    .space-y-8 > * {
        margin-top: 8pt !important;
        margin-bottom: 0 !important;
    }

    .space-y-4 > * {
        margin-top: 5pt !important;
        margin-bottom: 0 !important;
    }

    /* ===== SALTOS DE PÁGINA INTELIGENTES ===== */

    .page-break-before {
        page-break-before: always !important;
    }

    .page-break-after {
        page-break-after: always !important;
    }

    .page-break-avoid {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* Evitar que elementos importantes se corten */
    .bg-white\\/5 h3,
    .bg-white\\/5 .text-2xl,
    #experiencia .bg-white\\/5,
    #proyectos .bg-white\\/5,
    #certificaciones .bg-white\\/5 {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
}
