/* ----------------------------------------------------
   NEXUSLAB - PAGINA EN MANTENCION (STYLING)
   Premium, Interactive, and Deeply Animated Design System
------------------------------------------------------- */

:root {
    --bg-primary: #03000a;
    --bg-card: rgba(15, 12, 32, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --color-text-main: #f3f1f8;
    --color-text-muted: #9c98a6;
    
    --neon-pink: #ff3366;
    --neon-pink-glow: rgba(255, 51, 102, 0.4);
    --neon-purple: #7000ff;
    --neon-purple-glow: rgba(112, 0, 255, 0.4);
    --neon-cyan: #00f2fe;
    --neon-cyan-glow: rgba(0, 242, 254, 0.4);
    
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor to enable custom cursor */
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
}

/* ----------------------------------------------------
   Background & Environmental Effects
------------------------------------------------------- */

/* Animated mesh-like background gradient */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -3;
    background: radial-gradient(circle at 20% 30%, #0d061f 0%, #03000a 60%),
                radial-gradient(circle at 80% 70%, #051424 0%, #03000a 60%);
    opacity: 0.9;
}

/* High-tech grid overlay */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 70%, transparent 100%);
}

/* Shifting ambient glow spheres */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
    animation: drift 25s ease-in-out infinite alternate;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: var(--neon-purple);
    top: -100px;
    right: -100px;
}

.bg-glow-2 {
    width: 600px;
    height: 600px;
    background: var(--neon-cyan);
    bottom: -150px;
    left: -150px;
    animation-delay: -10s;
}

/* ----------------------------------------------------
   Custom Interactive Cursor
------------------------------------------------------- */
.custom-cursor {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 51, 102, 0.5);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    mix-blend-mode: screen;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.2);
}

.custom-cursor::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--neon-pink);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Cursor states on hoverable items */
.custom-cursor.hovered {
    width: 48px;
    height: 48px;
    border-color: var(--neon-cyan);
    background-color: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

.custom-cursor.hovered::after {
    background-color: var(--neon-cyan);
}

.custom-cursor.clicking {
    transform: translate(-50%, -50%) scale(0.8);
    background-color: var(--neon-pink);
    border-color: #ffffff;
}

/* ----------------------------------------------------
   Layout & Container
------------------------------------------------------- */
.maintenance-container {
    max-width: 1300px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
}

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

.logo-icon {
    width: 38px;
    height: 38px;
    animation: rotateSlow 20s linear infinite;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--neon-pink);
}

.status-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-pink);
    animation: pulseGlow 1.8s ease-in-out infinite;
}

/* Split Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    flex-grow: 1;
    margin-bottom: 3rem;
}

/* ----------------------------------------------------
   Left Column Elements
------------------------------------------------------- */

.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
}

.title span {
    background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-purple) 50%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 10s ease infinite alternate;
    background-size: 200% auto;
}

.description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 620px;
}

/* Progress Bar Component */
.progress-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: 16px;
    backdrop-filter: blur(16px);
    max-width: 580px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.progress-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

.progress-percentage {
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    border-radius: 100px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.progress-bar-glow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: #ffffff;
    filter: blur(5px);
    opacity: 0.6;
    animation: barShimmer 2s infinite linear;
}

/* Countdown Timer */
.countdown-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 580px;
    margin: 0.5rem 0;
}

.countdown-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    min-width: 90px;
    padding: 1.2rem 0.8rem;
    text-align: center;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
    opacity: 0.7;
}

.countdown-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 51, 102, 0.3);
}

.countdown-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1;
    letter-spacing: -0.5px;
}

.countdown-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: 0.4rem;
}

.countdown-divider {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    animation: blink 1.5s infinite;
}

/* Notification Form */
.notify-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    max-width: 580px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.notify-box::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 50%, rgba(255, 51, 102, 0.15));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.notify-box h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.notify-box p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.notify-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.input-group {
    flex-grow: 1;
    position: relative;
}

.mail-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    transition: color 0.3s;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 12px;
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.02);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.input-group input:focus + .mail-icon {
    color: var(--neon-cyan);
}

.btn-submit {
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
    border: none;
    padding: 0 1.8rem;
    border-radius: 12px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--neon-pink-glow);
    position: relative;
    overflow: hidden;
}

.btn-submit::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: 0.5s;
}

.btn-submit:hover {
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.6);
    transform: translateY(-2px);
}

.btn-submit:hover::before {
    left: 100%;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-submit:hover .arrow-icon {
    transform: translateX(4px);
}

.form-feedback {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-feedback.success {
    color: #00ffaa;
    opacity: 1;
}

.form-feedback.error {
    color: var(--neon-pink);
    opacity: 1;
}

/* ----------------------------------------------------
   Right Column (Stunning SVG Visuals & Interactive Elements)
------------------------------------------------------- */

.visual-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.interactive-canvas {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1/1;
    position: relative;
}

.maintenance-illustration {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.svg-visual {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* SVG Animations */
.core-pulse {
    animation: corePulseAnimation 4s ease-in-out infinite alternate;
    transform-origin: center;
}

.cog-spin-clockwise {
    animation: spinClockwise 25s linear infinite;
    transform-origin: center;
}

.cog-spin-counter {
    animation: spinCounter 18s linear infinite;
    transform-origin: center;
}

.dash-orbit {
    animation: spinClockwise 40s linear infinite;
    transform-origin: center;
}

/* Floating nodes animations */
.floating-node-1 { animation: floatNode1 6s ease-in-out infinite alternate; transform-origin: 120px 180px; }
.floating-node-2 { animation: floatNode2 8s ease-in-out infinite alternate; transform-origin: 380px 150px; }
.floating-node-3 { animation: floatNode3 7s ease-in-out infinite alternate; transform-origin: 340px 360px; }
.floating-node-4 { animation: floatNode4 9s ease-in-out infinite alternate; transform-origin: 140px 340px; }

/* Hologram Glitch Bars */
.glitch-line-1 {
    animation: glitchLine1Anim 5s ease-in-out infinite;
}

.glitch-line-2 {
    animation: glitchLine2Anim 7s ease-in-out infinite;
}

/* ----------------------------------------------------
   Footer
------------------------------------------------------- */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3.5rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px) scale(1.1);
}

.social-icon[aria-label="Facebook"]:hover {
    border-color: #1877f2;
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
    color: #1877f2;
}

.social-icon[aria-label="Twitter"]:hover {
    border-color: #1da1f2;
    box-shadow: 0 0 15px rgba(29, 161, 242, 0.4);
    color: #1da1f2;
}

.social-icon[aria-label="LinkedIn"]:hover {
    border-color: #0077b5;
    box-shadow: 0 0 15px rgba(0, 119, 181, 0.4);
    color: #0077b5;
}

.social-icon[aria-label="Instagram"]:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink-glow);
    color: var(--neon-pink);
}

.copyright {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}

.copyright a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.3s;
}

.copyright a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ----------------------------------------------------
   Keyframe Animations
------------------------------------------------------- */

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 80px) scale(1.2); }
    100% { transform: translate(-50px, 120px) scale(0.9); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px var(--neon-pink); }
    50% { transform: scale(1.15); opacity: 0.6; box-shadow: 0 0 20px var(--neon-pink); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes barShimmer {
    0% { left: -100%; }
    100% { left: 150%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* SVG Core Pulse */
@keyframes corePulseAnimation {
    0% { transform: scale(0.9); filter: drop-shadow(0 0 10px var(--neon-pink-glow)); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 35px var(--neon-pink-glow)); }
}

@keyframes spinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinCounter {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Floating nodes movements */
@keyframes floatNode1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(15px, -20px); }
}
@keyframes floatNode2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-20px, 20px); }
}
@keyframes floatNode3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(15px, 15px); }
}
@keyframes floatNode4 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10px, -25px); }
}

/* Hologram Glitch Bars */
@keyframes glitchLine1Anim {
    0%, 90%, 94%, 98%, 100% { transform: translateY(0) scaleY(1); opacity: 0.7; }
    92% { transform: translateY(30px) scaleY(3); opacity: 0.9; }
    96% { transform: translateY(-40px) scaleY(0.5); opacity: 0.5; }
}

@keyframes glitchLine2Anim {
    0%, 85%, 89%, 93%, 97%, 100% { transform: translateY(0) scaleY(1); opacity: 0.6; }
    87% { transform: translateY(-50px) scaleY(4); opacity: 0.8; }
    91% { transform: translateY(20px) scaleY(0.2); opacity: 0.4; }
    95% { transform: translateY(-10px) scaleY(2); opacity: 0.7; }
}

/* Main Entrance Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1.2s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1.5s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-delay: 0.4s;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1.2s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------
   Responsive Media Queries
------------------------------------------------------- */

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .main-content {
        align-items: center;
    }
    
    .description {
        max-width: 580px;
    }
    
    .progress-container, .countdown-wrapper, .notify-box {
        width: 100%;
        max-width: 580px;
    }
    
    .visual-container {
        grid-row: 1; /* Puts illustration above text on mobile/tablet for visual balance */
    }
    
    .interactive-canvas {
        max-width: 380px;
    }
    
    .title {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .maintenance-container {
        padding: 1.5rem 1.2rem;
    }
    
    .header {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .countdown-wrapper {
        gap: 0.6rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.8rem 0.5rem;
    }
    
    .countdown-number {
        font-size: 1.6rem;
    }
    
    .countdown-divider {
        font-size: 1.4rem;
    }
    
    .notify-form {
        flex-direction: column;
    }
    
    .btn-submit {
        padding: 1rem;
        justify-content: center;
    }
    
    .interactive-canvas {
        max-width: 280px;
    }
}
