/* Vosa — carta de restaurante v2.
   Capa de estilos sobre el marcado existente (layouts/front + restorants/show).
   Todo va bajo html.vosa-v2 para no afectar a nada si la clase no está. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

html.vosa-v2 body {
  --ink: #14211c;
  --ink-2: #4c5b55;
  --ink-3: #7d8a85;
  --bg: #f7f5f0;
  --card: #ffffff;
  --line: #e7e2d6;
  --accent: #25d366;
  --accent-d: #12a150;
  --accent-ink: #06281d;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bar-h: 60px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html.vosa-v2 .wrapper { background: var(--bg); }
html.vosa-v2 h1, html.vosa-v2 h2, html.vosa-v2 h3, html.vosa-v2 h4, html.vosa-v2 h5 { font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; }
html.vosa-v2 a { color: inherit; }
html.vosa-v2 :focus-visible { outline: 3px solid var(--accent-d); outline-offset: 2px; }

/* ---------- Barra superior ---------- */
html.vosa-v2 #navbar-main { background: rgba(255, 255, 255, .94) !important; backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); box-shadow: none !important; min-height: var(--bar-h); padding: 8px 16px; }
html.vosa-v2 #navbar-main .container-fluid { padding: 0; flex-wrap: nowrap; gap: 12px; }
html.vosa-v2 #navbar-main .navbar-brand { margin: 0 !important; padding: 0; flex: none; }
html.vosa-v2 #navbar-main .theProjectLogo { height: 44px !important; width: auto; max-width: 150px; object-fit: contain; border-radius: 10px; }
html.vosa-v2 #topDarkLogo { display: none !important; }
html.vosa-v2 #topLightLogo { display: inline-block !important; }
html.vosa-v2 #navbar-main .navbar-toggler { display: none; }
html.vosa-v2 #navbar-main .navbar-collapse { display: flex !important; flex-basis: auto; position: static; width: auto; height: auto !important; opacity: 1; margin: 0; padding: 0; background: none; box-shadow: none; flex: 1; min-width: 0; overflow: visible; animation: none; }
html.vosa-v2 #navbar-main .navbar-collapse-header { display: none; }
html.vosa-v2 #navbar-main .navbar-nav { flex-direction: row; align-items: center; gap: 8px; margin-left: auto !important; min-width: 0; flex: 1; justify-content: flex-end; }
html.vosa-v2 #navbar-main .mobile-menu { display: none !important; }
html.vosa-v2 #navbar-main .web-menu { display: block; }
html.vosa-v2 .itemsSearchHolder { flex: 1; max-width: 340px; min-width: 0; margin: 0; }
html.vosa-v2 .itemsSearchHolder .select2-container { width: 100% !important; }
html.vosa-v2 .itemsSearchHolder .select2-selection--single { height: 44px !important; border-radius: 999px !important; border: 1px solid var(--line) !important; background: var(--bg) !important; display: flex; align-items: center; padding: 0 14px; }
html.vosa-v2 .itemsSearchHolder .select2-selection__rendered { line-height: 42px !important; color: var(--ink) !important; padding: 0 !important; }
html.vosa-v2 .itemsSearchHolder .select2-selection__placeholder { color: var(--ink-3) !important; }
html.vosa-v2 .itemsSearchHolder .select2-selection__arrow { height: 42px !important; right: 10px !important; }
html.vosa-v2 #navbar-main .btn-cart, html.vosa-v2 #navbar-main .btn-neutral { min-height: 44px; border-radius: 999px; background: var(--ink); color: #fff; border: 0; box-shadow: none; text-transform: none; font-weight: 700; font-size: 14px; letter-spacing: 0; padding: 10px 16px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
html.vosa-v2 #navbar-main .btn-cart, html.vosa-v2 #navbar-main .btn-cart:hover { color: #fff !important; background: var(--ink) !important; border-color: var(--ink) !important; }
html.vosa-v2 #navbar-main .btn-cart .badge { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: 12px; padding: 3px 7px; }
html.vosa-v2 #navbar-main .dropdown.web-menu > .btn { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }

/* ---------- Portada y cabecera del restaurante ---------- */
html.vosa-v2 .section-profile-cover { display: block !important; height: 180px; margin-top: var(--bar-h); overflow: hidden; position: relative; filter: none !important; background: #dcd6c8; padding: 0; }
html.vosa-v2 .section-profile-cover .bg-image { width: 100%; height: 100%; object-fit: cover; }
html.vosa-v2 .section-profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .28)); }
html.vosa-v2 .section-profile-cover .separator { display: none; }
html.vosa-v2 .wrapper > section.section { padding-top: 0; padding-bottom: 0; margin: 0 !important; }
/* cabecera escritorio (título sobre portada) oculta: se usa la versión compacta en todos los anchos */
html.vosa-v2 .wrapper > section.section.mt--9 { display: none !important; }
html.vosa-v2 .wrapper > section.section.section-lg { display: block !important; padding: 0 !important; }
html.vosa-v2 .wrapper > section.section.section-lg .container { max-width: 1180px; }
html.vosa-v2 .title { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-top: -34px; position: relative; z-index: 2; }
html.vosa-v2 .title h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.05; margin: 0 0 6px; color: var(--ink) !important; }
html.vosa-v2 .title h1::after { content: "  ⓘ"; font: 400 18px var(--body); color: var(--ink-3); vertical-align: middle; }
html.vosa-v2 .title p.display-4 { font: 400 16px/1.45 var(--body) !important; color: var(--ink-2); margin: 0 0 12px !important; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html.vosa-v2 .title p.vosa-order-line { font: 400 14px/1.45 var(--body); color: var(--ink-2); margin: 0 0 10px; }
.vosa-order-line { font-size: 15px; margin: 0 0 10px; }
html.vosa-v2 .title p:last-child { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 2; }
html.vosa-v2 .title p:last-child a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
html.vosa-v2 .opened_time, html.vosa-v2 .closed_time { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; line-height: 1.5; margin-right: 6px; }
html.vosa-v2 .opened_time { background: #dff5e6; color: #0b6b35; }
html.vosa-v2 .closed_time { background: #fde6e2; color: #a12a17; }

/* ---------- Categorías ---------- */
html.vosa-v2 #restaurant-content { padding: 14px 0 120px !important; }
html.vosa-v2 .container-restorant { max-width: 1180px; }
html.vosa-v2 nav.tabbable.sticky { top: var(--bar-h) !important; z-index: 900; background: var(--bg); margin: 0 -15px 6px; padding: 10px 15px 2px; }
html.vosa-v2 .tabbable .nav-pills { background: transparent !important; gap: 8px; margin: 0 !important; padding-bottom: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
html.vosa-v2 .tabbable .nav-pills::-webkit-scrollbar { display: none; }
html.vosa-v2 .nav-item-category { padding: 0; flex: none; }
html.vosa-v2 .tabbable .nav-pills .nav-link { margin: 0 !important; min-height: 44px; display: flex; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; font-weight: 700; font-size: 14px; text-transform: none; letter-spacing: 0; }
html.vosa-v2 .tabbable .nav-pills .nav-link.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Platos ---------- */
html.vosa-v2 .container-restorant > div > h2.vosa-cat { font-size: 26px; font-weight: 800; margin: 22px 0 0; scroll-margin-top: 140px; }
html.vosa-v2 .container-restorant > div > h2.vosa-cat + br { display: none; }
html.vosa-v2 .container-restorant > .row { margin: 12px -6px 0; }
html.vosa-v2 .container-restorant > .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; padding: 0 6px; display: flex; }
html.vosa-v2 .strip { flex: 1; margin: 0 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-content: start; cursor: pointer; transition: border-color .15s, transform .15s; min-height: 100%; }
html.vosa-v2 .strip:hover { border-color: #cfc8b8; }
html.vosa-v2 .strip:active { transform: scale(.995); }
html.vosa-v2 .strip > * { grid-column: 1; min-width: 0; }
html.vosa-v2 .strip figure { grid-column: 2; grid-row: 1 / span 4; width: 108px; height: 108px; margin: 0; border-radius: 12px; background: #eee9dd; align-self: start; }
html.vosa-v2 .strip figure a { display: block; width: 100%; height: 100%; }
html.vosa-v2 .strip figure img { position: static; transform: none; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: auto; }
html.vosa-v2 .res_title { font-size: 16px; line-height: 1.25; color: var(--ink); }
html.vosa-v2 .res_title a { text-decoration: none; color: var(--ink); }
html.vosa-v2 .res_description { font-size: 14px; line-height: 1.4; color: var(--ink-2); margin-top: 4px; }
html.vosa-v2 .strip > .row { margin: 8px 0 0; align-items: center; flex-wrap: nowrap; }
html.vosa-v2 .strip > .row > [class*="col-"] { padding: 0; flex: 0 1 auto; max-width: none; width: auto; }
html.vosa-v2 .strip > .row > [class*="col-"]:last-child { margin-left: auto; }
html.vosa-v2 .res_mimimum { font-weight: 800; font-size: 16px; color: var(--ink); white-space: nowrap; }
html.vosa-v2 .res_mimimum .text-muted { font-weight: 500; font-size: 14px; margin-right: 6px; }
html.vosa-v2 .allergen { display: inline-block; }
html.vosa-v2 .allergen img { width: 22px; height: 22px; }
html.vosa-v2.v2-can-order .strip::after { content: "+"; grid-column: 2; grid-row: 1 / span 4; align-self: end; justify-self: end; width: 32px; height: 32px; margin: 0 -6px -6px 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 22px/1 var(--body); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); position: relative; z-index: 2; }
@media (min-width: 768px) {
  html.vosa-v2 .section-profile-cover { height: 260px; }
  html.vosa-v2 .title { padding: 26px 28px; margin-top: -60px; }
  html.vosa-v2 .container-restorant > .row > [class*="col-"] { flex: 0 0 50%; max-width: 50%; }
  html.vosa-v2 .container-restorant > div > h2.vosa-cat { font-size: 32px; margin-top: 30px; }
}
@media (min-width: 1200px) {
  html.vosa-v2 .container-restorant > .row > [class*="col-"] { flex: 0 0 33.333%; max-width: 33.333%; }
}

/* ---------- Barra inferior del pedido ---------- */
html.vosa-v2 .callOutShoppingButtonBottom { display: none !important; }
html.vosa-v2 .v2-cartbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 950; display: none; align-items: center; gap: 12px; min-height: 56px; padding: 10px 18px 10px 12px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 800 16px var(--body); box-shadow: 0 12px 30px -8px rgba(6, 40, 29, .55); cursor: pointer; max-width: 520px; margin-inline: auto; width: calc(100% - 24px); }
html.vosa-v2 .v2-cartbar.is-on { display: flex; }
html.vosa-v2 .v2-cartbar__n { min-width: 34px; height: 34px; border-radius: 50%; background: var(--accent-ink); color: #fff; display: grid; place-items: center; font-size: 15px; }
html.vosa-v2 .v2-cartbar__t { margin-left: auto; }

/* ---------- Ficha del plato (modal) ---------- */
html.vosa-v2 .modal-content { border: 0; border-radius: 20px; overflow: hidden; }
html.vosa-v2 #productModal .modal-header { border: 0; padding: 18px 20px 6px; align-items: center; }
html.vosa-v2 #productModal .modal-title { font: 800 22px/1.15 var(--display); }
html.vosa-v2 .modal .close { width: 44px; height: 44px; margin: -6px -8px -6px auto; padding: 0; border-radius: 50%; background: var(--bg); opacity: 1; font-size: 26px; color: var(--ink); }
html.vosa-v2 #productModal .card { box-shadow: none !important; border-radius: 0; }
html.vosa-v2 #productModal .card-body { padding: 8px 20px 20px !important; }
html.vosa-v2 #modalImg { width: 100%; max-width: 420px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
html.vosa-v2 #modalPrice { font: 800 22px var(--display); color: var(--ink); }
html.vosa-v2 #modalDescription { color: var(--ink-2); font-size: 15px; margin: 6px 0 0; }
html.vosa-v2 #productModal .form-control-label { font-weight: 700; font-size: 14px; color: var(--ink); }
html.vosa-v2 #productModal .quantity-area { position: sticky; bottom: 0; background: #fff; padding-top: 6px; display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
html.vosa-v2 #productModal .quantity-area br { display: none; }
html.vosa-v2 #productModal .quantity-area .form-group { margin: 0; }
html.vosa-v2 .v2-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
html.vosa-v2 .v2-qty button { width: 46px; height: 46px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--ink); cursor: pointer; border-radius: 50%; }
html.vosa-v2 .v2-qty #quantity { width: 46px; height: 46px; padding: 0; text-align: center; border: 0; background: none; box-shadow: none; font-weight: 800; font-size: 17px; color: var(--ink); -moz-appearance: textfield; }
html.vosa-v2 .v2-qty #quantity::-webkit-outer-spin-button, html.vosa-v2 .v2-qty #quantity::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html.vosa-v2 #productModal .quantity-btn { flex: 1; min-width: 180px; }
html.vosa-v2 #addToCart1 .btn { width: 100%; min-height: 48px; border-radius: 999px; background: var(--accent); border: 0; color: var(--accent-ink); font-weight: 800; font-size: 16px; text-transform: none; letter-spacing: 0; box-shadow: none; }
@media (max-width: 575px) {
  html.vosa-v2 #productModal .modal-dialog { margin: 0; min-height: 100%; align-items: flex-end; max-width: none; }
  html.vosa-v2 #productModal .modal-content { border-radius: 22px 22px 0 0; max-height: 92vh; overflow-y: auto; }
  html.vosa-v2 #modalImg { max-width: none; }
}

/* ---------- Carrito lateral ---------- */
html.vosa-v2 .sidenav-cart { background: #fff; padding: 0; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .35); max-width: 440px; }
html.vosa-v2 .sidenav-cart .offcanvas-menu-inner { padding: 18px 18px 28px; display: flex; flex-direction: column; min-height: 100%; }
html.vosa-v2 .sidenav-cart .closebtn { top: 12px; right: 14px; width: 44px; height: 44px; padding: 0; margin: 0; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 28px; line-height: 1; }
html.vosa-v2 .minicart-heading h4 { font: 800 24px var(--display); margin: 6px 0 14px; }
html.vosa-v2 #cartList { max-height: none; }
html.vosa-v2 #cartList .items { padding: 12px 0; border-bottom: 1px solid var(--line); }
html.vosa-v2 #cartList .info-block { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; align-items: start; border: 0; margin: 0; }
html.vosa-v2 #cartList .square-box { grid-row: span 3; float: none !important; width: 64px; height: 64px; min-height: 0; margin: 0; background: none !important; }
html.vosa-v2 #cartList .productImage { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--bg); }
html.vosa-v2 #cartList .product-item_title { font: 700 15px/1.25 var(--body); margin: 0; text-transform: none; color: var(--ink); }
html.vosa-v2 #cartList .product-item_quantity { margin: 2px 0 8px; color: var(--ink-2); font-size: 14px; }
html.vosa-v2 #cartList .row { margin: 0; gap: 8px; }
html.vosa-v2 #cartList .btn-cart-radius { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: none; display: grid; place-items: center; margin: 0; }
html.vosa-v2 #totalPrices .card { border: 0; box-shadow: none; background: var(--bg); border-radius: 14px; margin-top: 14px; }
html.vosa-v2 #totalPrices .card-body { padding: 14px 16px; font-size: 16px; }
html.vosa-v2 #totalPrices .ammount { float: right; }
html.vosa-v2 #totalPrices br { display: none; }
html.vosa-v2 #totalPrices a.btn { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 12px; padding: 12px; border-radius: 999px; font-size: 16px; font-weight: 800; text-transform: none; letter-spacing: 0; box-shadow: none; border: 0; }
html.vosa-v2 #totalPrices a.btn-primary { background: var(--accent); color: var(--accent-ink) !important; }
html.vosa-v2 #totalPrices a.btn-default { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
html.vosa-v2 #totalPrices .mobile-menu { display: block !important; }

/* ---------- Pie ---------- */
html.vosa-v2 footer.footer { background: transparent; padding: 24px 0 110px; font-size: 13px; color: var(--ink-3); }
html.vosa-v2 footer.footer .nav-link { color: var(--ink-3); font-size: 13px; }

@media (max-width: 575px) {
  html.vosa-v2 #navbar-main .web-menu:not(#cartButtonHolder):not(.dropdown) { display: none; }
  html.vosa-v2 #navbar-main #cartButtonHolder .nav-link-inner--text { display: none; }
  html.vosa-v2 #navbar-main .btn-cart { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html.vosa-v2 * { transition: none !important; animation: none !important; }
}
