/* index.css - Diseño Premium "En Obras" Humorado */

:root {
    --accent-color: #ffd700;
    --text-light: #ffffff;
    --dark-overlay: rgba(0, 0, 0, 0.6);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: url('/static/img/humorous_construction_site.png?v=9') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 19vh;
    /* Bajado un poco más para unirlo al resto */
    color: var(--text-light);
}

@media (max-width: 600px) {
    body {
        padding-top: 10vh;
        /* Menos margen en móviles */
    }
}

/* Capa de oscurecimiento para legibilidad */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Viñeta radial estática */
    background: radial-gradient(circle, transparent 25%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 3rem;
}

h1 {
    position: relative;
    font-size: 4rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: var(--accent-color);
    animation: text-breathe 5s ease-in-out infinite;
    /* Respiración en el título */
}

@keyframes text-breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

p {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-top: 13vh;
    /* Subido más para que esté cerca del título */
    margin-bottom: 0.5rem;
    opacity: 1;
    color: var(--accent-color);
    font-weight: 700;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        3px 3px 10px rgba(0, 0, 0, 0.8);
}

@media (max-width: 600px) {
    p {
        font-size: 1.1rem;
        margin-top: 5vh;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* El segundo párrafo (el correo) pegado al primero para que flote sobre la línea gris */
p+p {
    margin-top: 0;
}

.badge {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-color);
    color: #000;
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    animation: pulse 5s infinite;
    /* Recuperamos el pulso de luz original */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 217, 0, 0.712);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Zzz voladoras acompasadas */
.zzz-container {
    position: absolute;
    left: 50%;
    margin-left: 12px;
    top: 8rem;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    pointer-events: none;
    z-index: 1;
}

.zzz {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    /* Letra fina */
    color: #bdbba0;
    /* Blanco roto por defecto */
    text-shadow: none;
    /* Sin sombra para que pasen desapercibidas */
    opacity: 0.02;
    /* Casi invisibles en reposo 0.02*/
    transform-origin: bottom left;
    /* Que crezcan de abajo hacia arriba */
}

/* Z mayúscula primero (con el color amarillo) */
.z1 {
    font-size: 1.25rem;
    color: var(--accent-color);
    animation: zzz-wave-z1 5s ease-in-out infinite;
}

/* z mediana en medio */
.z2 {
    font-size: 0.9rem;
    color: var(--accent-color);
    animation: zzz-wave-z2 5s ease-in-out infinite;
}

/* z pequeña a la derecha */
.z3 {
    font-size: 0.65rem;
    color: var(--accent-color);
    animation: zzz-wave-z3 5s ease-in-out infinite;
}

/* --- KEYFRAMES DE OLA (IZQ -> DER -> IZQ) --- */
@keyframes zzz-wave-z1 {

    0%,
    100% {
        transform: scale(1.6);
        opacity: 0.4;
        /* Máx opacidad 20% */
    }

    25%,
    50%,
    75% {
        transform: scale(1);
        opacity: 0.02;
    }
}

@keyframes zzz-wave-z2 {

    0%,
    50%,
    100% {
        transform: scale(1);
        opacity: 0.02;
    }

    25%,
    75% {
        transform: scale(1.6);
        opacity: 0.4;
    }
}

@keyframes zzz-wave-z3 {

    0%,
    25%,
    75%,
    100% {
        transform: scale(1);
        opacity: 0.02;
    }

    50% {
        transform: scale(1.6);
        opacity: 0.4;
    }
}

@media (max-width: 600px) {
    .zzz-container {
        top: 7rem;
        margin-left: 9px;
    }

    .z1 {
        font-size: 1rem;
    }

    .z2 {
        font-size: 0.75rem;
    }

    .z3 {
        font-size: 0.55rem;
    }
}