/* ==========================================
   ESTILOS BASE - CHEF KATHY PERNIA
   Línea visual: Fiestas Patrias 2026
========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --brand: #c41e3a;
    --brand-dark: #a01729;
    --brand-grad: linear-gradient(135deg, #d62843 0%, #c41e3a 55%, #8f1226 100%);
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --bg: #f5f5f7;
    --dark: #121212;
    --dark-surface: #1c1c1e;
    --dark-border: #2c2c2e;
    --wa: #25d366;
    --wa-dark: #128c7e;
    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================
   NAV
========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}

.nav-brand span {
    color: var(--brand);
}

.nav-brand img {
    width: 192px;
    height: auto;
    display: block;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 980px;
    transition: background 0.2s ease;
}

.nav-link:hover {
    background: rgba(196, 30, 58, 0.08);
}

/* ==========================================
   HERO
========================================== */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 24px 110px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      radial-gradient(ellipse at center,transparent 0%,rgba(13,10,8,.6) 100%),
      linear-gradient(180deg,rgba(13,10,8,.5) 0%,rgba(13,10,8,.78) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.restaurant-logo {
    width: 84px;
    height: 84px;
    background: url('../images/512x-logo-kathy-pernia.png') center/cover;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    margin: 0 auto 22px;
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 14px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.hero-subtitle {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.94);
    margin-bottom: 18px;
}

.hero-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
    margin: 0 auto 38px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--brand);
    padding: 14px 34px;
    border: none;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.cta-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.cta-btn:active {
    transform: scale(0.98);
}

/* ==========================================
   BANNER DE PEDIDOS
========================================== */
.discount-banner {
    background: rgba(196, 30, 58, 0.07);
    color: #8f1226;
    padding: 16px 24px;
    margin: 28px auto 0;
    border-radius: 16px;
    border: 1px solid rgba(196, 30, 58, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 14.5px;
    line-height: 1.5;
    text-align: center;
    max-width: 1152px;
    width: calc(100% - 2rem);
}

/* ==========================================
   CONTENEDOR
========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-bottom: 120px;
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 64px 0 40px;
    padding: 0 1rem;
}

.category-section {
    margin-bottom: 32px;
    scroll-margin-top: 70px;
}

.category-title {
    text-align: center;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 48px 0 28px;
    padding: 0 1rem;
}

.category-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: var(--brand-grad);
}

/* ==========================================
   STICKY HEADER MOBILE
========================================== */
.sticky-header {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 800;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: none;
}

.sticky-header.active {
    transform: translateY(0);
}

.sticky-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--brand);
    text-align: center;
    text-transform: uppercase;
}

/* ==========================================
   GRID DE PRODUCTOS - DESKTOP
========================================== */
.single-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.desktop-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--brand-grad);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
}

.desktop-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.desktop-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.desktop-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 6px;
}

.desktop-description {
    color: var(--muted);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.45;
}

.desktop-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.desktop-price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand);
}

.desktop-price-original {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

/* OCULTAR ELEMENTOS MOBILE EN DESKTOP */
.mobile-content,
.mobile-image-container {
    display: none;
}

/* ==========================================
   PRECIO CONSULTAR
========================================== */
.product-precio-consultar {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 14px;
    text-align: center;
    letter-spacing: 0.02em;
}

/* ==========================================
   BOTÓN AGREGAR CONSULTA
========================================== */
.add-consulta-btn {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--wa);
    color: #ffffff;
    border: none;
    padding: 12px 18px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: auto;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.add-consulta-btn .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.add-consulta-btn .add-consulta-label {
    display: inline-block;
}

.add-consulta-btn:hover {
    background: var(--wa-dark);
    transform: translateY(-1px);
}

.add-consulta-btn:active {
    transform: scale(0.98);
}

.add-consulta-btn.in-consulta {
    background: #43a047 !important;
    box-shadow: 0 4px 14px rgba(67, 160, 71, 0.35), 0 0 0 3px rgba(67, 160, 71, 0.2);
}

/* ==========================================
   CARRUSEL
========================================== */
.carousel-section {
    padding: 2rem 0 1rem 0;
    background: #ffffff;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem 1rem;
}

.carousel-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #e5e5e5;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-product-card {
    min-width: 280px;
    max-width: 280px;
    background: white;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
    position: relative;
}

.carousel-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.carousel-product-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-product-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--brand-grad);
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    z-index: 2;
}

.carousel-product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.carousel-product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--ink);
    line-height: 1.3;
}

.carousel-product-subtitle {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.carousel-product-info .product-precio-consultar {
    margin-bottom: 12px;
}

.carousel-badge-count {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 24px;
    height: 24px;
    background: #43a047;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.carousel-badge-count.active {
    display: flex;
}

/* ==========================================
   BARRA FIJA INFERIOR
========================================== */
.cart-summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.cart-summary-bar.active {
    display: flex;
}

.cart-summary-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.cart-items-count {
    background: var(--brand);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.cart-total {
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-cart-btn {
    background: var(--brand-grad);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.view-cart-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.3);
}

.view-cart-btn:active {
    transform: scale(0.98);
}

/* ==========================================
   SIDEBAR CARRITO - OSCURO ESTILO ECOMMERCE
========================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: var(--dark);
    color: #ffffff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
    border-left: 1px solid var(--dark-border);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-sidebar-header {
    padding: 1.25rem 1.25rem 1rem;
    background: var(--brand-grad);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    flex-shrink: 0;
}

.cart-sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    padding-right: 36px;
    letter-spacing: -0.01em;
}

.delivery-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.delivery-option {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.delivery-option.active {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--brand);
}

.delivery-option:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.address-field {
    margin-top: 0.5rem;
    display: none;
}

.address-field.show {
    display: block;
}

.address-input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: border-color 0.2s;
}

.address-input::placeholder {
    color: #98989d;
}

.address-input:focus {
    outline: none;
    border-color: #ffffff;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 1.15rem;
    transition: background 0.2s ease;
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.16);
}

.cart-items-list {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--dark-border);
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.cart-item-consulta-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 500;
    font-style: italic;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-remove-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cart-item-remove-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
}

.cart-sidebar-footer {
    padding: 1.1rem 1.25rem;
    border-top: 1px solid var(--dark-border);
    flex-shrink: 0;
    background: var(--dark-surface);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.cart-total-row span:first-child {
    color: rgba(255, 255, 255, 0.65);
}

.cart-total-row span:last-child {
    color: #ffffff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.send-whatsapp-btn {
    background: var(--wa);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.send-whatsapp-btn:hover {
    background: var(--wa-dark);
}

.send-whatsapp-btn:active {
    transform: scale(0.99);
}

/* ==========================================
   FILTRO DE CATEGORÍAS FLOTANTE
========================================== */
.category-filter {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(245, 245, 247, 0.95) 55%, rgba(245, 245, 247, 0) 100%);
    z-index: 1500;
    pointer-events: none;
    transition: bottom 0.3s ease;
}

body.cart-summary-visible .category-filter {
    bottom: 76px;
}

.cat-filter-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--brand-grad);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(196, 30, 58, 0.4);
    max-width: 90vw;
    transition: transform 0.2s ease;
}

.cat-filter-btn:hover {
    transform: scale(1.03);
}

.cat-filter-btn:active {
    transform: scale(0.98);
}

.cat-filter-btn-menu,
.cat-filter-btn-caret {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.cat-filter-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60vw;
}

.cat-filter-btn-caret {
    opacity: 0.85;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-filter-btn[aria-expanded="true"] .cat-filter-btn-caret {
    transform: rotate(180deg);
}

.cat-filter-modal {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: auto;
}

.cat-filter-modal.open {
    opacity: 1;
    visibility: visible;
}

.cat-filter-modal-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    max-width: 520px;
    max-height: 75vh;
    background: var(--dark-surface);
    border-radius: 24px 24px 0 0;
    border: 1px solid var(--dark-border);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
}

.cat-filter-modal.open .cat-filter-modal-panel {
    transform: translateY(0);
}

.cat-filter-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--dark-border);
    flex-shrink: 0;
}

.cat-filter-modal-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
}

.cat-filter-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cat-filter-modal-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.cat-filter-modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    max-height: 60vh;
    padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}

.cat-filter-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.cat-filter-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.cat-filter-item.active {
    background: var(--brand-grad);
    color: #ffffff;
    font-weight: 600;
}

.cat-filter-item:not(.active):active {
    background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 769px) {
    .category-filter {
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }

    .cat-filter-btn {
        padding: 16px 40px;
        font-size: 16px;
    }

    .cat-filter-modal-panel {
        border-radius: 24px;
        margin-bottom: 1rem;
    }
}

body.cat-modal-open {
    overflow: hidden;
}

/* ==========================================
   FOOTER
========================================== */
.footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 32px 24px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.footer-inner span {
    font-size: 13px;
    color: var(--muted);
}

.footer-inner .footer-brand {
    font-weight: 600;
    color: var(--ink);
}

/* ==========================================
   KEYFRAMES
========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   RESPONSIVE - MOBILE
========================================== */
@media (max-width: 768px) {
    .nav-inner {
        padding: 0 16px;
        justify-content: center;
    }

    .nav-link {
        display: none;
    }

    .add-consulta-btn .icon {
        display: none;
    }

    .hero {
        min-height: 400px;
        align-items: stretch;
        padding: 120px 20px 80px;
    }

    .hero-title {
        font-size: 24px;
        margin-top: auto;
    }

    .restaurant-logo {
        width: 68px;
        height: 68px;
        border-radius: 14px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .hero-text {
        display: none;
    }

    .section-title {
        margin: 48px 0 28px;
    }

    .category-title {
        margin: 36px 0 20px;
    }

    /* OCULTAR CONTROLES DE CARRUSEL EN MOBILE */
    .carousel-btn {
        display: none;
    }

    /* OCULTAR ELEMENTOS DESKTOP */
    .section-title,
    .desktop-badge,
    .desktop-image,
    .desktop-info,
    .desktop-name,
    .desktop-description,
    .desktop-price,
    .desktop-price-current,
    .desktop-price-original,
    .desktop-quantity-controls {
        display: none !important;
    }

    /* AJUSTAR CARRUSEL EN MOBILE */
    .carousel-section {
        padding: 1.5rem 0 1rem 0;
    }

    .section-header {
        padding: 0 1rem 0.8rem;
    }

    .carousel-section-title {
        font-size: 1.25rem;
    }

    .carousel {
        padding: 0 1rem;
    }

    .carousel-product-card {
        min-width: 260px;
        max-width: 260px;
    }

    .carousel-product-image {
        height: 180px;
    }

    .carousel-product-info {
        padding: 1rem;
    }

    .carousel-product-info .product-precio-consultar {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    .carousel-product-info .add-consulta-btn {
        padding: 11px;
        font-size: 14px;
    }

    /* MOSTRAR ELEMENTOS MOBILE */
    .sticky-header {
        display: block;
    }

    .single-product-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        margin-bottom: 0;
    }

    .product-card {
        background: white;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        position: relative;
        border-radius: 0;
        box-shadow: none;
        animation: none;
        flex-direction: row;
        margin: 0;
    }

    .product-card:hover {
        transform: none;
        box-shadow: none;
    }

    .product-card:last-child {
        border-bottom: none;
    }

    .mobile-content {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 0.4rem;
        min-width: 0;
    }

    .mobile-name {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--ink);
        margin: 0;
        letter-spacing: -0.01em;
        line-height: 1.25;
    }

    .mobile-description {
        color: var(--muted);
        font-size: 0.85rem;
        line-height: 1.35;
        margin: 0;
    }

    .mobile-content .product-precio-consultar {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
        text-align: center;
    }

    .mobile-content .add-consulta-btn {
        padding: 10px 14px;
        font-size: 13px;
        width: 100%;
        min-height: 38px;
        margin-top: 0.4rem;
        border-radius: 980px;
        box-shadow: 0 3px 10px rgba(37, 211, 102, 0.22);
    }

    .mobile-image-container {
        display: block;
        position: relative;
        flex-shrink: 0;
    }

    .mobile-image {
        width: 104px;
        height: 104px;
        border-radius: 14px;
        background-size: cover;
        background-position: center;
    }

    .product-badge-count {
        position: absolute;
        top: -8px;
        right: -8px;
        width: 24px;
        height: 24px;
        background: #43a047;
        color: white;
        border-radius: 50%;
        display: none;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }

    .product-badge-count.active {
        display: flex;
    }

    .cart-sidebar {
        width: 100%;
        max-width: none;
    }

    .cart-summary-bar {
        padding: 0.9rem 1rem;
    }

    .view-cart-btn {
        padding: 11px 24px;
        font-size: 13px;
    }
}

/* ==========================================
   MOVIMIENTO REDUCIDO
========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

.carousel-badge-count .check-icon,
.product-badge-count .check-icon {
    display: block;
}