/* ============================================================
   1. VARIABLES Y SELECTORES BASE
   ============================================================ */
:root {
    --pos-teal:      #20C9AF;
    --pos-teal-dark: #0fa896;
    --pos-teal-deep: #0d8a7b;
    --pos-ink:       #0f2a27;
    --pos-ink-soft:  #4a6b66;
    --pos-bg:        #ffffff;
    --pos-line:      #e2eae8;
    --pos-chip:      #f0fdfb;
}

.p-4 {
    padding: 0.5rem !important;
}

/* ============================================================
   2. COMPONENTES GLOBALES (Spinner, Botones, Footer)
   ============================================================ */
/* ── SPINNER ── */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/* ── BOTONES GENERALES ── */
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square    { width: 32px; height: 32px; }
.btn-sm-square { width: 34px; height: 34px; }
.btn-md-square { width: 44px; height: 44px; }
.btn-lg-square { width: 56px; height: 56px; }

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.border-secondary {
    transition: 0.5s;
}

.btn.border-secondary:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

/* ── CONTADORES Y PAGINACIÓN ── */
.counter {
    height: 100%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.counter i {
    font-size: 60px;
    margin-bottom: 25px;
}

.counter h4 {
    color: var(--bs-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.counter h1 {
    margin-bottom: 0;
}

.pagination {
    display: inline-block;
}
  
.pagination a {
    color: var(--bs-dark);
    padding: 10px 16px;
    text-decoration: none;
    transition: 0.5s;
    border: 1px solid var(--bs-secondary);
    margin: 0 4px;
}
  
.pagination a.active {
    background-color: var(--bs-primary);
    color: var(--bs-light);
    border: 1px solid var(--bs-secondary);
}
  
.pagination a:hover:not(.active) {
    background-color: var(--bs-primary);
}

/* ── BANNER Y FOOTER ── */
.banner .banner-btn:hover {
    background: var(--bs-primary);
}

.footer .footer-item .btn-link {
    line-height: 35px;
    color: rgba(255, 255, 255, .5);
    transition: 0.5s;
}

.footer .footer-item .btn-link:hover {
    color: var(--bs-secondary) !important;
}

.footer .footer-item p.mb-4 {
    line-height: 35px;
}

/* ============================================================
   3. ESTRUCTURA WEB TRADICIONAL (Topbar, Navbar, Hero)
   ============================================================ */
/* ── TOPBAR ── */
.fixed-top {
    transition: 0.5s;
    background: var(--bs-white);
    border: 0;
}

.topbar {
    padding: 20px;
}

.topbar .top-info,
.topbar .top-link {
    font-size: 15px;
    line-height: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.topbar .top-link a {
    letter-spacing: 1px;
}

.topbar .top-link a small:hover {
    color: var(--bs-secondary) !important;
    transition: 0.5s;
}

.topbar .top-link a small:hover i {
    color: var(--bs-primary) !important;
}

/* ── NAVBAR TRADICIONAL ── */
.navbar {
    height: 100px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.navbar .navbar-nav .nav-link {
    padding: 10px 15px;
    font-size: 16px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.fixed-top.bg-white .navbar .navbar-nav .nav-link:hover,
.fixed-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-secondary);
    color: var(--bs-primary);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    border-radius: 10px !important;
    transition: .5s;
    opacity: 1;
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, .8);
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        transition: .5s;
        opacity: 0;
    }
}

/* ── HERO HEADER & CAROUSEL ── */
.hero-header {
    background: linear-gradient(rgba(248, 223, 173, 0.1), rgba(248, 223, 173, 0.1)), url(../img/hero-img.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.carousel-item {
    position: relative;
    height: 600px;
}

.carousel-item img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.carousel-inner .carousel-item .mu-top-slider-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 99;
    padding: 0 15%;
    background-color: rgba(0, 0, 0, 0.4); 
}

.carousel-inner .carousel-item .mu-top-slider-content .mu-slider-small-title {
    font-family: "Tangerine", cursive;
    color: #fff;
    font-size: clamp(40px, 10vw, 80px);
    font-weight: 400;
    margin-bottom: 5px;
    line-height: 1.2;
}

.carousel-inner .carousel-item .mu-top-slider-content .mu-slider-title {
    font-family: "Tangerine", cursive;
    color: #2BB5A0;
    font-size: clamp(50px, 12vw, 120px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    padding: 10px;
}

.carousel-inner .carousel-item .mu-top-slider-content p {
    color: #fff;
    font-size: clamp(16px, 4vw, 22px);
    margin-bottom: 30px;
    margin-top: 10px;
    max-width: 600px;
}

.carousel-item a.mu-readmore-btn {
    display: inline-block;
    font-size: 25px;
    padding: 12px 30px;
    background: linear-gradient(rgba(43, 181, 160, 0.7), rgba(43, 181, 160, 0.7));
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.carousel-item a.mu-readmore-btn:hover {
    background: linear-gradient(rgba(43, 181, 160, 1), rgba(43, 181, 160, 1));
}

.carousel-control-next,
.carousel-control-prev {
    width: 48px;
    height: 48px;
    border-radius: 48px;
    border: 1px solid var(--bs-white);
    background: var(--bs-primary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
}

.carousel-control-next { margin-right: 20px; }
.carousel-control-prev { margin-left: 20px; }

.page-header {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../img/cart-page-header-img-2.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .carousel-item { height: 400px; }
    .carousel-item a.mu-readmore-btn { font-size: 18px; padding: 10px 20px; }
}

@media (min-width: 992px) {
    .hero-header, .page-header { margin-top: 152px !important; }
}

@media (max-width: 992px) {
    .hero-header, .page-header { margin-top: 97px !important; }
}

/* ── SECCIONES FEATURES Y SERVICIOS ── */
.featurs .featurs-item .featurs-icon {
    position: relative;
    width: 120px;
    height: 120px;
}

.featurs .featurs-item .featurs-icon::after {
    content: "";
    width: 35px;
    height: 35px;
    position: absolute;
    bottom: -10px;
    transform: translate(-50%) rotate(45deg);
    background: var(--bs-secondary);
}

.service .service-item .service-content {
    position: relative;
    width: 250px; 
    height: 130px; 
    top: -50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
}

/* ============================================================
   4. SECCIÓN DE PLATOS Y REPOSITORIOS VISTA CARTA
   ============================================================ */
.fruite .tab-class .nav-item a.active {
    background: var(--bs-secondary) !important;
}

.fruite .tab-class .nav-item a.active span {
    color: var(--bs-white) !important; 
}

.fruite .fruite-categorie .fruite-name {
    line-height: 40px;
}

.fruite .fruite-categorie .fruite-name a {
    transition: 0.5s;
}

.fruite .fruite-categorie .fruite-name a:hover {
    color: var(--bs-secondary);
}

.fruite .fruite-item {
    height: 100%;
    transition: 0.5s;
}

.fruite .fruite-item:hover {
    box-shadow: 0 0 55px rgba(0, 0, 0, 0.4);
}

.fruite .fruite-item .fruite-img {
    overflow: hidden;
    transition: 0.5s;
    border-radius: 10px 10px 0 0;
}

.fruite .fruite-item .fruite-img img {
    transition: 0.5s;
}

.fruite .fruite-item .fruite-img img:hover {
    transform: scale(1.3);
}

/* ── CARUSELES OWL (VEGETABLES & TESTIMONIALS) ── */
.vesitable .vesitable-item {
    height: 100%;
    transition: 0.5s;
}

.vesitable .vesitable-item:hover {
    box-shadow: 0 0 55px rgba(0, 0, 0, 0.4);
}

.vesitable .vesitable-item .vesitable-img {
    overflow: hidden;
    transition: 0.5s;
    border-radius: 10px 10px 0 0;
}

.vesitable .vesitable-item .vesitable-img img {
    transition: 0.5s;
}

.vesitable .vesitable-item .vesitable-img img:hover {
    transform: scale(1.2);
}

.vesitable .owl-stage {
    margin: 50px 0;
    position: relative;
}

.vesitable .owl-nav .owl-prev,
.vesitable .owl-nav .owl-next,
.testimonial .owl-nav .owl-prev,
.testimonial .owl-nav .owl-next {
    position: absolute;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.vesitable .owl-nav .owl-prev,
.vesitable .owl-nav .owl-next { top: -8px; }
.testimonial .owl-nav .owl-prev,
.testimonial .owl-nav .owl-next { top: -58px; }

.vesitable .owl-nav .owl-prev, .testimonial .owl-nav .owl-prev { right: 0; }
.vesitable .owl-nav .owl-next, .testimonial .owl-nav .owl-next { right: 88px; }

.vesitable .owl-nav .owl-prev:hover,
.vesitable .owl-nav .owl-next:hover,
.testimonial .owl-nav .owl-prev:hover,
.testimonial .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.nav.nav-tabs .nav-link.active {
    border-bottom: 2px solid var(--bs-secondary) !important;
}

/* ============================================================
   5. COMPONENTES E INTERFAZ DEL MENÚ (Cebichería Custom)
   ============================================================ */
/* ── CATEGORÍAS PILLS ── */
.nav-pills .nav-link {
    color: #4b6569 !important;
    font-size: 10px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-pills .nav-link.active {
    background-color: #20c997 !important;
    color: #f8f9fa !important;
    font-weight: 600 !important;
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
    color: #2BB5A0;
}

.nav-pills .nav-link i {
    font-size: 1.1rem;
    color: #2BB5A0;
}

.titulo-cate, .subtitulo-cate {
    font-family: "Tangerine", cursive;
    font-weight: 600;
    line-height: 1.2;
}

.titulo-cate { font-size: 60px; color: #2BB5A0; }
.subtitulo-cate { font-size: 30px; font-weight: 400; line-height: 1; margin: 0; }

/* ── TARJETAS DE PLATOS ── */
.titulo-plato {
    font-family: "Tangerine", cursive;
    font-size: 30px;
    font-weight: bold;
    color: #2BB5A0;
    text-align: center;
    line-height: 1.1;
    min-height: calc(1.1em * 2);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.descripcion-plato {
    font-family: inherit;
    color: #747d88;
    font-size: 14px;
    text-align: justify;
    line-height: 1.5;
    min-height: calc(1.5em * 2);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.platos-nombre {
    font-size: 40px;
    font-family: "Tangerine", cursive;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
    color: #2BB5A0;
    height: 90px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.plato-description-box {
    width: 100%;
    height: 78px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    font-family: "Tangerine", cursive;
    font-size: 30px;
    text-align: center;
    color: #747d88;
    padding: 1px;
    box-sizing: border-box;
}

/* ── GUARNICIONES ── */
.titulo-guarniciones {
    font-family: 'Tangerine', cursive;
    color: #2BB5A0;
    font-size: 2.5rem;
    text-align: center;
}

.guarnicion-nombre {
    font-size: 0.95rem;
    flex: 1;
}

.btn-cantidad {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-cantidad:hover:not(:disabled) {
    border-color: #999;
    background: #f5f5f5;
}

.btn-cantidad:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-menos.activo, .btn-mas.activo {
    background: #2BB5A0;
    color: #fff;
    border-color: #2BB5A0;
}

.cantidad-valor {
    min-width: 20px;
    text-align: center;
    font-weight: 500;
}

/* ── MENÚ LATERAL ANEXO ── */
.categoria-link {
    padding: 6px 12px !important;
    min-height: auto;
}

.categoria-link:hover {
    background: #f1f1f1;
}

.nav-item {
    margin-bottom: 4px !important;
}

/* ============================================================
   6. CARRITO TRADICIONAL & MINI-CARRITO DROPDOWN
   ============================================================ */
.cart-menu, #btnCarrito {
    position: relative;
}

#contadorCarrito {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #20c997;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 22px;
}

.dropdown-carrito, .dropdown-carrito-pos {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    width: 300px;
    background: #fff;
    box-shadow: 0 5px 20px #999;
    border-radius: 8px;
    padding: 15px;
    z-index: 9999;
}

.dropdown-carrito.show, .dropdown-carrito.activo {
    display: block;
}

.item-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.item-img img {
    width: 65px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.mini-img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 5px;
}

.item-info {
    flex: 1;
    margin-left: 12px;
}

.item-info h6, .mini-nombre {
    margin-bottom: 5px;
    color: #444;
}

.item-info h6 { font-size: 15px; font-weight: 600; }
.mini-nombre { font-size: 13px; font-weight: 600; }

.item-info small, .mini-precio {
    font-size: 13px;
}

.item-info small { display: block; color: #777; line-height: 1.3; }
.mini-precio { color: #666; }

.item-info strong {
    display: block;
    margin-top: 3px;
    color: #555;
    font-size: 16px;
}

.mini-extra {
    color: #198754;
    font-size: 12px;
    margin-top: 2px;
}

.mini-control {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-control button {
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f0f0;
    cursor: pointer;
}

.btn-eliminar {
    background: #dc3545 !important;
    color: #fff;
}

.mini-carrito hr {
    margin: 12px 0;
    opacity: 0.2;
}

.mini-total {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 700;
    color: #555;
    padding: 5px 0 12px;
}

.btn-ver-carrito {
    display: block;
    background: #20c997;
    color: white;
    text-align: center;
    border-radius: 30px;
    padding: 10px;
    text-decoration: none;
    margin-top: 15px;
}

/* ============================================================
   7. MÓDULO NAVBAR POS (Punto de Venta Exclusivo)
   ============================================================ */
.navbar-pos {
    background: var(--pos-bg);
    padding: 0;
    border-bottom: 1px solid var(--pos-line);
    box-shadow: 0 1px 0 rgba(15, 42, 39, 0.02);
    position: relative;
    z-index: 50;
}

.navbar-pos-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 32px;
    gap: 24px;
}

.navbar-brand-pos {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-brand-pos img {
    height: 46px;
    width: auto;
    max-width: 100%;
}

.navbar-toggler-pos {
    border: none;
    background: var(--pos-chip);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
}

.navbar-toggler-pos:focus { 
    box-shadow: none; 
    outline: 2px solid var(--pos-teal); 
    outline-offset: 2px; 
}

.toggler-bar {
    width: 18px;
    height: 2px;
    background: var(--pos-teal-deep);
    border-radius: 2px;
}

.navbar-nav-pos {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--pos-chip);
    border: 1px solid var(--pos-line);
    border-radius: 999px;
    padding: 5px;
    flex-wrap: nowrap;
}

.nav-link-pos {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Nunito', Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--pos-ink-soft);
    padding: 10px 18px;
    border-radius: 999px;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link-pos i {
    font-size: 12.5px;
    color: var(--pos-teal-dark);
    transition: color 0.2s ease;
}

.nav-link-pos:hover {
    color: var(--pos-ink);
    background: rgba(32, 201, 175, 0.10);
}

.nav-link-pos.active {
    background: var(--pos-teal);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(32, 201, 175, 0.35);
}

.nav-link-pos.active i { 
    color: #ffffff; 
}

.nav-link-pos-dropdown-wrap { 
    position: relative; 
}

.nav-link-pos.dropdown-toggle::after { 
    display: none; 
}

.dropdown-menu-pos {
    border: 1px solid var(--pos-line);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 42, 39, 0.14);
    padding: 8px;
    margin-top: 10px !important;
    min-width: 200px;
}

.dropdown-item-pos {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Nunito', Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pos-ink);
    padding: 9px 12px;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.dropdown-item-pos i { 
    color: var(--pos-teal-dark); 
    width: 16px; 
    text-align: center; 
}

.dropdown-item-pos:hover { 
    background: var(--pos-chip); 
    color: var(--pos-ink); 
}

.navbar-actions-pos {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.action-btn-pos {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--pos-teal);
    background: var(--pos-bg);
    color: var(--pos-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s ease;
}

.action-btn-pos:hover {
    background: var(--pos-teal);
    color: #ffffff;
}

.cart-menu-pos { 
    position: relative; 
}

.cart-pill-pos {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--pos-teal);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cart-pill-pos i { 
    font-size: 17px; 
    color: #ffffff; 
}

.cart-pill-pos:hover {
    background: var(--pos-teal-deep);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 138, 123, 0.35);
}

.cart-badge-pos {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #F5A623;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
    margin-left: 0;
}

.action-btn-pos.action-btn-account-pos {
    border: none;
    background: transparent;
    color: var(--pos-teal);
    font-size: 24px;
}

.action-btn-pos.action-btn-account-pos:hover {
    background: transparent;
    color: var(--pos-teal-deep);
}

.dropdown-carrito-pos {
    border: 1px solid var(--pos-line);
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(15, 42, 39, 0.16);
}

.cart-empty-pos { 
    color: var(--pos-ink-soft); 
    font-weight: 600; 
    font-size: 13px; 
}

.cart-empty-pos i { 
    font-size: 26px; 
    opacity: 0.25; 
    margin-bottom: 8px; 
    display: inline-block; 
}

.btn-ver-carrito-pos {
    background: var(--pos-teal);
    border-radius: 999px;
    font-weight: 800;
    transition: background 0.2s ease;
}

.btn-ver-carrito-pos:hover { 
    background: var(--pos-teal-deep); 
}

/* ============================================================
   8. RESPONSIVE REGLAS DE MEDIOS (Media Queries)
   ============================================================ */
@media (min-width: 992px) and (max-width: 1280px) {
    .nav-link-pos { padding: 8px 12px; font-size: 12.8px; }
    .navbar-nav-pos { gap: 2px; }
}

@media (max-width: 1199.98px) {
    .navbar-pos-inner { flex-wrap: wrap; padding: 12px 18px; }
    .navbar-collapse { width: 100%; margin-top: 14px; }
    .navbar-nav-pos {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
        width: 100%;
        gap: 2px;
    }
    .nav-link-pos { justify-content: flex-start; padding: 11px 14px; }
    .navbar-actions-pos {
        margin-top: 12px;
        justify-content: center;
        width: 100%;
        gap: 14px;
    }
    .cart-pill-pos { flex-shrink: 0; }
}

@media (max-width: 480px) {
    .navbar-brand-pos img { height: 38px; }
}

.img-zoom-plato img {
    /* 1. Ajuste de nitidez y claridad */
    filter: contrast(1.05) brightness(1.02) saturate(1.08);
    
    /* 2. Algoritmo del navegador para evitar el desenfoque al estirar la imagen */
    image-rendering: -webkit-optimize-contrast; /* Safari / Chrome antiguo */
    image-rendering: crisp-edges;               /* Firefox / Estándar */
    
    /* 3. Asegura que mantenga su proporción si se deforma */
   
}

.precio-plato{
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    white-space: nowrap;
}

.btn-pedir-mini{
    padding: .25rem .75rem;
    font-size: .85rem;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 576px){

    .precio-plato{
        font-size: .95rem;
    }

    .btn-pedir-mini{
        font-size: .75rem;
        padding: .20rem .60rem;
    }
}


/* =========================
   CARRITO RESPONSIVE
========================= */

@media (max-width: 768px) {

    .table-responsive {
        overflow: visible;
    }

    .table thead {
        display: none;
    }

    .table,
    .table tbody,
    .table tr,
    .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 15px;
        margin-bottom: 15px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,.08);
    }

    .table td {
        border: none;
        padding: 8px 0;
        text-align: left;
    }

    .table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: #666;
        margin-bottom: 4px;
        font-size: 13px;
    }

    /* Imagen */
    .table td:first-child {
        text-align: center;
    }

    .table td:first-child::before {
        display: none;
    }

    .table td:first-child img {
        width: 100px !important;
        height: 100px !important;
        margin: auto;
        display: block;
    }

    /* Cantidad */
    .quantity {
        width: 130px !important;
    }

    /* Eliminar */
    .table td:last-child {
        text-align: center;
    }

    .table td:last-child .btn {
        margin-top: 0 !important;
    }

    /* Resumen */
    .carrito-resumen {
        margin-top: 20px;
    }

    .carrito-resumen .bg-light {
        padding: 15px;
    }
}


