* {
    font-family: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, sans-serif;
}

.modal-rouded {
    border-radius: 16px; !important;
}


/*Laoding Spinner*/

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.loading-overlay.show {
    display: flex;
}

.loading-card {
    background: white;
    padding: 2rem 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: slideUp 0.3s ease-out;
    position: relative;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e3f2fd;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.small-loading-spinner {
    width: 25px;
    height: 25px;
    border: 4px solid #e3f2fd;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #424242;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: #2196F3;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-close {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #757575;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.loading-close:hover {
    background: #f5f5f5;
    border-color: #bdbdbd;
    color: #424242;
}

.loading-close:active {
    transform: scale(0.98);
}


.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

/* TOAST*/

.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.toast-container.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-card {
    background: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    max-width: 500px;
}

.toast-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast-text {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    flex: 1;
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-icon.success {
    color: #4CAF50;
}

.toast-icon.error {
    color: #f44336;
}

.toast-card.success {
    background: #2e7d32;
}

.toast-card.error {
    background: #c62828;
}

/* END TOAST*/

/* FILE INPUT */

.file-input {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
}

/* Asegurar que la parte de texto (nombres) tenga corte con elipsis */
.file-input input[type="file"] {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    /* algunos navegadores renderizan botón + texto en la misma caja; esto ayuda con la apariencia */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

/* Estilos para el botón del selector de archivos (estándar y webkit) */
.file-input input[type="file"]::file-selector-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    margin-right: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* WebKit / Blink (Chrome, Safari) */
.file-input input[type="file"]::-webkit-file-upload-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    margin-right: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Edge / IE fallback */
.file-input input[type="file"]::-ms-browse {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Opcional: cambio de foco para accesibilidad */
.file-input input[type="file"]:focus {
    outline: 2px solid rgba(0,123,255,0.25);
    outline-offset: 2px;
}

/* END FILE INPUT */

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    z-index: 10;
}


/* sort Table */

th.sortable{

    cursor: pointer;

}

th.sortable::after {
    content: '⇅';
    margin-left: 8px;
    color: #9ca3af;
    font-size: 12px;
}

th.sorted-asc::after {
    content: '↑';
    color: #3b82f6;
}

th.sorted-desc::after {
    content: '↓';
    color: #3b82f6;
}

.status-applied {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #10b981;
    color: white;
    font-weight: bold;
}

.status-applied::before {
    content: '✓';
}

.cellViewAction {
    cursor: pointer;
}

/* Notification Badge */

.notification-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.55rem;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Welcome Line Animation */

@keyframes expandLine {
    0% { width: 40px; }
    50% { width: 80px; }
    100% { width: 40px; }
}

.welcome-line {
    height: 3px;
    background: linear-gradient(90deg, #4285f4, #34a853);
    margin: 0 auto 1.2rem auto;
    border-radius: 2px;
    animation: expandLine 3s ease-in-out infinite;
}

/* File Upload Component */
.ar-file-upload-modern {
    margin-bottom: 1.5rem;
}

.ar-file-upload-modern label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.ar-file-drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px 15px !important;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fafafa;
    position: relative;
    min-height: 60px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ar-file-drop-zone:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.ar-file-drop-zone.ar-dragover {
    border-color: #3b82f6;
    background-color: #dbeafe;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.ar-file-drop-zone svg {
    width: 48px;
    height: 48px;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.ar-file-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.ar-file-info {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.ar-file-info strong {
    color: #374151;
}

.ar-file-types {
    color: #9ca3af;
    font-size: 0.75rem;
}

.ar-file-drop-zone.ar-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.ar-error-message {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    background-color: #fee2e2;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #fecaca;
}

.ar-file-drop-zone.ar-file-selected-state {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.ar-file-drop-zone.ar-file-selected-state svg {
    color: #10b981;
}

.ar-file-drop-zone.ar-file-selected-state .ar-file-info {
    color: #065f46;
}

.ar-file-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    margin-left: 8px;
    border: 1px solid #ef4444;
    border-radius: 50%;
    background: #fff;
    color: #ef4444;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.ar-file-clear-btn:hover {
    background: #ef4444;
    color: #fff;
}

@media (max-width: 640px) {
    .ar-file-drop-zone {
        padding: 1.5rem;
    }

    .ar-file-drop-zone svg {
        width: 36px;
        height: 36px;
    }
}

/* Variant rows in purchase order */
.variant-row td:first-child {
    border-left: 3px solid #2E75B6;
}
.variant-row.group-even {
    background-color: #F5F9FF;
}
.variant-row.group-odd {
    background-color: #FFFFFF;
}
.variant-toggle {
    cursor: pointer;
    margin-right: 5px;
}

/* ===== LANDING PAGE ===== */

/* Animations */
.landing-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.landing-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.landing-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.landing-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.landing-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.landing-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.landing-scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.landing-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children .landing-fade-in:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .landing-fade-in:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .landing-fade-in:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .landing-fade-in:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .landing-fade-in:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .landing-fade-in:nth-child(6) { transition-delay: 0.6s; }

/* Hero */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.landing-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(20,20,20,0.85) 0%, rgba(40,40,40,0.6) 50%, rgba(255,206,102,0.3) 100%);
    z-index: 1;
}
.landing-hero-content {
    position: relative;
    z-index: 2;
}
.landing-hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    font-family: 'Roboto', sans-serif;
}
.landing-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    opacity: 0.9;
}
.landing-hero-cta {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid #ffce66;
    color: #ffce66;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    margin-top: 1.5rem;
}
.landing-hero-cta:hover {
    background: #ffce66;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,206,102,0.3);
    text-decoration: none;
}

/* Floating particles */
.landing-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,206,102,0.15);
    animation: landing-float 20s infinite ease-in-out;
    z-index: 0;
}
.landing-particle:nth-child(1) { width: 300px; height: 300px; top: -50px; right: -100px; animation-delay: 0s; }
.landing-particle:nth-child(2) { width: 200px; height: 200px; bottom: -50px; left: -50px; animation-delay: -5s; }
.landing-particle:nth-child(3) { width: 150px; height: 150px; top: 40%; right: 20%; animation-delay: -10s; }
@keyframes landing-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(10px, -10px) rotate(3deg); }
}

/* Section styles */
.landing-section {
    padding: 100px 0;
    position: relative;
}
.landing-section-alt {
    background: #f8f9fa;
}
.landing-section-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}
.landing-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
}
.landing-section-line {
    width: 60px;
    height: 4px;
    background: #ffce66;
    border-radius: 2px;
    margin-bottom: 2rem;
}
.landing-section-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    font-family: 'Roboto', sans-serif;
}

/* Feature cards */
.landing-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}
.landing-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffce66, #f0a500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.landing-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.landing-feature-card:hover::before {
    transform: scaleX(1);
}
.landing-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    color: #f0a500;
}
.landing-feature-card h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}
.landing-feature-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 0;
}

/* Module rows */
.landing-module-img {
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
    width: 100%;
    max-width: 480px;
}
.landing-module-img:hover {
    transform: scale(1.03);
}
.landing-module-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    color: #b8860b;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.landing-module-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
}
.landing-section-dark .landing-module-title {
    color: #fff;
}

/* Contact bar */
.landing-contact-bar {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 2.5rem 0;
}
.landing-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}
.landing-contact-item i {
    color: #ffce66;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}
.landing-contact-item a {
    color: #ffce66;
    text-decoration: none;
    transition: opacity 0.3s;
}
.landing-contact-item a:hover {
    opacity: 0.8;
    color: #ffce66;
}

/* Reports grid */
.landing-report-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}
.landing-report-item:hover {
    background: rgba(255,206,102,0.1);
    transform: translateX(8px);
    border-color: rgba(255,206,102,0.2);
}
.landing-report-item i {
    color: #ffce66;
    font-size: 0.85rem;
}
.landing-report-item span {
    font-size: 0.95rem;
    font-weight: 400;
}

/* KPI counter */
.landing-kpi-item {
    text-align: center;
    padding: 1.5rem;
}
.landing-kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,206,102,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #ffce66;
    font-size: 1.2rem;
}
.landing-kpi-name {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Footer */
.landing-footer {
    background: #0d0d1a;
    padding: 3rem 0;
    color: rgba(255,255,255,0.5);
}
.landing-footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.landing-footer-brand span {
    color: #ffce66;
}

/* Navbar */
.landing-nav {
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}
.landing-nav.scrolled {
    background: rgba(26,26,46,0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .landing-hero-title { font-size: 2.5rem; }
    .landing-hero-subtitle { font-size: 1rem; }
    .landing-section { padding: 60px 0; }
    .landing-section-title { font-size: 1.8rem; }
    .landing-module-title { font-size: 1.5rem; }
    .landing-module-img { max-width: 100%; margin-bottom: 2rem; }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }
