/* ==========================================================================
   📐 ARQUITECTURA DE CSS (LÓGICA COMPARTIDA VS DISEÑO DE NEGOCIO)
   ==========================================================================
   1. 📦 ESTRUCTURA Y LÓGICA DE PÁGINA (ESTILOS COMPARTIDOS):
      - Reset & Base: html, body, resets y comportamiento de scroll locks (`body.no-scroll`).
      - Navegación Sticky & Scroll Margin: `.category-nav-wrapper`, `.category-nav` y offsets (`scroll-margin-top: 80px`).
      - Modales Estándar y Bottom Sheets: Estructura general de modales (`.custom-modal-overlay`, `.custom-modal`, `.drag-handle`, `.custom-modal-body-fade`).
      - Sidebar del Carrito: Animación y posicionamiento lateral (`.cart-overlay`, `.cart-sidebar`).

   2. 🎨 DISEÑO E IDENTIDAD VISUAL DE NEGOCIO (PROPIOS DE PASTELERÍA):
      - System Design Tokens: Paleta cremosa de repostería (--bg-dark, --gold, --red-accent, etc.).
      - Componentes Visuales: Hero editorial (`.hero`), cartas gourmet (`.menu-card` con rotación 3D y plato circular), tipografías Playfair & Outfit.
   ========================================================================== */

/* ── SYSTEM DESIGN TOKENS ───────────────────────────── */
:root {
    /* Cohesive Pastelería Palette: Warm Cream, Champagne Gold, Cocoa Chocolate */
    --bg-dark: #1E120D;
    --bg-surface: #2E1E17;
    --bg-card: #ffffff;
    --border: #F1ECE8;
    --text-white: #4E3629; /* High-contrast main text */
    --text-muted: #8C7368;
    --text-dim: #A7938B;
    /* Warm Accents */
    --gold: #C39A86; /* Primary Champagne/Rose Gold */
    --gold-text: #B4856E;
    --gold-glow: rgba(195, 154, 134, 0.12);
    --red-accent: #c92a2a; /* ── Berry Red for badging/cart alerts ──────────────── */
    --red-dark: #b02525;
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-pill: 100px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 4px 20px rgba(78, 54, 41, 0.04);
    --shadow-elevated: 0 16px 40px rgba(78, 54, 41, 0.12);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #8b8b8b #FFFDFC;
    scrollbar-gutter: stable;
}

    html::-webkit-scrollbar-track {
        background-color: #FFFDFC;
    }

body {
    margin: 0;
    padding: 0;
    overflow-x: clip;
    background-color: #FFFDFC; /* Elegant warm cream background */
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
    overscroll-behavior: contain;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.25;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.margin-0 {
    margin: 0px !important;
}



/* ── NAVIGATION ─────────────────────────────────────── */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    background: rgba(255, 253, 252, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

.logo span {
    color: var(--gold-text);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-text);
}

.cart-trigger {
    background: var(--gold-glow);
    border: 1px solid rgba(195, 154, 134, 0.2);
    color: var(--gold-text);
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}

.cart-trigger:hover {
    background: var(--gold-text);
    color: #ffffff;
    transform: translateY(-1px);
}

.cart-trigger .badge {
    background: var(--red-accent);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    min-width: 18px;
    text-align: center;
}

.badge.hidden {
    display: none !important;
}

.hero {
    padding: 0;
    margin: 0;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.hero-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    height: 100%;
    gap: 0;
    align-items: stretch;
}

.hero-text-col {
    flex: 1;
    width: 50%;
    background-color: var(--bg-dark); /* Rich dark cocoa background */
    color: #FFFDFC; /* Elegant warm cream text */
    padding: 80px 10% 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.hero-badge {
    background: rgba(195, 154, 134, 0.15);
    color: var(--gold);
    border: 1px solid rgba(195, 154, 134, 0.3);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    color: #FFFDFC;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--gold);
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 36px;
    max-width: 490px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold-text) !important;
    border: 1px solid var(--gold-text) !important;
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(195, 154, 134, 0.25);
    transition: var(--transition);
}

.btn-primary:hover {
    background: #A77C68 !important;
    border-color: #A77C68 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(195, 154, 134, 0.35);
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
    background: #A77C68 !important;
    border-color: #A77C68 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 32px rgba(195, 154, 134, 0.35) !important;
    outline: none !important;
}

.btn-secondary {
    background: transparent;
    color: #FFFDFC;
    border: 1px solid rgba(255, 253, 252, 0.2);
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 253, 252, 0.05);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-dim);
    font-weight: 500;
}

.hero-meta i {
    color: var(--gold);
}

.hero-meta .separator {
    color: rgba(255, 253, 252, 0.15);
}

.hero-image-col {
    flex: 1;
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image-gallery {
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.hero-img-frame.main-frame {
    width: 100%;
    height: 100%;
    position: relative;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.hero-img-frame.main-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-img-frame.secondary-frame {
    display: none;
}

.hero-atelier-tag {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(255, 253, 252, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--text-white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    z-index: 3;
    box-shadow: var(--shadow-elevated);
    border: 1px solid rgba(195, 154, 134, 0.2);
}

.hero-atelier-tag .tag-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
}

.hero-atelier-tag .tag-desc {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.steps-section {
    background: #F9F3EE; /* Delicate soft cream wrapper */
    padding: 60px 0;
    min-height: 100%;
    display: flex;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    position: relative;
}

.step-card {
    background: transparent;
    position: relative;
    padding-top: 40px;
    border-left: 1px solid rgba(195, 154, 134, 0.15);
    padding-left: 24px;
}

.step-watermark {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 900;
    font-style: italic;
    color: rgba(195, 154, 134, 0.1);
    position: absolute;
    top: -15px;
    left: 12px;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.step-content {
    position: relative;
    z-index: 2;
}

.step-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.steps-indicators {
    display: none;
}

/* ── CATEGORY NAV & STICKY ──────────────────────────── */
.menu-sticky-container {
    /* ── Contenedor que limita el sticky nav al área del menú ───── */
}

.category-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 253, 252, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.category-nav {
    display: flex;
    gap: 8px;
    background: #F9F3EE;
    padding: 6px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.cat-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

    .cat-link:hover {
        color: var(--bg-dark);
    }

    .cat-link.active {
        background: var(--gold-text);
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(195, 154, 134, 0.2);
    }



.menu-category {
    margin-bottom: 60px;
    scroll-margin-top: 80px;
}

#catalogo, #como-funciona {
    scroll-margin-top: 80px;
}

.menu-category h3.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text-white);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--gold-text);
    padding-left: 14px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 36px;
}

.menu-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px dashed rgba(195, 154, 134, 0.15); /* Elegant French pastry box dashed border */
    border-radius: calc(var(--radius-lg) - 4px);
    pointer-events: none;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--gold);
}

.menu-img-wrap {
    width: 95px;
    height: 95px;
    aspect-ratio: 1/1; /* Square plate display */
    border-radius: 50%; /* Circle display */
    overflow: hidden;
    margin: 0;
    background: #F9F3EE;
    border: 1px solid var(--border);
    box-shadow: inset 0 2px 8px rgba(78, 54, 41, 0.05);
    max-width: 200px;
    flex-shrink: 0;
    position: relative;
}

.menu-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.menu-card:hover .menu-img-wrap img {
    transform: scale(1.1) rotate(3deg);
}

.menu-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left; /* Centered luxury styling */
    align-items: flex-start;
    min-width: 0;
}

.menu-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.menu-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

.menu-footer {
    display: flex;
    flex-direction: row; /* Centered column layout */
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    border-top: none;
    padding-top: 0;
    margin-top: 4px;
}

.menu-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-text);
    font-family: 'Outfit', sans-serif;
}

.btn-add {
    background: transparent;
    border: 1px solid var(--gold-text);
    color: var(--gold-text);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: auto;
    max-width: none;
}

.btn-add:hover {
    background: var(--gold-text);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(195, 154, 134, 0.25);
}

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

    .btn-add.added {
        background: #28a745 !important;
        border: 1px solid #28a745 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2) !important;
    }

.zona-section {
    padding: 60px 24px;
    background: #F9F3EE;
    border-bottom: 1px solid var(--border);
}

.zona-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.zona-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.zona-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.zona-info-list {
    width: 100%;
    margin-bottom: 32px;
}

.zona-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.zona-info-item i {
    font-size: 1.3rem;
    color: var(--gold-text);
    background: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}

.zona-info-item strong {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.zona-info-item p {
    font-size: 0.92rem;
    color: var(--text-white);
}

.zona-map-wrap {
    height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.footer {
    background: #F9F3EE;
    padding: 60px 24px 40px;
    color: var(--text-white);
    margin: 0 !important;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 1.2fr;
    gap: 48px;
    text-align: left;
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-text);
    margin-bottom: 20px;
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 12px;
}

.footer-brand span {
    color: var(--gold-text);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(195, 154, 134, 0.08);
    color: var(--gold-text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(195, 154, 134, 0.12);
}

.social-links a:hover {
    background: var(--gold-text);
    color: #ffffff;
    transform: translateY(-2px);
}

#footer-biz-hours {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 10px;
}

.footer-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: var(--gold-text);
    padding-left: 4px;
}

.footer-col.newsletter-col p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 6px;
    border-radius: var(--radius-pill);
}

.newsletter-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-white);
    outline: none;
}

.newsletter-form button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gold-text);
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: var(--red-accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 0;
}

/* ── MODALES (ESTRUCTURA GENERAL) ───────────────────
   ==========================================================================
   PLANTILLA ARQUITECTÓNICA DE MODAL (Estándar para Hamburguesas, Florería, Pastelería)
   --------------------------------------------------------------------------
   ESTRUCTURA HTML COMPATIBLE:
   <div class="custom-modal-overlay" id="modal-xyz-overlay">
       <div class="custom-modal">
           <!-- Drag handle (Solo visible en responsive/mobile) -->
           <div class="drag-handle">
               <div class="drag-handle-body"></div>
           </div>
           
           <!-- Cabecera del modal -->
           <div class="modal-header">
               <h3>Título del Modal</h3>
               <button class="modal-close-x" id="modal-xyz-cancel">&times;</button>
           </div>
           
           <!-- Cuerpo interno scrollable -->
           <div class="custom-modal-body">
               <p>Contenido del cuerpo...</p>
               <div class="custom-modal-body-fade"></div>
           </div>
           
           <!-- Acciones del pie -->
           <div class="modal-footer-actions">
               <button class="btn-modal-cancel" id="modal-xyz-cancel-2">Cancelar</button>
               <button class="btn-modal-confirm" id="modal-xyz-confirm">Confirmar</button>
           </div>
       </div>
   </div>

   MECÁNICA Y LÓGICA DE INTERACCIÓN:
   - Mostrar: Se añade la clase `.active` a `.custom-modal-overlay` y `.no-scroll` a `body`.
   - Ocultar: Se remueve la clase `.active` de `.custom-modal-overlay` y `.no-scroll` a `body`.
   - Responsive / Mobile: En pantallas < 768px, el modal se transforma en un "Bottom Sheet"
     (se alinea abajo, se desliza desde abajo mediante 'translateY(100%)' a 'translateY(0)').
     El drag-handle se hace visible para arrastrar/cerrar en mobile.
   ========================================================================== */
.drag-handle {
    display: none;
}

.drag-handle-body {
    width: 36px;
    height: 4px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 100px;
    margin: 8px auto 8px auto;
}

.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 18, 13, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 32px 64px rgba(78, 54, 41, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow: hidden;
    padding: 0;
    will-change: transform;
    position: relative;
}

.custom-modal-overlay.active .custom-modal {
    transform: translateY(0) scale(1);
}

.custom-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 24px 24px 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) #ffffff;
    position: relative;
    overscroll-behavior: contain;
}

.custom-modal-body::-webkit-scrollbar {
    width: 4px;
}

.custom-modal-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.custom-modal-body-fade {
    position: sticky;
    bottom: 0;
    width: 100%;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-modal-body-fade::after {
    content: '›';
    display: block;
    font-size: 2rem;
    color: var(--text-muted);
    transform: rotate(90deg);
    animation: scroll-hint 1.5s ease-in-out infinite;
}

@keyframes scroll-hint {
    0%, 100% { transform: rotate(90deg) translateX(0); }
    50% { transform: rotate(90deg) translateX(4px); }
}

.custom-modal-body-fade.hidden {
    opacity: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
}

.modal-close-x {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-x:hover {
    color: var(--text-white);
}



.modal-footer-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.btn-modal-cancel {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.btn-modal-cancel:hover {
    border-color: var(--gold);
    color: var(--gold-text);
}

.btn-modal-confirm {
    flex: 2;
    background: var(--gold-text);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(195, 154, 134, 0.2);
    transition: var(--transition);
}

.btn-modal-confirm:hover {
    background: #A77C68;
}

/* ── MODAL: PERSONALIZACIÓN ───────────────────────────
   ==========================================================================
   DETALLE Y EXTRAS DE PRODUCTO (Personalización en Modal)
   --------------------------------------------------------------------------
   ESTRUCTURA HTML INTERNA COMPATIBLE (Insertar en .custom-modal-body):
   
   <div class="custom-modal-detail">
       <div class="custom-modal-img-container">
           <img id="custom-modal-image" src="..." alt="..." class="custom-modal-image">
       </div>
       <p id="custom-modal-desc" class="custom-modal-description">Descripción...</p>
   </div>
   
   <!-- Grupo de Selección Simple (Radio Buttons) -->
   <div class="custom-option-group" id="grupo-opcion">
       <span class="option-label">🥩 Título Opción</span>
       <div class="radio-group">
           <div class="radio-btn selected" data-value="Valor1">Opción 1</div>
           <div class="radio-btn" data-value="Valor2">Opción 2</div>
       </div>
   </div>
   
   <!-- Grupo de Selección Múltiple (Checkboxes) -->
   <div class="custom-option-group" id="grupo-extras">
       <span class="option-label">➕ Extras</span>
       <div class="checkbox-group">
           <div class="check-item selected">
               <span class="item-name">Extra A</span>
               <span class="item-extra-price">+$10.00</span>
               <input type="checkbox" style="display: none;" checked>
           </div>
           <div class="check-item">
               <span class="item-name">Extra B</span>
               <span class="item-extra-price">+$15.00</span>
               <input type="checkbox" style="display: none;">
           </div>
       </div>
   </div>
   ========================================================================== */
.custom-modal-detail {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.custom-modal-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #FFFDFC;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.custom-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.custom-modal-img-container:hover .custom-modal-image {
    transform: scale(1.04);
}

.custom-modal-description {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}



/* ── MODAL: DATOS DE ENTREGA ──────────────────────────
   ==========================================================================
   FORMULARIO DE CHECKOUT / DATOS DE ENVÍO
   --------------------------------------------------------------------------
   ESTRUCTURA HTML INTERNA COMPATIBLE (Insertar en .custom-modal-body):
   
   <p class="modal-sub">Subtítulo instructivo del modal...</p>
   
   <!-- Input de Texto -->
   <div class="custom-field">
       <label for="campo-ejemplo">Etiqueta del campo</label>
       <input type="text" id="campo-ejemplo" placeholder="Ej. Escribe algo...">
   </div>
   
   <!-- Opciones de Pago (Botones tipo grid) -->
   <div class="custom-option-group">
       <label>¿Cómo pagas?</label>
       <div class="pay-options">
           <button class="pay-btn selected">Efectivo</button>
           <button class="pay-btn">Transferencia</button>
       </div>
   </div>
   ========================================================================== */
.modal-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.custom-field {
    margin-bottom: 20px;
}

.custom-field label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.custom-field input[type="text"] {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.custom-field input[type="text"]:focus {
    border-color: var(--gold-text);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.pay-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pay-btn {
    flex: 1;
    min-width: 90px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pay-btn.selected {
    border-color: var(--gold-text);
    background: var(--gold-glow);
    color: var(--text-white);
}

.btn-modal-back {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-modal-back:hover {
    color: var(--text-white);
}

/* ── CARRITO FAB & TOOLTIP ──────────────────────────── */
.cart-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-text);
    color: #ffffff;
    font-size: 1.6rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-fab.footer-hide {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5) translateY(20px);
}

.cart-fab:hover {
    transform: scale(1.1) translateY(-3px);
    background: #A77C68;
}

.cart-fab .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--red-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFDFC;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

.cart-fab .badge.hidden {
    transform: scale(0);
    opacity: 0;
}

.cart-tooltip {
    position: fixed;
    bottom: 110px;
    right: 32px;
    background: var(--gold-text);
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    max-width: 200px;
    text-align: center;
    z-index: 999;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.cart-tooltip::after {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 25px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid var(--gold-text);
}

.cart-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.cart-tooltip.footer-hide {
    opacity: 0;
    transform: translateY(10px);
}

/* ── CART SIDEBAR ───────────────────────────────────── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 18, 13, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--bg-card);
    z-index: 5001;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-elevated);
    overscroll-behavior: contain;
    border-left: 1px solid var(--border);
    will-change: transform;
}

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

.cart-header {
    padding: 8px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
}

.btn-clear-cart {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-clear-cart:hover {
    background: rgba(217, 110, 90, 0.1);
    color: var(--red-accent);
}

.btn-clear-cart:active {
    transform: scale(0.95);
}

.cart-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.cart-close-btn:hover {
    color: var(--text-white);
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    overscroll-behavior: contain;
}

.cart-items-list::-webkit-scrollbar {
    width: 4px;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.empty-cart {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 0;
    font-size: 0.9rem;
}

.empty-cart i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

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

.cart-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 3px;
    line-height: 1.3;
}

.cart-item-opts {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

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

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #FFFDFC;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.qty-btn:hover {
    border-color: var(--gold-text);
    color: var(--gold-text);
}

.qty-num {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-white);
    min-width: 18px;
    text-align: center;
}

.cart-item-price {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--gold-text);
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: #FFFDFC;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.cart-total-label {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.cart-total-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold-text);
}

.btn-whatsapp {
    width: 100%;
    max-width: 420px;
    padding: 14px;
    border-radius: var(--radius-pill);
    border: none;
    background: #25d366;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    display: inline-flex;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

    .btn-whatsapp:hover {
        background: #20b858;
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(37, 211, 102, 0.3);
    }

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

    .btn-whatsapp:disabled {
        background: var(--text-dim);
        cursor: not-allowed;
        transform: none;
    }

.cart-header-title-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── MODALES (ESTRUCTURA GENERAL) ───────────────────── */
.drag-handle {
    display: none;
}

.drag-handle-body {
    width: 36px;
    height: 4px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 100px;
    margin: 8px auto 8px auto;
}

.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 18, 13, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-elevated);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow: hidden;
    padding: 0;
    will-change: transform;
}

.custom-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 24px 24px 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) #ffffff;
    position: relative;
    overscroll-behavior: contain;
}

.custom-modal-body::-webkit-scrollbar-track {
    background-color: #ffffff;
}

.custom-modal-body-fade {
    position: sticky;
    bottom: 0;
    width: 100%;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-modal-body-fade::after {
    content: '›';
    display: block;
    font-size: 2rem;
    color: var(--text-muted);
    transform: rotate(90deg);
    animation: scroll-hint 1.5s ease-in-out infinite;
}

@keyframes scroll-hint {
    0%, 100% { transform: rotate(90deg) translateX(0); }
    50% { transform: rotate(90deg) translateX(4px); }
}

.custom-modal-body-fade.hidden {
    opacity: 0;
}

.custom-modal-overlay.active .custom-modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
    margin: 0;
}

.modal-close-x {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-left: 12px;
    flex-shrink: 0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.modal-close-x:hover {
    color: var(--text-white);
}



/* ── MODAL: PERSONALIZACIÓN ─────────────────────────── */


.custom-option-group {
    margin-bottom: 18px;
}

.option-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-text);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.radio-btn {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.radio-btn.selected {
    border-color: var(--gold-text);
    background: var(--gold-glow);
    color: var(--gold-text);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.88rem;
}

.check-item:hover {
    border-color: var(--gold-glow);
}

.check-item.selected {
    border-color: var(--gold-text);
    background: var(--gold-glow);
    color: var(--gold-text);
}

.check-item .item-name {
    color: var(--text-white);
    font-weight: 600;
}

.check-item .item-extra-price {
    color: var(--gold-text);
    font-size: 0.78rem;
    font-weight: 600;
}

.check-item input[type="checkbox"] {
    display: none;
}

.modal-footer-actions {
    display: flex;
    gap: 10px;
    padding: 16px 24px 24px 24px;
    flex-shrink: 0;
}

.modal-footer-actions.flex-column {
    flex-direction: column;
    gap: 8px;
}

.btn-modal-cancel {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.btn-modal-cancel:hover {
    border-color: var(--gold-text);
    color: var(--text-white);
}

.btn-modal-confirm {
    flex: 2;
    padding: 12px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--gold-text);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px var(--gold-glow);
}

.btn-modal-confirm:hover {
    background: #A77C68;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--gold-glow);
}

.btn-modal-confirm:active {
    transform: scale(0.96);
}


/* ── MODAL: DATOS DE ENTREGA ────────────────────────── */
@keyframes pulseError {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 110, 90, 0.7);
        border-color: rgba(217, 110, 90, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(217, 110, 90, 0);
        border-color: rgba(217, 110, 90, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 110, 90, 0);
        border-color: rgba(217, 110, 90, 0);
    }
}

.pulse-error {
    animation: pulseError 0.5s ease-in-out;
    border-color: var(--red-accent) !important;
    color: var(--red-accent) !important;
}

.custom-modal .modal-sub {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.custom-field {
    margin-bottom: 18px;
}

.custom-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-text);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.custom-field input[type="text"] {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.custom-field input[type="text"]:focus {
    border-color: var(--gold-text);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.btn-generate-qr {
    display: none;
    width: 100%;
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-white);
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-generate-qr:hover,
.btn-zona-qr:hover {
    background: var(--gold-text);
    border-color: var(--gold-text);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(195, 154, 134, 0.25);
}

.btn-generate-qr:active,
.btn-zona-qr:active {
    transform: scale(0.96);
}

.btn-modal-back {
    display: block;
    width: 100%;
    margin-top: 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.83rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-modal-back:hover {
    color: var(--text-white);
}

/* ── MODAL: CONFIRMAR LIMPIAR ───────────────────────── */
.btn-cancel-confirm {
    flex: 1;
    padding: 11px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

.btn-ok-confirm {
    flex: 1;
    padding: 11px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--red-accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

    .btn-ok-confirm:hover {
        background: var(--red-dark);
    }

/* ── MODAL: CÓDIGO QR SMART BRIDGE ──────────────────── */
.custom-modal-qr {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.spinner {
    border: 3px solid var(--gold-glow);
    border-left-color: var(--gold-text);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.custom-modal-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.qr-modal-img {
    display: none;
    width: 200px;
    height: 200px;
    border-radius: 10px;
}

.custom-modal-note {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.text-center {
    text-align: center;
}

.zona-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 991px) {
    .hero {
        padding: 0;
        height: auto;
        min-height: calc(100vh - 68px);
        display: flex;
        flex-direction: column;
    }

    .hero-container {
        flex-direction: column;
        height: auto;
        text-align: center;
        gap: 0;
        flex: 1;
        align-items: stretch;
    }

    .hero-text-col {
        width: 100%;
        height: auto;
        padding: 96px 24px 48px 24px;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid rgba(195, 154, 134, 0.15);
        flex: none;
    }

    .hero-text-col h1 {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }

    .hero-text-col .hero-sub {
        font-size: 0.95rem;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .hero-image-col {
        width: 100%;
        height: 350px;
        flex: none;
    }

    .hero-atelier-tag {
        bottom: 20px;
        left: 20px;
        right: auto;
        padding: 10px 16px;
    }

    .hero-actions {
        justify-content: center;
        margin-bottom: 24px;
    }

    .hero-meta {
        justify-content: center;
    }

    .steps-section {
        min-height: auto;
        height: auto;
        display: block;
        padding: 80px 0 40px 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .step-card {
        border-left: none;
        border-top: 1px solid rgba(195, 154, 134, 0.15);
        padding-left: 0;
        padding-top: 32px;
    }

    .step-watermark {
        top: -10px;
        left: 0;
    }

    .zona-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .category-nav {
        justify-content: flex-start;
    }

    .main-nav {
        height: 68px;
    }

    .nav-link {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .menu-card {
        padding: 12px;
        border-radius: var(--radius-md);
        gap: 14px;
    }

    .menu-card::before {
        top: 4px;
        left: 4px;
        right: 4px;
        bottom: 4px;
        border-radius: calc(var(--radius-md) - 2px);
    }

    .menu-img-wrap {
        width: 75px;
        height: 75px;
        aspect-ratio: 1/1;
        margin: 0;
        flex-shrink: 0;
    }

    .menu-card h4 {
        font-size: 0.95rem;
        margin-bottom: 4px;
        min-height: auto;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .menu-desc {
        display: none;
    }

    .menu-footer {
        padding-top: 0;
        gap: 8px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 6px;
    }

    .menu-price {
        font-size: 0.95rem;
    }

    .btn-add {
        padding: 6px 14px;
        font-size: 0.75rem;
        width: auto;
        max-width: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer {
        padding: 40px 16px 30px !important;
        margin: 0 !important;
    }

    /* ── Mobile Bottom Sheets for Modals ────────────────── */
    .custom-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .custom-modal {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        margin: 0;
        max-width: 100%;
        transform: translateY(100%) scale(1);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
        padding: 0;
    }

    .drag-handle {
        display: block;
    }

    .modal-header {
        padding: 0px 20px;
    }

    .custom-modal-body {
        padding: 8px 20px 20px 20px;
    }

    .modal-footer-actions {
        padding: 12px 20px max(16px, env(safe-area-inset-bottom)) 20px;
    }

    .btn-modal-confirm,
    .btn-modal-cancel {
        padding: 10px;
        font-size: 0.9rem;
    }

    .btn-modal-back {
        margin-top: 12px;
    }

    .custom-modal-overlay.active .custom-modal {
        transform: translateY(0) scale(1);
    }

    /* ── Bottom Sheet Cart ──────────────────────────────── */
    .cart-sidebar {
        max-width: 100%;
        height: 88vh;
        top: auto;
        bottom: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(100%);
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.03);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
    }

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