/* ==========================================================================
   1. Reset General e Inicialización
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body {
    min-height: 100vh;
    background-color: #020617;
    background-image: url('/images/fondo.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    padding: 40px;
    position: relative;
}

/* ==========================================================================
   2. Estructura y Alineación Estricta a la Derecha
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end; /* Mueve todo el bloque a la derecha */
}

.content-box {
    width: 100%;
    max-width: 550px;
    text-align: left;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 20px;
    border-radius: 16px;
    /* En escritorio no requiere fondo oscuro porque el fondo webp ya es oscuro allí */
    background: transparent; 
}

/* ==========================================================================
   3. Círculo de Doble Color Estilo Segmentado
   ========================================================================== */
.dual-loader {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 30px;
    animation: master-spin 2.5s linear infinite;
}

.ring-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 9px solid #f1f5f9;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(255,255,255,0.1);
}

.segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 9px solid transparent;
    border-radius: 50%;
}

.segment-gold {
    border-top: 9px solid #fbbf24; 
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
}

.segment-cyan {
    border-right: 9px solid #38bdf8;
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.4));
}

@keyframes master-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   4. Tipografía y Textos (Mejora de Contraste)
   ========================================================================== */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Sombra para despegarlo del fondo */
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e2e8f0; /* Un tono más blanco y limpio */
    margin-bottom: 60px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

p strong {
    color: #ffffff;
}

/* ==========================================================================
   5. Pie de Página y Créditos Unificados
   ========================================================================== */
.footer-container {
    width: 100%;
    text-align: left;
    margin-top: 40px; /* Separa todo el bloque del texto principal de la web */
}

.footer-client {
    font-size: 0.9rem !important;
    color: rgba(226, 232, 240, 0.8) !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important; /* Le adecúa el aire a tu firma abajo */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}

.footer-credits {
    font-size: 0.75rem; /* Un punto más pequeña para que sea muy sutil */
    color: rgba(226, 232, 240, 0.5); /* Más tenue que los derechos del cliente */
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.footer-credits a {
    color: #ffffff !important; /* Tu marca en blanco puro */
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: #38bdf8 !important; /* Iluminación celeste al pasar el cursor */
    text-decoration: underline;
}

/* ==========================================================================
   6. Adaptabilidad para Móviles y Tablets (Filtro Anti-Brillo)
   ========================================================================== */
@media (max-width: 992px) {
    body {
        padding: 20px;
    }
    
    .container {
        justify-content: center; /* Centra todo el bloque en móviles */
    }
    
    .content-box {
        text-align: center;
        align-items: center;
        max-width: 500px;
        padding: 35px 25px;
        /* CAPA DE PROTECCIÓN: Crea un contenedor oscuro esmerilado detrás del texto */
        background: rgba(15, 23, 42, 0.55); 
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    h1 {
        font-size: 2.6rem;
    }

    p {
        margin-bottom: 35px;
        font-size: 1.15rem;
    }

    .footer-container {
        text-align: center;
    }

    .footer-client {
        color: rgba(255, 255, 255, 0.9) !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.1rem;
    }
    
    p {
        font-size: 1.05rem;
    }
    
    .dual-loader {
        width: 76px;
        height: 76px;
        margin-bottom: 20px;
    }
    
    .ring-bg, .segment {
        border-width: 8px;
    }
    
    .segment-gold { border-top-width: 8px; }
    .segment-cyan { border-right-width: 8px; }
}