/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
    --red: #d93223;
    --red-dark: #a91f16;
    --orange: #ff9f1c;
    --orange-soft: #fff1d8;
    --black: #151515;
    --dark: #24211f;
    --gray: #f6f5f2;
    --gray-strong: #dfd8ce;
    --white: #ffffff;
    --muted: #68615b;
    --text: #2b2724;
    --shadow: 0 18px 48px rgba(33, 28, 24, 0.12);
    --shadow-soft: 0 10px 28px rgba(33, 28, 24, 0.08);
}

/* ============================================================
   RESET Y BASE
   ============================================================ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 159, 28, 0.18), transparent 34rem),
        linear-gradient(180deg, #fffaf1 0%, var(--gray) 42%, #ffffff 100%);
}

body.modal-open,
body.panel-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

img {
    display: block;
    width: 100%;
}

[hidden] {
    display: none !important;
}

/* ============================================================
   HEADER (negro con logo)
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--black);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

.navbar {
    width: min(1120px, calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--white);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--white);
    white-space: nowrap;
    text-decoration: none;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--black);
    padding: 0;
    display: block;
    border: 2px solid var(--orange);
    flex-shrink: 0;
}

.brand-text {
    color: var(--white);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--orange);
}

/* ============================================================
   BOTONES GENERALES
   ============================================================ */
.nav-button,
.primary-button,
.secondary-button,
.add-button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.nav-button,
.primary-button,
.add-button {
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: var(--white);
    box-shadow: 0 12px 26px rgba(217, 50, 35, 0.22);
}

.nav-button {
    padding: 11px 17px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;
}

.secondary-button {
    border: 1px solid var(--gray-strong);
    background: var(--white);
    color: var(--black);
}

.secondary-button.light {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

.full-button {
    width: 100%;
}

.disabled {
    pointer-events: none;
    opacity: 0.55;
}

.nav-button:hover,
.primary-button:hover,
.secondary-button:hover,
.add-button:hover {
    transform: translateY(-2px);
}

.nav-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.add-button:focus-visible,
.filter-button:focus-visible,
.modal-close:focus-visible,
.icon-button:focus-visible,
.cart-float:focus-visible,
.quantity-control button:focus-visible,
.cart-item-actions button:focus-visible,
.remove-button:focus-visible,
.copy-pix-button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(255, 159, 28, 0.55);
    outline-offset: 3px;
}

/* ============================================================
   HERO CON CARRUSEL DE 2 FOTOS
   ============================================================ */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    background: var(--black); /* fallback */
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroFade 12s infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}
.hero-slide:nth-child(2) {
    animation-delay: 6s;
}

@keyframes heroFade {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    45%  { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 0; }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(21, 21, 21, 0.92) 0%,
        rgba(169, 31, 22, 0.55) 45%,
        rgba(21, 21, 21, 0.75) 100%
    );
}

.hero-content,
.demo-strip,
.menu-section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 78px 0;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.qr-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.45rem, 7vw, 5rem);
    line-height: 0.98;
}

.hero p,
.qr-hero p {
    max-width: 610px;
    margin: 18px 0 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================================
   SECCIÓN DE DEMO / INFO
   ============================================================ */
.demo-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: -54px;
    padding: 24px;
    border: 1px solid rgba(223, 216, 206, 0.85);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.demo-strip h2,
.section-heading h2,
.cart-header h2,
.qr-card h2 {
    margin: 0;
    color: var(--black);
}

.demo-strip p,
.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.demo-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.demo-metrics span {
    border-radius: 999px;
    padding: 10px 13px;
    background: var(--orange-soft);
    color: var(--red-dark);
    font-size: 0.88rem;
    font-weight: 900;
}

/* ============================================================
   MENÚ
   ============================================================ */
.menu-section {
    padding: 58px 0 96px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: 2.15rem;
}

.menu-controls {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.search-label,
.qr-form label {
    font-weight: 900;
    color: var(--black);
}

#searchInput,
#urlInput {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--gray-strong);
    border-radius: 16px;
    padding: 0 16px;
    background: var(--white);
    color: var(--black);
    box-shadow: var(--shadow-soft);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 6px;
}

.filter-button {
    min-height: 44px;
    border: 1px solid var(--gray-strong);
    border-radius: 999px;
    padding: 0 17px;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    font-weight: 900;
    white-space: nowrap;
}

.filter-button.active {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}

/* ============================================================
   GRID DE PRODUCTOS
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(223, 216, 206, 0.78);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-card img {
    height: 220px;
    object-fit: cover;
}

.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.product-category {
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-info h3 {
    margin: 0;
    color: var(--black);
    font-size: 1.25rem;
}

.product-info p {
    flex: 1;
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.price {
    color: var(--red);
    font-size: 1.28rem;
    font-weight: 900;
}

.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--orange);
    color: var(--black);
    font-size: 0.78rem;
    font-weight: 900;
}

.add-button {
    width: 100%;
    min-height: 48px;
}

.empty-state {
    margin: 32px 0 0;
    padding: 24px;
    border-radius: 18px;
    background: var(--white);
    color: var(--black);
    font-weight: 900;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

/* ============================================================
   CARRITO FLOTANTE (botón "Ver pedido")
   ============================================================ */
.cart-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 25;
    display: grid;
    gap: 2px;
    min-width: 178px;
    border: 0;
    border-radius: 18px;
    padding: 14px 18px;
    background: var(--black);
    color: var(--white);
    box-shadow: var(--shadow);
    cursor: pointer;
    text-align: left;
}

.cart-float span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
}

.cart-float strong {
    font-size: 1rem;
}

/* ============================================================
   PANEL DEL CARRITO (aside que se desliza)
   ============================================================ */
.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    width: min(420px, 100%);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: var(--white);
    box-shadow: -18px 0 48px rgba(21, 21, 21, 0.18);
    transform: translateX(105%);
    transition: transform 0.25s ease;
    overflow: hidden;
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-header {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid var(--gray-strong);
    background: var(--white);
}

.cart-header h2 {
    margin: 0;
    color: var(--black);
}

/* ============================================================
   LISTA DE PRODUCTOS EN EL CARRITO
   ============================================================ */
.cart-items {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px 22px;
    min-height: 0;
}

.cart-empty {
    padding: 18px 22px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--gray-strong);
    border-radius: 16px;
    background: #fffaf4;
    align-items: center;
}

.cart-item strong,
.cart-item span {
    display: block;
}

.cart-item strong {
    color: var(--black);
    font-weight: 900;
}

.cart-item span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.92rem;
}

.cart-item-bs {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.quantity-control,
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.quantity-control button,
.cart-item-actions button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
}

.quantity-control span,
.cart-item-actions span {
    min-width: 22px;
    margin: 0;
    color: var(--black);
    text-align: center;
    font-weight: 900;
}

.cart-item-actions button[data-action="remove"] {
    width: auto;
    min-width: auto;
    padding: 0 10px;
    border-radius: 999px;
    background: transparent;
    color: var(--red);
}

.remove-button {
    grid-column: 1 / -1;
    width: fit-content;
    border: 0;
    background: transparent;
    color: var(--red);
    cursor: pointer;
    font-weight: 900;
}

/* ============================================================
   FOOTER DEL CARRITO (pago + total + botón)
   ============================================================ */
.cart-footer {
    flex-shrink: 0;
    display: grid;
    gap: 8px;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--gray-strong);
    background: var(--white);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    max-height: 40vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================================
   PAGO (dentro del footer)
   ============================================================ */
.payment-box {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--gray-strong);
    border-radius: 14px;
    background: #fffaf4;
}

.payment-box h3 {
    margin: 0;
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 900;
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--gray-strong);
    border-radius: 10px;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    font-weight: 900;
    font-size: 0.85rem;
}

.payment-option input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--red);
}

.pix-box {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--orange-soft);
    grid-column: 1 / -1;
}

.pix-box span {
    color: var(--red-dark);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pix-box strong {
    color: var(--black);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.copy-pix-button {
    width: fit-content;
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0 12px;
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    font-weight: 900;
    font-size: 0.85rem;
}

.copy-message {
    min-height: 18px;
    margin: 0;
    color: var(--red-dark);
    font-size: 0.9rem;
    font-weight: 900;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--black);
}

.cart-total strong {
    font-size: 1.15rem;
    font-weight: 900;
}

.cart-total-bs {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 2px;
}

.cart-footer #finishOrder,
.cart-footer .primary-button {
    min-height: 46px;
    font-size: 0.98rem;
}

/* ============================================================
   BOTÓN CERRAR (×) - círculo negro
   ============================================================ */
.icon-button,
.modal-close {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.icon-button:hover,
.modal-close:hover {
    background: var(--red);
    color: var(--white);
}

/* ============================================================
   OVERLAY (fondo oscuro detrás del carrito)
   ============================================================ */
.screen-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(21, 21, 21, 0.45);
}

/* ============================================================
   RESPONSIVE MÓVIL
   ============================================================ */
@media (max-width: 720px) {
    .cart-float {
        right: 16px;
        bottom: 16px;
        left: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .cart-footer {
        max-height: 45vh;
    }
}

/* ============================================================
   PAGO
   ============================================================ */
.payment-box {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--gray-strong);
    border-radius: 18px;
    background: #fffaf4;
}

.payment-box h3 {
    margin: 0;
    color: var(--black);
    font-size: 1rem;
}

.payment-options {
    display: grid;
    gap: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--gray-strong);
    border-radius: 14px;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    font-weight: 900;
}

.payment-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
}

.pix-box {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: var(--orange-soft);
}

.pix-box span {
    color: var(--red-dark);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pix-box strong {
    color: var(--black);
    overflow-wrap: anywhere;
}

.copy-pix-button {
    width: fit-content;
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    font-weight: 900;
}

.copy-message {
    min-height: 18px;
    margin: 0;
    color: var(--red-dark);
    font-size: 0.9rem;
    font-weight: 900;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--black);
}

.cart-total strong {
    font-size: 1.35rem;
}

/* ============================================================
   OVERLAY Y MODAL
   ============================================================ */
.screen-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(21, 21, 21, 0.45);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.modal-content img {
    height: 340px;
    object-fit: cover;
}

.modal-body {
    padding: 26px;
}

.modal-category {
    color: var(--red);
    font-weight: 900;
    text-transform: uppercase;
}

.modal-body h2 {
    margin: 8px 0 10px;
    color: var(--black);
    font-size: 2rem;
}

.modal-body p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

.modal-body strong {
    display: block;
    margin-bottom: 18px;
    color: var(--red);
    font-size: 1.45rem;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 40px max(16px, calc((100% - 1120px) / 2));
    background: var(--black);
    color: var(--white);
}

.footer p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.45;
}

/* ============================================================
   QR PAGE
   ============================================================ */
.qr-page {
    min-height: calc(100vh - 74px);
    padding: 56px 16px 72px;
}

.qr-layout {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: start;
}

.qr-hero {
    min-height: 520px;
    display: grid;
    align-content: center;
    border-radius: 28px;
    padding: 42px;
    color: var(--white);
    background:
        linear-gradient(120deg, rgba(21, 21, 21, 0.92), rgba(217, 50, 35, 0.66)),
        url("https://carlosburguerccs.lincard.info/admin/imagenes/0000035.jpg") center/cover;
    box-shadow: var(--shadow);
}

.qr-card {
    border: 1px solid rgba(223, 216, 206, 0.9);
    border-radius: 24px;
    padding: 26px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.qr-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.qr-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-message {
    min-height: 22px;
    margin: 14px 0;
    color: var(--red);
    font-weight: 900;
}

.qr-preview {
    display: grid;
    place-items: center;
    min-height: 280px;
    margin-top: 16px;
    border: 1px dashed var(--gray-strong);
    border-radius: 20px;
    background: #fffaf4;
}

.qr-placeholder {
    max-width: 240px;
    margin: 0;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

.qr-result {
    display: grid;
    place-items: center;
}

.qr-result canvas,
.qr-result img {
    max-width: 100%;
    height: auto;
    padding: 12px;
    border-radius: 16px;
    background: var(--white);
}

/* ============================================================
   PRECIO EN Bs. (BCV)
   ============================================================ */
.price-bs {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: -4px;
    margin-bottom: 8px;
}

.modal-price-bs {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 2px;
}

.cart-item-bs,
.cart-total-bs {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.cart-total-bs {
    font-size: 0.9rem;
    margin-top: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .products-grid,
    .footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qr-layout {
        grid-template-columns: 1fr;
    }

    .qr-hero {
        min-height: 400px;
    }
}

@media (max-width: 720px) {
    .navbar {
        min-height: auto;
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nav-button {
        padding: 10px 14px;
    }

    /* En móvil, el hero con degradado vertical */
    .hero {
        min-height: 590px;
    }

    .hero::before {
        background: linear-gradient(
            180deg,
            rgba(21, 21, 21, 0.92) 0%,
            rgba(169, 31, 22, 0.65) 100%
        );
    }

    /* Carrusel más rápido en móvil */
    .hero-slide {
        animation-duration: 10s;
    }
    .hero-slide:nth-child(1) {
        animation-delay: 0s;
    }
    .hero-slide:nth-child(2) {
        animation-delay: 5s;
    }

    .demo-strip {
        align-items: flex-start;
        flex-direction: column;
        margin-top: -34px;
    }

    .demo-metrics {
        justify-content: flex-start;
    }

    .products-grid,
    .footer {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 240px;
    }

    .cart-float {
        right: 16px;
        bottom: 16px;
        left: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .modal-actions,
    .hero-actions,
    .qr-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .modal-actions .primary-button,
    .modal-actions .secondary-button,
    .hero-actions .primary-button,
    .hero-actions .secondary-button {
        width: 100%;
    }

    .qr-hero,
    .qr-card {
        border-radius: 22px;
        padding: 24px;
    }
}

@media (max-width: 430px) {
    .hero h1,
    .qr-hero h1 {
        font-size: 2.35rem;
    }

    .hero-content {
        padding: 58px 0 76px;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .modal-content img {
        height: 240px;
    }

    .brand-text {
        display: none;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }
}

/* ============================================================
   OPTIMIZACIÓN MÓVIL
   ============================================================ */

input,
textarea,
select {
    font-size: 16px !important;
}

body {
    -webkit-overflow-scrolling: touch;
}

* {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 720px) {
    .add-button {
        min-height: 54px;
        font-size: 1rem;
    }

    .filter-button {
        min-height: 48px;
        font-size: 0.95rem;
    }
}

/* ============================================================
   BOTONES DEL CARRITO - CÍRCULOS NEGROS PERFECTOS
   ============================================================ */
.quantity-control button,
.cart-item-actions button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
}

/* ============================================
   BANNER DE ESTADO DE LA TIENDA
   ============================================ */
.store-status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 2px solid;
    animation: slideDown 0.3s ease;
}

.store-status-banner[hidden] {
    display: none !important;
}

.store-status-banner.status-cerrando {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-color: #ffc107;
}

.store-status-banner.status-cerrado {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: #dc3545;
}

.store-status-banner .status-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.store-status-banner .status-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.store-status-banner .status-title {
    font-size: 1rem;
    font-weight: 900;
}

.store-status-banner .status-message {
    font-size: 0.85rem;
    opacity: 0.9;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.add-button.disabled,
.add-button:disabled,
.promo-button.disabled,
.promo-button:disabled  {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

body.store-cerrado .product-card {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================================
   MODAL DE CHECKOUT - DISEÑO MEJORADO
   ============================================================ */
#checkoutModal.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 100;
    overflow-y: auto;
}

#checkoutModal.modal-overlay.open {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.checkout-content {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    background: var(--white);
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    margin: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.checkout-content .modal-body {
    padding: 0;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.checkout-content .modal-body::before {
    content: '';
    display: block;
    height: 6px;
    background: linear-gradient(90deg, var(--red), var(--orange));
}

.checkout-content .eyebrow {
    display: block;
    margin: 24px 28px 6px;
    color: var(--orange);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkout-content h2 {
    margin: 0 28px 24px;
    font-size: 1.75rem;
    color: var(--black);
    font-weight: 900;
    line-height: 1.2;
}

.checkout-content .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: var(--black);
    border: 0;
    font-size: 1.4rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkout-content .modal-close:hover {
    background: var(--red);
    color: var(--white);
    transform: rotate(90deg);
}

#checkoutForm {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 28px 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e8e3dc;
    border-radius: 12px;
    background: #fafaf8;
    color: var(--black);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:hover {
    border-color: #d4cec4;
}

.form-control:focus {
    outline: none;
    border-color: var(--orange);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%2368615b' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.checkout-summary {
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffaf4 0%, #fff5e6 100%);
    border: 2px dashed var(--orange-soft);
    margin: 8px 0;
}

.checkout-summary h4 {
    margin: 0 0 14px;
    font-size: 0.85rem;
    color: var(--black);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkout-summary h4::before {
    content: '🛒';
    font-size: 1rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 0.9rem;
    color: var(--muted);
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.checkout-item:last-of-type {
    border-bottom: 0;
}

.checkout-item span:first-child {
    flex: 1;
    padding-right: 12px;
}

.checkout-item span:last-child {
    font-weight: 700;
    color: var(--black);
    white-space: nowrap;
}

.checkout-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding-top: 14px;
    margin-top: 12px;
    border-top: 2px solid var(--orange);
}

.checkout-total strong {
    font-size: 1.3rem;
    color: var(--red);
    font-weight: 900;
}

.checkout-total small {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

#confirmOrderBtn {
    margin-top: 12px;
    min-height: 56px;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

#confirmOrderBtn::after {
    content: '→';
    position: absolute;
    right: 20px;
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

#confirmOrderBtn:hover::after {
    transform: translateX(4px);
}

#confirmOrderBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.checkout-content .modal-body::-webkit-scrollbar {
    width: 6px;
}

.checkout-content .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.checkout-content .modal-body::-webkit-scrollbar-thumb {
    background: #d4cec4;
    border-radius: 3px;
}

.checkout-content .modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--orange);
}

.swal2-popup {
    font-family: Arial, Helvetica, sans-serif;
}

/* ============================================================
   ✅ CHECKOUT EN MÓVIL - PANTALLA COMPLETA (FIX DEFINITIVO)
   ============================================================ */
@media (max-width: 720px) {
    #checkoutModal.modal-overlay,
    #checkoutModal.modal-overlay.open {
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    #checkoutModal .checkout-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        animation: none !important;
        overflow: hidden !important;
    }

    #checkoutModal .checkout-content .modal-body {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        max-height: none !important;
        padding: 0 !important;
    }

    #checkoutModal .checkout-content .eyebrow {
        margin: 24px 20px 6px !important;
    }

    #checkoutModal .checkout-content h2 {
        margin: 0 20px 20px !important;
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
    }

    #checkoutModal #checkoutForm {
        padding: 0 20px 30px !important;
    }

    #checkoutModal .checkout-content .modal-close {
        top: 12px !important;
        right: 12px !important;
    }
}

@media (max-width: 720px) {
    .checkout-content .form-control:focus {
        scroll-margin-bottom: 100px;
    }
}

/* ============================================================
   BOTÓN Y RECUADRO DE CÁLCULO DE ENVÍO
   ============================================================ */
.btn-calcular-envio {
    display: block !important;
    width: 100% !important;
    padding: 13px 20px !important;
    margin-top: 10px !important;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%) !important;
    color: #a91f16 !important;
    border: 2px dashed #d93223 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    font-family: inherit !important;
}

.btn-calcular-envio:hover {
    background: linear-gradient(135deg, #d93223 0%, #ff9f1c 100%);
    color: white;
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 50, 35, 0.25);
}

.btn-calcular-envio:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.envio-resultado {
    margin-top: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 100%);
    border-left: 4px solid #4caf50;
    border-radius: 12px;
    animation: envioSlideDown 0.3s ease-out;
}

@keyframes envioSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.envio-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.envio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #2b2724;
}

.envio-row strong {
    color: #2e7d32;
    font-size: 16px;
    font-weight: 900;
}

.envio-row small {
    color: #68615b;
    font-size: 12px;
    font-weight: 600;
}

.envio-nota {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed #a5d6a7;
    justify-content: center;
    color: #2e7d32;
}

.envio-nota small {
    font-style: italic;
    color: #2e7d32;
}

/* ============================================================
   AUTOCOMPLETADO DE DIRECCIONES
   ============================================================ */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    background: white;
    border: 2px solid #e8e3dc;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.autocomplete-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0ebe4;
    transition: background 0.15s;
    font-size: 0.9rem;
    color: #2b2724;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #fff5e6;
}

.autocomplete-icon {
    flex-shrink: 0;
    color: #d93223;
    font-size: 1rem;
}

.autocomplete-text {
    flex: 1;
    line-height: 1.4;
}

.autocomplete-empty {
    padding: 14px;
    text-align: center;
    color: #68615b;
    font-style: italic;
    font-size: 0.9rem;
}

/* ============================================================
   BOTÓN GPS
   ============================================================ */
.btn-usar-gps {
    display: block !important;
    width: 100% !important;
    padding: 11px 20px !important;
    margin-top: 8px !important;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    color: #1565c0 !important;
    border: 2px solid #42a5f5 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    font-family: inherit !important;
}

.btn-usar-gps:hover {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 165, 245, 0.3);
}

.btn-usar-gps:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* ============================================================
   MAPA (Leaflet)
   ============================================================ */
.mapa-container {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e8e3dc;
    background: #fafaf8;
}

#mapa {
    width: 100%;
    height: 250px;
    z-index: 1;
}

.mapa-nota {
    display: block;
    padding: 8px 12px;
    background: #fff5e6;
    color: #a91f16;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    border-top: 1px solid #ffe8cc;
}

@media (max-width: 720px) {
    #mapa {
        height: 200px;
    }
}

.mapa-instruccion {
    background: #fff8e1;
    border-left: 3px solid #ff9800;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #5d4037;
}

.mapa-instruccion strong {
    color: #e65100;
    font-weight: 600;
}

@media (max-width: 480px) {
    .mapa-instruccion {
        font-size: 0.72rem;
        padding: 6px 8px;
        line-height: 1.3;
    }

    .mapa-instruccion .instruccion-larga {
        display: none;
    }
}

/* ============================================================
   SECCIÓN DE PROMOCIONES
   ============================================================ */
.promociones-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe4c4 100%);
    border-radius: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.promociones-section .section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.promociones-section .eyebrow {
    color: #ff6600;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.promociones-section h2 {
    font-size: 2rem;
    margin: 8px 0 12px;
    color: #151515;
}

.promociones-section p {
    color: #68615b;
    font-size: 1rem;
}

.promociones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.promo-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.promo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff4444;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}

.promo-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.promo-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.promo-info h3 {
    font-size: 1.15rem;
    margin: 0 0 8px;
    color: #151515;
    font-weight: 700;
}

.promo-info p {
    color: #68615b;
    font-size: 0.9rem;
    margin: 0 0 16px;
    line-height: 1.4;
    flex: 1;
}

.promo-precios {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.promo-precio-original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.95rem;
}

.promo-precio-final {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6600;
}

.promo-button {
    width: 100%;
    padding: 12px 20px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.promo-button:hover {
    background: #e55a00;
}

.promo-button:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .promociones-section {
        padding: 40px 16px;
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 0;
    }

    .promociones-section h2 {
        font-size: 1.5rem;
    }

    .promociones-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
/* ============================================================
   MODAL DE SELECCIÓN CARNE / POLLO
/* ============================================================
   MODAL DE SELECCIÓN MÚLTIPLE DE PROTEÍNAS
   ============================================================ */
.protein-modal-content {
  max-width: 460px;
  text-align: center;
}

.protein-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.protein-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 12px;
  border: 2px solid #e8e3dc;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #151515;
}

.protein-option:hover {
  border-color: #ff9f1c;
  background: #fffaf4;
}

.protein-option.selected {
  border-color: #d93223;
  background: #fff3e0;
  box-shadow: 0 0 0 3px rgba(217, 50, 35, 0.15);
}

.protein-emoji {
  font-size: 2rem;
  line-height: 1;
}

.protein-option strong {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Check visible solo al seleccionar */
.protein-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d93223;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.protein-option.selected .protein-check {
  opacity: 1;
  transform: scale(1);
}

/* Contador */
.protein-counter {
  margin: 16px 0 8px;
  font-size: 0.95rem;
  color: #68615b;
}

.protein-counter strong {
  color: #d93223;
  font-size: 1.05rem;
}

/* Botón agregar */
#confirmProteinsBtn {
  margin-top: 8px;
}

#confirmProteinsBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Badge de proteínas en el carrito */
.cart-item-protein {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 8px;
  background: #fff3e0;
  color: #e65100;
  border-radius: 999px;
  margin-left: 6px;
  margin-top: 4px;
  font-weight: 600;
}

/* Móvil */
@media (max-width: 480px) {
  .protein-options {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .protein-option {
    padding: 14px 8px;
  }
  .protein-emoji {
    font-size: 1.6rem;
  }
}