/* Estilos personalizados sobre Bootstrap */
@font-face{
    font-family: fuenteRandom;
    src: url(./fuentes/Quicksand-Regular.ttf)
}

body {
    background-color: #f3f4f8;
    font-family: fuenteRandom;
}


.container {
    max-width: 500px;
    margin: 0 auto;
    padding-bottom: 100px; /* Espacio para navbar fija + barra de sucursal */
}
/* Breakpoints de referencia (smartphone/tablet/laptop/desktop) */
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 1280px) { .container { max-width: 1100px; } }
@media (min-width: 1680px) { .container { max-width: 1500px; } }

/* Pantallas que deben verse siempre en formato compacto/celular sin importar el tamaño de
   pantalla (login, perfil): son de una sola columna y no se benefician de más ancho — a
   diferencia de .container (que sí escala), estas quedan fijas en 500px y centradas. */
.vista-movil {
    max-width: 500px;
    margin: 0 auto;
}

/* Header personalizado */
.header {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 14px rgba(255,107,0,0.4);
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.header i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.header .back-btn {
    left: 1rem;
    color: white;
    cursor: pointer;
}

.header .menu-btn {
    right: 1rem;
    color: white;
    cursor: pointer;
}

/* Tarjetas*/
.card {
    border: none;
    border-radius: 16px;
    margin: 10px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-weight: 600;
    border-radius: 16px 16px 0 0 !important;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff6b00;
}

.img-upload-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.titulo{
    font-weight: bold;
}

.cantidad{
    font-size: 15px;
}

.cursor{
    cursor: pointer;
}

.oculto{
    display: none !important;
}

/*tamaño de texto*/
.fs-7{
    font-size: 13px;
}

.fs-8{
    font-size: 11px;
}


/* Tab bar fija */
.tab-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-top: none;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
}
.sucursal-bar {
    width: 100%;
    text-align: center;
    padding: 3px 8px;
    font-size: 11px;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}
.tab-row {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.tab-row::-webkit-scrollbar {
    display: none;
}
.tab-item {
    flex: 1;
    min-width: 72px;
    text-align: center;
    padding: 10px 0 12px;
    color: #777;
    font-size: 13px;
    transition: color 0.25s;
    position: relative;
    cursor: pointer;
}
.tab-item.active {
    color: #0d6efd;
    font-weight: 600;
}
.tab-item.active::before {
    content: '';
    display: block;
    width: 56px;
    height: 32px;
    background: rgba(13,110,253,0.1);
    border-radius: 50px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}
.tab-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 3px;
    position: relative;
    z-index: 1;
}

/* Tab bar — en pantallas anchas, acompaña el ancho de .container en vez de
   estirarse borde a borde (mismos breakpoints que .container arriba) */
@media (min-width: 768px) {
    .tab-nav { max-width: 720px; left: 50%; transform: translateX(-50%); border-radius: 20px 20px 0 0; overflow: hidden; }
    .tab-row { justify-content: center; }
    .tab-item { flex: 0 1 140px; }
}
@media (min-width: 1280px) { .tab-nav { max-width: 1100px; } }
@media (min-width: 1680px) { .tab-nav { max-width: 1500px; } }

/* Imagen de carga */
.image-upload {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.image-upload:hover {
    border-color: #ff6b00;
    background-color: #fff8f0;
}
.image-upload i {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 10px;
}
.uploaded-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    margin: 10px auto;
}

/* Modales */
.modal-content {
    border-radius: 24px;
    overflow: hidden;
    border: none;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.modal-header {
    border-bottom: none;
    padding: 24px 24px 10px;
}
.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
}
.close-modal {
    font-size: 1.5rem;
    color: #666;
    opacity: 1;
}
.modal-body {
    padding: 10px 24px 16px;
    text-align: center;
}
.modal-footer {
    border-top: none;
    padding: 8px 24px 24px;
    justify-content: center;
    gap: 0.75rem;
}
.modal-footer .btn { min-width: 90px; }


/* Formularios */
.form-control {
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
}
.form-label {
    font-weight: 600;
    color: #555;
    margin-top: 10px;
    font-size: 12px !important;
    padding: 0;
    margin: 0;
}
.btn-block {
    width: 100%;
}

/* ── Android / Material Design inputs ─────────────────────────────── */

/* Quitar borde completo, dejar solo borde inferior */
.android-input.form-floating {
    position: relative;
}
.android-input.form-floating > .form-control,
.android-input.form-floating > .form-select {
    background-color: transparent !important;
    border: none;
    border-bottom: 2px solid #d0d0d0;
    border-radius: 0;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    font-size: 15px;
    box-shadow: none !important;
    transition: border-color 0.25s ease;
    color: #222;
}
.android-input.form-floating > .form-control:focus,
.android-input.form-floating > .form-select:focus {
    border-bottom-color: #0d6efd;
    background-color: transparent !important;
    outline: none;
}

/* Label: Bootstrap maneja top y transform — solo cambiamos apariencia */
.android-input.form-floating > label {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

/* Estado flotado: Bootstrap aplica scale(0.85) translateY — solo cambiamos color */
.android-input.form-floating > .form-control:focus ~ label,
.android-input.form-floating > .form-control:not(:placeholder-shown) ~ label,
.android-input.form-floating > .form-select ~ label {
    color: #0d6efd;
    font-weight: 600;
    opacity: 1;
}

/* Estrella de requerido */
.req-star { color: #dc3545; font-size: 10px; }

/* Ripple: borde azul que se expande al enfocar */
.android-input.form-floating::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0d6efd;
    transition: width 0.25s ease, left 0.25s ease;
    pointer-events: none;
    z-index: 1;
}
.android-input.form-floating:focus-within::after {
    width: 100%;
    left: 0;
}

/* Estados de validación — solo borde inferior, sin icono Bootstrap */
.android-input.form-floating > .form-control.is-valid,
.android-input.form-floating > .form-control.is-invalid {
    background-image: none !important;
}
.android-input.form-floating > .form-control.is-valid   { border-bottom-color: #198754 !important; }
.android-input.form-floating > .form-control.is-invalid { border-bottom-color: #dc3545 !important; }
.android-input.form-floating:has(.is-valid)::after    { background: #198754; }
.android-input.form-floating:has(.is-invalid)::after  { background: #dc3545; }
.android-input.form-floating:has(.is-valid) > label   { color: #198754; }
.android-input.form-floating:has(.is-invalid) > label { color: #dc3545; }
/* Suprimir ripple cuando ya hay estado de validación para evitar doble línea */
.android-input.form-floating:has(.is-valid):focus-within::after,
.android-input.form-floating:has(.is-invalid):focus-within::after  { width: 0 !important; }

/*calendario*/
#app-container {
    position: relative;
}

#app-container .datepicker {
    position: absolute !important;
    left: 50% !important;
    top: 200px !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1050;
}

/* Aumentar padding general del datepicker */

.datepicker-days,.datepicker-months,.datepicker-years,.datepicker-decades,.datepicker-centuries{
    width: 300px;
}

.datepicker-days table tr td,
.datepicker-months table tr td,
.datepicker-years table tr td,
.datepicker-decades table tr td,
.datepicker-centuries table tr td
{
    width: 300px;
}

/* ══════════════════════════════════════════════════════════════════════════
   Material Design 3 / Android — overrides globales
   ══════════════════════════════════════════════════════════════════════════ */

/* Botones ──────────────────────────────────────────────────────────────── */
.btn {
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 0.5rem 1.4rem;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    position: relative;
    overflow: hidden;
}
/* Ripple visual al hacer clic */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.25s;
    pointer-events: none;
    border-radius: inherit;
}
.btn:active::after { background: rgba(255,255,255,0.22); }

.btn-primary  { box-shadow: 0 2px 8px rgba(13,110,253,0.30); border: none; }
.btn-primary:hover  { box-shadow: 0 4px 16px rgba(13,110,253,0.40); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-danger   { box-shadow: 0 2px 8px rgba(220,53,69,0.25); border: none; }
.btn-danger:hover   { box-shadow: 0 4px 16px rgba(220,53,69,0.35); transform: translateY(-1px); }
.btn-danger:active  { transform: translateY(0); }

.btn-success  { box-shadow: 0 2px 8px rgba(25,135,84,0.25); border: none; }
.btn-success:hover  { box-shadow: 0 4px 16px rgba(25,135,84,0.35); transform: translateY(-1px); }
.btn-success:active { transform: translateY(0); }

.btn-secondary { border: none; }
.btn-link { text-decoration: none !important; }

.btn-sm { border-radius: 50px; padding: 0.3rem 0.75rem; font-size: 0.8rem; }

.btn-outline-primary:hover { box-shadow: 0 2px 10px rgba(13,110,253,0.2); }
.btn-outline-danger:hover  { box-shadow: 0 2px 10px rgba(220,53,69,0.2); }

/* Badges ───────────────────────────────────────────────────────────────── */
.badge {
    border-radius: 50px;
    padding: 0.35em 0.8em;
    font-weight: 600;
    font-size: 0.72em;
    letter-spacing: 0.2px;
}

/* Offcanvas ────────────────────────────────────────────────────────────── */
.offcanvas-end {
    box-shadow: -4px 0 30px rgba(0,0,0,0.12);
}
.offcanvas-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 20px 14px;
}
.offcanvas-title { font-size: 1.1rem; font-weight: 700; }

/* Form-select standalone (fuera de android-input) ──────────────────────── */
.form-select {
    border-radius: 10px;
    border: 1.5px solid #dee2e6;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}

/* Input groups ─────────────────────────────────────────────────────────── */
.input-group > .form-control,
.input-group > .form-select { border: 1.5px solid #dee2e6; }
.input-group > .form-control:focus,
.input-group > .form-select:focus { border-color: #0d6efd; box-shadow: none; z-index: 3; }

/* Scrollbar delgado estilo Android ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ── Botones de acción (listas de módulos) ────────────────────────────────── */
.btn-icon {
    height: 38px;
    min-width: 70px;
    padding: 0 20px;
    border-radius: 10px !important;
    border: 1.5px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.15s;
    background: transparent;
    flex-shrink: 0;
    line-height: 1;
}
.btn-icon:hover  { transform: scale(1.12); }
.btn-icon:active { transform: scale(0.93); }
.btn-icon-primary   { border-color: #0d6efd; color: #0d6efd; }
.btn-icon-primary:hover   { background: #0d6efd; color: #fff; }
.btn-icon-danger    { border-color: #dc3545; color: #dc3545; }
.btn-icon-danger:hover    { background: #dc3545; color: #fff; }
.btn-icon-warning   { border-color: #ffc107; color: #b07e00; }
.btn-icon-warning:hover   { background: #ffc107; color: #fff; }
.btn-icon-success   { border-color: #198754; color: #198754; }
.btn-icon-success:hover   { background: #198754; color: #fff; }
.btn-icon-info      { border-color: #0dcaf0; color: #0aa0c0; }
.btn-icon-info:hover      { background: #0dcaf0; color: #fff; }
.btn-icon-secondary { border-color: #6c757d; color: #6c757d; }
.btn-icon-secondary:hover { background: #6c757d; color: #fff; }
.btn-icon-teal      { border-color: #20c997; color: #20c997; }
.btn-icon-teal:hover      { background: #20c997; color: #fff; }

/* Variante circular compacta (ej. contador +/- y quitar del carrito) — evita que
   min-width/padding de .btn-icon lo estiren en espacios angostos */
.btn-icon.btn-icon-round {
    min-width: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50% !important;
    font-size: .85rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   Grillas responsivas — listas en función de tarjetas
   Móvil <768px: 1 col · Tablet 768-1279px: 2 col · Laptop 1280-1679px: 3 col
   · Desktop ≥1680px: 4 col (medidas de referencia: 320-480 / 768-1024 /
   1280-800 / 1680x1050)
   ══════════════════════════════════════════════════════════════════════════ */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
}
.card-grid > .card { margin: 0 !important; }
.card-grid > p { grid-column: 1 / -1; } /* estados vacíos ("Sin resultados") ocupan todo el ancho */
@media (min-width: 768px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1680px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

/* Grid de productos de Vender (tarjetas más compactas que .card-grid) — un
   nivel más de columnas en cada breakpoint: móvil 2 · tablet 3 · laptop 4 · desktop 5 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: start;
}
.product-grid > .card { margin: 0 !important; }
.product-grid > p { grid-column: 1 / -1; }
@media (min-width: 768px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1680px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

/* ── Dashboard responsivo ─────────────────────────────────────────────── */
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.dash-kpi-grid > .card { margin: 0 !important; }
@media (min-width: 768px) { .dash-kpi-grid { grid-template-columns: repeat(4, 1fr); } }
/* 3 KPIs por fila (2 filas). Cada card es un contenedor: número y etiqueta escalan
   con su propio ancho (cqw), así se adaptan de PC a móvil sin desbordar ni comprimirse. */
.dash-kpi-grid.dash-kpi-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-kpi-grid-3 > .card { container-type: inline-size; }
.dash-kpi-grid-3 .card-body { padding-left: .35rem !important; padding-right: .35rem !important; }
.dash-kpi-grid-3 .card-body > div:first-child { font-size: clamp(.65rem, 14cqw, 1.8rem) !important; line-height: 1.2 !important; white-space: nowrap; }
.dash-kpi-grid-3 .card-body > div:last-child { font-size: clamp(.58rem, 6.5cqw, .78rem) !important; }
/* Móvil: una card por fila */
@media (max-width: 575px) { .dash-kpi-grid.dash-kpi-grid-3 { grid-template-columns: 1fr; gap: 10px; } }

.dash-lower-grid { display: grid; grid-template-columns: 1fr; }
.dash-lower-grid > .card { margin-bottom: 1rem; }
@media (min-width: 768px) {
    .dash-lower-grid { grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
    .dash-lower-grid > .card { margin-bottom: 0 !important; }
    .dash-lower-grid > .dash-span-2 { grid-column: 1 / -1; }
}

/* ---- Stepper del wizard de Alquilar (Carrito -> Cliente -> Pago), ver vender.js ---- */
.wz-stepper { display: flex; align-items: flex-start; }
.wz-step {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    flex: 0 0 auto; width: 64px; cursor: default; user-select: none;
}
.wz-step-circle {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: #adb5bd; border: 2px solid #dee2e6;
    font-weight: 700; font-size: .85rem; position: relative;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.wz-step-check { display: none; font-size: .8rem; }
.wz-step-label {
    font-size: .68rem; font-weight: 600; color: #adb5bd; white-space: nowrap;
    transition: color .25s ease;
}
.wz-step-line {
    flex: 1 1 auto; height: 2px; background: #dee2e6; margin-top: 17px;
    border-radius: 2px; transition: background-color .25s ease;
}

.wz-step.is-active .wz-step-circle {
    background: #0d6efd; border-color: #0d6efd; color: #fff;
    box-shadow: 0 0 0 4px rgba(13,110,253,0.15); transform: scale(1.1);
}
.wz-step.is-active .wz-step-label { color: #0d6efd; }

.wz-step.is-done { cursor: pointer; }
.wz-step.is-done .wz-step-circle { background: #198754; border-color: #198754; color: #fff; }
.wz-step.is-done .wz-step-num  { display: none; }
.wz-step.is-done .wz-step-check { display: inline-block; }
.wz-step.is-done .wz-step-label { color: #198754; }
.wz-step.is-done:hover .wz-step-circle {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(25,135,84,0.18);
}
.wz-step.is-done:hover .wz-step-label { color: #0f5c39; text-decoration: underline; }

.wz-step-line.is-done { background: #198754; }

@keyframes wzPasoEntrada {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}
.wz-paso-anim { animation: wzPasoEntrada .28s ease; }
