/* =========================================
   EXTRACTA — Custom CSS
   Solo lo que Bootstrap no cubre:
   colores de marca, animaciones, detalles UI
   ========================================= */

/* --- Variables de color de marca --- */
:root {
    --color-orange:      #F5A623;
    --color-orange-dark: #E8950F;
    --color-green:       #22C55E;
    --color-green-dark:  #16A34A;
    --color-bg:          #F3F4F6;
    --color-dark:        #111827;
}

/* --- Tipografía global --- */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: #111827;
}

/* --- Botones de marca --- */
.btn-orange {
    background-color: var(--color-orange);
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.4rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn-orange:hover  { background-color: var(--color-orange-dark); color: #fff; }
.btn-orange:active { transform: scale(0.97); }

.btn-green {
    background-color: var(--color-green);
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.4rem;
    transition: background-color 0.2s ease;
}
.btn-green:hover { background-color: var(--color-green-dark); color: #fff; }

.btn-outline-dark-custom {
    background-color: #ffffff;
    color: #111827;
    font-weight: 600;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    padding: 0.65rem 1.4rem;
    transition: border-color 0.2s ease;
}
.btn-outline-dark-custom:hover { border-color: #9ca3af; color: #111827; }

/* --- Badge de sección (ej: "FUNCIONALIDADES") --- */
.section-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 0.75rem;
}

/* --- Sección fondo gris claro --- */
.section-gray { background-color: var(--color-bg); }

/* --- Hero badge (pill naranja claro) --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-orange);
    margin-bottom: 1.5rem;
}

/* --- Tarjeta demo del hero --- */
.demo-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
}
.demo-card .demo-row {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.demo-card .file-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.demo-card .file-icon.pdf  { background-color: #fef2f2; }
.demo-card .file-icon.xlsx { background-color: #f0fdf4; }
.demo-card .file-name  { font-size: 0.85rem; font-weight: 600; color: #111827; }
.demo-card .file-meta  { font-size: 0.75rem; color: #9ca3af; }
.demo-card .preview-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 0.75rem 1.25rem 0.4rem;
}

/* Spinner de procesamiento */
.processing-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #f3f4f6;
    border-top-color: var(--color-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.progress-bar-orange {
    height: 5px;
    background-color: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}
.progress-bar-orange .fill {
    width: 60%;
    height: 100%;
    background-color: var(--color-orange);
    border-radius: 999px;
    animation: pulse-width 1.5s ease-in-out infinite;
}
@keyframes pulse-width {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* --- Tarjetas de funcionalidades --- */
.feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: box-shadow 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.feature-card .icon-wrap {
    width: 42px;
    height: 42px;
    background-color: rgba(245, 166, 35, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* --- Pasos (How it works) --- */
.step-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.step-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-color: var(--color-green);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Stats hero --- */
.stat-divider {
    width: 1px;
    height: 36px;
    background-color: #d1d5db;
}

/* --- Sección CTA oscura --- */
.cta-section {
    background-color: var(--color-dark);
}

/* --- Tablas en demo card --- */
.demo-table { width: 100%; font-size: 0.8rem; border-collapse: collapse; }
.demo-table th { color: #9ca3af; font-weight: 600; padding-bottom: 0.5rem; font-size: 0.7rem; }
.demo-table td { padding: 0.45rem 0; color: #374151; border-top: 1px solid #f9fafb; }
.demo-table .amount-positive { color: var(--color-green);  font-weight: 600; }
.demo-table .amount-negative { color: #ef4444; font-weight: 600; }
.demo-table .amount-balance  { color: #6b7280; }

/* --- Navbar --- */
.navbar-brand-text { font-weight: 800; font-size: 1.1rem; color: #111827; }
.navbar-brand-icon {
    width: 32px;
    height: 32px;
    background-color: var(--color-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-link-custom {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563 !important;
    transition: color 0.15s ease;
}
.nav-link-custom:hover { color: #111827 !important; }

/* --- Footer links --- */
.footer-link:hover {
    color: #ffffff !important;
}

/* --- FAQ Accordion --- */
.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    border-color: rgba(245, 166, 35, 0.35);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.1rem 1.4rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.faq-question:hover { color: var(--color-orange); }
.faq-question[aria-expanded="true"] { color: var(--color-orange); }
.faq-icon {
    flex-shrink: 0;
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1.4rem 1.2rem;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.7;

}


/* --- Página Sobre Extracta --- */
.sobre-page {
    max-width: 720px;
    padding: 80px 24px;
}
.sobre-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
}
.sobre-page .sobre-text {
    font-size: 1.05rem;
    color: #6b7280;
    line-height: 1.8;
}
.sobre-contact-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
}
.sobre-contact-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.sobre-contact-card p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 16px;
}
.sobre-contact-card a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-orange);
    text-decoration: none;
}
.sobre-back-link {
    font-size: 0.9rem;
    color: #6b7280;
    text-decoration: none;
}

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
}

.faq-body-inner p {
    margin: 0;
    padding: 0 1.5rem 1.25rem;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.75;
    border-top: 1px solid #f3f4f6;
}