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

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    background: url('/img/404.png') center center/cover, #8B1538;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

body.maintenance {
    background: url('fondo.png') center center/cover, #8B1538;
    background-attachment: fixed;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 600px;
    position: relative;
    top: auto;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: -8rem;
}

.content {
    background: transparent;
    padding: 2rem 1rem;
    border-radius: 20px;
    max-width: 100%;
    box-shadow: none;
    backdrop-filter: none;
}

.icon {
    font-size: clamp(3rem, 8vw, 5rem);
    color: #B8860B;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: clamp(60px, 15vw, 100px);
}

.maintenance .icon {
    color: #B8860B;
}

h1 {
    font-size: clamp(6rem, 6vw, 2.5rem);
    color: #9D2449;
    margin-bottom: 1rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

p {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 2rem 0 1rem;
}

.progress {
    background: #B8860B;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: pulse 2s infinite;
}

.progress-text {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
}

.time-estimate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(218, 165, 32, 0.1);
    padding: clamp(0.8rem, 3vw, 1rem);
    border-radius: 10px;
    margin: 2rem 0;
    color: #B8860B;
    font-weight: 600;
    font-size: clamp(0.8rem, 3.5vw, 1rem);
}

.contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.contact a {
    color: #8B1538;
    text-decoration: none;
    font-weight: 800;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #000;
}

.maintenance .contact a {
    color: #DAA520;
}

.maintenance .contact a:hover {
    color: #000;
}

/* Media Queries para diferentes dispositivos */

/* Tablets y pantallas medianas (768px - 1024px) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    body, body.maintenance {
        background: url('fondo.png') center center/cover, #8B1538;
        background-attachment: scroll;
        padding: 0.8rem;
    }
    
    .container {
        max-width: 600px;
        margin-top: -8rem;
        width: auto;
    }
    
    .content {
        padding: 1.8rem 1.2rem;
    }
}

/* Dispositivos móviles estándar (481px - 768px) */
@media screen and (max-width: 768px) and (min-width: 481px) {
    body, body.maintenance {
        background: url('fondo_movil.png') center center/cover, #8B1538;
        background-attachment: scroll;
        padding: 0.6rem;
    }
    
    .container {
        max-width: 95%;
        margin-top: -2rem;
    }
    
    .content {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .progress-bar {
        margin: 1.5rem 0 0.8rem;
    }
    
    .time-estimate {
        flex-direction: column;
        gap: 0.3rem;
        margin: 1.5rem 0;
    }
    
    .contact {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

/* Dispositivos móviles con pantallas alargadas (hasta 480px) */
@media screen and (max-width: 480px) {
    body, body.maintenance {
        background: url('fondo_movil2.png') center center/cover, #8B1538;
        background-attachment: scroll;
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 10vh;
    }
    
    .container {
        max-width: 98%;
        margin-top: calc(-2rem + 12vh);
    }
    
    .content {
        padding: 1.2rem 0.8rem;
        border-radius: 12px;
    }
    
    .icon {
        margin-bottom: 1rem;
    }
    
    h1 {
        margin-bottom: 0.8rem;
    }
    
    p {
        margin-bottom: 1.2rem;
    }
    
    .progress-bar {
        margin: 1.2rem 0 0.6rem;
        height: 6px;
    }
    
    .progress-text {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .time-estimate {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.8rem;
        margin: 1.2rem 0;
    }
    
    .contact {
        margin-top: 1.2rem;
        padding-top: 1.2rem;
    }
}

/* Pantallas muy pequeñas (hasta 320px) */
@media screen and (max-width: 320px) {
    body, body.maintenance {
        padding: 0.3rem;
        padding-top: 8vh;
    }
    
    .container {
        max-width: 100%;
    }
    
    .content {
        padding: 1rem 0.6rem;
        border-radius: 10px;
    }
    
    .progress-bar {
        height: 5px;
    }
    
    .time-estimate {
        padding: 0.6rem;
    }
}

/* Pantallas grandes (1200px en adelante) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 600px;
        margin-top: -8rem;
    }
    
    .content {
        padding: 2.5rem 2rem;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
