/* ============================================
   SEVI – Servicio de Intermediación
   Libro de marca: #060716 | #625126 | #FFFFFF
   ============================================ */

:root {
    --sevi-negro:  #060716;
    --sevi-cafe:   #625126;
    --sevi-blanco: #FFFFFF;
    --sevi-cafe-hover: #7a6632;
    --sevi-cafe-gold: #c9b77a;
    --sevi-bg: #f4f2ee;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
}

/* ---- Reset / Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--sevi-bg);
    color: var(--sevi-negro);
    margin: 0;
}

/* ---- Auth layout ---- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: var(--sevi-negro);
}

.auth-card {
    background-color: var(--sevi-blanco);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(6, 7, 22, 0.4);
}

/* ---- Auth header / logo ---- */
.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-logo-img {
    display: block;
    margin: 0 auto;
    height: 160px;
    width: 160px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #060716;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(6,7,22,0.30);
}

/* ---- Dashboard logo ---- */
.dashboard-logo {
    height: 42px;
    width: 42px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(6,7,22,0.18);
}

.auth-subtitle {
    font-size: 0.8rem;
    color: var(--sevi-cafe);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0.25rem 0 0;
}

.auth-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sevi-negro);
    margin-bottom: 1.25rem;
}

.auth-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1.25rem;
}

/* ---- Form controls ---- */
.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--sevi-negro);
}

.form-control {
    border-color: #d0cdc8;
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-size: 0.925rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--sevi-cafe);
    box-shadow: 0 0 0 3px rgba(98, 81, 38, 0.15);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* ---- Roles checkboxes ---- */
.auth-roles {
    display: flex;
    gap: 1.5rem;
}

.form-check-input:checked {
    background-color: var(--sevi-cafe);
    border-color: var(--sevi-cafe);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(98, 81, 38, 0.15);
    border-color: var(--sevi-cafe);
}

/* ---- Primary button ---- */
.btn-sevi {
    background-color: var(--sevi-cafe);
    color: var(--sevi-blanco);
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-sevi:hover {
    background-color: var(--sevi-cafe-hover);
    color: var(--sevi-blanco);
}

.btn-sevi:active {
    transform: scale(0.98);
}

/* ---- Badge ---- */
.bg-sevi {
    background-color: var(--sevi-cafe) !important;
    color: var(--sevi-blanco);
}

/* ---- Links ---- */
.auth-footer-link {
    text-align: center;
    font-size: 0.875rem;
    margin-top: 1.25rem;
    margin-bottom: 0;
    color: #555;
}

.auth-footer-link a,
.auth-link-small {
    color: var(--sevi-cafe);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer-link a:hover,
.auth-link-small:hover {
    color: var(--sevi-cafe-hover);
    text-decoration: underline;
}

.auth-link-small {
    font-size: 0.8rem;
}

/* ---- Términos & Condiciones link ---- */
.auth-link-tc {
    color: var(--sevi-cafe);
    font-weight: 500;
    text-decoration: underline;
}

.auth-link-tc:hover {
    color: var(--sevi-cafe-hover);
}

/* ---- Botón deshabilitado ---- */
.btn-sevi:disabled {
    background-color: #c4b99a;
    border-color: transparent;
    cursor: not-allowed;
    opacity: 1;
}

/* ---- Alerts ---- */
.alert {
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.dashboard-body {
    background-color: var(--sevi-negro);
    font-family: var(--font-body);
}

/* ---- Navbar ---- */
.sevi-navbar {
    background-color: var(--sevi-negro);
    padding: 0.6rem 0;
    box-shadow: 0 2px 8px rgba(6,7,22,0.3);
}

.navbar-logo {
    height: 52px;
    width: 52px;
    object-fit: cover;
    border-radius: 50%;
}

.navbar-brand-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--sevi-blanco);
}

.navbar-user {
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
}

/* ---- Page title ---- */
.page-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--sevi-blanco);
}

/* ---- Cards ---- */
.sevi-card {
    border: 1px solid #e0dbd2;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(6,7,22,0.06);
    overflow: hidden;
}

.sevi-card-header {
    background-color: #f9f7f4;
    border-bottom: 1px solid #e0dbd2;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sevi-negro);
    padding: 0.75rem 1.25rem;
    border-radius: 10px 10px 0 0 !important;
}

/* ---- Table ---- */
.sevi-table thead th {
    background-color: #f9f7f4;
    color: var(--sevi-negro);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e0dbd2;
}

.sevi-table tbody tr {
    background-color: var(--sevi-cafe);
}

.sevi-table tbody tr:hover {
    background-color: var(--sevi-cafe-hover);
}

.sevi-table tbody td {
    vertical-align: middle;
    font-size: 0.9rem;
    color: var(--sevi-blanco) !important;
    background-color: var(--sevi-cafe) !important;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.sevi-table.table-hover tbody tr:hover td {
    background-color: var(--sevi-cafe-hover) !important;
}

.sevi-table tbody td.text-muted,
.sevi-table tbody td .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.sevi-table tbody td.txn-seller-amount {
    color: var(--sevi-cafe-gold) !important;
    font-weight: 700;
}

/* ---- Dashboard action cards ---- */
.dashboard-action-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--sevi-cafe);
    color: var(--sevi-blanco);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(98,81,38,0.25);
    height: 100%;
}

.dashboard-action-card:hover {
    background-color: var(--sevi-cafe-hover);
    color: var(--sevi-blanco);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(98,81,38,0.3);
}

.dashboard-action-card--secondary {
    background-color: var(--sevi-negro);
    box-shadow: 0 4px 14px rgba(6,7,22,0.2);
}

.dashboard-action-card--secondary:hover {
    background-color: #1a1b2e;
    color: var(--sevi-blanco);
    box-shadow: 0 8px 20px rgba(6,7,22,0.3);
}

.dashboard-action-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.dashboard-action-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.dashboard-action-desc {
    font-size: 0.825rem;
    opacity: 0.85;
    line-height: 1.4;
}

/* ---- Empty state ---- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ---- Commission summary ---- */
.commission-summary {
    background-color: #f9f7f4;
    border: 1px solid #e0dbd2;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.commission-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--sevi-cafe);
    margin-bottom: 0.75rem;
}

.commission-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    color: #555;
}

.commission-row-total {
    border-top: 1px solid #e0dbd2;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-weight: 600;
    color: var(--sevi-negro);
}

/* ---- Amount panel ---- */
.amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.amount-label { color: #666; }
.amount-value { font-weight: 500; }
.text-sevi    { color: var(--sevi-cafe); }

/* ---- Status timeline ---- */
.status-timeline {
    list-style: none;
    padding: 1rem 1.25rem;
    margin: 0;
}

.status-timeline-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
    position: relative;
}

.status-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background-color: #e0dbd2;
}

.status-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.status-timeline-content {
    flex: 1;
}

.status-timeline-note {
    font-size: 0.875rem;
    color: #555;
    margin-top: 0.25rem;
}

/* ---- Invitation detail ---- */
.invitation-detail {
    background-color: #f9f7f4;
    border: 1px solid #e0dbd2;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.invitation-row {
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0;
    border-bottom: 1px solid #ece8e0;
    font-size: 0.875rem;
}

.invitation-row:last-child {
    border-bottom: none;
}

.invitation-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sevi-cafe);
    font-weight: 600;
}

.invitation-value {
    color: var(--sevi-negro);
    margin-top: 0.15rem;
}

/* ============================================
   TRANSACTION CREATE FORM
   ============================================ */

.txn-create-header {
    background: linear-gradient(135deg, var(--sevi-negro) 0%, #1a1b2e 100%);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    position: relative;
    overflow: hidden;
}

.txn-create-header::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(98, 81, 38, 0.12);
}

.txn-create-header::after {
    content: '';
    position: absolute;
    right: 30px;
    bottom: -50px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(98, 81, 38, 0.08);
}

.txn-create-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(98,81,38,0.25);
    border: 1px solid rgba(98,81,38,0.45);
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    font-size: 0.7rem;
    color: #c9b77a;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.txn-create-header-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sevi-blanco);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.txn-create-header-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0;
}

/* Form sections */
.form-section {
    margin-bottom: 1.75rem;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #e8e4dc;
}

.form-section-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sevi-cafe);
    color: var(--sevi-blanco);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--sevi-negro);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin: 0;
}

/* Input with $ prefix */
.input-prefix-group {
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sevi-cafe);
    font-weight: 700;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 5;
}

.input-prefix-group .form-control {
    padding-left: 1.65rem;
}

/* Preview panel */
.txn-preview-panel {
    position: sticky;
    top: 1.25rem;
}

.txn-preview-card {
    background: var(--sevi-negro);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(6,7,22,0.22);
}

.txn-preview-header {
    background: var(--sevi-cafe);
    padding: 1.1rem 1.4rem;
}

.txn-preview-header-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0.2rem;
}

.txn-preview-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sevi-blanco);
    line-height: 1.35;
    min-height: 1.4rem;
    margin: 0;
}

.txn-preview-body {
    padding: 1.4rem;
}

.txn-preview-amount-big {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--sevi-blanco);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.txn-preview-amount-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.txn-preview-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin: 0 0 1.1rem;
}

.txn-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
}

.txn-preview-row-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

.txn-preview-row-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sevi-blanco);
}

.txn-preview-total-row {
    background: rgba(98,81,38,0.18);
    border: 1px solid rgba(98,81,38,0.3);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.txn-preview-total-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.txn-preview-total-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #c9b77a;
}

.txn-preview-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: rgba(255,255,255,0.25);
    font-size: 0.8rem;
}

.txn-preview-empty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.3;
}

.txn-preview-shield {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.02em;
}

.txn-howto-card {
    border-radius: 10px;
}

.txn-howto-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sevi-cafe);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.txn-howto-list {
    font-size: 0.8rem;
    color: #666;
    padding-left: 1.15rem;
    line-height: 1.75;
    margin: 0;
}

/* ============================================
   HOME V2 – Pantalla selector de modo
   ============================================ */

.home-v2-body {
    background-color: var(--sevi-negro);
    min-height: 100vh;
    margin: 0;
}

.home-v2-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.home-v2-inner {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
}

/* ---- Header ---- */
.home-v2-header {
    text-align: center;
    margin-bottom: 3rem;
}

.home-v2-brand {
    font-size: 3.75rem;
    font-weight: 900;
    color: var(--sevi-blanco);
    letter-spacing: 0.06em;
    margin: 0 0 0.4rem;
    line-height: 1;
}

.home-v2-username {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sevi-blanco);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0;
    opacity: 0.85;
}

/* ---- Main action buttons ---- */
.home-v2-main-actions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

/* ---- Secondary action buttons ---- */
.home-v2-secondary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 3.5rem;
}

/* ---- Button base ---- */
.home-v2-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    border-radius: 18px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.18s, transform 0.1s;
    background-color: var(--sevi-cafe);
    color: var(--sevi-blanco);
}

.home-v2-btn:hover {
    filter: brightness(1.15);
    color: var(--sevi-blanco);
    text-decoration: none;
}

.home-v2-btn:active {
    transform: scale(0.98);
}

.home-v2-btn--main {
    height: 82px;
    font-size: 1rem;
}

.home-v2-btn--sub {
    height: 56px;
    font-size: 0.82rem;
    background-color: #4d3d1a;
}

/* ---- Illustration ---- */
.home-v2-illustration {
    display: flex;
    justify-content: center;
}

.home-v2-illustration img {
    width: 130px;
    height: auto;
    opacity: 0.75;
}

/* ---- Subtitle (PERFIL COMPRADOR / VENDEDOR) ---- */
.home-v2-subtitle {
    text-align: center;
    margin-bottom: 2.25rem;
}

.home-v2-subtitle p {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--sevi-blanco);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0;
    line-height: 1.6;
}

/* ---- Pill button row (two side-by-side + one centered) ---- */
.home-v2-pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.home-v2-btn--pill {
    height: 48px;
    border-radius: 50px;
    font-size: 0.72rem;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 220px;
    background-color: #4d3d1a;
    padding: 0 1.25rem;
}

.home-v2-btn--pill-center {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

/* ============================================
   CREAR ORDEN – Formulario comprador
   ============================================ */

.co-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sevi-blanco);
    text-align: center;
    margin-bottom: 1.75rem;
    line-height: 1.1;
}

.co-form-group {
    margin-bottom: 1.25rem;
}

.co-form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sevi-blanco);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.co-form-input {
    display: block;
    width: 100%;
    background-color: var(--sevi-blanco);
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: #444;
    outline: none;
    transition: box-shadow 0.18s;
}

.co-form-input:focus {
    box-shadow: 0 0 0 3px rgba(98, 81, 38, 0.4);
}

.co-form-input.is-invalid {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.45);
}

.co-form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Email + bell */
.co-input-bell-row {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.co-input-bell-row .co-form-input {
    flex: 1;
    min-width: 0;
}

.co-bell-btn {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background-color: var(--sevi-cafe);
    color: var(--sevi-blanco);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background-color 0.18s;
}

.co-bell-btn:hover {
    background-color: var(--sevi-cafe-hover);
}

.co-hint-text {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.4rem;
    font-style: italic;
}

/* Recuadro resumen de comisión */
.co-commission-box {
    background-color: rgba(98, 81, 38, 0.22);
    border: 1px solid rgba(98, 81, 38, 0.5);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-top: 0.65rem;
}

.co-commission-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
}

.co-commission-row--total {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 0.3rem;
    padding-top: 0.5rem;
}

.co-commission-label {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.66rem;
    font-weight: 700;
}

.co-commission-value {
    font-weight: 700;
    color: var(--sevi-blanco);
    font-size: 0.92rem;
}

.co-commission-value--accent {
    color: #c9b77a;
    font-size: 1.05rem;
}

/* Botón submit principal */
.co-submit-btn {
    display: block;
    width: 100%;
    background-color: var(--sevi-cafe);
    color: var(--sevi-blanco);
    border: none;
    border-radius: 10px;
    padding: 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: filter 0.18s, transform 0.1s;
}

.co-submit-btn:hover  { filter: brightness(1.15); }
.co-submit-btn:active { transform: scale(0.98); }

/* Sección Método de Pago */
.co-section-title {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--sevi-blanco);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin: 1.75rem 0 1rem;
}

.co-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.co-payment-btn {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: 0;
    background-color: var(--sevi-cafe);
    color: var(--sevi-blanco);
    border: none;
    border-radius: 10px;
    padding: 0.8rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: filter 0.18s;
}

.co-payment-btn:hover { filter: brightness(1.15); }

.co-payment-btn--full {
    flex: 1 1 100%;
}

/* Errores de validación */
.co-error-list {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    padding: 0.85rem 1rem 0.85rem 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
    color: #f5a0a0;
}

.co-error-list li {
    margin-bottom: 0.2rem;
}
.co-error-list li:last-child {
    margin-bottom: 0;
}

/* ============================================
   TRANSACCIONES – Encabezado y listado
   ============================================ */

@keyframes txn-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes txn-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.txn-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    animation: txn-rise 0.5s ease both;
}

.txn-hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sevi-cafe-gold);
    margin-bottom: 0.5rem;
}

.txn-hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--sevi-blanco);
    letter-spacing: -0.01em;
    margin: 0 0 0.4rem;
    line-height: 1.05;
}

.txn-hero-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    max-width: 40ch;
}

.txn-hero-cta {
    white-space: nowrap;
}

/* Tarjetas de estadísticas */
.txn-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.75rem 0 2rem;
}

.txn-stat-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
    animation: txn-rise 0.5s ease both;
}

.txn-stat-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(98, 81, 38, 0.6);
}

.txn-stat-tile--accent {
    background: linear-gradient(160deg, rgba(98, 81, 38, 0.35), rgba(98, 81, 38, 0.08));
    border-color: rgba(98, 81, 38, 0.55);
}

.txn-stat-value {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--sevi-blanco);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.txn-stat-tile--wide .txn-stat-value {
    color: var(--sevi-cafe-gold);
}

.txn-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

.txn-stats-row .txn-stat-tile:nth-child(1) { animation-delay: 0.05s; }
.txn-stats-row .txn-stat-tile:nth-child(2) { animation-delay: 0.11s; }
.txn-stats-row .txn-stat-tile:nth-child(3) { animation-delay: 0.17s; }
.txn-stats-row .txn-stat-tile:nth-child(4) { animation-delay: 0.23s; }

/* Filas de la tabla con entrada escalonada */
.sevi-table tbody tr {
    animation: txn-fade 0.4s ease both;
}

.sevi-table tbody tr:nth-child(1)  { animation-delay: 0.02s; }
.sevi-table tbody tr:nth-child(2)  { animation-delay: 0.06s; }
.sevi-table tbody tr:nth-child(3)  { animation-delay: 0.10s; }
.sevi-table tbody tr:nth-child(4)  { animation-delay: 0.14s; }
.sevi-table tbody tr:nth-child(5)  { animation-delay: 0.18s; }
.sevi-table tbody tr:nth-child(6)  { animation-delay: 0.22s; }
.sevi-table tbody tr:nth-child(7)  { animation-delay: 0.26s; }
.sevi-table tbody tr:nth-child(8)  { animation-delay: 0.30s; }
.sevi-table tbody tr:nth-child(9)  { animation-delay: 0.34s; }
.sevi-table tbody tr:nth-child(10) { animation-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
    .txn-hero,
    .txn-stat-tile,
    .sevi-table tbody tr {
        animation: none;
    }
}

/* Estado vacío refinado */
.txn-empty-glyph {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(98, 81, 38, 0.35), rgba(98, 81, 38, 0.05));
    border: 1px solid rgba(98, 81, 38, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Paginación en tema oscuro */
.pagination .page-link {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
}

.pagination .page-link:hover {
    background-color: rgba(98, 81, 38, 0.25);
    border-color: rgba(98, 81, 38, 0.5);
    color: var(--sevi-blanco);
}

.pagination .page-item.active .page-link {
    background-color: var(--sevi-cafe);
    border-color: var(--sevi-cafe);
    color: var(--sevi-blanco);
}

.pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.25);
}
