/* Premium Structural CSS */
html {
    scroll-behavior: smooth;
    background-color: #030303;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Cursor Effects */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #0057FF;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* Cursor active state */
.cursor-outline.active {
    width: 50px;
    height: 50px;
    border-color: #0057FF;
    background-color: rgba(0, 87, 255, 0.05);
}

/* Service Card Hover (Structured Expansion) */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(15, 15, 15, 0.9);
    border-color: rgba(0, 87, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0, 87, 255, 0.1);
}

/* Modal States */
.modal-open {
    overflow: hidden;
}

#service-modal:not(.hidden) .modal-backdrop,
#diagnostico-modal:not(.hidden) .modal-backdrop {
    opacity: 1;
}

#service-modal:not(.hidden) .modal-content,
#diagnostico-modal:not(.hidden) .modal-content {
    opacity: 1;
    transform: scale(1);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #030303;
}
::-webkit-scrollbar-thumb {
    background: #1F1F1F;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0057FF;
}

/* GSAP Pre-animation state */
.reveal-up {
    opacity: 0;
    visibility: hidden;
}

/* Laptop chart bar grow animation */
@keyframes bar-grow {
    from { transform: scaleY(0); opacity: 0; }
    to   { transform: scaleY(1); opacity: 1; }
}

.bar-animate {
    animation: bar-grow 1s ease-out both;
    transform-origin: bottom;
}

/* Laptop shell subtle pulse glow */
@keyframes laptop-glow {
    0%, 100% { box-shadow: 0 40px 80px rgba(0,0,0,0.9), 0 0 40px rgba(0,87,255,0.05); }
    50%       { box-shadow: 0 40px 80px rgba(0,0,0,0.9), 0 0 60px rgba(0,87,255,0.15); }
}

.laptop-shell {
    animation: laptop-glow 4s ease-in-out infinite;
}
