/* --- Reset y Estilos Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    overflow: hidden; /* Evita scroll durante la carga */
}

/* --- Loader: Simulación Impresión 3D --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.printer-nozzle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #333; /* Color de la boquilla */
    position: relative;
    animation: nozzleMove 2s ease-in-out infinite;
}

.printer-nozzle::after {
    content: '';
    position: absolute;
    top: -35px;
    left: -5px;
    width: 10px;
    height: 10px;
    background-color: #ff9900; /* Color del filamento */
    border-radius: 50%;
}

.print-bed {
    width: 200px;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.print-object {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    background-color: #ff9900; /* Color del material impreso */
    animation: printGrow 2s ease-in-out infinite;
    border-radius: 2px 2px 0 0;
}

.loader-text {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Animaciones */
@keyframes nozzleMove {
    0%, 100% { transform: translateX(-50px) translateY(0); }
    50% { transform: translateX(50px) translateY(-5px); }
}

@keyframes printGrow {
    0% { width: 0; height: 0; opacity: 0; }
    20% { width: 20px; height: 5px; opacity: 1; }
    50% { width: 60px; height: 20px; }
    80% { width: 100px; height: 40px; opacity: 1; }
    100% { width: 120px; height: 60px; opacity: 0; } /* Desaparece al final */
}

/* --- Contenido Principal --- */
.container {
    display: none; /* Oculto por defecto, se muestra con JS */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    flex-grow: 1; /* Ocupa el espacio disponible */
}

.logo-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.main-logo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.02);
}

.tagline {
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
}

/* --- Footer y Redes Sociales --- */
.site-footer {
    width: 100%;
    padding: 2rem 0;
    background-color: #fafafa;
    border-top: 1px solid #eee;
    margin-top: auto; /* Empuja el footer al final */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: #ff9900; /* Color destacado al pasar el ratón */
    transform: translateY(-2px);
}

/* --- SEO & Helpers --- */
.hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Responsivo --- */
@media (max-width: 480px) {
    body {
        overflow-y: auto; /* Permite scroll en móviles si es necesario */
    }

    .logo-wrapper {
        max-width: 280px;
    }
    
    .tagline {
        font-size: 1rem;
    }

    .social-links {
        gap: 1rem;
        padding: 0 10px;
    }
    
    .print-bed {
        width: 150px;
    }
}

