/* ==========================================================================
   Estilos Globales y PrimeFaces para SW-Evolution (Brand Colors)
   ========================================================================== */

body {
    background-color: #f8fafc; /* Gris muy claro de fondo */
    color: #0f172a; /* Carbón/Negro para el texto principal */
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Sobreescribiendo Inputs de PrimeFaces */
body .ui-inputfield {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important; /* Gris de los bordes */
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    width: 100%;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    font-family: inherit;
    transition: all 0.2s ease-in-out;
}
body .ui-inputfield:focus {
    border-color: #ea580c !important; /* Naranja Corporativo en foco */
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2) !important;
}

/* Botón de PrimeFaces (100% Naranja SW-Evolution) */
body .ui-button {
    background: linear-gradient(to right, #f97316, #ea580c) !important; /* Naranja brillante a oscuro */
    border: none !important;
    padding: 1rem !important;
    border-radius: 9999px !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    color: white !important;
    transition: all 0.3s !important;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.2) !important;
}
body .ui-button:hover {
    box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.4) !important;
    transform: translateY(-2px);
}

/* Mensajes de notificación (Growl) */
body .ui-growl-item-container {
    background: #ffffff;
    border: 1px solid #ea580c;
    color: #0f172a;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Animaciones Avanzadas (Keyframes)
   ========================================================================== */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}
.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.animate-gradient {
    background-size: 200% auto;
    animation: gradient-shift 4s ease infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
.animate-float-1 {
    animation: float 6s ease-in-out infinite;
}
.animate-float-2 {
    animation: float 5s ease-in-out infinite 1s;
}
.animate-float-3 {
    animation: float 7s ease-in-out infinite 2s;
}

/* Glow del botón ahora es estrictamente Naranja */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(234, 88, 12, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(234, 88, 12, 0.6);
        transform: scale(1.02);
    }
}
.animate-glow {
    animation: glow-pulse 3s infinite;
}