:root {
    --primary: #1e3a8a;
    --accent: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-color: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    /* Subtle dot pattern for modern feel */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 30px 30px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden; /* Evitar scroll horizontal, permitir vertical si no cabe */
    padding: 1rem;
}

.construction-container {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 10px 15px -3px rgba(0,0,0,0.05);
    padding: 5rem 3rem 4rem;
    text-align: center;
    max-width: 1100px; /* Ampliado para acomodar el logo de 950px */
    width: 90%;
    position: relative;
    border: 1px solid rgba(255,255,255,0.8);
}

.animation-wrapper {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.logo {
    max-width: 950px;
    width: 100%;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
    /* Float animation */
    animation: float-logo 6s infinite ease-in-out;
}

@keyframes float-logo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.worker {
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: 180px; /* Ajuste fino un poco más a la izquierda */
    height: 350px;
    z-index: 5; /* En primer plano, encima del logo (2) y las burbujas (4) */
    /* Animación rápida simulando tallar en el mismo lugar */
    animation: scrub 1.2s infinite alternate ease-in-out;
    transform-origin: bottom center;
}

@keyframes scrub {
    0% { transform: rotate(-2deg) translateY(0px); }
    25% { transform: rotate(3deg) translateY(-3px) scale(1.02); }
    50% { transform: rotate(-3deg) translateY(2px) scale(0.98); }
    75% { transform: rotate(2deg) translateY(-2px) scale(1.01); }
    100% { transform: rotate(-1deg) translateY(1px) scale(0.99); }
}

/* Bubbles */
.bubbles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    z-index: 4;
    pointer-events: none;
}

.bubble {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(200, 220, 255, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(255,255,255,0.6), 0 5px 10px rgba(0,0,0,0.05);
    opacity: 0;
    animation: float-bubble 4s infinite ease-in;
}

/* Different sizes, positions and delays for bubbles */
.b1 { width: 35px; height: 35px; left: 15%; bottom: 10%; animation-delay: 0s; }
.b2 { width: 60px; height: 60px; left: 35%; bottom: 25%; animation-delay: 1.2s; }
.b3 { width: 25px; height: 25px; left: 55%; bottom: 5%; animation-delay: 2.5s; }
.b4 { width: 45px; height: 45px; left: 75%; bottom: 15%; animation-delay: 0.8s; }
.b5 { width: 20px; height: 20px; left: 45%; bottom: 35%; animation-delay: 1.8s; }
.b6 { width: 55px; height: 55px; left: 25%; bottom: -5%; animation-delay: 3s; }

@keyframes float-bubble {
    0% { opacity: 0; transform: translateY(20px) scale(0.5); }
    20% { opacity: 0.8; }
    80% { opacity: 0.5; }
    100% { opacity: 0; transform: translateY(-150px) scale(1.3); }
}

.content h1 {
    font-size: 4rem;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divider {
    height: 5px;
    width: 80px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    margin: 0 auto 2rem;
    border-radius: 3px;
}

.content p {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Loading Bar */
.loading-bar-container {
    width: 100%;
    max-width: 400px;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    margin: 3rem auto 0;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1e3a8a, #3b82f6);
    background-size: 200% 100%;
    border-radius: 5px;
    width: 65%;
    animation: loading-stripe 2s infinite linear;
}

@keyframes loading-stripe {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .construction-container { padding: 2rem 1.5rem; } /* Menos espacio arriba y a los lados */
    .content h1 { font-size: 2.5rem; margin-bottom: 1rem; }
    .content p { font-size: 1.1rem; }
    
    /* Reposicionamiento del trabajador usando left % para garantizar que quede a la derecha */
    .worker { 
        height: 140px; 
        left: 75%; /* Colocado a la derecha */
        margin-left: 0; 
        transform: translateX(-50%); /* Centrado sobre su punto 75% */
        right: auto;
        bottom: -15px;
    }
    
    /* El logo en móviles debe ser ajustado */
    .logo { max-width: 100%; }
    
    .animation-wrapper { height: 180px; margin-bottom: 1.5rem; }
    .bubbles { width: 100%; height: 100%; }
}
