/* ================================================
   Estilos Personalizados - AbiSoft (Tema Claro Moderno)
   ================================================ */

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(43, 111, 222, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(43, 111, 222, 0.35);
    }
}

/* Clases de animación */
.animate-fadeIn {
    animation: fadeIn 0.5s ease-out both;
}

.animate-slideUp {
    animation: slideUp 0.6s ease-out both;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ---------- Selección de texto ---------- */
::selection {
    background: rgba(43, 111, 222, 0.18);
    color: #1a202c;
}

/* ---------- Focus ---------- */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid rgba(43, 111, 222, 0.5);
    outline-offset: 2px;
}

/* ---------- Clases utilitarias ---------- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Gradiente de texto (azul AbiSoft) */
.text-gradient {
    background: linear-gradient(to right, #2b6fde, #4f8ff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Cards ---------- */
.card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #eef2f6;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
    border-color: #dbe4ef;
    transform: translateY(-3px);
}

/* ---------- Hover lift ---------- */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.1);
}

/* ---------- Botones base ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2b6fde, #1d5fce);
    color: #ffffff;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #245fca, #1852b8);
    box-shadow: 0 10px 24px rgba(43, 111, 222, 0.3);
    transform: translateY(-1px);
}

/* ---------- Badges / chips ---------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: #eef4ff;
    color: #2b6fde;
}

/* ---------- Glass / blur ---------- */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ---------- Checkbox ---------- */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    background-color: #2b6fde;
    border-color: #2b6fde;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- Loading spinner ---------- */
.spinner {
    border: 2px solid rgba(43, 111, 222, 0.15);
    border-left-color: #2b6fde;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Transiciones suaves ---------- */
a, button, input, select, textarea {
    transition: all 0.2s ease;
}

/* ---------- Auxiliares responsive ---------- */
@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 641px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ---------- Print ---------- */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
}
