html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ============================================================
   CHECKOUT STEPPER - DISEÑO PROFESIONAL COMPACTO
   ============================================================ */
.checkout-stepper-wrapper {
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
    padding: 18px 30px;
    position: relative;
    border-bottom: 1px solid rgba(255,215,0,0.12);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

    .checkout-stepper-wrapper::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, rgba(255,215,0,0.5) 50%, transparent 100%);
    }

.checkout-stepper-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.checkout-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

/* ===== STEP ITEM ===== */
.step-item {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

    .step-item:first-child {
        flex: 0 0 auto;
    }

    .step-item:last-child {
        flex: 0 0 auto;
    }

.step-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.step-item.completado .step-link:hover {
    background: rgba(255,215,0,0.05);
}

.step-item.pendiente .step-link {
    cursor: not-allowed;
}

/* ===== CÍRCULO ===== */
.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

/* Pendiente */
.step-item.pendiente .step-circle {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.25);
}

/* Activo */
.step-item.activo .step-circle {
    background: linear-gradient(135deg, #ffd700 0%, #f5a623 100%);
    color: #1a1a1a;
    border-color: rgba(255,215,0,0.5);
    box-shadow: 0 0 0 5px rgba(255,215,0,0.12), 0 6px 20px rgba(255,215,0,0.35);
    animation: pulse-step 2.2s ease-in-out infinite;
}

@keyframes pulse-step {
    0%, 100% {
        box-shadow: 0 0 0 5px rgba(255,215,0,0.12), 0 6px 20px rgba(255,215,0,0.35);
    }

    50% {
        box-shadow: 0 0 0 9px rgba(255,215,0,0.05), 0 6px 28px rgba(255,215,0,0.5);
    }
}

/* Completado */
.step-item.completado .step-circle {
    background: rgba(34,197,94,0.15);
    border-color: rgba(34,197,94,0.5);
    color: #22c55e;
    box-shadow: 0 0 15px rgba(34,197,94,0.15);
}

/* ===== TEXTO ===== */
.step-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.step-number {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: rgba(255,255,255,0.25);
    line-height: 1.1;
}

.step-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.step-item.activo .step-number {
    color: #ffd700;
}

.step-item.activo .step-title {
    color: #ffffff;
    font-size: 0.92rem;
}

.step-item.completado .step-number {
    color: rgba(34,197,94,0.7);
}

.step-item.completado .step-title {
    color: rgba(255,255,255,0.75);
}

/* ===== CONECTOR ===== */
.step-connector {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.06);
    margin: 0 12px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    min-width: 20px;
}

.step-connector-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e 0%, #ffd700 100%);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item.completado .step-connector-fill {
    width: 100%;
}

.step-item.activo .step-connector-fill {
    width: 50%;
    background: linear-gradient(90deg, #ffd700 0%, rgba(255,215,0,0.15) 100%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .checkout-stepper-wrapper {
        padding: 14px 16px;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .step-title {
        font-size: 0.75rem;
    }

    .step-connector {
        margin: 0 6px;
    }
}

@media (max-width: 768px) {
    .step-content {
        display: none;
    }

    .step-item.activo .step-content {
        display: flex;
    }

    .step-circle {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .step-connector {
        min-width: 10px;
        margin: 0 4px;
    }
}

.map-viewport {
    width: 100%;
    height: 70vh; /* ajusta según tu layout */
    position: relative;
    overflow: hidden;
    touch-action: none; /* importante para que svg-pan-zoom capture el touch */
}

    .map-viewport svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.mesa {
    cursor: pointer;
    transition: fill 0.2s, opacity 0.2s;
}

    .mesa.seleccionada {
        fill: #4CAF50 !important; /* verde para seleccionada */
        opacity: 1;
    }

.zoom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

    .zoom-controls button {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border: 1px solid #ccc;
        background: #fff;
        border-radius: 4px;
        cursor: pointer;
    }

        .zoom-controls button:hover {
            background: #f0f0f0;
        }