/*
Cyberpunk Neon
Nicolas Florez Pacheco
mail: nfp20@alu.ua.es
*/

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body - Fondo cyberpunk con efecto de profundidad */
body {
    font-family: 'Orbitron', 'Rajdhani', 'Electrolize', 'Share Tech Mono', 'Courier New', monospace;
    background: radial-gradient(ellipse at bottom, #0a0a1f 0%, #000000 100%);
    color: #e0e7ff;
    margin: 0;
    padding: 2em 1em;
    line-height: 1.75;
    font-size: 16px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    letter-spacing: 0.03em;
}

/* Efecto CRT de pantalla antigua con curvatura */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 2;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

/* Vignette y grain para efecto retro */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%),
        repeating-conic-gradient(from 0deg, transparent 0deg, rgba(167, 139, 250, 0.02) 1deg, transparent 2deg);
    pointer-events: none;
    z-index: 1;
    animation: flicker 0.15s infinite, noise 0.2s infinite;
}

@keyframes noise {
    0%, 100% { opacity: 1; }
    10% { opacity: 0.96; }
    20% { opacity: 0.98; }
    30% { opacity: 0.97; }
    40% { opacity: 1; }
    50% { opacity: 0.99; }
    60% { opacity: 0.96; }
    70% { opacity: 1; }
    80% { opacity: 0.98; }
    90% { opacity: 0.97; }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.97; }
}

/* Tipografia con efectos neon elegantes */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: 0.02em;
    position: relative;
}

h1 {
    font-size: 3.2em;
    background: linear-gradient(135deg, #d8b4fe 0%, #ec4899 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.5em;
    margin-bottom: 0.5em;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(216, 180, 254, 1)) 
            drop-shadow(0 0 40px rgba(236, 72, 153, 0.8))
            drop-shadow(0 0 60px rgba(6, 182, 212, 0.6));
    animation: gradient-shift 8s ease infinite, text-glow 2s ease-in-out infinite;
    background-size: 200% 200%;
    text-transform: uppercase;
    text-align: center;
}

h1::before {
    content: '';
    position: absolute;
    top: -2em;
    left: 0;
    width: 100%;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.35em;
    color: #ff0000;
    text-shadow: 
        0 0 10px rgba(255, 0, 0, 0.8),
        0 0 20px rgba(255, 0, 0, 0.5),
        0 0 30px rgba(255, 0, 0, 0.3);
    letter-spacing: 0.1em;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-text-fill-color: #ff0000;
    background: none;
    text-transform: uppercase;
}

h1:hover::before {
    opacity: 1;
    animation: error-messages 3s steps(1) infinite;
}

@keyframes error-messages {
    0%, 100% { content: '[ERROR 0x8F3A] MEMORY CORRUPTION DETECTED'; }
    16% { content: '[CRITICAL] DATA STREAM INTERRUPTED >>'; }
    33% { content: '<!> SEGMENTATION FAULT AT 0xDEADBEEF'; }
    50% { content: '[WARN] BUFFER OVERFLOW // ATTEMPTING RECOVERY'; }
    66% { content: '>>> PACKET LOSS: 78% // RECONNECTING...'; }
    83% { content: '[!] UNDEFINED REFERENCE: SYMBOL NOT FOUND'; }
}

h1:hover {
    animation: gradient-shift 8s ease infinite, text-glow 2s ease-in-out infinite, terminal-glitch 0.8s infinite;
}

@keyframes text-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(216, 180, 254, 1)) 
                drop-shadow(0 0 40px rgba(236, 72, 153, 0.8));
    }
    50% { 
        filter: drop-shadow(0 0 30px rgba(216, 180, 254, 1)) 
                drop-shadow(0 0 60px rgba(236, 72, 153, 0.9))
                drop-shadow(0 0 80px rgba(6, 182, 212, 0.7));
    }
}

@keyframes terminal-glitch {
    0%, 100% { 
        transform: translate(0);
        filter: none;
        opacity: 1;
    }
    5% { 
        transform: translate(-5px, 2px) skew(1deg);
        filter: hue-rotate(180deg) brightness(1.2);
        opacity: 0.8;
    }
    10% { 
        transform: translate(5px, -3px) skew(-2deg);
        filter: hue-rotate(-90deg) contrast(1.5);
        opacity: 0.9;
    }
    15% { 
        transform: translate(-3px, 3px) skew(0.5deg);
        filter: saturate(0) brightness(1.1);
        opacity: 0.7;
    }
    20% { 
        transform: translate(4px, -1px);
        filter: hue-rotate(90deg) invert(0.2);
        opacity: 0.85;
    }
    25% { 
        transform: translate(-2px, 2px) skew(-1deg);
        filter: brightness(1.3) contrast(2);
        opacity: 0.95;
    }
    30% { 
        transform: translate(3px, -2px);
        filter: hue-rotate(-45deg);
        opacity: 0.6;
    }
    35% { 
        transform: translate(-4px, 1px) skew(1.5deg);
        filter: saturate(2) brightness(0.9);
        opacity: 0.9;
    }
    40% { 
        transform: translate(2px, 3px);
        filter: hue-rotate(120deg) contrast(1.2);
        opacity: 0.8;
    }
    45% { 
        transform: translate(0, 0);
        filter: none;
        opacity: 1;
    }
    50% { 
        transform: translate(-6px, -2px) skew(-1deg);
        filter: invert(0.3) hue-rotate(200deg);
        opacity: 0.75;
    }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        #a78bfa 20%,
        #ec4899 50%,
        #06b6d4 80%,
        transparent
    );
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.8);
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(167, 139, 250, 0.8); }
    50% { box-shadow: 0 0 25px rgba(236, 72, 153, 1), 0 0 40px rgba(6, 182, 212, 0.6); }
}

h2 {
    font-size: 2em;
    color: #e879f9;
    font-weight: 500;
    font-style: italic;
    margin: 0.3em 0 1em;
    text-shadow: 
        0 0 10px rgba(232, 121, 249, 1),
        0 0 20px rgba(232, 121, 249, 0.8),
        0 0 30px rgba(232, 121, 249, 0.6),
        0 0 40px rgba(232, 121, 249, 0.4);
    letter-spacing: 0.08em;
    animation: cyan-pulse 3s ease-in-out infinite;
    text-align: center;
    position: relative;
}

h2::before {
    content: '[ STATUS: ACTIVE ]';
    position: absolute;
    top: -1.5em;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.4em;
    color: #86efac;
    text-shadow: 
        0 0 10px rgba(134, 239, 172, 0.8),
        0 0 20px rgba(134, 239, 172, 0.5);
    letter-spacing: 0.15em;
    font-style: normal;
    animation: none;
}

h2::after {
    content: '_';
    display: inline-block;
    margin-left: 0.3em;
    animation: cursor-blink 1s infinite;
    color: #e879f9;
    text-shadow: 
        0 0 10px rgba(232, 121, 249, 1),
        0 0 20px rgba(232, 121, 249, 0.8);
}

@keyframes cyan-pulse {
    0%, 100% { 
        text-shadow: 
            0 0 10px rgba(232, 121, 249, 1),
            0 0 20px rgba(232, 121, 249, 0.8);
    }
    50% { 
        text-shadow: 
            0 0 15px rgba(232, 121, 249, 1),
            0 0 30px rgba(232, 121, 249, 0.9),
            0 0 45px rgba(232, 121, 249, 0.7);
    }
}

@keyframes cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

h3 {
    font-size: 1.5em;
    color: #fde047;
    margin: 1.5em 0 1em;
    padding: 0.8em 1.2em;
    background: linear-gradient(135deg, 
        rgba(253, 224, 71, 0.15) 0%, 
        rgba(251, 191, 36, 0.08) 100%
    );
    border-left: 4px solid #fde047;
    border-radius: 0 0.5em 0.5em 0;
    position: relative;
    overflow: hidden;
    text-shadow: 
        0 0 10px rgba(253, 224, 71, 1),
        0 0 20px rgba(253, 224, 71, 0.7),
        0 0 30px rgba(253, 224, 71, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(251, 191, 36, 0.2),
        transparent
    );
    animation: scan-line 3s linear infinite;
}

@keyframes scan-line {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

h3:hover {
    border-left-width: 8px;
    padding-left: 1.6em;
    transition: all 0.3s ease;
    animation: scan-line 3s linear infinite, h3-glitch 5s infinite;
}

@keyframes h3-glitch {
    0%, 96%, 100% { 
        filter: none;
        transform: translateX(0);
    }
    97% { 
        filter: hue-rotate(180deg);
        transform: translateX(-3px);
    }
    98% { 
        filter: saturate(0) brightness(1.5);
        transform: translateX(3px);
    }
    99% { 
        filter: invert(0.2);
        transform: translateX(-2px);
    }
}

/* Clases especificas de h3 con identidad visual unica */
h3.intra {
    color: #a78bfa;
    border-left-color: #a78bfa;
    text-shadow: 
        0 0 10px rgba(167, 139, 250, 0.9),
        0 0 20px rgba(167, 139, 250, 0.6),
        0 0 30px rgba(167, 139, 250, 0.4);
}

h3.selecciona {
    color: #ec4899;
    border-left-color: #ec4899;
    text-shadow: 
        0 0 10px rgba(236, 72, 153, 0.9),
        0 0 20px rgba(236, 72, 153, 0.6),
        0 0 30px rgba(236, 72, 153, 0.4);
}

h3.historico {
    color: #fbbf24;
    border-left-color: #fbbf24;
    text-shadow: 
        0 0 10px rgba(251, 191, 36, 0.9),
        0 0 20px rgba(251, 191, 36, 0.6),
        0 0 30px rgba(251, 191, 36, 0.4);
}

h3.recursos {
    color: #06b6d4;
    border-left-color: #06b6d4;
    text-shadow: 
        0 0 10px rgba(6, 182, 212, 0.9),
        0 0 20px rgba(6, 182, 212, 0.6),
        0 0 30px rgba(6, 182, 212, 0.4);
}

h3.versiones {
    color: #f472b6;
    border-left-color: #f472b6;
    text-shadow: 
        0 0 10px rgba(244, 114, 182, 0.9),
        0 0 20px rgba(244, 114, 182, 0.6),
        0 0 30px rgba(244, 114, 182, 0.4);
}

/* Texto y listas con estilo moderno */
p {
    margin: 1.3em 0;
    text-align: justify;
    color: #cbd5e1;
    line-height: 1.85;
    font-size: 1.05em;
    text-shadow: 0 0 3px rgba(203, 213, 225, 0.5);
}

/* Clases especificas de parrafos con efectos neon */
.p2 {
    text-shadow: 0 0 4px rgba(236, 72, 153, 0.6);
}

.p3 {
    text-shadow: 0 0 4px rgba(251, 191, 36, 0.6);
}

.p4 {
    text-shadow: 0 0 4px rgba(134, 239, 172, 0.6);
}

ul.ul1, ul.ul2 {
    margin: 1.5em 0;
    list-style: none;
    padding-left: 0;
    counter-reset: neon-counter;
}

ul.ul1 li,
ul.ul2 li {
    position: relative;
    margin-bottom: 1em;
    color: #e0e7ff;
    padding: 0.8em 1em 0.8em 3em;
    background: linear-gradient(90deg, 
        rgba(236, 72, 153, 0.08) 0%,
        rgba(236, 72, 153, 0.02) 100%
    );
    border-left: 3px solid transparent;
    border-radius: 0.3em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    list-style: none;
}

ul.ul1 li::before,
ul.ul2 li::before {
    content: "\00bb";
    position: absolute;
    left: 0.8em;
    top: 50%;
    transform: translateY(-50%);
    color: #ff0080;
    font-weight: bold;
    font-size: 1.8em;
    text-shadow: 
        0 0 10px rgba(255, 0, 128, 1),
        0 0 20px rgba(255, 0, 128, 0.8),
        0 0 30px rgba(255, 0, 128, 0.6);
    animation: pulse-glow 2s ease-in-out infinite, symbol-glitch 8s infinite;
}

@keyframes symbol-glitch {
    0%, 90%, 100% { content: "\00bb"; opacity: 1; }
    91% { content: "\003e"; opacity: 0.7; }
    92% { content: "\002b"; opacity: 0.9; }
    93% { content: "\00bb"; opacity: 0.8; }
    94% { content: "\003e"; opacity: 1; }
    95% { content: "\00bb"; opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1;
        text-shadow: 
            0 0 10px rgba(255, 0, 128, 1),
            0 0 20px rgba(255, 0, 128, 0.8);
    }
    50% { 
        opacity: 0.7;
        text-shadow: 
            0 0 15px rgba(255, 0, 128, 1),
            0 0 30px rgba(255, 0, 128, 0.9),
            0 0 40px rgba(255, 0, 128, 0.7);
    }
}

ul.ul1 li:hover,
ul.ul2 li:hover {
    padding-left: 3.5em;
    border-left-color: #ff0080;
    background: linear-gradient(90deg, 
        rgba(236, 72, 153, 0.15) 0%,
        rgba(236, 72, 153, 0.05) 100%
    );
    box-shadow: 
        0 4px 15px rgba(236, 72, 153, 0.3),
        inset 0 0 20px rgba(236, 72, 153, 0.1);
    transform: translateX(5px);
}

ul.ul1 > li > ul,
ul.ul2 > li > ul {
    margin: 1em 0 0 2em;
    padding-left: 1.5em;
    border-left: 2px solid rgba(0, 255, 255, 0.3);
    position: relative;
    list-style: none;
}

ul.ul1 > li > ul::before,
ul.ul2 > li > ul::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        rgba(0, 255, 255, 0.8) 0%,
        rgba(0, 255, 0, 0.8) 100%
    );
    animation: line-pulse 2s ease-in-out infinite;
}

@keyframes line-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

ul.ul1 > li > ul > li,
ul.ul2 > li > ul > li {
    background: linear-gradient(90deg, 
        rgba(0, 255, 255, 0.12) 0%,
        rgba(0, 255, 255, 0.04) 100%
    );
    margin-bottom: 0.8em;
    padding: 0.6em 1em 0.6em 2.5em;
    border-left: 3px solid rgba(0, 255, 255, 0.4);
    position: relative;
    list-style: none;
}

ul.ul1 > li > ul > li::before,
ul.ul2 > li > ul > li::before {
    content: "\00bb";
    position: absolute;
    left: 0.8em;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 1),
        0 0 20px rgba(0, 255, 255, 0.8),
        0 0 30px rgba(0, 255, 255, 0.6);
    font-size: 1.5em;
    animation: pulse-glow-cyan 2s ease-in-out infinite;
}

@keyframes pulse-glow-cyan {
    0%, 100% { 
        opacity: 1;
        text-shadow: 
            0 0 10px rgba(0, 255, 255, 1),
            0 0 20px rgba(0, 255, 255, 0.8);
    }
    50% { 
        opacity: 0.8;
        text-shadow: 
            0 0 15px rgba(0, 255, 255, 1),
            0 0 30px rgba(0, 255, 255, 0.9),
            0 0 40px rgba(0, 255, 255, 0.7);
    }
}

ul.ul1 > li > ul > li:hover,
ul.ul2 > li > ul > li:hover {
    border-left-color: #00ffff;
    background: linear-gradient(90deg, 
        rgba(0, 255, 255, 0.2) 0%,
        rgba(0, 255, 255, 0.08) 100%
    );
    box-shadow: 
        0 4px 15px rgba(0, 255, 255, 0.4),
        inset 0 0 20px rgba(0, 255, 255, 0.15);
    transform: translateX(8px);
}

/* Clases especificas de items de lista */
.li1 {
    border-left-color: rgba(167, 139, 250, 0.2);
}

.li1:hover {
    border-left-color: #a78bfa !important;
    box-shadow: 
        0 4px 15px rgba(167, 139, 250, 0.3),
        inset 0 0 20px rgba(167, 139, 250, 0.1);
}

.li2 {
    border-left-color: rgba(236, 72, 153, 0.2);
}

.li2:hover {
    border-left-color: #ec4899 !important;
    box-shadow: 
        0 4px 15px rgba(236, 72, 153, 0.3),
        inset 0 0 20px rgba(236, 72, 153, 0.1);
}

.li3 {
    border-left-color: rgba(6, 182, 212, 0.2);
}

.li3:hover {
    border-left-color: #06b6d4 !important;
    box-shadow: 
        0 4px 15px rgba(6, 182, 212, 0.3),
        inset 0 0 20px rgba(6, 182, 212, 0.1);
}

.li4 {
    border-left-color: rgba(251, 191, 36, 0.2);
}

.li4:hover {
    border-left-color: #fbbf24 !important;
    box-shadow: 
        0 4px 15px rgba(251, 191, 36, 0.3),
        inset 0 0 20px rgba(251, 191, 36, 0.1);
}

/* Enlaces con efecto futurista */
a {
    color: #22d3ee;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    text-shadow: 0 0 5px rgba(34, 211, 238, 0.5);
    font-weight: 500;
    animation: link-scan 10s infinite;
}

@keyframes link-scan {
    0%, 85%, 100% { 
        filter: none;
        text-shadow: 0 0 5px rgba(34, 211, 238, 0.5);
    }
    86% { 
        filter: brightness(1.5);
        text-shadow: 0 0 15px rgba(34, 211, 238, 1), 0 0 25px rgba(34, 211, 238, 0.8);
    }
    87% { 
        filter: hue-rotate(90deg);
        text-shadow: 0 0 10px rgba(255, 0, 128, 0.8);
    }
    88% { 
        filter: none;
        text-shadow: 0 0 5px rgba(34, 211, 238, 0.5);
    }
}

a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #22d3ee, #d8b4fe);
    transition: width 0.3s ease;
    box-shadow: 
        0 0 8px rgba(34, 211, 238, 0.8),
        0 0 15px rgba(34, 211, 238, 0.6);
}

a:hover::after,
a:focus::after {
    width: 100%;
}

a:hover,
a:focus {
    color: #e879f9;
    text-shadow: 
        0 0 10px rgba(232, 121, 249, 0.9),
        0 0 20px rgba(232, 121, 249, 0.6);
    outline: none;
}

a:hover::after,
a:focus::after {
    width: 100%;
}

a:hover,
a:focus {
    color: #e879f9;
    text-shadow: 
        0 0 10px rgba(232, 121, 249, 0.9),
        0 0 20px rgba(232, 121, 249, 0.6);
    outline: none;
}

/* Definiciones elegantes con efectos neon */
dt {
    font-weight: 700;
    color: #f472b6;
    margin-top: 1.5em;
    font-size: 1.1em;
    padding: 0.5em 0.8em 0.5em 1em;
    border-left: 3px solid #f472b6;
    background: linear-gradient(90deg, 
        rgba(244, 114, 182, 0.1) 0%,
        transparent 100%
    );
    border-radius: 0 0.3em 0.3em 0;
    text-shadow: 
        0 0 10px rgba(244, 114, 182, 0.6),
        0 0 20px rgba(244, 114, 182, 0.3);
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

dt:hover {
    border-left-width: 5px;
    padding-left: 1.3em;
    background: linear-gradient(90deg, 
        rgba(244, 114, 182, 0.15) 0%,
        transparent 100%
    );
    text-shadow: 
        0 0 15px rgba(244, 114, 182, 0.8),
        0 0 25px rgba(244, 114, 182, 0.5);
    animation: dt-scan 6s infinite;
}

@keyframes dt-scan {
    0%, 88%, 100% { filter: none; }
    89% { filter: brightness(1.3) saturate(1.5); }
    90% { filter: hue-rotate(45deg); }
    91% { filter: contrast(1.2); }
    92% { filter: none; }
}

dd {
    margin: 0.7em 0 1.2em 2em;
    color: #cbd5e1;
    line-height: 1.8;
    text-shadow: 0 0 1px rgba(203, 213, 225, 0.3);
}

/* Contenedor principal con glass-morphism */
#contenedor {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(10, 10, 31, 0.85);
    padding: 3em;
    border-radius: 1.5em;
    border: 2px solid rgba(167, 139, 250, 0.3);
    box-shadow: 
        0 0 20px rgba(167, 139, 250, 0.3),
        0 8px 32px 0 rgba(0, 0, 0, 0.6),
        inset 0 1px 0 0 rgba(167, 139, 250, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    overflow: hidden;
    animation: random-glitch 15s infinite;
}

@keyframes random-glitch {
    0%, 90%, 100% { 
        filter: none;
        transform: translate(0);
    }
    91% { 
        filter: hue-rotate(90deg) brightness(1.2);
        transform: translate(2px, -2px);
    }
    92% { 
        filter: hue-rotate(-90deg) contrast(1.5);
        transform: translate(-2px, 2px);
    }
    93% {
        filter: saturate(0);
        transform: translate(1px, 1px);
    }
    94% { 
        filter: none;
        transform: translate(0);
    }
}

/* Brillo sutil en esquinas */
#contenedor::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(167, 139, 250, 0.4),
        rgba(236, 72, 153, 0.4),
        rgba(6, 182, 212, 0.4)
    );
    border-radius: 1.5em;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: border-shimmer 4s linear infinite;
}

@keyframes border-shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

#contenedor:hover::before {
    opacity: 0.6;
}

#contenedor:hover {
    animation: chromatic-aberration 0.3s ease-in-out;
}

@keyframes chromatic-aberration {
    0%, 100% {
        filter: none;
    }
    25% {
        filter: drop-shadow(2px 0 0 rgba(255, 0, 128, 0.5)) drop-shadow(-2px 0 0 rgba(0, 255, 255, 0.5));
    }
    75% {
        filter: drop-shadow(-2px 0 0 rgba(255, 0, 128, 0.5)) drop-shadow(2px 0 0 rgba(0, 255, 255, 0.5));
    }
}

/* Secciones */
#intro, #apartados, #enlacesintra, #enlaces, #enlacesversiones {
    margin-bottom: 3.5em;
}

/* Titulo principal con efecto holografico */
#titulo {
    position: relative;
    margin-bottom: 2.5em;
    padding: 2em;
    background: linear-gradient(135deg, 
        rgba(167, 139, 250, 0.08) 0%,
        rgba(236, 72, 153, 0.08) 50%,
        rgba(6, 182, 212, 0.08) 100%
    );
    border-radius: 1em;
    border: 1px solid rgba(167, 139, 250, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    text-align: center;
}

#titulo::after {
    content: '> SYSTEM READY // ONLINE_';
    position: absolute;
    bottom: 0.8em;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.75em;
    color: #86efac;
    text-shadow: 
        0 0 10px rgba(134, 239, 172, 0.8),
        0 0 20px rgba(134, 239, 172, 0.5),
        0 0 30px rgba(134, 239, 172, 0.3);
    letter-spacing: 0.15em;
    animation: cursor-blink 1s infinite, terminal-glow 2s ease-in-out infinite;
    border: 1px solid rgba(134, 239, 172, 0.3);
    padding: 0.3em 0.8em;
    border-radius: 0.2em;
    background: rgba(0, 0, 0, 0.5);
}

@keyframes terminal-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(134, 239, 172, 0.5), inset 0 0 5px rgba(134, 239, 172, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(134, 239, 172, 0.8), inset 0 0 10px rgba(134, 239, 172, 0.3);
    }
}

#titulo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent,
        rgba(167, 139, 250, 0.15),
        transparent
    );
    animation: hologram-scan 4s linear infinite;
    border-radius: 1em;
    overflow: hidden;
}

@keyframes hologram-scan {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(100%) skewX(-15deg); }
}

/* Intro y apartados con separacion visual */
#intro {
    position: relative;
}

#intro::before {
    content: '> LOADING SYSTEM DATA...';
    position: absolute;
    top: -2.5em;
    left: 0;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.7em;
    color: #86efac;
    text-shadow: 
        0 0 10px rgba(134, 239, 172, 0.8),
        0 0 20px rgba(134, 239, 172, 0.5);
    letter-spacing: 0.1em;
    opacity: 0.9;
}

#intro::after {
    content: '';
    position: absolute;
    bottom: -1.5em;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(167, 139, 250, 0.5) 20%,
        rgba(236, 72, 153, 0.5) 50%,
        rgba(6, 182, 212, 0.5) 80%,
        transparent
    );
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

/* Tarjetas de contenido con efecto holografico */
#resumen p,
#comentario p,
#objetivos p,
#contenidos p,
#profesores p,
#bibliografia p {
    padding: 1.5em;
    margin: 1.5em 0;
    border-radius: 0.8em;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#resumen {
    position: relative;
}

#resumen::before {
    content: '[ OK ] Module loaded';
    display: block;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.7em;
    color: #86efac;
    text-shadow: 
        0 0 10px rgba(134, 239, 172, 0.8),
        0 0 20px rgba(134, 239, 172, 0.5);
    letter-spacing: 0.1em;
    margin-bottom: 0.8em;
    opacity: 0.9;
}

#resumen p {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.1) 0%, 
        rgba(6, 182, 212, 0.05) 100%
    );
    border-left: 3px solid #06b6d4;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.1);
}

#resumen p:hover {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.15) 0%, 
        rgba(6, 182, 212, 0.08) 100%
    );
    transform: translateX(10px) scale(1.01);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
}

#comentario {
    position: relative;
}

#comentario::before {
    content: '<!> WARNING: Information purposes only';
    display: block;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.7em;
    color: #fbbf24;
    text-shadow: 
        0 0 10px rgba(251, 191, 36, 0.8),
        0 0 20px rgba(251, 191, 36, 0.5);
    letter-spacing: 0.1em;
    margin-bottom: 0.8em;
    opacity: 0.9;
    animation: warning-blink 2s ease-in-out infinite;
}

@keyframes warning-blink {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.5; }
}

#comentario p {
    background: linear-gradient(135deg, 
        rgba(244, 114, 182, 0.1) 0%, 
        rgba(244, 114, 182, 0.05) 100%
    );
    border-left: 3px solid #f472b6;
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.1);
}

#comentario p:hover {
    background: linear-gradient(135deg, 
        rgba(244, 114, 182, 0.15) 0%, 
        rgba(244, 114, 182, 0.08) 100%
    );
    transform: translateX(10px) scale(1.01);
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.2);
}

#objetivos {
    position: relative;
}

#objetivos::before {
    content: '> Executing primary directives...';
    display: block;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.7em;
    color: #86efac;
    text-shadow: 
        0 0 10px rgba(134, 239, 172, 0.8),
        0 0 20px rgba(134, 239, 172, 0.5);
    letter-spacing: 0.1em;
    margin-bottom: 0.8em;
    opacity: 0.9;
}

#objetivos p {
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.1) 0%, 
        rgba(251, 191, 36, 0.05) 100%
    );
    border-left: 3px solid #fbbf24;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.1);
}

#objetivos p:hover {
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.15) 0%, 
        rgba(251, 191, 36, 0.08) 100%
    );
    transform: translateX(10px) scale(1.01);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2);
}

#contenidos {
    position: relative;
}

#contenidos::before {
    content: '[ ========-- ] 80% Complete';
    display: block;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.7em;
    color: #86efac;
    text-shadow: 
        0 0 10px rgba(134, 239, 172, 0.8),
        0 0 20px rgba(134, 239, 172, 0.5);
    letter-spacing: 0.1em;
    margin-bottom: 0.8em;
    opacity: 0.9;
}

#contenidos p {
    background: linear-gradient(135deg, 
        rgba(134, 239, 172, 0.1) 0%, 
        rgba(134, 239, 172, 0.05) 100%
    );
    border-left: 3px solid #86efac;
    box-shadow: 0 4px 15px rgba(134, 239, 172, 0.1);
}

#contenidos p:hover {
    background: linear-gradient(135deg, 
        rgba(134, 239, 172, 0.15) 0%, 
        rgba(134, 239, 172, 0.08) 100%
    );
    transform: translateX(10px) scale(1.01);
    box-shadow: 0 8px 25px rgba(134, 239, 172, 0.2);
}

#profesores {
    position: relative;
}

#profesores::before {
    content: '> Loading staff database... [COMPLETE]';
    display: block;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.7em;
    color: #86efac;
    text-shadow: 
        0 0 10px rgba(134, 239, 172, 0.8),
        0 0 20px rgba(134, 239, 172, 0.5);
    letter-spacing: 0.1em;
    margin-bottom: 0.8em;
    opacity: 0.9;
}

#profesores p {
    background: linear-gradient(135deg, 
        rgba(192, 132, 252, 0.1) 0%, 
        rgba(192, 132, 252, 0.05) 100%
    );
    border-left: 3px solid #c084fc;
    box-shadow: 0 4px 15px rgba(192, 132, 252, 0.1);
}

#profesores p:hover {
    background: linear-gradient(135deg, 
        rgba(192, 132, 252, 0.15) 0%, 
        rgba(192, 132, 252, 0.08) 100%
    );
    transform: translateX(10px) scale(1.01);
    box-shadow: 0 8px 25px rgba(192, 132, 252, 0.2);
}

#bibliografia {
    position: relative;
}

#bibliografia::before {
    content: '> Accessing database records...';
    display: block;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.7em;
    color: #86efac;
    text-shadow: 
        0 0 10px rgba(134, 239, 172, 0.8),
        0 0 20px rgba(134, 239, 172, 0.5);
    letter-spacing: 0.1em;
    margin-bottom: 0.8em;
    opacity: 0.9;
}

#bibliografia p {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.1) 0%, 
        rgba(6, 182, 212, 0.05) 100%
    );
    border-left: 3px solid #06b6d4;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.1);
}

#bibliografia p:hover {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.15) 0%, 
        rgba(6, 182, 212, 0.08) 100%
    );
    transform: translateX(10px) scale(1.01);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
}

/* Anular estilos para el p.p1 vacio de bibliografia */
#bibliografia > p.p1:first-of-type {
    background: none;
    border: none;
    box-shadow: none;
    text-shadow: none;
    padding: 0;
    margin: 0;
    transform: none;
    display: none;
}

/* Spans de bibliografia con efectos neon */
.autores {
    color: #ec4899;
    font-weight: 600;
    text-shadow: 
        0 0 8px rgba(236, 72, 153, 0.8),
        0 0 15px rgba(236, 72, 153, 0.5);
    letter-spacing: 0.05em;
}

.editorial {
    color: #06b6d4;
    text-shadow: 
        0 0 8px rgba(6, 182, 212, 0.8),
        0 0 15px rgba(6, 182, 212, 0.5);
    letter-spacing: 0.03em;
}

.isbn {
    color: #fbbf24;
    font-size: 0.95em;
    text-shadow: 
        0 0 8px rgba(251, 191, 36, 0.8),
        0 0 15px rgba(251, 191, 36, 0.5);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    letter-spacing: 0.08em;
}

/* Seccion de navegacion interna - Estilo futurista */
#enlacesintra {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.15) 0%, 
        rgba(139, 92, 246, 0.1) 100%
    );
    padding: 2.5em;
    border-radius: 1.2em;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

#enlacesintra::after {
    content: '[2025-12-31 | 23:59:59]';
    position: absolute;
    top: 0.8em;
    right: 1em;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.65em;
    color: #86efac;
    text-shadow: 0 0 10px rgba(134, 239, 172, 0.6);
    letter-spacing: 0.1em;
    opacity: 0.7;
    animation: timestamp-update 2s steps(1) infinite;
}

@keyframes timestamp-update {
    0%, 50% { content: '[2025-12-31 | 23:59:59]'; }
    25% { content: '[PACKETS: 1337 | SENT]'; }
    75% { content: '[UPTIME: 99.9% OK]'; }
}

#enlacesintra::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(139, 92, 246, 0.2),
        transparent
    );
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

#enlacesintra h3 {
    color: #8b5cf6;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.2) 0%, 
        rgba(99, 102, 241, 0.1) 100%
    );
    border-left-color: #8b5cf6;
}

/* Grid moderno para enlaces externos */
#enlaces {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5em;
    margin-bottom: 3.5em;
    position: relative;
}

#enlaces::before {
    content: '> Establishing external connections...';
    position: absolute;
    top: -2.5em;
    left: 0;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.7em;
    color: #86efac;
    text-shadow: 
        0 0 10px rgba(134, 239, 172, 0.8),
        0 0 20px rgba(134, 239, 172, 0.5);
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* Tarjetas flotantes con efectos 3D */
#lselecciona,
#lhistorico,
#lrecursos {
    background: rgba(15, 23, 42, 0.5);
    padding: 2.5em;
    border-radius: 1.2em;
    border: 1px solid;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    animation: card-corruption 20s infinite;
}

@keyframes card-corruption {
    0%, 94%, 100% { 
        filter: none;
        opacity: 1;
    }
    95% { 
        filter: saturate(0) brightness(1.3);
        opacity: 0.8;
    }
    96% { 
        filter: hue-rotate(180deg) contrast(1.5);
        opacity: 0.9;
    }
    97% { 
        filter: invert(0.1);
        opacity: 0.85;
    }
    98% { 
        filter: none;
        opacity: 1;
    }
}

#lselecciona::after,
#lhistorico::after,
#lrecursos::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.2em;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

#lselecciona:hover,
#lhistorico:hover,
#lrecursos:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px currentColor;
}

#lselecciona {
    border-color: rgba(236, 72, 153, 0.4);
    color: #ec4899;
}

#lselecciona:hover {
    border-color: rgba(236, 72, 153, 0.8);
}

#lselecciona::after {
    background: radial-gradient(circle at center, 
        rgba(236, 72, 153, 0.2), 
        transparent 70%
    );
}

#lselecciona:hover::after {
    opacity: 1;
}

#lselecciona h3 {
    color: #ec4899;
    background: linear-gradient(135deg, 
        rgba(236, 72, 153, 0.2) 0%, 
        rgba(236, 72, 153, 0.1) 100%
    );
    border-left-color: #ec4899;
}

#lhistorico {
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

#lhistorico:hover {
    border-color: rgba(251, 191, 36, 0.8);
}

#lhistorico::after {
    background: radial-gradient(circle at center, 
        rgba(251, 191, 36, 0.2), 
        transparent 70%
    );
}

#lhistorico:hover::after {
    opacity: 1;
}

#lhistorico h3 {
    color: #fbbf24;
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.2) 0%, 
        rgba(251, 191, 36, 0.1) 100%
    );
    border-left-color: #fbbf24;
}

#lrecursos {
    border-color: rgba(6, 182, 212, 0.4);
    color: #06b6d4;
}

#lrecursos:hover {
    border-color: rgba(6, 182, 212, 0.8);
}

#lrecursos::after {
    background: radial-gradient(circle at center, 
        rgba(6, 182, 212, 0.2), 
        transparent 70%
    );
}

#lrecursos:hover::after {
    opacity: 1;
}

#lrecursos h3 {
    color: #06b6d4;
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.2) 0%, 
        rgba(6, 182, 212, 0.1) 100%
    );
    border-left-color: #06b6d4;
}

/* Listas dentro de enlaces */
#enlaces ul {
    list-style: none;
    padding-left: 0;
    margin-top: 2em;
}

#enlaces li {
    margin-bottom: 1.2em;
    padding: 0.8em 1em;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5em;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
    list-style: none;
}

#enlaces li:hover {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 1.5em;
}

#enlaces li::before {
    content: "\00bb ";
    font-weight: bold;
    font-size: 1.3em;
    margin-right: 0.5em;
    transition: all 0.3s ease;
}

#lselecciona li:hover {
    border-left-color: #ec4899;
}

#lselecciona li::before {
    color: #ec4899;
}

#lhistorico li:hover {
    border-left-color: #fbbf24;
}

#lhistorico li::before {
    color: #fbbf24;
}

#lrecursos li:hover {
    border-left-color: #06b6d4;
}

#lrecursos li::before {
    color: #06b6d4;
}

/* Seccion de versiones - Estilo chip futurista */
#enlacesversiones {
    background: linear-gradient(135deg, 
        rgba(244, 114, 182, 0.15) 0%, 
        rgba(236, 72, 153, 0.1) 100%
    );
    padding: 2.5em;
    border-radius: 1.2em;
    border: 1px solid rgba(244, 114, 182, 0.3);
    box-shadow: 
        0 8px 32px rgba(244, 114, 182, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

#enlacesversiones::before {
    content: '>> Scanning network archives...';
    position: absolute;
    top: 0.8em;
    left: 1em;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.65em;
    color: #86efac;
    text-shadow: 0 0 10px rgba(134, 239, 172, 0.6);
    letter-spacing: 0.1em;
    opacity: 0.7;
    animation: scanning-text 3s steps(1) infinite;
}

@keyframes scanning-text {
    0%, 100% { content: '>> Scanning network archives...'; }
    33% { content: '>> Scanning network archives.'; }
    66% { content: '>> Scanning network archives..'; }
}

#enlacesversiones h3 {
    color: #f472b6;
    background: linear-gradient(135deg, 
        rgba(244, 114, 182, 0.2) 0%, 
        rgba(236, 72, 153, 0.1) 100%
    );
    border-left-color: #f472b6;
}

#enlacesversiones ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
    margin-top: 2em;
}

#enlacesversiones li {
    background: linear-gradient(135deg, 
        rgba(244, 114, 182, 0.2) 0%, 
        rgba(236, 72, 153, 0.1) 100%
    );
    padding: 0.9em 1.8em;
    border: 1px solid rgba(244, 114, 182, 0.4);
    border-radius: 2em;
    box-shadow: 
        0 4px 15px rgba(244, 114, 182, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    list-style: none;
}

#enlacesversiones li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

#enlacesversiones li:hover::before {
    left: 100%;
}

#enlacesversiones li:hover {
    background: linear-gradient(135deg, 
        rgba(244, 114, 182, 0.3) 0%, 
        rgba(236, 72, 153, 0.2) 100%
    );
    border-color: rgba(244, 114, 182, 0.8);
    box-shadow: 
        0 8px 25px rgba(244, 114, 182, 0.4),
        0 0 30px rgba(244, 114, 182, 0.3);
    transform: translateY(-5px) scale(1.05);
}

/* Divs extra ocultos */
#extraDiv1, #extraDiv2, #extraDiv3,
#extraDiv4, #extraDiv5, #extraDiv6 {
    display: none;
}

/* RESPONSIVE DESIGN OPTIMIZADO */

/* Moviles pequenos (hasta 640px) */
@media screen and (max-width: 640px) {
    body {
        font-size: 14px;
        padding: 1em 0.5em;
    }
    
    body::after {
        background-size: 400% 400%;
    }
    
    #contenedor {
        padding: 1.8em;
        border-radius: 1em;
    }
    
    h1 {
        font-size: 2.2em;
        letter-spacing: 0.01em;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    h3 {
        font-size: 1.3em;
        padding: 0.7em 1em;
    }
    
    #enlaces {
        grid-template-columns: 1fr;
        gap: 2em;
    }
    
    #lselecciona,
    #lhistorico,
    #lrecursos {
        padding: 1.8em;
    }
    
    #lselecciona:hover,
    #lhistorico:hover,
    #lrecursos:hover {
        transform: translateY(-8px) rotateX(0deg);
    }
    
    #enlacesversiones ul {
        flex-direction: column;
    }
    
    #enlacesversiones li {
        width: 100%;
        text-align: center;
    }
    
    ul.ul1, ul.ul2 {
        margin-left: 1em;
    }
}

/* Tablets pequenos (640px - 768px) */
@media screen and (min-width: 641px) and (max-width: 768px) {
    body {
        font-size: 15px;
        padding: 1.5em 1em;
    }
    
    #contenedor {
        padding: 2.2em;
    }
    
    h1 {
        font-size: 2.6em;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    h3 {
        font-size: 1.4em;
    }
    
    #enlaces {
        grid-template-columns: 1fr;
    }
}

/* Tablets (768px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    #contenedor {
        max-width: 90%;
        padding: 2.5em;
    }
    
    #enlaces {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.2em;
    }
    
    h1 {
        font-size: 2.8em;
    }
}

/* Pantallas medianas (1024px - 1440px) */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    #contenedor {
        max-width: 1100px;
    }
    
    #enlaces {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pantallas grandes (1440px - 1920px) */
@media screen and (min-width: 1441px) and (max-width: 1920px) {
    #contenedor {
        max-width: 1200px;
        padding: 3.5em;
    }
    
    body {
        font-size: 17px;
        padding: 2.5em;
    }
    
    h1 {
        font-size: 3.5em;
    }
    
    h2 {
        font-size: 2.2em;
    }
    
    h3 {
        font-size: 1.6em;
    }
}

/* Pantallas muy grandes (mas de 1920px) */
@media screen and (min-width: 1921px) {
    #contenedor {
        max-width: 1400px;
        padding: 4em;
    }
    
    body {
        font-size: 18px;
        padding: 3em;
    }
    
    h1 {
        font-size: 3.8em;
    }
    
    h2 {
        font-size: 2.4em;
    }
    
    h3 {
        font-size: 1.7em;
    }
    
    #enlaces {
        gap: 3em;
    }
}

/* Accesibilidad - Reduccion de movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    body {
        background: #000;
    }
    
    body::before,
    body::after {
        display: none;
    }
    
    #contenedor {
        background: #111;
        border: 2px solid #fff;
    }
    
    h1, h2, h3, p, li {
        filter: none;
        text-shadow: none;
    }
}

/* Impresion */
@media print {
    body {
        background: white;
        color: black;
    }
    
    body::before,
    body::after {
        display: none;
    }
    
    #contenedor {
        box-shadow: none;
        border: 1px solid black;
        background: white;
    }
    
    h1, h2, h3 {
        color: black;
        filter: none;
        text-shadow: none;
        background: none;
        -webkit-text-fill-color: black;
    }
    
    a {
        color: blue;
        text-decoration: underline;
    }
    
    #enlaces, #enlacesversiones {
        display: none;
    }
}
