* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #fff8ee;
    --text: #1d1d1d;
    --muted: #6a5d52;
    --orange: #ff6b00;
    --yellow: #ffc857;
    --dark: #111827;
    --card: #ffffff;
    --green: #25d366;
    --danger: #d62828;
}

.logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    background: white;
}

    .logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.hero {
    min-height: 88vh;
    padding: 22px;
    color: white;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0,0,0,.76) 0%, rgba(0,0,0,.58) 38%, rgba(0,0,0,.84) 100%),
        radial-gradient(circle at 50% 35%, rgba(255,107,0,.25), transparent 30%),
        url("img/tostiviches.jpeg") center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 210, 255, .32), transparent 24%),
        radial-gradient(circle at 85% 25%, rgba(255, 122, 0, .28), transparent 26%),
        radial-gradient(circle at 50% 92%, rgba(0, 174, 255, .28), transparent 35%),
        linear-gradient(115deg, transparent 0%, rgba(255,255,255,.08) 38%, transparent 58%);
    opacity: .95;
    animation: oceanLight 6s ease-in-out infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -95px;
    height: 290px;
    background:
        radial-gradient(ellipse at center, rgba(0, 174, 255, .42) 0%, rgba(0, 174, 255, .20) 35%, transparent 68%);
    filter: blur(18px);
    animation: wavesMove 7s ease-in-out infinite alternate;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--yellow);
    color: #141414;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 22px;
    border: 3px solid white;
}

.brand h1 {
    font-size: 22px;
}

.brand p {
    font-size: 13px;
    color: #f3f3f3;
}

.cart-button {
    border: none;
    cursor: pointer;
    background: white;
    color: #111827;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 900;
}

    .cart-button span {
        background: var(--orange);
        color: white;
        padding: 3px 8px;
        border-radius: 999px;
        margin-left: 5px;
    }

.hero-content {
    max-width: 780px;
    margin: 110px auto 0;
    text-align: center;
}

.badge,
.section-title p {
    display: inline-block;
    background: rgba(255, 200, 87, .18);
    color: var(--yellow);
    border: 1px solid rgba(255, 200, 87, .4);
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero h2 {
    font-size: clamp(36px, 7vw, 70px);
    line-height: 1;
    margin-bottom: 16px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 900;
    padding: 14px 20px;
    margin-top: 18px;
}

.primary {
    background: var(--orange);
    color: white;
    box-shadow: 0 10px 28px rgba(255,107,0,.35);
}

.danger {
    background: var(--danger);
    color: white;
}

.full {
    width: 100%;
}

.info-cards {
    width: min(1100px, calc(100% - 28px));
    margin: -55px auto 60px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

    .info-cards article,
    .menu-card,
    .contact {
        background: var(--card);
        border-radius: 24px;
        box-shadow: 0 14px 35px rgba(24, 24, 24, .10);
    }

    .info-cards article {
        padding: 22px;
    }

    .info-cards p,
    .menu-card p,
    footer {
        color: var(--muted);
    }

.section {
    width: min(1100px, calc(100% - 28px));
    margin: 0 auto 70px;
}

.section-title {
    text-align: center;
    margin-bottom: 24px;
}

    .section-title h2,
    .contact h2 {
        font-size: clamp(30px, 5vw, 48px);
    }

    .section-title p {
        color: #d35400;
        background: rgba(255,107,0,.10);
        border-color: rgba(255,107,0,.20);
    }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.menu-card {
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 190px;
    background: #fff0d6;
    display: grid;
    place-items: center;
    font-size: 58px;
}

    .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.menu-info {
    padding: 18px;
}

    .menu-info h3 {
        font-size: 23px;
    }

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}

    .price-row strong {
        color: var(--orange);
        font-size: 24px;
    }

.add-btn {
    border: none;
    background: var(--dark);
    color: white;
    padding: 12px 14px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.contact {
    text-align: center;
    padding: 32px 20px;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -430px;
    width: min(420px, 100%);
    height: 100vh;
    background: white;
    z-index: 30;
    transition: right .25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,.20);
}

    .cart-panel.open {
        right: 0;
    }

.cart-header {
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

    .cart-header button {
        border: none;
        background: #f3f3f3;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 18px;
    }

.cart-items {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

    .cart-item h4 {
        font-size: 16px;
    }

.cart-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .cart-controls button {
        border: none;
        background: #f1f1f1;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
        font-weight: 900;
    }

.cart-footer {
    padding: 16px;
    border-top: 1px solid #eee;
}

.total {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    margin-bottom: 12px;
}

    .total strong {
        color: var(--orange);
    }

label {
    display: block;
    font-weight: 900;
    margin: 10px 0 5px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 12px;
    font-family: inherit;
    font-size: 16px !important;
}

textarea {
    min-height: 70px;
    resize: vertical;
}

.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 20;
    display: none;
}

    .cart-backdrop.open {
        display: block;
    }

footer {
    text-align: center;
    padding: 28px 14px;
}

@media (max-width: 760px) {
    .navbar {
        align-items: flex-start;
    }

    .hero-content {
        margin-top: 90px;
    }

    .info-cards,
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .info-cards {
        margin-top: -40px;
    }

    .cart-button {
        padding: 10px 12px;
        top: 82px;
        right: 12px;
    }
}


/* BOTÓN DEL CARRITO FIJO: sigue al usuario al desplazarse */
.cart-button {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 50;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
}


/* MODAL DE OPCIONES DEL PRODUCTO */
.option-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(7px);
    z-index: 80;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

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

.option-box {
    position: relative;
    width: min(720px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: #fffdf8;
    border-radius: 34px 34px 0 0;
    padding: 28px 22px 32px;
    box-shadow: 0 -14px 38px rgba(0,0,0,.25);
}

.option-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: #eef5f7;
    color: #0d6073;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
}

.option-box h2 {
    color: #0d6073;
    font-size: 34px;
    margin-right: 60px;
}

.option-img {
    width: 140px;
    height: 140px;
    border: 7px solid #50d6df;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 18px auto;
    background: white;
    font-size: 64px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(80,214,223,.35);
}

    .option-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.option-desc {
    text-align: center;
    color: #5f7780;
    font-weight: 700;
    margin: 0 auto 18px;
    max-width: 560px;
}

.option-section {
    margin-top: 22px;
}

    .option-section h3 {
        color: #0d7890;
        margin-bottom: 10px;
        font-size: 18px;
    }

.option-list {
    display: grid;
    gap: 12px;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 2px solid #d9ecf1;
    background: white;
    border-radius: 18px;
    padding: 16px;
    cursor: pointer;
    font-weight: 900;
    color: #0d6073;
}

    .option-row.selected {
        border-color: #ff6347;
        background: #fff0eb;
    }

.option-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fake-radio,
.fake-check {
    width: 28px;
    height: 28px;
    border: 3px solid #9aa0a6;
    display: inline-block;
    flex: 0 0 auto;
}

.fake-radio {
    border-radius: 50%;
}

.fake-check {
    border-radius: 8px;
}

.option-row.selected .fake-radio {
    border: 8px solid #ff6347;
}

.option-row.selected .fake-check {
    background: #ff6347;
    border-color: #ff6347;
}

.option-price {
    color: #e74634;
    font-weight: 900;
}

.cart-item small {
    display: block;
    color: #6a5d52;
    margin-top: 4px;
    line-height: 1.35;
}

@media (min-width: 761px) {
    .option-modal {
        align-items: center;
    }

    .option-box {
        border-radius: 34px;
    }
}

.mini-chips {
    justify-content: flex-start;
    margin-top: 12px;
}

.size-pill {
    background: #eef9fb;
    border: 2px solid #b9e3ea;
    color: #0d6073;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 14px;
}

.cart-button.hidden {
    display: none;
}


/* FORMA DE PAGO */
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.payment-row {
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    cursor: pointer;
    background: white;
}

    .payment-row.selected {
        border-color: var(--orange);
        background: #fff0e7;
    }

    .payment-row input {
        width: auto;
    }

.bank-data {
    display: none;
    background: #fff8e8;
    border: 2px dashed var(--orange);
    border-radius: 18px;
    padding: 14px;
    margin-top: 12px;
}

    .bank-data.show {
        display: block;
    }

    .bank-data h3 {
        margin-bottom: 8px;
        color: var(--orange);
    }

    .bank-data p {
        margin: 4px 0;
        color: #222;
    }

    .bank-data small {
        display: block;
        margin-top: 8px;
        color: #6a5d52;
    }

@media (max-width: 420px) {
    .payment-options {
        grid-template-columns: 1fr;
    }
}


.product-category {
    color: #0d7890 !important;
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 4px;
}

/* Promociones automáticas */
.old-price {
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 6px;
}
/* TARJETAS DE PRODUCTO CON FOTO ARRIBA */
.menu-card {
    overflow: hidden;
    padding: 0;
    background: white;
    display: flex;
    flex-direction: column;
}

.product-img {
    width: 100%;
    height: 230px;
    background: #fff0d6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Texto siempre abajo de la imagen */
.menu-info {
    background: white;
    padding: 18px;
    position: relative;
    z-index: 2;
}

    /* Tarjetas más limpias */
    .menu-info p {
        color: var(--muted);
    }

    .menu-info h3 {
        color: var(--text);
        margin-bottom: 4px;
    }

.product-category {
    color: #0d7890 !important;
    font-weight: 900;
}

/* Que los botones de tamaños no se encimen */
.mini-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.price-row {
    margin-top: 16px;
}

@media (max-width: 760px) {
    .product-img {
        height: 210px;
    }
}


/* OPCIONES DE ENTREGA */
.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.delivery-row {
  border: 2px solid #e5e5e5;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  cursor: pointer;
  background: white;
}

.delivery-row.selected {
  border-color: var(--orange);
  background: #fff0e7;
}

.delivery-row input {
  width: auto;
}

.address-group {
  margin-top: 8px;
}

@media (max-width: 420px) {
  .delivery-options {
    grid-template-columns: 1fr;
  }
}
.cart-panel {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-items {
    max-height: none;
    overflow-y: visible;
}

.cart-footer {
    padding-bottom: 120px;
}

/* Fondo premium animado de mariscos */
.sea-animations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.navbar,
.hero-content {
    position: relative;
    z-index: 3;
}

.navbar {
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.hero-content {
    background: radial-gradient(circle at center, rgba(0,0,0,.34), transparent 70%);
    padding: 18px 6px 10px;
    text-shadow: 0 4px 20px rgba(0,0,0,.80);
}

.bubble {
    position: absolute;
    bottom: -55px;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7), rgba(255,255,255,.12) 36%, transparent 60%);
    box-shadow: 0 0 22px rgba(0, 195, 255, .70);
    animation: bubbleUp 8s linear infinite;
}

.b1 { left: 8%; animation-duration: 7s; }
.b2 { left: 25%; width: 15px; height: 15px; animation-duration: 9s; animation-delay: 1s; }
.b3 { left: 43%; width: 28px; height: 28px; animation-duration: 8s; animation-delay: 2s; }
.b4 { left: 64%; width: 17px; height: 17px; animation-duration: 10s; animation-delay: 1.5s; }
.b5 { left: 78%; width: 26px; height: 26px; animation-duration: 7.5s; animation-delay: 3s; }
.b6 { left: 90%; width: 14px; height: 14px; animation-duration: 11s; animation-delay: 2.2s; }
.b7 { left: 52%; width: 12px; height: 12px; animation-duration: 6.5s; animation-delay: .5s; }

.sea-food {
    position: absolute;
    font-size: clamp(46px, 12vw, 90px);
    opacity: .48;
    filter: drop-shadow(0 0 20px rgba(0, 195, 255, .85)) drop-shadow(0 8px 18px rgba(0,0,0,.9));
    animation: floatSea 6s ease-in-out infinite;
}

.shrimp { top: 23%; left: 5%; animation-delay: .2s; }
.shrimp2 { bottom: 16%; right: 6%; animation-delay: 1.2s; }
.fish { top: 38%; right: 6%; animation-delay: 1.5s; }
.octopus { bottom: 23%; left: 10%; animation-delay: 2.5s; }
.crab { bottom: 30%; right: 20%; animation-delay: 3.5s; }

.primary {
    box-shadow: 0 0 0 8px rgba(255,107,0,.12), 0 18px 44px rgba(255,107,0,.62);
}

@keyframes oceanLight {
    from { transform: translateX(-18px) scale(1); filter: saturate(1.05); }
    to { transform: translateX(18px) scale(1.08); filter: saturate(1.35); }
}

@keyframes wavesMove {
    from { transform: translateX(-35px) translateY(0); }
    to { transform: translateX(35px) translateY(-18px); }
}

@keyframes bubbleUp {
    0% { transform: translateY(0) translateX(0) scale(.75); opacity: 0; }
    12% { opacity: .95; }
    100% { transform: translateY(-95vh) translateX(38px) scale(1.65); opacity: 0; }
}

@keyframes floatSea {
    0%, 100% { transform: translateY(0) rotate(-8deg) scale(1); }
    50% { transform: translateY(-34px) rotate(8deg) scale(1.08); }
}

@media (max-width: 520px) {
    .hero {
        min-height: 88vh;
        background-position: center top;
    }

    .hero h2 {
        font-size: clamp(42px, 9vw, 58px);
    }

    .sea-food {
        opacity: .42;
        font-size: clamp(44px, 14vw, 72px);
    }

    .fish { top: 39%; right: 2%; }
    .crab { bottom: 28%; right: 10%; }
}


/* CARRITO FLOTANTE PREMIUM */
.cart-button{
    position:fixed !important;
    top:95px !important;
    right:14px !important;
    z-index:99999 !important;
}
.cart-panel{z-index:100000 !important;}
.cart-backdrop{z-index:99998 !important;}



/* =====================================================
   FIX DEFINITIVO: CARRITO SIEMPRE ENCIMA
   ===================================================== */

html, body {
    overflow-x: hidden;
}

/* Evita que el carrito se recorte por la portada */
.hero,
.navbar {
    overflow: visible !important;
}

/* El carrito queda pegado a la pantalla, no a la tarjeta */
.cart-button {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 88px) !important;
    right: 12px !important;
    z-index: 2147483647 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;

    min-width: 132px !important;
    height: 54px !important;
    padding: 12px 15px !important;

    background: #ffffff !important;
    color: #111827 !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    box-shadow:
        0 14px 35px rgba(0,0,0,.35),
        0 0 0 5px rgba(255,255,255,.55) !important;

    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: transform !important;
}

/* Número del carrito */
.cart-button span {
    background: var(--orange) !important;
    color: white !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    margin-left: 4px !important;
}

/* Cuando el panel esté abierto, el panel manda */
.cart-panel {
    z-index: 2147483647 !important;
}

.cart-backdrop {
    z-index: 2147483646 !important;
}

.cart-button.hidden {
    display: none !important;
}

@media (max-width: 760px) {
    .cart-button {
        top: calc(env(safe-area-inset-top, 0px) + 82px) !important;
        right: 10px !important;
        min-width: 124px !important;
        height: 50px !important;
        padding: 10px 13px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 380px) {
    .cart-button {
        min-width: 112px !important;
        font-size: 13px !important;
        right: 8px !important;
    }
}

.footer-brand a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 900;
}

    .footer-brand a:hover {
        text-decoration: underline;
    }


/* VISOR DE IMAGEN COMPLETA */
.image-viewer {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    padding: 18px;
}

.image-viewer.open {
    display: flex;
}

.image-viewer img {
    max-width: 96vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,.45);
    background: white;
}

.image-viewer-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: white;
    color: #111827;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    font-weight: 900;
}

.product-img img,
.option-img img {
    cursor: zoom-in;
}


/* ANIMACIÓN TIPO UBER AL AGREGAR AL CARRITO */
.fly-to-cart-img {
    position: fixed;
    z-index: 10050;
    object-fit: cover;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .32);
    border: 3px solid white;
}

.cart-button.cart-bounce {
    animation: cartBounce .55s ease;
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    35% { transform: scale(1.14); }
    70% { transform: scale(.94); }
    100% { transform: scale(1); }
}

.added-toast {
    position: fixed;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%) translateY(25px);
    background: #111827;
    color: white;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 14px;
    z-index: 10060;
    box-shadow: 0 16px 35px rgba(0,0,0,.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    white-space: nowrap;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.added-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
    .added-toast {
        bottom: 82px;
        font-size: 13px;
        padding: 11px 14px;
    }
}

/* BLOQUEO DE PEDIDOS CUANDO EL NEGOCIO ESTÁ CERRADO */
.business-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 14px;
    padding: 11px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    background: rgba(255,255,255,.92);
    color: #111827;
    backdrop-filter: blur(10px);
}

.business-open .business-status {
    border: 2px solid rgba(37, 211, 102, .55);
}

.business-closed .business-status {
    border: 2px solid rgba(214, 40, 40, .55);
}

.add-btn:disabled,
.add-btn.disabled,
#confirmAdd:disabled,
#sendOrder:disabled {
    opacity: .62;
    cursor: not-allowed;
    filter: grayscale(.25);
}

.business-closed #sendOrder {
    background: #6b7280;
    box-shadow: none;
}

@media (max-width: 520px) {
    .business-status {
        width: 100%;
        border-radius: 18px;
        line-height: 1.3;
        text-align: center;
    }
}


/* ETIQUETA DE PRODUCTO MÁS VENDIDO */
.product-img {
    position: relative;
}

.best-seller-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: linear-gradient(135deg, #ff6b00, #ffc857);
    color: #111827;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0,0,0,.28);
    border: 2px solid rgba(255,255,255,.85);
}

.best-seller-card {
    box-shadow: 0 18px 42px rgba(255,107,0,.18);
    border: 2px solid rgba(255,107,0,.18);
}

@media (max-width: 520px) {
    .best-seller-badge {
        top: 10px;
        left: 10px;
        font-size: 12px;
        padding: 7px 10px;
    }
}


/* ETIQUETA DE DISPONIBLE / AGOTADO */
.availability-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
    border: 2px solid rgba(255,255,255,.9);
}

.availability-badge.available {
    background: #25d366;
    color: #062d16;
}

.availability-badge.sold-out {
    background: #d62828;
    color: #ffffff;
}

.sold-out-card .product-img img {
    filter: grayscale(.75) brightness(.72);
}

.sold-out-card .product-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17,24,39,.24);
    pointer-events: none;
}

.sold-out-card .menu-info h3,
.sold-out-card .price-row strong {
    color: #6b7280;
}

@media (max-width: 520px) {
    .availability-badge {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 7px 10px;
    }
}

/* Botón para instalar la app en pantalla de inicio */
.install-app {
    margin-top: 14px;
    border: 0;
    background: #111827;
    color: white;
    box-shadow: 0 12px 25px rgba(17, 24, 39, 0.18);
}

.install-app:hover {
    transform: translateY(-2px);
}

.install-help {
    max-width: 360px;
    margin: 12px auto 0;
    padding: 12px 14px;
    border-radius: 18px;
    background: #fff4e8;
    color: #6a5d52;
    font-size: 0.95rem;
    line-height: 1.35;
}


html { -webkit-text-size-adjust: 100%; }


/* BLOQUEAR SCROLL CUANDO VISOR DE IMAGEN ESTÁ ABIERTO */
body.image-viewer-open{
    overflow:hidden !important;
    position:fixed !important;
    left:0;
    right:0;
    width:100%;
    height:100%;
    touch-action:none;
}

.image-viewer{
    touch-action:none;
    overflow:hidden;
}

/* CAMPOS OBLIGATORIOS */
.field-error {
    border-color: var(--danger) !important;
    background: #fff1f1 !important;
    box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.12);
}

/* =====================================================
   FIX: ocultar carrito cuando se abre una imagen completa
   ===================================================== */
.image-viewer,
.image-viewer.open {
    z-index: 2147483647 !important;
}

.image-viewer-close {
    z-index: 2147483647 !important;
}

body.image-viewer-open .cart-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}


/* ===============================
   COMBO DOMINGUERO
================================ */
.promo-domingo{
    position:relative;
    overflow:hidden;
    margin:18px 0 22px;
    padding:24px 18px;
    border-radius:24px;
    text-align:center;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.35), transparent 30%),
        linear-gradient(135deg,#ff6b00,#ffb703 55%,#d62828);
    color:#fff;
    box-shadow:0 14px 34px rgba(0,0,0,.25);
    border:3px solid rgba(255,255,255,.45);
}
.promo-shine{
    position:absolute;
    inset:-70px auto auto -80px;
    width:160px;
    height:260px;
    background:rgba(255,255,255,.25);
    transform:rotate(25deg);
    animation:promoShine 3.5s infinite;
}
@keyframes promoShine{
    0%{left:-160px}
    55%,100%{left:120%}
}
.promo-badge{
    display:inline-block;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(0,0,0,.28);
    font-weight:900;
    letter-spacing:.5px;
    margin-bottom:10px;
}
.promo-domingo h2{
    margin:6px 0;
    font-size:1.7rem;
    text-shadow:0 2px 8px rgba(0,0,0,.25);
}
.promo-subtitle,.promo-note{
    margin:6px 0;
    opacity:.95;
}
.promo-combo-items{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
    margin:16px 0;
}
.promo-combo-item{
    background:rgba(255,255,255,.18);
    border:1px solid rgba(255,255,255,.35);
    border-radius:16px;
    padding:12px 14px;
    backdrop-filter:blur(6px);
}
.promo-plus{
    font-size:1.8rem;
    font-weight:900;
}
.promo-label{
    display:block;
    font-weight:800;
    margin:12px 0 7px;
}
.promo-select{
    width:min(260px,100%);
    padding:12px 14px;
    border-radius:14px;
    border:none;
    font-weight:800;
    text-align:center;
    font-size:1rem;
}
.promo-price-row{
    display:flex;
    justify-content:center;
    align-items:flex-end;
    gap:14px;
    margin:14px 0;
}
.promo-old-price{
    font-size:1.15rem;
    text-decoration:line-through;
    opacity:.8;
}
.promo-price{
    font-size:2.35rem;
    line-height:1;
    font-weight:1000;
    text-shadow:0 3px 10px rgba(0,0,0,.25);
}
.promo-btn{
    border:none;
    padding:15px 24px;
    border-radius:999px;
    background:#111827;
    color:#fff;
    font-weight:900;
    font-size:1rem;
    cursor:pointer;
    box-shadow:0 8px 18px rgba(0,0,0,.28);
}
.promo-btn:active{
    transform:scale(.97);
}


/* V2.2 · Buscador, categorías y estados del catálogo */
.menu-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px;flex-wrap:wrap}
.menu-search-box{display:flex;align-items:center;gap:10px;flex:1;min-width:230px;background:#fff;border:1px solid rgba(15,84,92,.16);border-radius:16px;padding:11px 14px;box-shadow:0 8px 24px rgba(0,0,0,.06)}
.menu-search-box input{width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:16px;color:#153b3f}
.menu-results-count{font-weight:800;color:#476b6f;white-space:nowrap}
.category-filters{display:flex;gap:9px;overflow-x:auto;padding:2px 2px 14px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.category-filters::-webkit-scrollbar{display:none}
.category-filter{border:1px solid rgba(15,84,92,.2);background:#fff;color:#15545c;border-radius:999px;padding:10px 15px;font-weight:800;white-space:nowrap;cursor:pointer}
.category-filter.active{background:#15545c;color:#fff;border-color:#15545c;box-shadow:0 7px 18px rgba(21,84,92,.22)}
.catalog-message{grid-column:1/-1;text-align:center;background:#fff;border-radius:22px;padding:34px 20px;box-shadow:0 10px 30px rgba(0,0,0,.08)}
.catalog-message-icon{font-size:2.3rem;margin-bottom:8px}
.catalog-message h3{margin:0 0 8px;font-size:1.35rem}
.catalog-message p{margin:0 0 18px;color:#607579}
.catalog-skeleton{overflow:hidden}
.skeleton-image,.skeleton-line{background:linear-gradient(90deg,#eceff0 25%,#f8f9f9 37%,#eceff0 63%);background-size:400% 100%;animation:catalogShimmer 1.3s ease infinite}
.skeleton-image{height:220px}
.skeleton-line{height:14px;border-radius:999px;margin:12px 0}
.skeleton-line.short{width:34%}.skeleton-line.medium{width:72%}.skeleton-line.title{height:24px;width:60%}
@keyframes catalogShimmer{0%{background-position:100% 0}100%{background-position:0 0}}
@media(max-width:600px){.menu-tools{align-items:stretch}.menu-results-count{padding-left:4px}.menu-search-box{min-width:100%}}


/* V10.9.1 · Promociones creadas desde Administración */
.dynamic-promotions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin: 24px auto 28px;
    max-width: 1120px;
}
.dynamic-promo-card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(139,87,42,.16);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 16px 42px rgba(78,45,24,.10);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dynamic-promo-card.is-today {
    border-color: rgba(235,95,48,.55);
    box-shadow: 0 18px 45px rgba(235,95,48,.18);
}
.dynamic-promo-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.dynamic-promo-fire { font-size: 26px; }
.dynamic-promo-status {
    background:#fff0e8; color:#b54820; border-radius:999px; padding:7px 10px;
    font-size:12px; font-weight:800;
}
.dynamic-promo-card h3 { margin: 4px 0 0; font-size: 22px; color: var(--text); }
.dynamic-promo-card p { margin: 0; color: var(--muted); }
.dynamic-promo-card strong { font-size: 30px; color:#d74b22; margin-top: 4px; }
.dynamic-promo-card small { color:#7d6a5f; font-weight:700; }
.promo-empty {
    grid-column:1/-1; text-align:center; padding:24px; border-radius:20px;
    background:rgba(255,255,255,.72); color:var(--muted);
}
@media (max-width: 640px) {
    .dynamic-promotions { grid-template-columns: 1fr; margin-inline: 12px; }
}
