html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%; /* Importante para que min-height funcione */
    margin: 0;
}

/* Wrapper principal - ocupa toda la altura de la ventana */
.tm-app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Mínimo la altura completa de la ventana */
}

/* Main content - CRECE para ocupar el espacio disponible */
.tm-main-content {
    flex: 1 0 auto; /* Crece, no se encoge, base automática */
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

/* Footer - NO crece, se queda abajo */
.tm-footer {
    flex-shrink: 0; /* No se encoge */
    background: linear-gradient(180deg, rgba(255,123,0,.02), rgba(255,123,0,.06));
    border-top: 1px solid rgba(255,123,0,.15);
    margin-top: auto; /* Empuja hacia abajo si hay espacio extra */
}

.tm-footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.tm-footer i {
    color: #ff7b00;
}

/* Ajuste responsive del main */
@media (max-width: 575.98px) {
    .tm-main-content {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }
    
    .tm-footer {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Titulares accesibles */
h1:focus {
    outline: none;
}

/* Links y botones base */ a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

/* Contenido genérico */ .content {
    padding-top: 1.1rem;
}

/* Validaciones */ .valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}
/* Error UI Blazor (igual) */ #blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: .75rem;
        top: .5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDky. . .) no-repeat 1rem/1.8rem,#b32121;
    color: white;
    padding: 1rem 1rem 1rem 3.7rem
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Loader */ .loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: .6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141*var(--blazor-load-percentage,0%)*0.8),500%;
            transition: stroke-dasharray .05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto .2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text,"Loading");
    }

/* Código */ code {
    color: #c02d76;
}
/* Floating labels */ .form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===== Layout base ===== */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.tm-main-content {
    flex: 1 0 auto;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.tm-footer {
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(255,123,0,.02), rgba(255,123,0,.06));
    border-top: 1px solid rgba(255,123,0,.15);
}

.tm-footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.tm-footer i {
    color: #ff7b00;
}

/* Ajuste responsive del main */
@media (max-width: 575.98px) {
    .tm-main-content {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Marca */ .navbar-brand {
    font-weight: bold;
    color: #ff6600 !important;
    letter-spacing: 1px;
}
/* Hero genérico (otras pantallas) */ .hero-section {
    background: linear-gradient(90deg,#ff6600 0%,#ffb347 100%);
    color: #fff;
    padding: 44px 0 28px;
    text-align: center;
    border-radius: 0 0 24px 24px;
    margin-bottom: 1.5rem;
}

    .hero-section h1 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: .5rem;
    }

    .hero-section p {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
/* Buscador home viejo */ .search-bar {
    background: #fff;
    margin-top: -28px;
    margin-bottom: 28px;
    box-shadow: 0 4px 18px rgba(255,102,0,.08);
    transition: box-shadow .2s;
}

    .search-bar:focus-within {
        box-shadow: 0 6px 18px rgba(255,102,0,.28);
    }

.search-input {
    font-size: 1rem;
    padding-top: .8rem;
    padding-bottom: .8rem;
}

/* Buscador home Nuevo */
/* ====== Home: resultados del buscador (compactos + scroll ~5 filas) ====== */
.search-results {
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(255,102,0,.07);
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    overflow: hidden;
}

/* altura pensada para ~5 ítems; ajusta si quieres mostrar más/menos */
.results-scroll {
    max-height: 280px;
    overflow: auto;
}

:root {
    --kb: 0px;
}

body.tm-keyboard-open {
    padding-bottom: var(--kb);
}

/* Asegura scroll táctil suave dentro de la lista si es más alta que la vista */
.results-scroll {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Quita si lo tenías: NO usaremos modo flotante */
.search-results.floating {
    position: static !important;
}

/* mismo “feeling” que tus filas de tabla compacta */
.search-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem .8rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
    text-decoration: none;
    color: inherit;
    transition: background .15s, box-shadow .15s;
}

    .search-item:last-child {
        border-bottom: 0;
    }

    .search-item:hover {
        background: #fff3e0; /* naranja suave, como tu tabla */
        box-shadow: 0 4px 18px rgba(255,102,0,.10) inset;
    }

    .search-item.disabled {
        pointer-events: none;
        opacity: .7;
    }

    .search-item .title {
        font-weight: 600;
        line-height: 1.2;
    }

    .search-item .addr {
        display: block;
        margin-top: 2px;
        font-size: .85rem;
        color: #6c757d;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-item .chev {
        margin-left: auto;
        opacity: .6;
    }

/* mismo estilo de scrollbars que usas en tablas */
.results-scroll::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.results-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.2);
    border-radius: 10px;
}

.results-scroll::-webkit-scrollbar-track {
    background: rgba(0,0,0,.05);
}
/* ====== Home: spacing fino entre buscador y resultados ====== */
.results-tight {
    /* pega a la barra de búsqueda */
    margin-top: -8px;
    /* separa de la sección de abajo */
    margin-bottom: 32px;
}

@media (max-width: 575.98px) {
    .results-tight {
        margin-top: -6px;
        margin-bottom: 24px;
    }
}


/* ===== Tablas / cajitas / mapa (igual a tu versión) ===== */
.table-scroll {
    --tbl-max-h: 420px;
    max-height: var(--tbl-max-h);
    overflow: auto;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(255,102,0,.07);
    background: #fff;
}

.product-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .product-table thead {
        position: sticky;
        top: 0;
        z-index: 2;
        background: linear-gradient(90deg,#ff6600 0%,#ffb347 100%);
        color: #fff;
        font-weight: 600;
        font-size: .95rem;
    }

    .product-table th, .product-table td {
        padding: .55rem .8rem;
        border: none;
        vertical-align: middle;
        font-size: .92rem;
        white-space: nowrap;
    }

    .product-table tbody tr {
        transition: background .2s,box-shadow .2s;
    }

        .product-table tbody tr:hover {
            background: #fff3e0;
            box-shadow: 0 4px 18px rgba(255,102,0,.10);
        }

.text-mono {
    font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

.table-scroll::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.2);
    border-radius: 10px;
}

.table-scroll::-webkit-scrollbar-track {
    background: rgba(0,0,0,.05);
}

/* Tarjetas varias */ .card-category {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .15s,box-shadow .15s;
    background: #fff;
}

    .card-category:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 18px rgba(0,0,0,.12);
    }

.category-icon {
    font-size: 1.6rem;
    color: #ff6600;
}

.category-img-container {
    height: 180px;
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.card-category {
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    transition: transform .2s ease,box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}

    .card-category:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,.1);
    }

        .card-category:hover .category-img {
            transform: scale(1.05);
        }

    .card-category small {
        position: relative;
        max-height: 4.5em;
        overflow: hidden;
        transition: max-height .3s ease;
    }

        .card-category small.expanded {
            max-height: 500px;
        }

    .card-category .read-more {
        display: none;
        text-align: center;
        color: #0d6efd;
        cursor: pointer;
        margin-top: .25rem;
        font-weight: 500;
    }

.services-row {
    justify-content: center;
}

@media (max-width:767px) {
    .category-img-container {
        height: 140px;
    }

    .card-category {
        padding: .75rem !important;
    }

        .card-category small {
            font-size: .7rem;
        }

        .card-category .read-more {
            display: block;
            font-size: .75rem;
        }
}

.card-category small {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (max-width:768px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section p {
        font-size: .95rem;
    }

    .product-table th, .product-table td {
        padding: .5rem .6rem;
        font-size: .9rem;
    }

    .table-scroll {
        --tbl-max-h: 360px;
    }
}

/* ===================== MAPA ===================== */
@media (prefers-color-scheme:dark) {
    .input-group[data-bs-theme="light"] .form-control {
        color: #212529 !important;
        background-color: #ffffff !important;
        border-color: rgba(0,0,0,.15) !important;
    }
}

.object-cover {
    object-fit: cover;
}

.min-w-0 {
    min-width: 0;
}

.gmaps-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 12px;
}

.gmaps-panel {
    min-height: 60vh;
    max-height: calc(100vh - 280px);
    overflow: auto;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
}

.gmaps-map {
    width: 100%;
    height: 70vh;
    border-radius: 12px;
}

.gmaps-list .list-group-item {
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

@media (max-width:991.98px) {
    .gmaps-layout {
        display: block;
    }

    .gmaps-map {
        height: 65vh;
    }
}

.gm-layout {
    gap: 0;
}

.gm-map {
    width: 100%;
    height: 70vh;
    min-height: 380px;
    border-radius: 12px;
}

.results-panel {
    height: 70vh;
    overflow: auto;
    border-radius: 12px;
}

.gm-list {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.gm-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: .75rem;
    padding: .6rem .5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s,box-shadow .15s,transform .05s;
    border: 1px solid rgba(0,0,0,.06);
    background: #fff;
}

    .gm-item:hover {
        background: #fff8f0;
        box-shadow: 0 2px 10px rgba(0,0,0,.06);
    }

    .gm-item.active {
        outline: 2px solid #ff6600;
    }

.gm-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #f2f2f2;
    flex-shrink: 0;
}

.gm-meta {
    min-width: 0;
}

.gm-title {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: .1rem;
}

.gm-stars {
    font-size: .85rem;
    color: #ff9900;
    margin-bottom: .15rem;
}

.gm-addr {
    font-size: .85rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gm-actions {
    margin-left: .5rem;
}

.gm-card .gm-thumb {
    width: 72px;
    height: 72px;
}

@media (max-width:991.98px) {
    .gm-map {
        height: 60vh;
    }

    .results-panel {
        height: auto;
        max-height: none;
    }
}

gmp-place-autocomplete {
    color-scheme: light !important;
}

    gmp-place-autocomplete::part(input) {
        color: #212529;
        background: #fff;
    }

    gmp-place-autocomplete::part(results) {
        color: #212529;
        background: #fff;
        border-color: rgba(0,0,0,.15);
    }

.input-group[data-bs-theme="light"] .form-control {
    color: #212529 !important;
    background: #fff !important;
    border-color: rgba(0,0,0,.15) !important;
}



/* ===== Login/Register/etc. (sin cambios relevantes) ===== */
#tmLoginModule .tm-login-container {
    padding: 2rem 1rem;
}

#tmLoginModule .tm-user-card {
    cursor: pointer;
    border: none;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all .4s cubic-bezier(.165,.84,.44,1);
    height: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    position: relative;
    z-index: 1;
    padding: 2.5rem 1.5rem !important;
}

    #tmLoginModule .tm-user-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 14px 40px rgba(255,123,0,.16);
    }

    #tmLoginModule .tm-user-card i {
        font-size: 3rem;
        margin-bottom: 1.5rem;
        display: inline-block;
        color: #ff7b00;
        background: linear-gradient(135deg,#ff7b00,#ff9d4a);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        transition: transform .3s ease;
    }

    #tmLoginModule .tm-user-card:hover i {
        transform: scale(1.1) rotate(5deg);
    }

    #tmLoginModule .tm-user-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100%;
        background: linear-gradient(135deg,rgba(214,213,212,.15) 0%,rgba(255,157,74,0) 50%);
        border-radius: 16px;
        z-index: -1;
        transition: opacity .3s ease;
    }

    #tmLoginModule .tm-user-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg,#ff7b00,#ff9d4a);
        transform: scaleX(.3);
        transform-origin: left;
        transition: transform .4s ease-out;
        border-radius: 0 0 4px 4px;
    }

    #tmLoginModule .tm-user-card:hover::after {
        transform: scaleX(1);
    }

#tmLoginModule .tm-card-title {
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
}

#tmLoginModule .tm-card-text {
    color: #666;
    transition: color .3s ease;
}

#tmLoginModule .tm-user-card:hover .tm-card-text {
    color: #444;
}

#tmLoginModule .tm-business-card {
    background: linear-gradient(145deg,#ffffff,#f9f9f9);
}

    #tmLoginModule .tm-business-card:hover {
        background: linear-gradient(145deg,#ffffff,#fff8f0);
    }

#tmLoginModule .tm-customer-card {
    background: linear-gradient(145deg,#ffffff,#f9f9f9);
}

    #tmLoginModule .tm-customer-card:hover {
        background: linear-gradient(145deg,#ffffff,#fff8f0);
    }

#tmLoginModule .tm-auth-form-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

#tmLoginModule .tm-auth-header {
    background: linear-gradient(135deg,#ff7b00,#ff9d4a);
    color: white;
    border-bottom: none;
    padding: 1.25rem;
}

#tmLoginModule .tm-auth-body {
    padding: 2rem;
}

#tmLoginModule .tm-auth-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0,0,0,.05);
    padding: 1.25rem;
}

#tmLoginModule .tm-btn-login {
    background: linear-gradient(135deg,#ff7b00,#ff9d4a);
    border: none;
    color: white;
    padding: .6rem 1.25rem;
    border-radius: 6px;
    transition: all .3s ease;
}

    #tmLoginModule .tm-btn-login:hover {
        background: linear-gradient(135deg,#e56e00,#ff8d2a);
        transform: translateY(-2px);
    }

#tmLoginModule .tm-btn-back {
    color: #6c757d;
    background: transparent;
    border: none;
    font-size: .875rem;
    text-decoration: underline;
}

    #tmLoginModule .tm-btn-back:hover {
        color: #495057;
    }

#tmLoginModule .tm-input-group {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    overflow: hidden;
}

    #tmLoginModule .tm-input-group .form-control {
        border: none;
        background-color: transparent;
    }

        #tmLoginModule .tm-input-group .form-control:focus {
            box-shadow: none;
            outline: none;
        }

#tmLoginModule .tm-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    color: #6c757d;
}

#tmLoginModule .tm-link-secondary {
    color: #6c757d;
    text-decoration: none;
}

    #tmLoginModule .tm-link-secondary:hover {
        color: #495057;
        text-decoration: underline;
    }

#tmLoginModule .tm-link-register {
    color: #ff7b00;
    text-decoration: none;
    font-weight: 500;
}

    #tmLoginModule .tm-link-register:hover {
        text-decoration: underline;
    }

#tmLoginModule #tm-login-form-business .tm-auth-header {
    background: linear-gradient(135deg,#ff7b00,#ff9d4a);
}

#tmLoginModule #tm-login-form-customer .tm-auth-header {
    background: linear-gradient(135deg,#ff9d4a,#ffbf80);
}

.tm-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg,#ff7b00,#ff9d4a);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
}

/******************************************registrarse***************************************/
#tmRegisterModule .tmreg-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

#tmRegisterModule .tmreg-header {
    background: linear-gradient(135deg,#ff7b00,#ff9d4a);
    color: white;
    padding: 1rem 1.25rem;
    border-bottom: none;
}

#tmRegisterModule .tmreg-body {
    padding: 1.5rem;
}

#tmRegisterModule .tmreg-btn {
    background: linear-gradient(135deg,#ff7b00,#ff9d4a);
    border: none;
    color: white;
    padding: .6rem 1.25rem;
    border-radius: 6px;
    transition: all .2s ease;
}

    #tmRegisterModule .tmreg-btn:hover {
        filter: brightness(.95);
        transform: translateY(-1px);
    }

#tmRegisterModule .tmreg-link {
    color: #ff7b00;
    text-decoration: none;
    font-weight: 500;
}

    #tmRegisterModule .tmreg-link:hover {
        text-decoration: underline;
    }

.tm-avatar {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #ff7b00;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

/* -----------------------------------contraseña olvidada----------------------- */
#tmForgotModule .tmfp-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

#tmForgotModule .tmfp-header {
    background: linear-gradient(135deg,#ff7b00,#ff9d4a);
    color: #fff;
    padding: 1rem 1.25rem;
}

#tmForgotModule .tmfp-body {
    padding: 1.5rem;
}

#tmForgotModule .tmfp-btn {
    background: linear-gradient(135deg,#ff7b00,#ff9d4a);
    border: none;
    color: #fff;
    padding: .6rem 1.25rem;
    border-radius: 6px;
}

/* ===== Reset Password ===== */
#tmResetModule .tmrp-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

#tmResetModule .tmrp-header {
    background: linear-gradient(135deg,#ff7b00,#ff9d4a);
    color: #fff;
    padding: 1rem 1.25rem;
}

#tmResetModule .tmrp-body {
    padding: 1.5rem;
}

#tmResetModule .tmrp-btn {
    background: linear-gradient(135deg,#ff7b00,#ff9d4a);
    border: none;
    color: #fff;
    padding: .6rem 1.25rem;
    border-radius: 6px;
}

/* ===== OJO/TOGGLE PASSWORD (compartido) ===== */
#tmLoginModule .tm-password-group, #tmRegisterModule .tm-password-group, #tmResetModule .tm-password-group, #tmBizRegisterModule .tm-password-group, #tmProfileModule .tm-password-group {
    position: relative;
    overflow: visible;
}

#tmLoginModule .tm-password-input, #tmRegisterModule .tm-password-input, #tmResetModule .tm-password-input, #tmBizRegisterModule .tm-password-input, #tmProfileModule .tm-password-input {
    padding-right: 2.6rem;
}

#tmLoginModule .tm-eye-btn, #tmRegisterModule .tm-eye-btn, #tmResetModule .tm-eye-btn, #tmBizRegisterModule .tm-eye-btn, #tmProfileModule .tm-eye-btn {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #6c757d;
    z-index: 3;
    cursor: pointer;
}

    #tmLoginModule .tm-eye-btn:hover, #tmRegisterModule .tm-eye-btn:hover, #tmResetModule .tm-eye-btn:hover, #tmBizRegisterModule .tm-eye-btn:hover, #tmProfileModule .tm-eye-btn:hover {
        color: #212529;
    }

    #tmLoginModule .tm-eye-btn i, #tmRegisterModule .tm-eye-btn i, #tmResetModule .tm-eye-btn i, #tmBizRegisterModule .tm-eye-btn i, #tmProfileModule .tm-eye-btn i {
        font-size: 1rem;
        color: currentColor !important;
    }

/* ===== Registro Negocio ===== */
#tmBizRegisterModule .tmreg-card {
    border: none;
    border-radius: 12px;
    background: #fff;
}

#tmBizRegisterModule .tmreg-header {
    background: linear-gradient(135deg,#ff7b00,#ff9d4a);
    color: #fff;
    padding: 1rem 1.25rem;
}

#tmBizRegisterModule .tmreg-body {
    padding: 1.5rem;
}

#tmBizRegisterModule .tmreg-btn {
    background: linear-gradient(135deg,#ff7b00,#ff9d4a);
    border: none;
    color: #fff;
    padding: .6rem 1.25rem;
    border-radius: 6px;
}




/* ================== /estados – tarjetas livianas ================== */
#tmEstados {
    --tm-primary: #ff7b00;
    --tm-primary-2: #ff9d4a;
    --tm-bg: #fff8f0;
    --tm-text: #1f2937;
}

    /* Hero chico tipo “brand” */
    #tmEstados .tm-hero {
        background: linear-gradient(135deg, var(--tm-primary) 0%, var(--tm-primary-2) 100%);
        color: #fff;
        border-radius: 14px;
        padding: 16px 14px;
    }

    #tmEstados .tm-title {
        margin: 0 0 .25rem 0;
        font-weight: 800;
        font-size: clamp(1.25rem, 2.2vw, 1.8rem);
        letter-spacing: .2px;
    }

    #tmEstados .tm-sub {
        margin: 0;
    }

    /* Grid de tarjetas */
    #tmEstados .tm-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
        list-style: none;
        padding: 0;
        margin: 12px 0 0 0;
    }

@media (max-width: 575.98px) {
    #tmEstados .tm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* fuerza 2 col en móviles */
        gap: 10px;
    }
}

/* Tarjeta */
#tmEstados .tm-card {
    position: relative;
    border: 1px solid rgba(255,123,0,.18);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: transform .08s ease, box-shadow .18s ease;
}

    #tmEstados .tm-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(255,123,0,.12);
    }
    /* acento superior */
    #tmEstados .tm-card::before {
        content: '';
        display: block;
        height: 3px;
        background: linear-gradient(90deg, var(--tm-primary), var(--tm-primary-2));
    }

/* Enlace que llena la tarjeta */
#tmEstados .tm-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .9rem .85rem;
    text-decoration: none;
    color: var(--tm-text);
    font-weight: 600;
    min-height: 56px;
}

    #tmEstados .tm-link:focus-visible {
        outline: 3px solid rgba(255,123,0,.40);
        outline-offset: 2px;
        border-radius: 10px;
    }

/* Nombre recortable */
#tmEstados .tm-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Flecha sutil */
#tmEstados .tm-arrow {
    font-size: 1.1rem;
    opacity: .65;
    transform: translateX(0);
    transition: transform .12s ease, opacity .12s ease;
}

#tmEstados .tm-link:hover .tm-arrow {
    transform: translateX(2px);
    opacity: .9;
}



/* ========================= /{estadoSlug} ========================= */
#tmEstado {
    --tm-primary: #ff7b00;
    --tm-primary-2: #ff9d4a;
    --tm-bg: #fff8f0;
    --tm-text: #1f2937;
}

    /* Hero compacto */
    #tmEstado .tm-hero {
        background: linear-gradient(135deg, var(--tm-primary) 0%, var(--tm-primary-2) 100%);
        color: #fff;
        border-radius: 14px;
        padding: 16px 14px;
    }

    #tmEstado .tm-title {
        margin: 0 0 .25rem 0;
        font-weight: 800;
        font-size: clamp(1.25rem, 2.2vw, 1.8rem);
        letter-spacing: .2px;
    }

    #tmEstado .tm-sub {
        margin: 0;
    }

    /* Buscador con acento de marca */
    #tmEstado .tm-search .card-body {
        padding: 14px;
    }

    #tmEstado .tm-search .form-label {
        font-weight: 600;
    }

    #tmEstado .tm-search .input-group .form-control {
        border-color: rgba(255,123,0,.35);
    }

    #tmEstado .tm-search .btn-outline-primary {
        border-color: rgba(255,123,0,.5);
        color: var(--tm-primary);
    }

        #tmEstado .tm-search .btn-outline-primary:hover {
            background: rgba(255,123,0,.08);
        }

    /* Map + panel: usa tus clases gmaps-*, pero las afinamos aquí */
    #tmEstado .gmaps-layout {
        gap: 12px;
    }

    #tmEstado .gmaps-panel {
        border: 1px solid rgba(0,0,0,.06);
        border-radius: 12px;
        background: #fff;
        padding: 8px;
    }

    #tmEstado .gmaps-map {
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,.06);
    }

    /* Lista del panel: botones limpios y hover */
    #tmEstado .gmaps-list .list-group-item {
        border: 1px solid rgba(0,0,0,.06);
        border-radius: 10px;
        margin-bottom: 6px;
        transition: background .15s, box-shadow .15s;
    }

        #tmEstado .gmaps-list .list-group-item:hover {
            background: #fff8f0;
            box-shadow: 0 4px 16px rgba(255,123,0,.10);
        }

    /* Offcanvas móvil – un poco más “card-like” */
    #tmEstado .offcanvas {
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
    }

        #tmEstado .offcanvas .list-group-item {
            border: 1px solid rgba(0,0,0,.06);
            border-radius: 10px;
            margin-bottom: 8px;
        }

    /* Rating inline (texto) */
    #tmEstado .small .text-muted,
    #tmEstado .small {
        font-size: .9rem;
    }

    /* ===== Grid de municipios en tarjetas ===== */
    #tmEstado .tm-munis-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
        list-style: none;
        padding: 0;
        margin: 10px 0 0 0;
    }

@media (max-width: 575.98px) {
    #tmEstado .tm-munis-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 10px;
    }
}

#tmEstado .tm-card {
    position: relative;
    border: 1px solid rgba(255,123,0,.18);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: transform .08s ease, box-shadow .18s ease;
}

    #tmEstado .tm-card::before {
        content: '';
        display: block;
        height: 3px;
        background: linear-gradient(90deg, var(--tm-primary), var(--tm-primary-2));
    }

    #tmEstado .tm-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(255,123,0,.12);
    }

#tmEstado .tm-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .9rem .85rem;
    text-decoration: none;
    color: var(--tm-text);
    font-weight: 600;
    min-height: 56px;
}

    #tmEstado .tm-link:focus-visible {
        outline: 3px solid rgba(255,123,0,.40);
        outline-offset: 2px;
        border-radius: 10px;
    }

#tmEstado .tm-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tmEstado .tm-arrow {
    font-size: 1.1rem;
    opacity: .65;
    transform: translateX(0);
    transition: transform .12s ease, opacity .12s ease;
}

#tmEstado .tm-link:hover .tm-arrow {
    transform: translateX(2px);
    opacity: .9;
}


/* ========================= /{estadoSlug}/{municipioSlug}/negocios ========================= */
#tmMunicipio {
    --tm-primary: #ff7b00;
    --tm-primary-2: #ff9d4a;
    --tm-bg: #fff8f0;
    --tm-text: #1f2937;
}

    /* Hero compacto */
    #tmMunicipio .tm-hero {
        background: linear-gradient(135deg, var(--tm-primary) 0%, var(--tm-primary-2) 100%);
        color: #fff;
        border-radius: 14px;
        padding: 16px 14px;
    }

    #tmMunicipio .tm-title {
        margin: 0 0 .25rem 0;
        font-weight: 800;
        font-size: clamp(1.25rem, 2.2vw, 1.8rem);
        letter-spacing: .2px;
    }

    #tmMunicipio .tm-sub {
        margin: 0;
    }

    /* Grid de negocios */
    #tmMunicipio .tm-biz-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0,1fr));
        gap: 12px;
        list-style: none;
        padding: 0;
        margin: 10px 0 0 0;
    }

@media (max-width:1199.98px) {
    #tmMunicipio .tm-biz-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width:991.98px) {
    #tmMunicipio .tm-biz-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width:575.98px) {
    #tmMunicipio .tm-biz-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* Tarjeta */
#tmMunicipio .tm-card {
    position: relative;
    border: 1px solid rgba(0,0,0,.075);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .06s ease;
}

    #tmMunicipio .tm-card:hover {
        box-shadow: 0 10px 24px rgba(255,123,0,.10);
        transform: translateY(-2px);
    }

    #tmMunicipio .tm-card::before {
        content: '';
        display: block;
        height: 3px;
        background: linear-gradient(90deg, var(--tm-primary), var(--tm-primary-2));
    }

/* Foto */
#tmMunicipio .tm-photo {
    width: 100%;
    height: 140px;
    background: #f6f7f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #tmMunicipio .tm-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

#tmMunicipio .tm-photo-empty {
    width: 100%;
    height: 100%;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cuerpo */
#tmMunicipio .tm-body {
    padding: 10px 10px 12px;
}

#tmMunicipio .tm-link {
    text-decoration: none;
    color: var(--tm-text);
}

    #tmMunicipio .tm-link:focus-visible {
        outline: 3px solid rgba(255,123,0,.35);
        outline-offset: 2px;
        border-radius: 6px;
    }

#tmMunicipio .tm-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    min-height: 20px;
}

#tmMunicipio .tm-stars {
    white-space: nowrap;
}

#tmMunicipio .tm-dot {
    opacity: .6;
}

#tmMunicipio .tm-addr {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ===================================================================================== */
/* =============== IMÁGENES DE PRODUCTOS (AISLADO y RESPONSIVO) ======================= */
/* ===================================================================================== */

/* ---------- LISTA / CATÁLOGO: fijador universal (no recortes, sin deformar) --------- */
#tmProdImgFix .tm-thumb {
    /* Caja con relación 1:1 para que la rejilla sea consistente */
    aspect-ratio: 1 / 1;
    width: 100%;
    background: #ffffff; /* fondo blanco para que “letterboxing” se vea limpio */
    border-bottom: 1px solid rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* oculta cualquier desborde accidental */
    position: relative;
}

    #tmProdImgFix .tm-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain !important; /* clave: muestra la imagen completa sin recortar */
        object-position: center center;
        image-rendering: auto; /* evita pixelado en fotos pequeñas */
        transform: translateZ(0); /* acelera pintado en algunos navegadores */
        transition: transform .25s ease;
    }

#tmProdImgFix .tm-card:hover .tm-thumb img {
    transform: scale(1.02); /* leve hover, agradable */
}

/* Cuando la imagen es muy pequeña, evita que se estire de más */
#tmProdImgFix .tm-thumb img[width][height] {
    max-width: 100%;
    max-height: 100%;
}

/* Ajustes responsivos de alto mínimo (opcional, visual estable) */
@media (max-width: 991px) {
    #tmProdImgFix .tm-thumb {
        min-height: 140px;
    }
}

@media (max-width: 575px) {
    #tmProdImgFix .tm-thumb {
        min-height: 120px;
    }
}






/* ====== Badge de pedidos en el TopNav ====== */
.nav-orders .nav-badge-orders {
    background: linear-gradient(135deg,#ff7b00,#ff9d4a);
    color: #fff !important;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 2px 8px rgba(255,123,0,.25);
    font-weight: 700;
}

.nav-orders .nav-link i {
    transition: transform .15s ease;
}

.nav-orders .nav-link:hover i {
    transform: translateY(-1px);
}


/* ====== Pasos Pickup (tira naranja) ====== */
.pickup-steps {
    background: #ff6600; /* tu naranja */
    color: #fff;
    /* bien pegado al buscador y al hero */
    margin-top: -10px; /* se acerca al borde inferior del hero */
    margin-bottom: 6px; /* separa un poco del buscador */
    padding: 6px 0; /* compacto */
    box-shadow: 0 4px 14px rgba(255,102,0,.18);
}

.steps-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px; /* poco espacio entre pasos */
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap; /* permite salto en móviles si falta espacio */
}

.step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: .2px;
    text-transform: uppercase;
    white-space: nowrap;
}

    .step .num {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #fff; /* círculo blanco */
        color: #ff6600; /* número en naranja */
        font-weight: 800;
        line-height: 1;
        box-shadow: 0 2px 8px rgba(0,0,0,.1);
        flex: 0 0 28px;
    }

    .step .txt {
        color: #fff;
        font-size: .95rem;
    }

/* Ajustes finos en pantallas grandes: un poquito más “aire” */
@media (min-width: 992px) {
    .pickup-steps {
        padding: 8px 0;
    }

    .steps-list {
        gap: 24px;
    }

    .step .txt {
        font-size: 1rem;
    }
}

/* Móviles: tipografía ligeramente más compacta y permite salto de línea suave */
@media (max-width: 575.98px) {
    .step {
        gap: 6px;
    }

        .step .num {
            width: 26px;
            height: 26px;
            flex-basis: 26px;
        }

        .step .txt {
            font-size: .9rem;
            text-transform: none;
        }
    /* menos ‘gritado’ en pantallas chicas */
}
/* ===== HERO Pickup moderno ===== */
.hero-pickup {
    /* misma base de tu hero-section, pero afinamos espacios para móvil */
    padding: 32px 0 22px;
    margin-bottom: 1.25rem;
}

/* Título “chip” con gradiente suave e icono */
.pickup-title {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 .25rem 0;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    color: #fff;
}

    .pickup-title i {
        font-size: 1.05rem;
        background: #fff;
        color: #ff6a00;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: grid;
        place-items: center;
    }

    .pickup-title span {
        font-weight: 800;
        letter-spacing: .5px;
        background: linear-gradient(90deg,#fff 0%, #ffe8d0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-transform: uppercase;
    }

    .pickup-title .subtitle {
        font-weight: 600;
        font-size: .9rem;
        opacity: .9;
        margin-top: -2px;
        text-transform: none;
    }

/* Subtítulo del hero un poquito más chico para no saturar en móvil */
.hero-pickup .hero-sub {
    font-size: 1rem;
    margin: .4rem 0 1rem;
    opacity: .95;
}

/* ===== Barra de pasos minimal (ligera para móvil) ===== */
.pickup-steps-bar {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: .35rem .5rem;
    margin: .5rem auto .65rem;
    max-width: 820px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 6px 10px; /* compacto */
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    justify-content: center;
    padding: .35rem .4rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
}

    .step .num {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #fff; /* círculo blanco */
        color: #ff6a00; /* número naranja */
        font-weight: 900;
        line-height: 1;
        box-shadow: 0 2px 8px rgba(0,0,0,.12);
        flex: 0 0 26px;
    }

    .step .txt {
        font-size: .92rem;
    }

/* ===== Responsivo: muy limpio en teléfono ===== */
@media (max-width: 575.98px) {
    .hero-pickup {
        padding: 26px 0 18px;
    }

    .pickup-title {
        padding: .35rem .6rem;
        gap: .45rem;
    }

        .pickup-title i {
            width: 24px;
            height: 24px;
            font-size: .95rem;
        }

        .pickup-title span {
            letter-spacing: .3px;
        }

        .pickup-title .subtitle {
            font-size: .84rem;
        }

    .pickup-steps-bar {
        padding: .3rem .4rem;
        margin: .45rem auto .6rem;
    }

    .steps-list {
        grid-template-columns: 1fr; /* cada paso en su línea -> nada saturado */
        gap: 4px;
    }

    .step {
        justify-content: flex-start; /* alineado a la izq. en móvil */
        padding: .3rem .25rem;
    }

        .step .num {
            width: 24px;
            height: 24px;
            flex-basis: 24px;
        }

        .step .txt {
            font-size: .9rem;
            font-weight: 600;
        }
}

/* ===== Ajuste: el buscador queda más cerca del hero ===== */
.search-bar {
    margin-top: -14px;
}
/* estaba en -28px, esto respira mejor con el nuevo título */

/* ===== Pickup: cabecera limpia y moderna ===== */
.hero-pickup { /* ya la usas como variante del hero */
    padding: 32px 0 22px;
    margin-bottom: 1.25rem;
}

/* Título grande, sin “ruido” visual */
.pickup-heading {
    display: grid;
    place-items: center;
    gap: .35rem;
    margin: 0;
}

    .pickup-heading .word {
        font-weight: 900;
        letter-spacing: .6px;
        text-transform: uppercase;
        font-size: clamp(1.4rem, 1.05rem + 2.4vw, 2.2rem);
        line-height: 1.1;
        /* texto blanco con sutil degradado para darle volumen sin saturar */
        background: linear-gradient(180deg, #ffffff 0%, #ffeedd 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* “barra/acento” debajo del título (fina y elegante) */
    .pickup-heading .accent {
        display: block;
        width: clamp(90px, 24vw, 160px);
        height: 6px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,.55));
        box-shadow: 0 6px 22px rgba(0,0,0,.10);
    }

/* Tagline pequeño y ordenado */
.pickup-tagline {
    margin: .35rem 0 1rem;
    font-weight: 600;
    font-size: .98rem;
    color: #fff;
    opacity: .95;
}

/* Responsive fino para teléfonos: mantiene jerarquía sin verse robusto */
@media (max-width: 575.98px) {
    .hero-pickup {
        padding: 26px 0 18px;
    }

    .pickup-heading .word {
        letter-spacing: .4px;
    }

    .pickup-heading .accent {
        height: 5px;
        width: clamp(80px, 46vw, 140px);
    }

    .pickup-tagline {
        font-size: .92rem;
        margin-bottom: .9rem;
    }
}

/* Ajuste: acercamos el buscador al hero para que todo se sienta unido */
.search-bar {
    margin-top: -14px;
}


/* ========= TopNav: accesible y moderno en móvil ========= */
.navbar .nav-quick-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    position: relative;
}

/* etiqueta pequeña debajo del ícono solo en móvil */
.nav-icon-label {
    display: block;
    font-size: .72rem;
    line-height: 1;
    opacity: .85;
    margin-top: 2px;
}

/* badge genérico de nav (reutilizable) */
.nav-badge {
    top: 2px;
    left: auto;
    right: -2px;
    transform: translate(0,0);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545; /* rojo carrito */
    color: #fff;
    font-weight: 800;
    font-size: .72rem;
    display: inline-grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

    /* ya tenías un estilo para pedidos; heredamos el mismo badge base */
    .nav-badge.nav-badge-orders {
        background: linear-gradient(135deg,#ff7b00,#ff9d4a);
        border: 1px solid rgba(0,0,0,.06);
    }

/* TAMAÑOS Y ÁREAS TÁCTILES EN MÓVIL */
@media (max-width: 991.98px) {
    /* área táctil más grande */
    .navbar .nav-link {
        padding: .6rem .65rem;
    }

    .navbar .nav-quick-link i {
        font-size: 1.35rem; /* ícono grande */
        line-height: 1;
    }

    /* coloca ícono arriba y texto abajo, bien alineado */
    .navbar .nav-quick-link {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 54px; /* target mínimo cómodo */
    }

    /* badge un pelín más grande y mejor posicionado para ícono grande */
    .nav-badge {
        min-width: 20px;
        height: 20px;
        font-size: .74rem;
        right: -6px;
        top: -2px;
    }
}

/* en desktop mantenemos el look fino */
@media (min-width: 992px) {
    .navbar .nav-quick-link i {
        font-size: 1.05rem;
    }

    .nav-icon-label {
        display: none;
    }
}



/* ====== Ajustes Home: buscador + resultados responsivos ====== */

/* Más aire en desktop y un poco más ancho (coincide con tarjeta CTA) */
@media (min-width: 768px) {
    #homeSearchBar .search-input {
        font-size: 1.05rem;
    }
}

/* Alto de la lista de resultados adaptado al viewport (sin “rebotar”) */
.results-scroll {
    /* entre ~220px y ~360px, escalando con el alto de la pantalla */
    max-height: clamp(220px, 48vh, 360px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Alineación de márgenes respecto al buscador */
.results-tight {
    margin-top: -6px;
    margin-bottom: 28px;
}

@media (max-width: 575.98px) {
    .results-tight {
        margin-bottom: 22px;
    }
}

/* ====== Tarjeta CTA: "Explorar por estado" (sección aparte) ====== */
.card-cta-explore {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,123,0,.25);
    background: radial-gradient(600px 200px at -15% -60%, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 55%), linear-gradient(135deg, #ff7b00 0%, #ff9d4a 100%);
    color: #fff;
    box-shadow: 0 6px 22px rgba(255,123,0,.18);
    transition: transform .08s ease, box-shadow .16s ease, filter .12s ease;
}

    .card-cta-explore:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(255,123,0,.22);
        filter: brightness(1.02);
        text-decoration: none;
    }

    .card-cta-explore .cta-badge {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: rgba(255,255,255,.18);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
    }

        .card-cta-explore .cta-badge i {
            font-size: 1.2rem;
            color: #fff;
        }

    .card-cta-explore .cta-content h5 {
        font-weight: 800;
        letter-spacing: .2px;
        margin: 0;
        color: #fff;
    }

    .card-cta-explore .cta-content p {
        margin: 0;
        opacity: .92;
        color: #fff;
    }

    .card-cta-explore .cta-arrow i {
        font-size: 1rem;
        opacity: .85;
        color: #fff;
    }

/* Compacto en móvil */
@media (max-width: 575.98px) {
    .card-cta-explore {
        grid-template-columns: 42px 1fr auto;
        gap: 10px;
        padding: 10px 12px;
    }

        .card-cta-explore .cta-badge {
            width: 42px;
            height: 42px;
            border-radius: 10px;
        }

        .card-cta-explore .cta-content h5 {
            font-size: 1rem;
        }

        .card-cta-explore .cta-content p {
            font-size: .9rem;
        }
}

/* Un poco más de cercanía visual entre hero y buscador */
.search-bar {
    margin-top: -12px;
}

/* Botón/inputs con mejor área táctil en iOS/Android */
#homeSearchBar .input-group-text {
    padding: .6rem .8rem;
}

#homeSearchBar .search-input {
    padding-top: .85rem;
    padding-bottom: .85rem;
}

/* Texto guía arriba del buscador */
.search-lead {
    font-size: 1rem;
    font-weight: 600;
    color: #2b2b2b;
}

@media (max-width:575.98px) {
    .search-lead {
        font-size: .95rem;
    }
}


/* Placeholder gris claro mientras carga */
.tm-thumb {
    background: #f2f2f2;
    position: relative;
    overflow: hidden;
}

    .tm-thumb img {
        display: block;
        width: 100%;
        height: auto;
    }