:root{
    --tb-ink:#172033;
    --tb-muted:#667085;
    --tb-bg:#F5F7FA;
    --tb-card:#FFFFFF;
    --tb-line:#E6EAF0;
    --tb-primary:#2855D9;
    --tb-success:#20B968;
    --tb-danger:#DC2626;
    --tb-warning:#F4C84A;
    --tb-radius:18px;
    --tb-shadow:0 10px 30px rgba(23,32,51,.08);
}

*{box-sizing:border-box}

body{
    margin:0;
    background:var(--tb-bg);
    color:var(--tb-ink);
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    line-height:1.45;
}

button,input,select{font:inherit}
button{touch-action:manipulation}

header,.topbar{
    background:var(--tb-ink);
    color:#fff;
    padding:16px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
}

.topbar h1{
    font-size:21px;
    margin:0;
    letter-spacing:-.2px;
}

.topbar p{
    margin:3px 0 0;
    color:#CBD5E1;
    font-size:13px;
}

.topbar-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
}

.topbar-settings-button{
    width:42px;
    height:42px;
    min-width:42px;
    padding:0;
    margin:0;
    border:1px solid rgba(255,255,255,.16);
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
    transition:background .15s ease,transform .15s ease;
}

.topbar-settings-button:hover{
    background:rgba(255,255,255,.16);
    transform:translateY(-1px);
}

.brand{font-weight:800;font-size:20px}
#status{font-size:12px;opacity:.8}

main{
    max-width:960px;
    margin:auto;
    padding:18px;
}

.card{
    background:var(--tb-card);
    border:1px solid var(--tb-line);
    border-radius:var(--tb-radius);
    padding:20px;
    margin:14px 0;
    box-shadow:var(--tb-shadow);
}

.hero{text-align:center;padding:28px 20px}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
    gap:12px;
}

.service,.queue-item,.tb-barber-card{
    border:1px solid var(--tb-line);
    border-radius:14px;
    padding:15px;
    background:#fff;
}

.service:hover{border-color:#94A3B8}

.btn{
    border:0;
    border-radius:12px;
    padding:12px 14px;
    width:100%;
    font-weight:750;
    cursor:pointer;
    background:var(--tb-ink);
    color:#fff;
    margin-top:8px;
    transition:transform .15s,opacity .15s;
}

.btn:hover{transform:translateY(-1px)}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.btn.primary{background:var(--tb-primary)}
.btn.success{background:var(--tb-success)}
.btn.danger{background:var(--tb-danger)}
.btn.secondary{background:#E9EEF9;color:#25314A}
.big{font-size:16px}

.badge{
    display:inline-block;
    padding:5px 9px;
    border-radius:999px;
    background:#DCFCE7;
    color:#166534;
    font-size:12px;
    font-weight:800;
}

.badge.warn{background:#FEF3C7;color:#92400E}
.badge.muted{background:#EEF2F6;color:#5B6472}
.muted{color:var(--tb-muted)}

.progress{
    height:12px;
    background:#E5E7EB;
    border-radius:99px;
    overflow:hidden;
}

.bar{height:100%;background:var(--tb-success)}

.ticket-card{text-align:center}

.ticket-number{
    font-size:clamp(56px,18vw,100px);
    font-weight:900;
    line-height:1;
    margin:10px 0;
    color:var(--tb-primary);
}

.barber-assigned,.status-box{
    padding:14px;
    border-radius:13px;
    background:#F3F6FB;
    margin:14px 0;
}

.status-box h2,.status-box h3{margin-top:0}

.queue-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.queue-header h2{font-size:17px;margin:0}

.queue-item{
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.queue-item span,.queue-item small{
    display:block;
    margin-top:5px;
    color:var(--tb-muted);
}

.admin-shell{padding-bottom:86px}
.admin-tab{display:none}
.admin-tab.active{display:block}

.admin-summary{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.admin-stat{
    padding:15px;
    border-radius:14px;
    background:#F4F7FF;
    border:1px solid rgba(40,85,217,.06);
}

.admin-stat strong{
    display:block;
    font-size:26px;
}

.admin-stat span{
    font-size:12px;
    color:var(--tb-muted);
}

.admin-current{
    border-left:4px solid var(--tb-primary);
}

.admin-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}

.admin-actions .btn{margin:0}

.admin-bottom-nav{
    position:fixed;
    z-index:80;
    left:0;
    right:0;
    bottom:0;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(12px);
    border-top:1px solid var(--tb-line);
    display:grid;
    grid-template-columns:repeat(5,1fr);
    padding:7px max(8px,env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom));
    box-shadow:0 -8px 25px rgba(15,23,42,.08);
}

.admin-nav-button{
    border:0;
    background:transparent;
    color:#64748B;
    padding:7px 3px;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
}

.admin-nav-button span{
    display:block;
    font-size:20px;
    line-height:1.1;
    margin-bottom:3px;
}

.admin-nav-button.active{color:var(--tb-primary)}

.admin-barber-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:12px;
}

.tb-barber-card h3{margin:0 0 8px}
.tb-barber-card p{margin:5px 0;color:var(--tb-muted)}

.ticket-tools{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:8px;
    margin-top:12px;
}

.ticket-tools .btn{
    margin:0;
    font-size:13px;
}

.tool-note{
    font-size:12px;
    color:var(--tb-muted);
    margin:9px 0 0;
}

.queue-list{
    margin:12px 0 0;
    padding:0;
    list-style:none;
}

.queue-list li{
    padding:7px 0;
    border-top:1px solid var(--tb-line);
    font-size:14px;
}

.empty{
    padding:18px;
    text-align:center;
    color:var(--tb-muted);
}

.tb-option-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
    gap:10px;
}

.tb-option{
    appearance:none;
    border:1px solid var(--tb-line);
    border-radius:14px;
    background:#fff;
    color:var(--tb-ink);
    padding:16px;
    text-align:left;
    cursor:pointer;
    min-height:86px;
}

.tb-option:hover,.tb-option:focus-visible{
    outline:none;
    border-color:var(--tb-primary);
    box-shadow:0 0 0 3px rgba(40,85,217,.12);
}

.tb-option strong,.tb-option span{display:block}
.tb-option span{
    margin-top:6px;
    font-size:13px;
    color:var(--tb-muted);
}

.tb-form-error{
    padding:11px 13px;
    border-radius:12px;
    background:#FEF2F2;
    color:#B91C1C;
    font-size:14px;
}

.in-person-result{
    max-width:580px;
    margin:14px auto;
}

.settings-intro h2{margin:4px 0}
.settings-back{width:auto;margin:0}
.settings-section{margin-top:18px}
.settings-section-title{padding:0 4px}
.settings-section-title h2{font-size:18px;margin:0}
.settings-section-title p{margin:4px 0 10px}

.settings-readonly{
    border:1px solid var(--tb-line);
    border-radius:14px;
    overflow:hidden;
}

.settings-row{
    display:grid;
    grid-template-columns:minmax(110px,.8fr) minmax(0,1.2fr);
    gap:12px;
    padding:11px 13px;
    border-top:1px solid var(--tb-line);
}

.settings-row:first-child{border-top:0}
.settings-row span{color:var(--tb-muted);text-transform:capitalize}
.settings-row strong{overflow-wrap:anywhere;text-align:right}

@media(min-width:760px){
    .admin-bottom-nav{
        left:50%;
        right:auto;
        bottom:18px;
        transform:translateX(-50%);
        width:min(640px,calc(100% - 32px));
        border:1px solid var(--tb-line);
        border-radius:18px;
    }

    .admin-shell{padding-bottom:96px}
    .admin-summary{grid-template-columns:repeat(4,1fr)}
}

@media(max-width:520px){
    header,.topbar{padding:14px}
    .topbar h1{font-size:19px}
    .topbar-actions{gap:7px}
    .topbar-settings-button{width:40px;height:40px;min-width:40px}
    .card{padding:16px;margin:10px 0}
    main{padding:12px}
    .queue-item{display:block}
    .queue-item .btn{width:100%}
    .ticket-tools{grid-template-columns:1fr}
    .admin-actions{grid-template-columns:1fr}
    .admin-summary{gap:8px}
}


/* ==========================================
   TURNOBARBER 360 · AJUSTES Y MARCA
   ========================================== */
.topbar-brand{display:flex;align-items:center;gap:10px;min-width:0}.topbar-brand-icon{width:42px;height:42px;object-fit:contain;border-radius:9px;flex:0 0 auto}.topbar-brand h1{font-size:20px;margin:0}.topbar-actions{display:flex;align-items:center;gap:10px}.topbar-settings-button{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer}.topbar-settings-button:hover{background:rgba(255,255,255,.14)}
.admin-settings-overlay{position:fixed;inset:0;z-index:10000;background:rgba(15,23,42,.48);display:flex;align-items:flex-end;justify-content:center;animation:tbSettingsOverlayIn .22s ease-out}.admin-settings-overlay.closing{animation:tbSettingsOverlayOut .22s ease-in forwards}.admin-settings-sheet{width:min(680px,100%);max-height:min(82vh,760px);background:#fff;color:var(--tb-ink);border-radius:24px 24px 0 0;box-shadow:0 -18px 45px rgba(15,23,42,.20);overflow-y:auto;padding:10px 20px calc(24px + env(safe-area-inset-bottom));animation:tbSettingsSheetIn .24s cubic-bezier(.2,.8,.2,1)}.admin-settings-overlay.closing .admin-settings-sheet{animation:tbSettingsSheetOut .2s ease-in forwards}.admin-settings-handle{width:44px;height:5px;border-radius:999px;background:#cbd5e1;margin:3px auto 16px}.admin-settings-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.admin-settings-close{width:42px;height:42px;border:1px solid var(--tb-line);border-radius:50%;background:#f8fafc;color:var(--tb-ink);font-size:24px;line-height:1;cursor:pointer}.settings-drawer-menu{display:flex;flex-direction:column;gap:10px}.settings-drawer-item{width:100%;display:flex;align-items:center;gap:14px;text-align:left;border:1px solid var(--tb-line);background:#fff;color:var(--tb-ink);border-radius:16px;padding:15px 14px;cursor:pointer;font:inherit;box-sizing:border-box;transition:transform .15s ease,background .15s ease,border-color .15s ease}.settings-drawer-item:active{transform:scale(.99)}.settings-drawer-item:hover{background:rgba(40,85,217,.05);border-color:#cbd5e1}.settings-drawer-icon{width:42px;height:42px;min-width:42px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:rgba(40,85,217,.09);font-size:21px}.settings-drawer-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.settings-drawer-copy strong{font-size:16px}.settings-drawer-copy small{color:#64748b;line-height:1.35}.settings-drawer-arrow{font-size:28px;line-height:1;color:#64748b}.settings-drawer-section{min-width:0}.settings-drawer-section .settings-section-title{margin-bottom:14px}.settings-drawer-section .card{box-shadow:none}.settings-back-button{width:auto;margin:0 0 14px}.settings-business-form{display:grid;gap:8px;margin-top:16px}.settings-business-form label{font-size:13px;font-weight:750;color:var(--tb-ink);margin-top:4px}.settings-business-form input{width:100%;padding:12px 13px;border:1px solid var(--tb-line);border-radius:12px;background:#fff;color:var(--tb-ink);outline:none}.settings-business-form input:focus{border-color:var(--tb-primary);box-shadow:0 0 0 3px rgba(40,85,217,.12)}.settings-business-reference{margin-top:16px}.tb-settings-message{padding:11px 13px;border-radius:12px;font-size:14px}.tb-settings-message.success{background:#ecfdf3;color:#167347}.tb-settings-message.error{background:#fef2f2;color:#b91c1c}.settings-tv-url{padding:12px 13px;border:1px solid var(--tb-line);border-radius:12px;background:#f8fafc;color:#334155;font-size:12px;word-break:break-all;margin-top:16px}.settings-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.settings-action-grid .btn{margin:0}.tb-settings-inline-message{min-height:20px;margin:10px 0 0;text-align:center;color:var(--tb-success);font-size:13px}.settings-intro h2{margin:4px 0}.settings-intro p{margin:4px 0 0}.settings-section-title{padding:0 4px}.settings-section-title h2{font-size:18px;margin:0}.settings-section-title p{margin:4px 0 10px}.settings-readonly{border:1px solid var(--tb-line);border-radius:14px;overflow:hidden}.settings-row{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(0,1.2fr);gap:12px;padding:11px 13px;border-top:1px solid var(--tb-line)}.settings-row:first-child{border-top:0}.settings-row span{color:var(--tb-muted)}.settings-row strong{overflow-wrap:anywhere;text-align:right}
@keyframes tbSettingsOverlayIn{from{opacity:0}to{opacity:1}}@keyframes tbSettingsOverlayOut{from{opacity:1}to{opacity:0}}@keyframes tbSettingsSheetIn{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes tbSettingsSheetOut{from{transform:translateY(0)}to{transform:translateY(100%)}}
@media(max-width:520px){.topbar-brand-icon{width:38px;height:38px}.topbar-brand h1{font-size:18px}.topbar-actions{gap:7px}.admin-settings-sheet{max-height:86vh;border-radius:22px 22px 0 0;padding-left:14px;padding-right:14px}.settings-action-grid{grid-template-columns:1fr}.settings-row{grid-template-columns:1fr}.settings-row strong{text-align:left}.settings-business-card,.settings-tv-card{padding:16px}}



/* ==========================================
   TURNOBARBER 360 · ESTACIÓN DEL BARBERO
   ========================================== */
.barber-profile-hero{
    padding:16px 18px;
    text-align:left;
    background:var(--tb-ink);
    color:#fff;
    border-color:rgba(255,255,255,.08);
    box-shadow:0 10px 26px rgba(23,32,51,.14);
}
.barber-profile-main{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}
.barber-dashboard-icon{
    width:48px;
    height:48px;
    flex:0 0 48px;
    border-radius:13px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 4px 12px rgba(0,0,0,.22);
}
.barber-dashboard-icon img{width:100%;height:100%;display:block;object-fit:cover}
.barber-brand-line{
    margin:0 0 2px;
    font-size:13px;
    font-weight:850;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:#CBD5E1;
}
.barber-business-title{
    margin:0;
    font-size:clamp(23px,5vw,30px);
    line-height:1.05;
    color:#fff;
}
.barber-profile-hero .barber-profile-main > div:first-child > div:first-child{
    display:flex;
    align-items:center;
    gap:11px;
}
.barber-profile-hero .barber-profile-main > div:first-child > div:first-child > div:last-child{
    min-width:0;
}
.barber-profile-hero .barber-profile-main > div:first-child > div:last-child{
    margin-top:11px;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.14);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.barber-profile-identity h2{margin:0;color:#fff;font-size:17px}
.barber-profile-label{display:block;font-size:10px;font-weight:850;letter-spacing:.1em;color:#94A3B8;margin-bottom:2px}
.barber-status-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 10px;
    border-radius:999px;
    background:rgba(32,185,104,.16);
    color:#7EF0B2;
    font-size:12px;
    font-weight:850;
    white-space:nowrap;
}
.barber-status-pill span{width:6px;height:6px;border-radius:50%;background:var(--tb-success);display:block}
.barber-datetime-card{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end;
    max-width:280px;
}
.barber-datetime-row{
    display:flex;
    align-items:center;
    gap:6px;
    padding:8px 10px;
    border-radius:10px;
    background:rgba(255,255,255,.08);
    color:#E2E8F0;
    font-size:12px;
    white-space:nowrap;
}
.barber-datetime-icon{color:#F4C84A;font-size:15px;font-weight:900;line-height:1}
.barber-loading-message{text-align:center;margin-top:10px;color:var(--tb-muted)}

@media(max-width:520px){
    .barber-profile-hero{padding:14px}
    .barber-profile-main{align-items:stretch;gap:12px}
    .barber-dashboard-icon{width:44px;height:44px;flex-basis:44px;border-radius:12px}
    .barber-brand-line{font-size:11px}
    .barber-business-title{font-size:22px}
    .barber-datetime-card{max-width:none;justify-content:flex-start}
    .barber-datetime-row{padding:7px 9px;font-size:11px}
}


.barber-access-brand{
    display:flex;
    justify-content:center;
    align-items:center;
    margin:4px auto 18px;
}

.barber-access-logo{
    display:block;
    width:min(300px,82vw);
    height:auto;
    max-height:145px;
    object-fit:contain;
}

.barber-access-symbol,
.barber-invite-icon{
    display:flex;
    align-items:center;
    justify-content:center;
}

.barber-access-symbol img{
    width:58px;
    height:58px;
    object-fit:contain;
}

.barber-invite-icon img{
    width:62px;
    height:62px;
    object-fit:contain;
}

.barber-profile-hero{
    background:var(--tb-ink);
    color:#fff;
    border-color:rgba(255,255,255,.08);
    padding:18px 20px;
    text-align:left;
    box-shadow:0 12px 28px rgba(23,32,51,.14);
}

.barber-profile-main{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.barber-dashboard-icon{
    flex:0 0 auto;
    width:52px;
    height:52px;
    border-radius:14px;
    overflow:hidden;
}

.barber-dashboard-icon img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.barber-business-title{
    margin:0;
    font-size:clamp(22px,5vw,30px);
    line-height:1.05;
    color:#fff;
}

.barber-profile-hero p{
    color:#CBD5E1;
}

.barber-profile-identity{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-left:70px;
    margin-top:8px;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.14);
}

.barber-profile-label{
    display:block;
    margin-bottom:3px;
    color:#94A3B8;
    font-size:10px;
    font-weight:800;
    letter-spacing:.1em;
}

.barber-profile-identity h2{
    margin:0;
    font-size:19px;
    line-height:1.1;
    color:#fff;
}

.barber-status-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    flex:0 0 auto;
    padding:7px 10px;
    border-radius:999px;
    background:rgba(32,185,104,.16);
    color:#74E3AA;
    font-size:12px;
    font-weight:800;
}

.barber-status-pill span{
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--tb-success);
}

.barber-datetime-card{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    margin-left:70px;
    margin-top:8px;
    padding-top:8px;
    border-top:1px solid rgba(255,255,255,.08);
}

.barber-datetime-row{
    display:flex;
    align-items:center;
    gap:6px;
    padding:6px 9px;
    border-radius:9px;
    background:rgba(255,255,255,.07);
    color:#CBD5E1;
    font-size:12px;
    white-space:nowrap;
}

.barber-datetime-row strong{
    color:#fff;
}

@media(max-width:520px){
    .barber-access-logo{
        width:min(270px,84vw);
        max-height:125px;
    }

    .barber-profile-hero{
        padding:15px;
    }

    .barber-profile-main{
        gap:12px;
    }

    .barber-dashboard-icon{
        width:44px;
        height:44px;
        border-radius:12px;
    }

    .barber-business-title{
        font-size:22px;
    }

    .barber-profile-identity{
        margin-left:56px;
    }

    .barber-datetime-card{
        margin-left:56px;
        justify-content:flex-start;
        flex-wrap:wrap;
    }
}

@media(min-width:760px){
    #barberDashboard{
        max-width:720px !important;
    }
}

.barber-access-title{
    margin-top:0;
    margin-bottom:8px;
}


/* Acceso del barbero · identidad TurnoBarber 360 */
.barber-access-brand{text-align:center}
.barber-access-logo{display:block;width:min(260px,82%);height:auto;margin:0 auto 10px;object-fit:contain}
.barber-access-title{margin:6px 0 4px;font-size:clamp(22px,5vw,28px)}
.barber-access-subtitle{margin:0;color:var(--tb-muted)}
.barber-access-brand.compact .barber-access-logo{width:min(230px,78%);margin-bottom:8px}
.barber-access-symbol,.barber-invite-icon{display:flex;align-items:center;justify-content:center}
.barber-access-symbol img,.barber-invite-icon img{width:52px;height:52px;object-fit:contain}
.barber-invite-icon{margin-bottom:8px}


/* ==========================================================
   TURNOBARBER 360 · ACCESO BARBERO · CENTRADO FINAL
   Corrección estrictamente visual: no altera lógica ni funciones.
   ========================================================== */
#barberApp{
    width:min(680px,calc(100% - 24px)) !important;
    max-width:680px !important;
    margin:24px auto 35px !important;
    padding:28px 20px 34px !important;
    text-align:center;
    background:transparent;
    border:0;
    box-shadow:none;
}

#barberApp .barber-access-brand{
    width:100%;
    margin:0 auto 24px;
    text-align:center;
}

#barberApp .barber-access-logo{
    display:block;
    width:min(430px,88vw);
    max-width:100%;
    max-height:none;
    height:auto;
    margin:0 auto 20px;
    object-fit:contain;
}

#barberApp .barber-access-title{
    margin:0 0 8px;
    text-align:center;
    font-size:clamp(24px,4vw,30px);
}

#barberApp .barber-access-subtitle{
    margin:0;
    text-align:center;
}

#barberApp > section.card{
    width:min(590px,100%);
    max-width:590px;
    margin:28px auto 0;
    text-align:center;
}

#barberApp > section.card form{
    width:100%;
    max-width:100%;
    margin:0 auto;
}

#barberApp > section.card input,
#barberApp > section.card button{
    display:block;
    margin-left:auto !important;
    margin-right:auto !important;
}

@media(max-width:520px){
    #barberApp{
        width:calc(100% - 16px) !important;
        margin:12px auto 24px !important;
        padding:18px 10px 28px !important;
    }

    #barberApp .barber-access-logo{
        width:min(360px,92vw);
        margin-bottom:16px;
    }

    #barberApp .barber-access-brand{
        margin-bottom:18px;
    }

    #barberApp > section.card{
        width:100%;
        margin-top:22px;
    }
}

/* ==========================================================
   TURNOBARBER 360 · ACCESO BARBERO · CENTRADO ESTRUCTURAL
   Corrección estrictamente visual.
   ========================================================== */
#barberApp{
    display:block !important;
    float:none !important;
    position:relative;
    width:min(680px,calc(100% - 24px)) !important;
    max-width:680px !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

#barberApp > .barber-access-brand,
#barberApp > .barber-access-title,
#barberApp > .barber-access-subtitle,
#barberApp > #loadingMessage,
#barberApp > #invitationSection,
#barberApp > #errorSection{
    display:block;
    width:100%;
    max-width:100%;
    clear:both;
}

#barberApp > .barber-access-brand{
    text-align:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

#barberApp > .barber-access-logo{
    margin-left:auto !important;
    margin-right:auto !important;
}

#barberApp > .barber-access-title{
    text-align:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

#barberApp > .barber-access-subtitle,
#barberApp > #loadingMessage{
    text-align:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

@media(max-width:520px){
    #barberApp{
        width:calc(100% - 16px) !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }
}


/* ==========================================================
   TURNOBARBER 360 · PÁGINA PÚBLICA
   Corrección aislada: evita que los recursos de la página
   pública se muestren a tamaño natural.
   No modifica la estación del barbero.
   ========================================================== */

.public-topbar{
    min-height:56px;
}

.public-topbar-brand{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.public-topbar-icon{
    width:32px;
    height:32px;
    object-fit:contain;
    border-radius:8px;
    flex:0 0 auto;
}

.public-topbar-brand strong{
    font-size:20px;
    letter-spacing:-.2px;
}

.public-brand-card{
    padding:22px 20px 18px;
}

.public-brand-row{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    text-align:left;
}

.public-brand-icon{
    width:58px;
    height:58px;
    object-fit:contain;
    border-radius:15px;
    flex:0 0 auto;
}

.public-brand-copy{
    min-width:0;
}

.public-brand-name{
    font-size:15px;
    font-weight:850;
    letter-spacing:.2px;
    color:var(--tb-ink);
    margin-bottom:2px;
}

.public-brand-copy h1{
    font-size:24px;
    line-height:1.12;
    margin:0;
}

.public-brand-copy p{
    margin:4px 0 0;
}

.public-brand-meta{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:12px;
}

.public-date-time{
    font-size:12px;
    font-weight:750;
    color:var(--tb-muted);
    white-space:nowrap;
}

.public-brand-meta .badge{
    font-size:10px;
    padding:4px 8px;
}

@media(max-width:520px){
    .public-topbar{
        padding:12px 14px;
    }

    .public-topbar-icon{
        width:30px;
        height:30px;
    }

    .public-topbar-brand strong{
        font-size:18px;
    }

    .public-brand-card{
        padding:18px 15px 15px;
    }

    .public-brand-row{
        gap:10px;
    }

    .public-brand-icon{
        width:48px;
        height:48px;
        border-radius:13px;
    }

    .public-brand-name{
        font-size:14px;
    }

    .public-brand-copy h1{
        font-size:21px;
    }

    .public-brand-meta{
        margin-top:10px;
    }

    .public-date-time{
        font-size:11px;
    }
}
