:root {
    --green: #25d366;
    --green-d: #128c7e;
    --ink: #0d1117;
    --surface: #f7f5f0;
    --card: #fff;
    --muted: #6b7280;
    --border: #e5e0d8;
    --accent: #ff5c35;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    color-scheme: light;

}
*,
:after,
:before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* Forzar modo claro en todo el documento */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light only;
  }
  
  html {
    filter: none !important;
  }
}
input, select, textarea, button {
  color-scheme: light only;
}
body {
    font-family: 'Lato', sans-serif;;
    background: var(--surface);
    color: var(--ink);
    min-height: 100vh;
}
header {
    background: #fff;
    color: #000;
    padding: 12px 20px;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    flex-direction: column;
    gap: 6px;
}
.header-top,
header {
    display: flex;
    align-items: center;
}
.header-top {
    gap: 16px;
    width: 100%;
}
.store-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-bottom {
    display: none;
    justify-content: center;
}
#schedule-indicator {
    display: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    margin-left: 8px;
    cursor: default;
}
#global-search-wrap {
    position: relative;
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}
#mostrar-cel {
    display: block;
}
@media (min-width: 768px) {
    #mostrar-cel {
        display: none;
    }
}
#global-search-wrap-cel {
    position: relative;
    width: 100%;
    padding: 8px;
    background: #fff;
    margin: 5px 0 0;
    border-bottom: 1px solid var(--border);
}
#mostrar-note {
    display: block;
    position: relative;
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
}
@media (max-width: 767px) {
    #mostrar-note {
        display: none;
    }
}
#global-search-input,
#global-search-input-cel {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--card);
    outline: none;
    transition: border-color 0.2s;
}
#global-search-input:focus {
    border-color: var(--green);
}
#global-search-dropdown {
    left: 0;
    right: 0;
    top: 100%;
}
#global-search-dropdown,
#global-search-dropdown-cel {
    display: none;
    position: absolute;
    z-index: 200;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
}
#global-search-dropdown-cel {
    left: 12px;
    right: 12px;
    top: calc(100% - 8px);
}
.store-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
#store-logo {
    height: 53px;
    border-radius: 8px;
    padding: 5px;
    object-fit: contain;
    background-color: #fff;
}
#cart-btn {
    flex-shrink: 0;
    background: var(--green);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-family: 'Lato', sans-serif;;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    text-transform: uppercase;
    margin-left: auto;
}
#cart-btn:hover {
    background: var(--green-d);
}
#cart-count {
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-name {
    font-family: 'Lato', sans-serif;;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}
.store-name span {
    color: var(--green);
}
#hero-section {
    align-items: center;
}
#hero-section h2 {
    width: 100%;
    max-width: 1100px;
    text-align: left;
    margin-bottom: 8px;
    font-size: 1.5rem;
}
.hero-title {
    color: #ffb74d;
    background-color: #000;
    font-size: 22px;
    display: flex;
    align-items: center;
    margin: 0;
    line-height: 1.2;
    width: 100%;
    padding: 1rem 1rem 1rem 7%;
    font-weight: 700;
}
#hero-section {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.category-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
}
.cat-card {
    position: relative;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background-color: #444;
    transition: transform 0.2s ease;
}
.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.cat-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cat-label {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    width: 90%;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    background: transparent !important;
}
@media (max-width: 600px) {
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .cat-card {
        height: 90px;
    }
    .cat-label {
        font-size: 1.5rem;
    }
    #schedule-indicator {
        font-size: 1rem;
    }
}
#hero-banner {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 14px;
    display: none;
}
.controls {
    padding: 12px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
}
#back-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-family: 'Lato', sans-serif;;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--muted);
    padding: 0;
    width: fit-content;
}
#back-btn.show {
    display: flex;
}
#search-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Lato', sans-serif;;
    font-size: 0.95rem;
    background: var(--card);
    outline: none;
    transition: border-color 0.2s;
}
#search-input:focus {
    border-color: var(--green);
}
.cat-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar {
    display: none;
}
.chip {
    white-space: nowrap;
    padding: 6px 14px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--card);
    font-family: 'Lato', sans-serif;;
    font-size: 0.83rem;
    cursor: pointer;
    transition: all 0.15s;
}
.chip.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.section-title {
    font-family: 'Lato', sans-serif;;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 16px 8px;
    letter-spacing: -0.01em;
}
#products-grid,
.section-title {
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
}
#products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
    padding: 0 16px 100px;
}
.product-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s;
    position: relative;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-2px);
}
.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--surface);
}
.badge-promo {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    pointer-events: none;
}
.badge-new {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #7c3aed;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  pointer-events: none;
  z-index: 1;
}
.product-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.product-name {
    font-weight: 500;
    font-size: 0.88rem;
    line-height: 1.3;
}
.product-desc-short {
    font-size: 0.75rem;
    color: var(--muted);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-price-from {
    font-family: 'Lato', sans-serif;;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 6px;
}
.product-price-from small {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 400;
    margin-right: 2px;
}
.out-of-stock {
    opacity: 0.5;
    pointer-events: none;
}
.out-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--muted);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
}
#product-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
}
#product-modal.open {
    display: flex;
    align-items: flex-end;
}
@media (min-width: 600px) {
    #product-modal.open {
        align-items: center;
        justify-content: center;
    }
}
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}
.modal-box {
    position: relative;
    background: var(--card);
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
    max-height: 100vh;
    overflow-y: auto;
    animation: slideUp 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 600px) {
    .modal-box {
        border-radius: 20px;
        max-height: 100vh;
    }
}
@keyframes slideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.modal-img-wrap {
    position: relative;
}
.modal-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 01);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-body {
    padding: 16px;
}
.modal-name {
    font-family: 'Lato', sans-serif;;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 6px;
}
.modal-desc {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 16px;
}
.options-title {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 10px;
}
.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: border-color 0.15s;
}
.option-row.has-qty {
    border-color: var(--green);
    background: rgba(37, 211, 102, 0.04);
}
.option-info {
    flex: 1;
    min-width: 0;
}
.option-label {
    font-weight: 500;
    font-size: 0.9rem;
}
.option-price {
    font-family: 'Lato', sans-serif;;
    font-weight: 700;
    font-size: 0.95rem;
}
.option-old {
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: line-through;
    margin-right: 3px;
    font-weight: 400;
}
.qty-ctrl {
    gap: 7px;
    flex-shrink: 0;
}
.qty-ctrl,
.qty-ctrl button {
    display: flex;
    align-items: center;
}
.qty-ctrl button {
    background: var(--surface);
    border: 2px solid var(--border);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.15s;
    justify-content: center;
}
.qty-ctrl button:hover {
    border-color: var(--green);
}
.qty-ctrl span {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 18px;
    text-align: center;
}
.modal-add-btn {
    width: 100%;
    padding: 13px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: 'Lato', sans-serif;;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}
.modal-add-btn:hover {
    background: var(--green-d);
}
.modal-add-btn:disabled {
    background: var(--muted);
    cursor: not-allowed;
}
#modal-added-actions {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}
#cart-panel {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}
#cart-panel.open {
    display: flex;
}
.cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}
.cart-drawer {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(440px, 100vw);
    background: var(--card);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
#cart-panel.open .cart-drawer {
    transform: translateX(0);
}
.cart-header {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-header h2, .acc-header h2 {
    font-family: 'Lato', sans-serif;;
    font-weight: 800;
    font-size: 1.15rem;
}
#close-cart {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
}
#cart-items {
    flex: 1;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 80px;
	max-height: 60%;
    overflow-y: auto;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px;
    border-radius: 12px;
    background: var(--surface);
}
.cart-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    font-weight: 500;
    font-size: 0.83rem;
    line-height: 1.3;
}
.cart-item-variant {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 1px;
}
.cart-item-price {
    font-size: 0.78rem;
    color: var(--muted);
}
.cart-item-row2 {
    gap: 8px;
    margin-top: 4px;
}
.cart-item-row2,
.ci-qty {
    display: flex;
    align-items: center;
}
.ci-qty {
    gap: 5px;
}
.ci-qty button {
    background: var(--card);
    border: 1.5px solid var(--border);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
}
.ci-qty span {
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 16px;
    text-align: center;
}
.ci-remove {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.78rem;
    padding: 0;
}
.cart-item-total {
    font-family: 'Lato', sans-serif;;
    font-weight: 700;
    font-size: 0.88rem;
    min-width: 50px;
    text-align: right;
    flex-shrink: 0;
}
.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 0.9rem;
}
.cart-footer {
    padding: 12px 16px;
    border-top: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 9px;
    overflow-y: auto;
    flex-shrink: 0;
}
.cf-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.delivery-toggle {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.dtog {
    flex: 1;
    padding: 9px 6px;
    border: none;
    background: none;
    font-family: 'Lato', sans-serif;;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}
.dtog.active {
    background: var(--ink);
    color: #fff;
}
.cf-input {
    width: 100%;
    padding: 8px 11px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Lato', sans-serif;;
    font-size: 0.88rem;
    background: var(--surface);
    outline: none;
    transition: border-color 0.2s;
}
.cf-input:focus {
    border-color: var(--green);
}
#map-container {
    width: 100%;
    height: 170px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    display: none;
    margin-top: 6px;
}
.pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 4px;
}
.pay-opt {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.15s;
    background: none;
    text-align: left;
    font-family: 'Lato', sans-serif;;
    width: 100%;
}
.pay-opt.sel,
.pay-opt:hover {
    border-color: var(--green);
}
.pay-opt.sel {
    background: rgba(37, 211, 102, 0.07);
}
.pay-name {
    font-size: 0.82rem;
    font-weight: 600;
    display: block;
}
.pay-note {
    color: var(--muted);
}
.pay-diff,
.pay-note {
    font-size: 0.71rem;
    display: block;
    margin-top: 1px;
}
.pay-diff {
    font-weight: 600;
}
.pay-diff.pos {
    color: var(--accent);
}
.pay-diff.neg {
    color: var(--green);
}
.tr {
    display: flex;
    justify-content: space-between;
    font-size: 0.87rem;
}
.tr.bold {
    font-family: 'Lato', sans-serif;;
    font-weight: 800;
    font-size: 1.05rem;
}
.tr.red {
    color: var(--accent);
}
#wa-btn {
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 13px;
    font-family: 'Lato', sans-serif;;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    text-decoration: none;
    width: 100%;
}
#wa-btn:hover {
    background: var(--green-d);
}
#wa-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}
.cart-accordion,
.cart-drawer {
    display: flex;
    flex-direction: column;
}
.cart-accordion {
    height: 100%;
}
.acc-item {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-bottom: 2px solid var(--border);
}
.acc-header {
    padding: 14px 16px;
    font-weight: 700;
    cursor: pointer;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}
.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.acc-item.open {
    flex: 1;
    flex-shrink: 0;
}
.acc-item.open .acc-body {
    max-height: 100%;
	min-height: 300px;
    overflow: auto;
}
.cart-footer {
    overflow: visible;
}
.acc-next-btn {
    margin-top: 10px;
    width: 95%;
    padding: 12px;
    border: none;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.acc-button {
    display: flex;
    justify-content: center;
}
[contenteditable][data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: var(--muted);
    pointer-events: none;
}
[contenteditable]:focus {
    border-color: var(--green);
    outline: none;
}
[contenteditable] {
    white-space: pre-wrap;
    word-break: break-word;
}
.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: sh 1.4s infinite;
    border-radius: var(--radius);
}
@keyframes sh {
    to {
        background-position: -200% 0;
    }
}
.sk-card {
    height: 230px;
}
.sk-cat {
    height: 110px;
    border-radius: 14px;
}
#toast {
    position: fixed;
    bottom: 76px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    z-index: 500;
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}
#toast.show {
    opacity: 1;
}
@media (min-width: 640px) {
    #products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    .category-cards {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}
#store-footer {
    background: #fff;
    color: #000;
    padding: 14px 20px;
    text-align: center;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}
.opt-out {
    opacity: 0.5;
    pointer-events: none;
}
.opt-out .qty-ctrl button {
    cursor: not-allowed;
}
#coupon-section {
    margin-bottom: 8px;
}
#coupon-input {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
#coupon-discount-row {
    color: var(--green);
}
#side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s;
}
#side-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}
#side-menu {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: #000;
    z-index: 401;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
#side-menu.open {
    transform: translateX(0);
}
.sm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.08);
	background-color: #fff;
}
.sm-header img {
    height: 42px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}
.sm-header span {
    color: #ffb74d;
    font-weight: 700;
    font-size: 1rem;
}
.sm-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    gap: 2px;
}
.sm-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    color: #ffb74d;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    font-family: inherit;
}
.sm-item:hover {
    background: rgba(255, 183, 77, 0.08);
}
.sm-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: #ffb74d;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.info-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.info-modal.open {
    display: flex;
}
.info-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}
.info-modal-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}
.info-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background 0.15s;
}
.info-modal-close:hover {
    background: #f0f0f0;
}
.info-modal-body {
    padding: 28px 26px 26px;
}
.info-modal-icon {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 10px;
}
.info-modal-title {
    font-weight: 800;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 6px;
    color: #111;
}
.info-modal-addr {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.info-modal-addr2 {
    text-align: center;
    color: #888;
    font-size: 0.82rem;
    margin-bottom: 14px;
}
#location-map-frame {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-bottom: 14px;
}
.info-modal-gmaps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #1a73e8;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.15s;
}
.info-modal-gmaps:hover {
    background: #f0f6ff;
}
.info-modal-content {
    font-size: 0.93rem;
    line-height: 1.65;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
}
.grecaptcha-badge {
    visibility: hidden;
}

.modal-name-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.modal-name-row .modal-name {
  flex: 1;
}
.share-wrap {
  position: relative;
  flex-shrink: 0;
}
.share-btn {
  background: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 5px 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card);
  transition: background .15s, color .15s;
}
.share-btn:hover {
  background: var(--green-d);
  color: var(--card);
}
.share-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg, #fff);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 220px;
  z-index: 200;
  overflow: hidden;
  animation: shareMenuIn .15s ease;
}
.share-menu.open {
  display: block;
}
@keyframes shareMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.share-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: background .12s;
}
.share-item:hover {
  background: var(--surface);
}
#share-whatsapp svg { color: #25D366; }

/* ── Cierre temporal ─────────────────────────────── */
#closure-screen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    gap: 20px;
}
.closure-logo {
    max-width: 288px;
    max-height: 225px;
    object-fit: contain;
    border-radius: 16px;
}
.closure-msg {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    max-width: 480px;
    white-space: pre-wrap;
    word-break: break-word;
	margin-top: -40px;
}
.closure-socials {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}
.closure-social {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    padding: 8px 16px;
    border: 1.5px solid #e5e0d8;
    border-radius: 50px;
    transition: background .15s;
}
.closure-social:hover {
    background: #f7f5f0;
}