* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(
        120deg,
        #d35f00 0%,
        #e57316 20%,
        #f08527 40%,
        #f59640 60%,
        #f0a555 80%,
        #ddb07a 100%
    );
    overflow: hidden;
    position: relative;
}

/* Capa de ruido/grano para textura */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Formas geométricas del fondo - lado izquierdo */
.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.07);
}

.shape-1 {
    width: 120px;
    height: 140px;
    top: 8%;
    left: 40px;
}

.shape-2 {
    width: 100px;
    height: 180px;
    top: 8%;
    left: 170px;
}

.shape-3 {
    width: 90px;
    height: 90px;
    top: 32%;
    left: 30px;
}

.shape-4 {
    width: 130px;
    height: 170px;
    top: 48%;
    left: 60px;
}

.shape-5 {
    width: 80px;
    height: 100px;
    top: 75%;
    left: 25px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 2;
    position: relative;
}

/* Logo grande */
.logo-container {
    margin-bottom: 40px;
}

.logo {
    height: 110px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Título principal - estilo bold italic con sombra 3D */
.title {
    color: white;
    font-family: "Poppins", sans-serif;
    font-size: 5.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.0;
    margin-bottom: 45px;
    font-style: italic;
    text-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.12),
        5px 5px 0px rgba(0, 0, 0, 0.08);
}

/* Loader container */
.loader {
    position: relative;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Rayos exteriores girando */
.rays-container {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate-rays 4s linear infinite;
}

.ray {
    position: absolute;
    width: 5px;
    height: 14px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 3px;
    left: 50%;
    top: 0;
    transform-origin: 50% 32.5px;
    margin-left: -2.5px;
}

.ray:nth-child(1) { transform: rotate(0deg); }
.ray:nth-child(2) { transform: rotate(30deg); }
.ray:nth-child(3) { transform: rotate(60deg); }
.ray:nth-child(4) { transform: rotate(90deg); }
.ray:nth-child(5) { transform: rotate(120deg); }
.ray:nth-child(6) { transform: rotate(150deg); }
.ray:nth-child(7) { transform: rotate(180deg); }
.ray:nth-child(8) { transform: rotate(210deg); }
.ray:nth-child(9) { transform: rotate(240deg); }
.ray:nth-child(10) { transform: rotate(270deg); }
.ray:nth-child(11) { transform: rotate(300deg); }
.ray:nth-child(12) { transform: rotate(330deg); }

/* Tuerca central - Material Icon */
.gear {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gear .material-icons {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes rotate-rays {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .logo {
        height: 55px;
    }
    
    .title {
        font-size: 3rem;
        margin-bottom: 35px;
    }
    
    .logo-container {
        margin-bottom: 30px;
    }
    
    .bg-shapes {
        transform: scale(0.6);
        transform-origin: top left;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 45px;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .loader {
        width: 50px;
        height: 50px;
    }
    
    .ray {
        height: 10px;
        width: 4px;
        transform-origin: 50% 25px;
    }
    
    .gear {
        width: 26px;
        height: 26px;
    }
    
    .gear .material-icons {
        font-size: 22px;
    }
}