:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #182230;
    --muted: #667085;
    --primary: #0f4c81;
    --primary-2: #1769aa;
    --accent: #1f8a70;
    --danger: #b42318;
    --warning: #b54708;
    --line: #e4e7ec;
    --shadow: 0 14px 40px rgba(16, 24, 40, .10);
    --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: linear-gradient(180deg, rgba(238,245,251,.90) 0%, rgba(244,247,251,.91) 45%, rgba(247,249,252,.93) 100%);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
}

/* Fondo decorativo general: una sola imagen grande, fija y con zoom */
body::before {
    content: "";
    position: fixed;
    inset: -5%;
    z-index: 0;
    pointer-events: none;
    background-image: url('../img/patron-bolitas.svg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .26;
    transform: scale(1.12);
    transform-origin: center center;
}

/* Velo suave para conservar buena lectura de las cards */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255,255,255,.04), rgba(255,255,255,.20) 72%, rgba(255,255,255,.30) 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; }
.topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 14px clamp(18px, 4vw, 52px);
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(228,231,236,.9);
}
.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.brand-logo {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: contain;
    border-radius: 11px;
}
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.brand-name {
    color: var(--text);
    font-size: 16px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
}
.brand-subtitle {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    margin-top: 3px;
    letter-spacing: 0;
}
.topbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.top-link { padding: 9px 12px; border-radius: 10px; color: var(--primary); font-weight: 650; font-size: 14px; }
.top-link:hover { background: #eef6fc; }
.top-link.danger { color: var(--danger); }
.branch-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface-soft); font-size: 13px; color: #344054; font-weight: 650;
}
.branch-dot { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 3px rgba(18,183,106,.13); }

.page-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 64px; flex: 1; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: stretch; }
.hero-card, .card {
    background: var(--surface); border: 1px solid rgba(228,231,236,.95); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-card { padding: clamp(26px, 5vw, 52px); overflow: hidden; position: relative; }
.hero-card:after {
    content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(23,105,170,.16), transparent 68%);
}
.eyebrow { text-transform: uppercase; letter-spacing: .13em; color: var(--primary-2); font-weight: 800; font-size: 12px; }
h1 { margin: 10px 0 14px; font-size: clamp(32px, 5vw, 54px); line-height: 1.04; letter-spacing: -.045em; }
h2 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.025em; }
h3 { margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 720px; }
.notice {
    margin-top: 22px; padding: 15px 16px; border-radius: 14px;
    background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-weight: 650; line-height: 1.5;
}
.card { padding: 24px; }
.card + .card { margin-top: 18px; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 13px; color: #344054; }
input[type=text], input[type=email], input[type=date], input[type=number], select {
    width: 100%; min-height: 46px; padding: 11px 13px;
    border: 1px solid #d0d5dd; border-radius: 11px; background: #fff; color: var(--text);
    outline: none; transition: .18s ease;
}
input:focus, select:focus { border-color: #75b5e3; box-shadow: 0 0 0 4px rgba(23,105,170,.10); }
input[readonly] { background: #f8fafc; color: #475467; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.btn {
    border: 0; cursor: pointer; min-height: 44px; padding: 11px 17px; border-radius: 11px;
    font-weight: 760; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 8px 18px rgba(15,76,129,.20); }
.btn-secondary { background: #eef6fc; color: var(--primary); }
.btn-success { background: #eaf8f2; color: #087443; }
.btn-danger { background: #fff1f0; color: var(--danger); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: #344054; }

.select-branch { display: flex; flex-direction: column; gap: 12px; }
.select-branch select { min-height: 54px; font-size: 15px; }
.info-list { display: grid; gap: 12px; margin-top: 18px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; color: #475467; line-height: 1.45; }
.info-icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #eef6fc; color: var(--primary); font-weight: 800; }

.alert { margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-weight: 650; }
.alert-success { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.alert-error { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.alert-warning { background: #fffaeb; color: #b54708; border-color: #fedf89; }

.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.profile-item { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.profile-label { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.profile-value { font-weight: 720; word-break: break-word; }

.steps { display: flex; gap: 9px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 999px; background: #eef2f6; color: #667085; font-size: 13px; font-weight: 700; }
.step.active { background: #e8f3fb; color: var(--primary); }
.step.done { background: #eaf8f2; color: #087443; }
.step-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.8); font-size: 11px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #f8fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #667085; }
tbody tr:last-child td { border-bottom: 0; }
.amount { text-align: right; white-space: nowrap; }
.empty-row td { text-align: center; color: var(--muted); padding: 28px; }

.invoice-result { display: none; }
.invoice-result.visible { display: block; }
.result-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; background: #ecfdf3; color: #067647; border-radius: 999px; font-weight: 800; font-size: 13px; }
.uuid-box { margin: 14px 0; padding: 14px; border-radius: 12px; background: #f8fafc; border: 1px dashed #cbd5e1; font-family: Consolas, monospace; word-break: break-all; }

.check-row { display: flex; align-items: center; gap: 9px; min-height: 46px; }
.check-row input { width: 18px; height: 18px; }

.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px clamp(18px, 4vw, 52px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; background: rgba(255,255,255,.78); }

.loader-backdrop { position: fixed; inset: 0; display: none; place-items: center; background: rgba(15,23,42,.30); z-index: 100; backdrop-filter: blur(3px); }
.loader-backdrop.visible { display: grid; }
.loader-card { min-width: 220px; padding: 22px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; gap: 13px; font-weight: 750; }
.spinner { width: 24px; height: 24px; border: 3px solid #dbeafe; border-top-color: var(--primary-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: min(420px, calc(100% - 40px)); padding: 14px 16px; border-radius: 12px; background: #101828; color: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .22s; z-index: 120; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: #9f1c16; }
.toast.success { background: #05603a; }
.hidden { display: none !important; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .form-grid.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .topbar { align-items: flex-start; flex-direction: column; }
    .topbar-actions { justify-content: flex-start; }
    .page-wrap { width: min(100% - 22px, 1180px); padding-top: 24px; }
    .hero-card, .card { border-radius: 15px; padding: 20px; }
    .form-grid, .form-grid.three, .profile-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    h1 { font-size: 36px; }
    .branch-pill { max-width: 100%; }
}

/* Buscador de sucursales */
.branch-search-wrap { display: flex; flex-direction: column; gap: 7px; margin-bottom: 2px; }
.branch-search-control { position: relative; display: flex; align-items: center; }
.branch-search-input {
    width: 100%;
    min-height: 48px;
    padding: 11px 44px 11px 42px;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: .18s ease;
}
.branch-search-input:focus { border-color: #75b5e3; box-shadow: 0 0 0 4px rgba(23,105,170,.10); }
.branch-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #667085;
    font-size: 20px;
    pointer-events: none;
}
.branch-search-clear {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: #f2f4f7;
    color: #475467;
    cursor: pointer;
    font-size: 21px;
    line-height: 1;
}
.branch-search-clear:hover { background: #e4e7ec; }
.branch-search-status { min-height: 18px; color: var(--muted); font-size: 12px; }

/* Selector de sucursal con búsqueda integrada */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select-control {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.searchable-select .searchable-select-input {
    width: 100%;
    min-height: 58px;
    padding: 13px 94px 13px 56px;
    border: 1px solid #cfd6df;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    color: var(--text);
    outline: none;
    cursor: text;
    font-size: 15px;
    font-weight: 520;
    line-height: 1.35;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.searchable-select-input::placeholder {
    color: #98a2b3;
    opacity: 1;
    font-weight: 400;
}

.searchable-select.open .searchable-select-input,
.searchable-select-input:focus {
    background: #fff;
    border-color: #4e9bd2;
    box-shadow: 0 0 0 4px rgba(23,105,170,.11);
}

.searchable-select-input.invalid {
    border-color: #d92d20;
    box-shadow: 0 0 0 4px rgba(217,45,32,.10);
}

/* Lupa dibujada con CSS: evita caracteres raros según la fuente */
.searchable-select-search {
    position: absolute;
    left: 17px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}
.searchable-select-search::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    left: 1px;
    top: 1px;
    border: 2px solid #667085;
    border-radius: 50%;
}
.searchable-select-search::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 2px;
    left: 11px;
    top: 13px;
    border-radius: 2px;
    background: #667085;
    transform: rotate(45deg);
    transform-origin: left center;
}

.searchable-select-arrow,
.searchable-select-clear {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    cursor: pointer;
    z-index: 3;
}

/* Flecha chevron real dibujada con CSS */
.searchable-select-arrow {
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    font-size: 0;
}
.searchable-select-arrow::before {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    left: 50%;
    top: 50%;
    border-right: 2px solid #667085;
    border-bottom: 2px solid #667085;
    transform: translate(-50%, -68%) rotate(45deg);
    transition: transform .18s ease, border-color .18s ease;
}
.searchable-select-arrow:hover {
    background: #f5f7fa;
}
.searchable-select.open .searchable-select-arrow::before {
    transform: translate(-50%, -28%) rotate(225deg);
    border-color: var(--primary-2);
}

.searchable-select-clear {
    right: 50px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #f2f4f7;
    color: #667085;
    font-size: 20px;
    line-height: 1;
}
.searchable-select-clear:hover {
    background: #e7ebf0;
    color: #344054;
}

.searchable-select-dropdown {
    position: absolute;
    z-index: 100;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 310px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(16,24,40,.16);
}

.searchable-select-option {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.searchable-select-option:hover,
.searchable-select-option.active {
    background: #f2f7fb;
}

.searchable-select-option.selected {
    background: #eaf4fb;
    font-weight: 600;
}

.searchable-select-code {
    flex: 0 0 50px;
    color: #1769aa;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.searchable-select-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.searchable-select-empty {
    padding: 16px 12px;
    color: var(--muted);
    text-align: center;
}

.searchable-select-dropdown .hidden,
.searchable-select .hidden {
    display: none !important;
}


.capture-guide-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.ticket-guide-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,250,252,.97)),
        url('../img/patron-bolitas.svg') center/cover no-repeat;
    border: 1px solid #e7ecf2;
}
.ticket-guide-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,.35), transparent 40%);
    pointer-events: none;
}
.ticket-guide-card > * { position: relative; z-index: 1; }
.ticket-guide-header { margin-bottom: 12px; }
.ticket-guide-link {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
    background: #fff;
}
.ticket-guide-image {
    display: block;
    width: 100%;
    height: auto;
}
.ticket-guide-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.88);
    border: 1px solid #e4e7ec;
    color: #344054;
    line-height: 1.55;
}

@media (max-width: 980px) {
    .capture-guide-grid {
        grid-template-columns: 1fr;
    }
}

.btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

@media (max-width: 680px) {
    body::before {
        inset: -10%;
        transform: scale(1.06);
        opacity: .22;
        background-size: cover;
    }
}


/* Layout de facturación: la guía ocupa la altura de las dos cards */
.invoice-layout {
    display: grid;
    grid-template-columns: minmax(410px, 450px) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.invoice-main-stack {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.ticket-guide-card-large {
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 100%;
    background: rgba(255,255,255,.88);
}

.ticket-guide-card-large .ticket-guide-surface {
    min-height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.ticket-guide-card-large .ticket-guide-header {
    margin-bottom: 14px;
}

.ticket-guide-card-large .ticket-guide-header h2 {
    font-size: 20px;
}

.ticket-guide-card-large .ticket-guide-link {
    position: relative;
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 5px;
    border-radius: 16px;
    background: rgba(255,255,255,.78);
    overflow: hidden;
}

.ticket-guide-card-large .ticket-guide-image {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    left: 5px;
    display: block;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    object-fit: contain;
    object-position: center center;
    image-rendering: auto;
    border-radius: 12px;
}

.ticket-guide-card-large .ticket-guide-note {
    margin-top: auto;
    padding: 13px 14px;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .invoice-layout {
        grid-template-columns: 1fr;
    }

    .ticket-guide-card-large {
        height: auto;
    }

    .ticket-guide-card-large .ticket-guide-link {
        position: static;
        display: block;
        flex: none;
        width: min(100%, 340px);
        padding: 5px;
    }

    .ticket-guide-card-large .ticket-guide-image {
        position: static;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}


/* =========================================================
   Dialogo profesional: servidor de sucursal no disponible
   ========================================================= */
body.modal-open {
    overflow: hidden;
}

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.service-modal.visible {
    display: flex;
}

.service-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(5px);
}

.service-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 22px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}

.service-modal-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f2f4f7;
    color: #475467;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.service-modal-x:hover {
    background: #e4e7ec;
}

.service-modal-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.service-modal-icon span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f79009;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

.service-modal-eyebrow {
    margin-bottom: 7px;
    color: var(--primary-2);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.service-modal-card h2 {
    margin: 0 42px 10px 0;
    font-size: 25px;
    line-height: 1.15;
}

.service-modal-lead,
.service-modal-help {
    margin: 0;
    color: #475467;
    line-height: 1.65;
}

.service-modal-info {
    margin: 18px 0;
    padding: 15px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    color: #344054;
}

.service-modal-info p {
    margin: 5px 0 0;
    color: #667085;
    line-height: 1.55;
}

.service-support-box {
    display: grid;
    gap: 4px;
    margin-top: 20px;
    padding: 17px 18px;
    border-radius: 16px;
    background: #eef6fc;
    border: 1px solid #cfe5f5;
}

.service-support-label {
    color: #475467;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.service-support-phone {
    color: var(--primary);
    font-size: 24px;
    letter-spacing: .02em;
}

.service-support-note {
    color: #667085;
    font-size: 12px;
}

.service-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

@media (max-width: 560px) {
    .service-modal {
        padding: 14px;
    }

    .service-modal-card {
        padding: 24px 20px 20px;
        border-radius: 18px;
    }

    .service-modal-card h2 {
        font-size: 22px;
    }

    .service-modal-actions .btn {
        width: 100%;
    }
}


/* Ajustes móviles: header y título principal centrados */
@media (max-width: 680px) {
    .topbar {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .brand-wrap {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .brand-text {
        align-items: center;
        text-align: center;
    }

    .topbar-actions {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .branch-pill {
        justify-content: center;
        text-align: center;
    }

    .home-intro {
        text-align: center;
    }

    .home-intro h1 {
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(32px, 10vw, 42px);
    }

    .home-intro .lead {
        margin-left: auto;
        margin-right: auto;
    }
}


/* Centrado profesional de los pasos informativos del inicio */
.home-intro .info-list {
    width: 100%;
    max-width: 560px;
    margin: 18px auto 0;
}

.home-intro .info-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 380px);
    justify-content: center;
    align-items: center;
    column-gap: 12px;
    text-align: center;
}

.home-intro .info-icon {
    align-self: center;
}

@media (max-width: 680px) {
    .home-intro .info-list {
        max-width: 100%;
    }

    .home-intro .info-row {
        grid-template-columns: 34px minmax(0, 1fr);
        width: 100%;
    }
}
