:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2C3E50;
    --accent-red: #E74C3C; /* Ajustado al rojo del logo */
    --accent-yellow: #FFD700; /* Amarillo construcción */
    --text-light: #ffffff;
    --text-gray: #cccccc;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Fondo con patrón sutil */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.03) 50%, transparent 52%);
    background-size: 60px 60px;
    z-index: -1;
}

/* Franja de construcción animada superior */
.construction-stripes {
    height: 10px;
    width: 100%;
    background: repeating-linear-gradient(
        45deg,
        var(--accent-yellow),
        var(--accent-yellow) 20px,
        var(--primary-dark) 20px,
        var(--primary-dark) 40px
    );
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.main-header {
    padding: 2rem;
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

.logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
    margin-bottom: 2rem;
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.highlight {
    color: var(--accent-red);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(255, 215, 0, 0.2);
    z-index: -1;
    transform: skewX(-20deg);
}

p {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* Barra de progreso */
.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    animation: fadeInUp 1s ease-out 0.9s backwards;
}

.progress-fill {
    height: 100%;
    width: 30%;
    background: var(--accent-yellow);
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 0;
    animation: progressIndeterminate 2s infinite ease-in-out;
}

/* Imagen de la máquina */
.machine-container {
    position: absolute;
    bottom: 0;
    right: -5%;
    width: 60%;
    max-width: 800px;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
    animation: slideInRight 1.5s ease-out 0.5s backwards;
}

.excavator-img {
    width: 100%;
    height: auto;
    display: block;
    mask-image: linear-gradient(to top, black 50%, transparent 100%); /* Desvanecer un poco arriba si es necesario */
    -webkit-mask-image: linear-gradient(to top, black 50%, transparent 100%);
}

.main-footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0,0,0,0.2);
    font-size: 0.9rem;
    color: var(--text-gray);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Animaciones */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 0.6; transform: translateX(0); }
}

@keyframes progressIndeterminate {
    0% { left: -30%; width: 30%; }
    50% { width: 50%; }
    100% { left: 100%; width: 30%; }
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    p { font-size: 1.1rem; }
    .machine-container {
        width: 90%;
        right: -10%;
        opacity: 0.4;
    }
}
