﻿:root {
    --tafi-primary: #1F3A5F;
    --tafi-secondary: #2C5282;
    --tafi-dark: #2D3748;
    --tafi-light: #EDF2F7;
    --tafi-gold: #C9A227;
    --tafi-white: #FFFFFF;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f8fafc;
    color: var(--tafi-dark);
}

.tafi-navbar {
    background: linear-gradient(90deg, var(--tafi-primary), var(--tafi-secondary));
}

.hero-tafi {
    background: linear-gradient(135deg, rgba(31,58,95,.95), rgba(44,82,130,.90));
    color: #fff;
    padding: 90px 0;
}

    .hero-tafi h1 {
        font-size: 2.6rem;
        font-weight: 700;
    }

    .hero-tafi p {
        font-size: 1.08rem;
        opacity: .95;
    }

.section-title {
    font-weight: 700;
    color: var(--tafi-primary);
    margin-bottom: 1rem;
}

.card-tafi {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.07);
    transition: all .25s ease;
    height: 100%;
}

    .card-tafi:hover {
        transform: translateY(-5px);
    }

.tafi-footer {
    background-color: var(--tafi-primary);
    color: white;
}

.btn-tafi {
    background-color: var(--tafi-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
}

    .btn-tafi:hover {
        background-color: var(--tafi-secondary);
        color: #fff;
    }

.login-card {
    max-width: 450px;
    margin: 70px auto;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}


:root {
    --tafi-primary: #1F3A5F;
    --tafi-secondary: #2C5282;
    --tafi-dark: #2D3748;
    --tafi-light: #EDF2F7;
    --tafi-gold: #FFC107;
    --tafi-white: #FFFFFF;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f8fafc;
    color: var(--tafi-dark);
}

.tafi-navbar {
    background: linear-gradient(90deg, var(--tafi-primary), var(--tafi-secondary));
}

.hero-tafi {
    background: linear-gradient(135deg, rgba(31,58,95,.95), rgba(44,82,130,.90));
    color: #fff;
    padding: 90px 0;
}

    .hero-tafi h1 {
        font-size: 2.9rem;
        font-weight: 800;
        line-height: 1.08;
    }

    .hero-tafi p {
        font-size: 1.08rem;
        opacity: .96;
    }

.section-title {
    font-weight: 800;
    color: var(--tafi-primary);
    margin-bottom: 1rem;
}

.card-tafi {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,.07);
    transition: all .25s ease;
    height: 100%;
}

    .card-tafi:hover {
        transform: translateY(-4px);
    }

.btn-tafi {
    background-color: var(--tafi-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
}

    .btn-tafi:hover {
        background-color: var(--tafi-secondary);
        color: #fff;
    }

.login-card {
    max-width: 460px;
    margin: 70px auto;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

.tafi-footer {
    background-color: var(--tafi-primary);
    color: white;
}

.footer-link {
    color: rgba(255,255,255,.85);
    text-decoration: none;
}

    .footer-link:hover {
        color: #fff;
        text-decoration: underline;
    }

.footer-divider {
    border-color: rgba(255,255,255,.15);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.tafi-product-panel {
    background: linear-gradient(135deg, #f8fbff, #eef4fb);
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.tafi-product-tag {
    display: inline-block;
    background: #e9f2ff;
    color: #1f3a5f;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
}

.spec-box {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
    height: 100%;
}

.spec-label {
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.spec-value {
    font-weight: 700;
    color: #1f3a5f;
}

.windows-card {
    background: linear-gradient(180deg, #ffffff, #f6f8fc);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    border: 1px solid rgba(31,58,95,.08);
}

.windows-badge {
    display: inline-block;
    background: #0078d4;
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.legal-page h1 {
    font-weight: 800;
    color: var(--tafi-primary);
}

.legal-page .legal-card {
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.contact-card {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.contact-item {
    margin-bottom: 1.2rem;
}

.contact-label {
    font-size: .9rem;
    color: #6b7280;
    margin-bottom: .2rem;
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f3a5f;
}

.contact-note {
    font-size: .95rem;
    color: #6b7280;
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px 16px;
}

.clientes-search-card {
    max-width: 980px;
    height: 130px;
}

    .clientes-search-card .form-control {
        min-height: 26px;
    }

    .clientes-search-card .btn {
        min-width: 140px;
    }

.clientes-search-card {
    max-width: 980px;
    border-radius: 22px;
}

    .clientes-search-card .card-body {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

.clientes-search-input {
    min-height: 40px !important;
    border-radius: 12px;
}

.clientes-search-actions .btn {
    min-width: 132px;
    border-radius: 12px;
}

.clientes-grid-card {
    border-radius: 24px;
}

.clientes-grid {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

    .clientes-grid thead th {
        background: #f5f8fc;
        color: #1f3a5f;
        font-weight: 700;
        border-bottom: 1px solid #d9e2ec;
        padding: 14px 12px;
        font-size: 0.98rem;
    }

    .clientes-grid tbody td {
        padding: 14px 12px;
        border-bottom: 1px solid #edf2f7;
        vertical-align: middle;
    }

    .clientes-grid tbody tr:hover {
        background-color: #f9fbfe;
    }

.clientes-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-clientes-action {
    border-radius: 10px;
    font-size: .86rem;
    padding: 6px 12px;
    text-decoration: none;
    box-shadow: none;
}

.btn-facturas {
    border: 1px solid #2c6bed;
    color: #2c6bed;
    background: #f4f8ff;
}

    .btn-facturas:hover {
        background: #2c6bed;
        color: #fff;
    }

.btn-generar {
    border: 1px solid #0f9d58;
    color: #0f9d58;
    background: #f1fbf5;
}

    .btn-generar:hover {
        background: #0f9d58;
        color: #fff;
    }

.btn-editar {
    border: 1px solid #6b7280;
    color: #4b5563;
    background: #f8fafc;
}

    .btn-editar:hover {
        background: #4b5563;
        color: #fff;
    }

.clientes-resumen-card {
    border-radius: 18px;
}

.clientes-resumen-label {
    font-size: .88rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.clientes-resumen-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1f3a5f;
}

.cliente-edicion-card {
    max-width: 1100px;
    border-radius: 24px;
}


.btn-accion {
    width: 160px;
    font-size: 13px;
    padding: 6px 10px;
    transition: all .2s ease;
}

    .btn-accion:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }

.acciones-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.clientes-cert-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    font-size: .95rem;
}

.clientes-cert-label {
    color: #6b7280;
    font-weight: 600;
}

.clientes-cert-value {
    color: #1f3a5f;
    font-weight: 700;
    text-align: right;
}

.clientes-cert-status {
    font-size: .95rem;
    font-weight: 700;
}

.clientes-cert-alert-card .clientes-resumen-value {
    font-size: 1.35rem;
}

.cert-vigente {
    border-left: 6px solid #16a34a;
    background: linear-gradient(180deg, #ffffff, #f3fcf6);
}

.cert-por-vencer {
    border-left: 6px solid #f59e0b;
    background: linear-gradient(180deg, #ffffff, #fffaf0);
}

.cert-vencido {
    border-left: 6px solid #dc2626;
    background: linear-gradient(180deg, #ffffff, #fff5f5);
}

.input-group .btn {
    min-width: 48px;
}

.form-text {
    font-size: .85rem;
    line-height: 1.35;
}


.factura-receptor-card {
    max-width: 1100px;
    height: auto;
}

.factura-receptor-label {
    font-size: .9rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.factura-receptor-title {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    color: #1f3a5f;
    line-height: 1.2;
}

.factura-receptor-sub {
    font-size: .95rem;
    color: #4b5563;
}

.facturas-search-card {
    max-width: 1180px;
    border-radius: 22px;
    height: auto;
}

    .facturas-search-card .card-body {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
        
    }

    .facturas-search-card .form-control,
    .facturas-search-card .form-select {
        min-height: 40px;
    }

    .facturas-search-card .btn {
        min-width: 150px;
    }

.factura-receptor-card {
    max-width: 1180px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
    border: 1px solid #e7edf5;
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.05);
}

.factura-receptor-label {
    font-size: .88rem;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.factura-receptor-title {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    color: #163b6d;
    line-height: 1.15;
}

.factura-receptor-sub {
    font-size: .96rem;
    color: #475569;
}

.clientes-resumen-card {
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
    border: 1px solid #e8edf3;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.facturas-search-card {
    max-width: 1180px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #fcfdff);
    border: 1px solid #e7edf5;
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}

    .facturas-search-card .card-body {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    .facturas-search-card .form-control,
    .facturas-search-card .form-select {
        min-height: 40px;
        border-radius: 12px;
    }

    .facturas-search-card .btn {
        min-width: 150px;
        border-radius: 12px;
    }

.clientes-grid-card {
    background: linear-gradient(180deg, #ffffff, #fcfdff);
    border: 1px solid #e7edf5;
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}

.clientes-grid thead th {
    background: #f8fbff;
    color: #183b6b;
    font-weight: 800;
    border-bottom: 1px solid #dce5ef;
    padding: 14px 12px;
}

.clientes-grid tbody td {
    padding: 18px 12px;
    border-bottom: 1px solid #edf2f7;
}

.clientes-grid tbody tr:hover {
    background: #f9fbff;
}

.acciones-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.btn-accion {
    width: 200px;
    text-align: center;
    border-radius: 12px;
    font-size: 13px;
    padding: 8px 12px;
    transition: all .18s ease;
}

    .btn-accion:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.07);
    }


.factura-detalle-card,
.factura-importes-card {
    background: linear-gradient(180deg, #ffffff, #fcfdff);
    border: 1px solid #e7edf5;
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
    border-radius: 22px;
    height: auto;
}

.factura-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #183b6b;
    margin-bottom: 16px;
}

.factura-info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
}

    .factura-info-row:last-child {
        border-bottom: none;
    }

.factura-info-label {
    color: #64748b;
    font-weight: 600;
}

.factura-info-value {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
}

.factura-importe-box {
    background: #f8fbff;
    border: 1px solid #e5edf6;
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    height: 100%;
}

.factura-importe-label {
    font-size: .88rem;
    color: #64748b;
    margin-bottom: 6px;
}

.factura-importe-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #183b6b;
}

.factura-importe-total {
    background: linear-gradient(180deg, #eef6ff, #f8fbff);
}

.complemento-footer-card {
    border-radius: 18px;
    border: 1px solid #d9e2ef;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    display: block;
    height: auto !important;
    min-height: unset !important;
    overflow: visible;
    box-shadow: 0 8px 24px rgba(22, 59, 109, 0.05);
}

.complemento-footer-body {
    padding: 18px 22px !important;
    height: auto !important;
    min-height: 0 !important;
}

.complemento-footer-card .card-body,
.complemento-footer-card .small {
    margin-bottom: 0 !important;
}

.complemento-footer-card strong {
    color: #163b6d;
}

.complemento-footer-card .small {
    font-size: .92rem;
    line-height: 1.65;
    margin-bottom: 0 !important;
}

