:root {
    --primary-color: #E30613; /* Official PROMPERÚ Red */
    --primary-light: #ffebec;
    --primary-glow: rgba(227, 6, 19, 0.05);
    --secondary-color: #1e293b;
    --text-color: #334155;
    --text-muted: #64748b;
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(227, 6, 19, 0.08);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-heading: 'bree_perubold', 'Bree Peru Lt', system-ui, -apple-system, sans-serif;
    --font-body: 'Bree Peru Lt', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 20px 20px;
    line-height: 1.6;
    min-height: 100dvh;
    box-sizing: border-box;
}

/* Background Decorations (Isolates glows and grid to prevent page scroll) */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -10;
    pointer-events: none;
}

.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(227, 6, 19, 0.015) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(227, 6, 19, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
}

.glow-top, .glow-bottom {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(255,255,255,0) 70%);
}

.glow-top {
    top: -200px;
    left: -200px;
}

.glow-bottom {
    bottom: -200px;
    right: -200px;
}

/* Main Container */
.maintenance-container {
    width: 100%;
    max-width: 680px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 40px 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Top colored accent line */
.maintenance-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #E30613 0%, #ff5252 50%, #E30613 100%);
}

/* Logo container */
.logo-container {
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out;
}

.logo-container img {
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.03);
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(227, 6, 19, 0.15);
    animation: pulseBadge 2s infinite ease-in-out;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: ripple 1.6s infinite ease-in-out;
    top: 0;
    left: 0;
}

/* Professional Maintenance Illustration */
.maintenance-img {
    max-width: 260px;
    width: 100%;
    height: auto;
    display: block;
    margin: 10px auto 30px auto;
    border-radius: var(--radius-md);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    filter: drop-shadow(0 15px 30px rgba(227, 6, 19, 0.06));
}

.maintenance-img:hover {
    transform: translateY(-4px) scale(1.02);
    filter: drop-shadow(0 20px 40px rgba(227, 6, 19, 0.1));
}

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.description {
    font-size: 17px;
    color: var(--text-color);
    max-width: 540px;
    margin: 0 auto 0 auto;
    line-height: 1.7;
}

/* Target date capsule */
.date-highlight {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border: 1px solid rgba(227, 6, 19, 0.1);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.date-highlight:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(227, 6, 19, 0.2);
}

.date-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: bold;
    letter-spacing: 1px;
}

.date-value {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

.countdown-box {
    min-width: 80px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.countdown-box:hover {
    transform: translateY(-3px);
}

.countdown-num {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 600;
}

/* Action Info / Help cards */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 30px;
    margin-top: 15px;
}

.info-card {
    background: rgba(248, 250, 252, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: left;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-card:hover {
    background: #ffffff;
    border-color: rgba(227, 6, 19, 0.15);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 16px;
}

.info-title {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--secondary-color);
    font-weight: bold;
}

.info-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Footer style */
footer {
    margin-top: 16px;
    margin-bottom: 4px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    animation: fadeIn 1.2s ease-out;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulseBadge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes rotateCW {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateCCW {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes pulseWave {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.3;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    
    .maintenance-container {
        padding: 35px 20px;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .description {
        font-size: 15px;
    }
    
    .info-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-box {
        min-width: 65px;
        padding: 10px 4px;
    }
    
    .countdown-num {
        font-size: 26px;
    }
}
