/* ==========================================================================
   URBAN CYBERPUNK 2077 UI SHEET - CUSTOM BIRTHDAY SHARD STYLE
   ========================================================================== */

/* Variables de Color Cyberpunk Oficiales */
:root {
    --cyber-yellow: #fcee0a;
    --cyber-yellow-glow: rgba(252, 238, 10, 0.4);
    --cyber-blue: #00f0ff;
    --cyber-blue-glow: rgba(0, 240, 255, 0.4);
    --cyber-pink: #ff0055;
    --cyber-pink-glow: rgba(255, 0, 85, 0.4);
    --cyber-red: #ff003c;
    --cyber-red-glow: rgba(255, 0, 60, 0.4);
    --cyber-dark: #070709;
    --cyber-card: #15151e;
    --cyber-grid: rgba(21, 21, 30, 0.5);
    
    /* Fuentes */
    --font-cyber: 'Share Tech Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

/* --------------------------------------------------------------------------
   Resets y Bases Estéticas
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--cyber-dark);
    color: #e2e8f0;
    font-family: var(--font-body);
    font-size: 18px;
    letter-spacing: 0.5px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Fuentes auxiliares asociadas */
.font-mono {
    font-family: var(--font-cyber);
}
.font-display {
    font-family: var(--font-display);
    font-weight: 700;
}
.font-body {
    font-family: var(--font-body);
}

.text-cyber-yellow { color: var(--cyber-yellow); }
.text-cyber-blue { color: var(--cyber-blue); }
.text-cyber-pink { color: var(--cyber-pink); }
.text-cyber-red { color: var(--cyber-red); }

/* Patrón de Rejilla Tecnológica */
.tech-grid {
    background-image: 
        linear-gradient(rgba(255, 0, 85, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Efecto Ruido Digital Permanente */
.noise-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.75;
    z-index: 1;
    pointer-events: none;
    animation: static-noise 0.5s infinite;
}

@keyframes static-noise {
    0% { transform: translate(0,0); }
    10% { transform: translate(-1%, -1%); }
    20% { transform: translate(-2%, 1%); }
    30% { transform: translate(1%, -2%); }
    40% { transform: translate(-1%, 2%); }
    50% { transform: translate(-1%, 1%); }
    60% { transform: translate(2%, -1%); }
    70% { transform: translate(1%, 1%); }
    80% { transform: translate(-1%, -2%); }
    90% { transform: translate(1%, -1%); }
    100% { transform: translate(0,0); }
}

/* Efecto de Líneas de Escaneo del CRT */
.scanlines::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Fondo Parallax de Night City
   -------------------------------------------------------------------------- */
.parallax-city {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.city-stars {
    position: absolute;
    width: 100%;
    height: 150%;
    background-image: radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px);
    background-size: 550px 550px;
    opacity: 0.15;
    transform: translateY(0);
}

.city-grid {
    position: absolute;
    bottom: -100px;
    width: 200%;
    left: -50%;
    height: 50%;
    background: 
        linear-gradient(rgba(0, 240, 255, 0.03) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 2px, transparent 2px);
    background-size: 80px 80px;
    transform: perspective(500px) rotateX(75deg);
    opacity: 0.4;
}

.city-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: radial-gradient(circle at 50% 120%, rgba(255,0,85,0.08) 0%, rgba(0,240,255,0.03) 40%, transparent 80%);
}

/* --------------------------------------------------------------------------
   Ventana Modal de Alerta de Bienvenida
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 4, 6, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.modal-overlay.closed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-overlay.closed-glitch {
    animation: glitch-close 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.modal-card {
    width: 90%;
    max-width: 580px;
    background: #0a0a0f;
    border: 3px solid var(--cyber-red);
    box-shadow: 0 0 35px var(--cyber-red-glow), inset 0 0 15px rgba(255,0,60,0.15);
    position: relative;
    clip-path: polygon(0 20px, 20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    animation: border-flicker 1.5s infinite steps(2);
}

.modal-header {
    background: var(--cyber-red);
    color: #000;
    padding: 10px 15px;
    font-family: var(--font-cyber);
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 1px;
}

.header-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.red-led {
    background-color: #fff;
    box-shadow: 0 0 10px #fff;
    animation: led-blink 0.4s infinite alternate;
}

.header-code {
    font-size: 11px;
    background: rgba(0,0,0,0.25);
    padding: 2px 6px;
    border-radius: 2px;
}

.modal-content {
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.cyber-scanline {
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(transparent 95%, rgba(255, 0, 60, 0.08) 50%);
    background-size: 100% 20px;
    animation: modal-scan 6s linear infinite;
    pointer-events: none;
}

.alert-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.alert-triangle {
    width: 65px;
    height: 65px;
    background-color: transparent;
    border-left: 32px solid transparent;
    border-right: 32px solid transparent;
    border-bottom: 56px solid var(--cyber-red);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: #000;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 28px;
    line-height: 48px;
    animation: alert-flash 0.8s infinite steps(2);
}

.alert-title {
    text-align: center;
    font-family: var(--font-display);
    color: var(--cyber-red);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(255, 0, 60, 0.5);
}

/* Consola de Diagnóstico */
.diagnostic-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 0, 60, 0.3);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-family: var(--font-cyber);
    font-size: 12.5px;
}

.diag-line {
    margin-bottom: 6px;
    color: #8892b0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
}

/* Indicador de barra de carga */
.loader-container {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255, 0, 60, 0.3);
    margin: 15px 0 8px 0;
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--cyber-red);
    box-shadow: 0 0 10px var(--cyber-red);
    transition: width 0.05s linear;
}

.loader-text {
    font-family: var(--font-cyber);
    font-size: 11px;
    color: #8892b0;
    text-align: right;
    letter-spacing: 0.5px;
}

/* Caja de advertencia principal */
.warning-message {
    border-left: 4px solid var(--cyber-yellow);
    background: rgba(252, 238, 10, 0.02);
    padding: 15px;
    margin-bottom: 30px;
}

.warning-tag {
    color: var(--cyber-yellow);
    font-family: var(--font-cyber);
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 6px;
    letter-spacing: 1.5px;
}

.warning-body {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: #ffeff3;
    line-height: 1.5;
    text-transform: uppercase;
}

/* Botón estilo Neón de Entrada */
.cyber-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--cyber-blue);
    color: var(--cyber-blue);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    letter-spacing: 3px;
    transition: all 0.2s ease;
    clip-path: polygon(0 0, 92% 0, 100% 15px, 100% 100%, 8% 100%, 0 calc(100% - 15px));
    outline: none;
}

.cyber-btn:hover:not(:disabled) {
    background: var(--cyber-blue);
    color: #000;
    box-shadow: 0 0 25px var(--cyber-blue-glow);
    text-shadow: none;
}

.cyber-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.cyber-btn:disabled {
    border-color: #3b3b4f;
    color: #55556f;
    cursor: not-allowed;
    clip-path: none;
}

.btn-text {
    position: relative;
    z-index: 5;
}

/* --------------------------------------------------------------------------
   Layout General y Contenedores (Estructura Multicolumna)
   -------------------------------------------------------------------------- */
.app-container {
    transition: opacity 1s cubic-bezier(0.1, 0.9, 0.2, 1);
    opacity: 1;
    z-index: 5;
    position: relative;
    min-height: 100vh;
    padding-bottom: 60px;
}

.hidden-shard {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* Cabecera del Shard */
.cyber-header {
    width: 100%;
    border-bottom: 1px solid #1c1c24;
    padding: 15px 3% 12px 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 7, 9, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-square {
    width: 10px;
    height: 10px;
    background-color: var(--cyber-yellow);
    box-shadow: 0 0 5px var(--cyber-yellow);
}

.brand-text {
    font-size: 13.5px;
    color: #8892b0;
    letter-spacing: 1.5px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 1px;
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.yellow-pulse {
    background-color: var(--cyber-yellow);
    box-shadow: 0 0 8px var(--cyber-yellow);
    animation: pulse-glow 0.8s infinite alternate;
}

.status-txt {
    color: var(--cyber-yellow);
}

/* Ajuste del Layout a 3 Columnas */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 580px 1fr;
    gap: 40px;
    width: 95%;
    max-width: 1400px;
    margin: 40px auto 0 auto;
    align-items: start;
}

/* Columnas de Recuerdos Laterales */
.sidebar-lateral {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-top: 50px;
}

.decor-hud {
    font-size: 11.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.bar-hud {
    font-size: 9px;
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Tarjetas de Recuerdo con FX Electrónicos
   -------------------------------------------------------------------------- */
.recuerdo-card {
    background: rgba(21, 21, 30, 0.7);
    border: 1px solid #2d2d3d;
    padding: 12px;
    position: relative;
    clip-path: polygon(0px 10px, 10px 0px, 100% 0px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0px 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    /* Configuración para el Intersection Observer */
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Efecto que se activa por JS al hacer scroll */
.recuerdo-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.recuerdo-card.visible-glitch {
    animation: digital-entrance 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.card-edge-tag {
    font-family: var(--font-cyber);
    font-size: 10px;
    color: #8892b0;
    margin-bottom: 8px;
    display: inline-block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 2px;
}

.recuerdo-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 1px solid #1d1d26;
    background-color: #0b0b0f;
}

.recuerdo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: grayscale(40%) contrast(110%);
}

.recuerdo-card:hover .recuerdo-img {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.04);
}

/* Escáner de Barrido Flotante */
.sensor-scan {
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--cyber-blue);
    box-shadow: 0 0 10px var(--cyber-blue);
    opacity: 0.8;
    pointer-events: none;
    animation: sensor-loop 3.5s linear infinite;
}

/* Overlay sutil de glitch estático */
.glitch-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 0, 85, 0.05);
    opacity: 0;
    pointer-events: none;
}

.recuerdo-card:hover .glitch-overlay {
    animation: blink-glitch-layer 0.25s infinite steps(2);
}

.recuerdo-text {
    font-size: 13px;
    color: #a0aec0;
    margin-top: 12px;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Columna Central (Título y Contor de la Carta)
   -------------------------------------------------------------------------- */
.center-content {
    display: flex;
    flex-direction: column;
}

/* Título de la Web */
.glitch-title-box {
    text-align: center;
    margin-bottom: 30px;
}

.main-title {
    font-size: 40px;
    color: var(--cyber-yellow);
    letter-spacing: 2px;
    line-height: 1.1;
    position: relative;
    text-shadow: 2px 2px 0 var(--cyber-pink-glow);
}

/* Efecto glitch de texto duplicación */
.main-title::before, .main-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--cyber-dark);
}

.main-title::before {
    left: 2px;
    text-shadow: -2px 0 var(--cyber-blue);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.main-title::after {
    left: -2px;
    text-shadow: -2px 0 var(--cyber-pink), 0 2px var(--cyber-blue);
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

.subtitle {
    font-size: 13.5px;
    color: #4a5568;
    margin-top: 10px;
    letter-spacing: 4px;
}

/* Contendedor Central Digital (Estilo Shard) */
.digital-shard-screen {
    background: var(--cyber-card);
    border: 1px solid rgba(252, 238, 10, 0.35);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(252, 238, 10, 0.05),
        inset 0 0 15px rgba(252, 238, 10, 0.03);
    position: relative;
    clip-path: polygon(0 30px, 30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
    padding: 35px;
}

/* Esquinas de Pantalla de Datos */
.screen-corners .corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--cyber-yellow);
    pointer-events: none;
}

.top-left { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.top-right { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.bottom-right { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.screen-header {
    border-bottom: 1px solid rgba(252, 238, 10, 0.15);
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.connection-label {
    color: rgba(252, 238, 10, 0.9);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.connection-label::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: var(--cyber-yellow);
    border-radius: 50%;
}

.connection-encryption {
    color: #718096;
    letter-spacing: 0.5px;
}

/* El Cuerpo de Texto / Mensaje */
.letter-story {
    font-size: 17.5px;
    line-height: 1.75;
    color: #cbd5e0;
}

.story-paragraph {
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-word;
}

/* Caja de frase destacada */
.scale-up-hover {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.scale-up-hover:hover {
    transform: scale(1.02);
    border-color: var(--cyber-yellow);
    background: rgba(252, 238, 10, 0.03);
}

.letter-footer {
    border-top: 1px dashed rgba(255, 0, 85, 0.2);
    padding-top: 25px;
}

.signature-tag {
    letter-spacing: 2px;
}

.signature {
    letter-spacing: 1.5px;
}

/* Footer del Sistema Central */
.system-mini-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #4a5568;
    padding: 0 5px;
}

.system-health {
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyber-blue);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px var(--cyber-blue);
}

/* --------------------------------------------------------------------------
   Animaciones del CSS
   -------------------------------------------------------------------------- */
@keyframes pulse-glow {
    0% { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 4px var(--cyber-yellow); }
    100% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 12px var(--cyber-yellow); }
}

@keyframes led-blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes alert-flash {
    0% { border-bottom-color: var(--cyber-red); opacity: 1; filter: drop-shadow(0 0 10px var(--cyber-red)); }
    100% { border-bottom-color: #300208; opacity: 0.8; filter: none; }
}

@keyframes border-flicker {
    0%, 100% { border-color: var(--cyber-red); }
    50% { border-color: #7a0018; }
}

@keyframes modal-scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes sensor-loop {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

@keyframes blink-glitch-layer {
    0%, 100% { opacity: 0; }
    12% { opacity: 0.8; height: 30%; top: 10%; }
    25% { opacity: 0.3; height: 10%; top: 60%; }
    50% { opacity: 0; }
    80% { opacity: 0.5; height: 50%; top: 40%; }
}

/* Animación Glitch del Título */
@keyframes glitch-anim {
    0% { clip: rect(12px, 9999px, 85px, 0); }
    10% { clip: rect(110px, 9999px, 8px, 0); }
    20% { clip: rect(31px, 9999px, 140px, 0); }
    30% { clip: rect(95px, 9999px, 10px, 0); }
    40% { clip: rect(6px, 9999px, 45px, 0); }
    50% { clip: rect(135px, 9999px, 80px, 0); }
    60% { clip: rect(55px, 9999px, 115px, 0); }
    70% { clip: rect(15px, 9999px, 5px, 0); }
    80% { clip: rect(80px, 9999px, 130px, 0); }
    90% { clip: rect(40px, 9999px, 90px, 0); }
    100% { clip: rect(122px, 9999px, 60px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(70px, 9999px, 105px, 0); }
    10% { clip: rect(15px, 9999px, 85px, 0); }
    20% { clip: rect(120px, 9999px, 10px, 0); }
    30% { clip: rect(5px, 9999px, 130px, 0); }
    40% { clip: rect(85px, 9999px, 40px, 0); }
    50% { clip: rect(30px, 9999px, 145px, 0); }
    60% { clip: rect(110px, 9999px, 65px, 0); }
    70% { clip: rect(60px, 9999px, 115px, 0); }
    80% { clip: rect(135px, 9999px, 20px, 0); }
    90% { clip: rect(10px, 9999px, 95px, 0); }
    100% { clip: rect(90px, 9999px, 125px, 0); }
}

/* Animación Glitch Cerrar Modal */
@keyframes glitch-close {
    0% { transform: scale(1) skewX(0deg); filter: hue-rotate(0deg) invert(0); opacity: 1; }
    20% { transform: scale(1.1, 0.4) skewX(10deg); filter: hue-rotate(90deg) invert(0.2); opacity: 0.9; }
    40% { transform: scale(0.6, 1.3) skewX(-20deg); filter: hue-rotate(180deg) invert(0.5); opacity: 0.7; }
    60% { transform: scale(0.9, 0.2) skewX(25deg); filter: hue-rotate(270deg) invert(0.8); opacity: 0.4; }
    80% { transform: scale(1.3, 0.05) skewX(-10deg); filter: hue-rotate(360deg) invert(1); opacity: 0.2; }
    100% { transform: scale(0) skewX(0); opacity: 0; display: none; }
}

/* Animación de entrada digital para cartas */
@keyframes digital-entrance {
    0% { opacity: 0; transform: translateY(40px) skewX(-5deg); filter: brightness(3) contrast(2); }
    25% { opacity: 0.4; transform: translateY(-5px) skewX(5deg); filter: hue-rotate(90deg); }
    50% { opacity: 0.2; transform: translateY(10px) skewX(-2deg); }
    75% { opacity: 0.8; transform: translateY(-2px) skewX(0deg); filter: brightness(1.5); }
    100% { opacity: 1; transform: translateY(0) skewX(0deg); filter: none; }
}

/* --------------------------------------------------------------------------
   Responsive Adaptivo (Desktop-First)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .sidebar-lateral.right-side {
        grid-column: 2;
    }
    
    .center-content {
        grid-column: 1 / span 2;
        order: -1;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
        width: 92%;
        margin-top: 20px;
    }
    
    .center-content {
        grid-column: 1;
    }
    
    .sidebar-lateral {
        grid-column: 1 !important;
        gap: 40px;
        padding-top: 20px;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .digital-shard-screen {
        padding: 20px;
        clip-path: polygon(0 20px, 20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    }
    
    .modal-card {
        width: 95%;
    }
    
    .modal-content {
        padding: 20px;
    }
}
