/* ==========================================================================
   Componentes Reutilizables para el Tema THW
   MODIFICADO: v5.4.2 (Mobile Safe Preloader)
   - ADDED: Display none forzado en .preloader-hidden.
   ========================================================================== */

/* --- ESTILOS PARA LA SECCIÓN DE TESTIMONIOS --- */
.testimonios-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}
.testimonio-item {
    background-color: var(--thw-color-light-bg);
    border-left: 5px solid var(--thw-color-primary);
    padding: 25px 30px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}
.testimonio-content blockquote {
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    border: none;
}
.testimonio-author {
    margin-top: 20px;
    text-align: right;
}
.testimonio-author .author-name {
    font-weight: bold;
    color: #333;
    margin: 0;
}
.testimonio-author .author-country {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}


/* --- ESTILOS PARA EL SPINNER Y PRELOADER --- */

/* Contenedor principal del preloader. */
#thw-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Estilos explícitos para el tag 'lottie-player' */
lottie-player {
    display: block;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

/* Clase para ocultar (Añadida por JS) */
.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
    display: none !important; /* FORZAR ELIMINACIÓN VISUAL */
}

/* Spinner CSS (Fallback) */
.thw-spinner-3d {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    perspective: 800px;
    position: relative;
}

.thw-spinner-3d::before,
.thw-spinner-3d::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    animation: spin3D 1.5s ease-in-out infinite;
}

.thw-spinner-3d::before {
    border-top-color: var(--thw-color-primary);
    border-bottom-color: var(--thw-color-secondary);
}

.thw-spinner-3d::after {
    border-left-color: var(--thw-color-accent);
    border-right-color: var(--thw-color-primary);
    animation-duration: 2.5s;
    transform: rotate(45deg);
}

@keyframes spin3D {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}