/* =========================================
   LOGO CONTAINER CSS
   ========================================= */
.brand-logo-container {
  width: 130px;
  height: 52px;
  overflow: visible;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.brand-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: static;
  transform: none;
}

.footer-logo-container {
  width: 160px;
  height: 60px;
  margin: 0 auto 16px;
}

:root {
    --amarillo: #FFD100;
    --rojo: #CE1126;
    --azul: #003087;
    --verde: #2E7D32;
    --naranja: #FF6B00;
    --crema: #FFF8E7;
    --cafe: #5D2E0C;
    --dorado: #F5A623;
    --sombra: rgba(93,46,12,0.18);
  }

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

  body {
    font-family: 'Inter', sans-serif;
    background: var(--crema);
    color: var(--cafe);
    overflow-x: hidden;
  }

  /* ===== BANNER ===== */
  header {
    background: linear-gradient(135deg, #1A0E05 0%, #2A160A 50%, #4A2511 100%);
    position: relative;
    overflow: hidden;
    padding: 0;
  }

  .hero-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 80%, var(--rojo) 0%, transparent 30%),
                      radial-gradient(circle at 80% 20%, var(--azul) 0%, transparent 25%),
                      radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
  }

  .topbar {
    background: var(--rojo);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 32px;
    font-size: 13px;
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  .topbar span { display: flex; align-items: center; gap: 6px; }

  .restaurant-banner {
    min-height: 172px;
  }

  .restaurant-banner-inner {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    min-height: 172px;
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    align-items: center;
  }

  .restaurant-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    width: 100%;
    min-width: 0;
  }

  .banner-logo-container {
    width: 214px;
    height: 96px;
    flex-shrink: 0;
  }

  .banner-logo-container img {
    transform: scale(1.28);
    transform-origin: center;
  }

  .banner-text {
    min-width: 0;
  }

  .banner-kicker {
    font-family: 'Inter', sans-serif;
    color: var(--amarillo);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.08em;
    margin-bottom: 0;
    font-weight: 800;
    text-transform: uppercase;
  }

  .restaurant-brand h1 {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    line-height: 0.95;
    color: white;
    letter-spacing: 0;
    font-weight: 900;
  }

  .banner-copy {
    color: rgba(255,255,255,0.84);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 8px;
  }

  .restaurant-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: white;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    margin-top: 12px;
  }

  .restaurant-info a,
  .restaurant-info span {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    position: relative;
    z-index: 10;
  }

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

  .logo-main {
    font-family: 'Inter', sans-serif;
    font-size: 34px;
    color: var(--cafe);
    line-height: 1;
    text-shadow: 3px 3px 0 rgba(255,255,255,0.4);
    letter-spacing: 0;
    font-weight: 900;
  }

  .logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--rojo);
    letter-spacing: 4px;
    background: white;
    padding: 2px 10px;
    border-radius: 3px;
    margin-top: -4px;
  }

  .nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
  }

  .nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: var(--crema);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all .2s;
    letter-spacing: 0;
    font-weight: 800;
  }

  .nav-links a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--amarillo);
  }

  .cart-btn {
    background: var(--rojo);
    color: white !important;
    border-radius: 30px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
  }

  .nav-links .cart-btn,
  #mobile-cart {
    display: none !important;
  }

  .cart-btn:hover {
    background: var(--cafe) !important;
  }

  #cart-count {
    background: var(--amarillo);
    color: var(--cafe);
    font-size: 11px;
    font-weight: 900;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
  }

  .hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 40px 60px;
    position: relative;
    z-index: 5;
  }

  .hero-text h1 {
    font-family: 'Inter', sans-serif;
    font-size: 56px;
    line-height: 1;
    color: white;
    letter-spacing: 0;
    font-weight: 900;
  }

  .hero-text h1 .highlight {
    color: var(--amarillo);
    display: block;
  }

  .hero-text p {
    font-size: 18px;
    color: #e5e7eb;
    margin: 20px 0 30px;
    max-width: 420px;
    font-weight: 700;
    line-height: 1.5;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--rojo);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 4px 4px 0 var(--dorado);
  }

  .hero-badge:hover {
    transform: translate(-2px,-2px);
    box-shadow: 6px 6px 0 var(--dorado);
  }

  .hero-image-box {
    background: rgba(255,255,255,0.25);
    border: 4px solid rgba(255,255,255,0.5);
    border-radius: 24px;
    width: 340px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    backdrop-filter: blur(8px);
    box-shadow: 8px 8px 30px var(--sombra);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
  }

  .hero-image-box img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 18px;
  }

  .hero-image-box .hero-emoji {
    font-size: 90px;
    animation: float 3s ease-in-out infinite;
  }

  @keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
  }

  /* Bandera Colombia stripe */
  .colombia-stripe {
    display: flex;
    height: 12px;
  }
  .colombia-stripe div { flex: 1; }
  .s-amarillo { background: var(--amarillo); flex: 2 !important; }
  .s-azul { background: var(--azul); }
  .s-rojo { background: var(--rojo); }

  /* ===== SECCIONES ===== */
  .section {
    padding: 34px 40px 70px;
  }

  .section-title {
    font-family: 'Inter', sans-serif;
    font-size: 34px;
    color: var(--cafe);
    letter-spacing: 0;
    font-weight: 900;
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
  }

  .section-title::after {
    content: '';
    display: block;
    height: 6px;
    background: linear-gradient(90deg, var(--amarillo), var(--rojo));
    border-radius: 3px;
    margin-top: 4px;
  }

  .section-subtitle {
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  /* ===== PLATO ESTRELLA ===== */
  #estrella {
    background: linear-gradient(135deg, var(--cafe) 0%, #3a1a05 100%);
    color: white;
    position: relative;
    overflow: hidden;
  }

  #estrella::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--amarillo) 0%, transparent 70%);
    opacity: 0.12;
  }

  .estrella-inner {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
  }

  .estrella-img {
    width: 240px;
    height: 240px;
    background: rgba(255,255,255,0.08);
    border: 3px solid rgba(255,209,0,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  }

  .estrella-img img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  }

  .estrella-text h2 {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    color: var(--amarillo);
    line-height: 1.08;
    font-weight: 900;
    margin-bottom: 16px;
  }

  .estrella-text p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    max-width: 480px;
  }

  .precio-tag {
    display: inline-block;
    background: var(--amarillo);
    color: var(--cafe);
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 900;
    padding: 8px 24px;
    border-radius: 30px;
    letter-spacing: 0;
    margin-right: 12px;
  }

  /* ===== MENÚ GRID ===== */
  .menu-shell {
    max-width: 1200px;
    margin: 0 auto;
  }

  .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .menu-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--sombra);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--sombra);
    border-color: var(--amarillo);
  }

  .card-img {
    width: 100%;
    height: auto;
    flex: 0 0 56%;
    background: linear-gradient(135deg, var(--amarillo) 0%, var(--dorado) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
    overflow: hidden;
  }

  .card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .card-emoji {
    font-size: 64px;
    z-index: 1;
  }

  .card-category {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--rojo);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .card-name {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--cafe);
    letter-spacing: 0;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-desc {
    font-size: 12px;
    color: #888;
    margin: 5px 0 10px;
    line-height: 1.35;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
  }

  .card-price {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 900;
    color: var(--verde);
    letter-spacing: 0;
  }

  .add-btn {
    background: var(--amarillo);
    color: var(--cafe);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    transition: all .2s;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  }

  .add-btn:hover {
    background: var(--rojo);
    color: white;
    transform: scale(1.15);
  }

  .add-btn:disabled {
    background: #ddd;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    font-size: 14px;
    padding: 0 5px;
    min-width: 80px;
  }

  .add-btn:disabled:hover {
    background: #ddd;
    color: #888;
    transform: none;
  }

  /* ===== CART SIDEBAR ===== */
  .cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 900;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
    /* Safari iOS 26: evitar que el fondo cubra el área de la barra Liquid Glass */
    padding-bottom: env(safe-area-inset-bottom);
  }

  .cart-overlay.open { opacity: 1; pointer-events: all; }

  .cart-sidebar {
    position: fixed;
    top: 0; right: 0;
    width: 420px;
    height: 100%; /* Fallback */
    height: 100dvh; /* Soporte moderno Safari Mobile */
    background: #fffdf7;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -14px 0 42px rgba(93,46,12,0.22);
    border-left: 1px solid rgba(93,46,12,0.08);
  }

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

  .cart-header {
    background: linear-gradient(135deg, #4a250d, var(--cafe));
    padding: 22px 24px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
  }

  .cart-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    letter-spacing: 0;
    color: var(--amarillo);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .cart-title-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .cart-header p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
  }

  .close-cart {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 36px; height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .close-cart svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
  }

  .close-cart:hover {
    background: var(--rojo);
    transform: translateY(-1px);
  }

  .cart-platano {
    padding: 12px 24px;
    background: var(--amarillo);
    font-size: 13px;
    font-weight: 800;
    color: var(--cafe);
    text-align: center;
    letter-spacing: 0.04em;
  }

  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(180deg, #fffdf7, var(--crema));
  }

  .cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9b8d78;
  }

  .cart-empty .emoji { font-size: 60px; display: block; margin-bottom: 12px; }
  .cart-empty p { font-size: 16px; font-weight: 700; }

  .cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(93,46,12,0.1);
    box-shadow: 0 6px 18px rgba(93,46,12,0.08);
  }

  .ci-emoji {
    width: 54px; height: 54px;
    background: var(--crema);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(93,46,12,0.08);
  }

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

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

  .ci-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--cafe);
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ci-unit {
    font-size: 12px;
    font-weight: 800;
    color: #9b8d78;
    line-height: 1.1;
  }

  .ci-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--verde);
  }

  .ci-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--crema);
    border: 1px solid rgba(93,46,12,0.1);
    border-radius: 8px;
    padding: 4px;
  }

  .ci-btn {
    width: 28px; height: 28px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: white;
    color: var(--cafe);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
  }

  .ci-btn:hover { background: var(--amarillo); }

  .ci-qty {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    min-width: 22px;
    text-align: center;
    color: var(--cafe);
  }

  .ci-remove {
    background: #fff4f1;
    border: 1px solid rgba(206,17,38,0.12);
    border-radius: 8px;
    cursor: pointer;
    color: var(--rojo);
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s, color .2s;
  }

  .ci-remove svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .ci-remove:hover {
    background: var(--rojo);
    color: white;
    transform: translateY(-1px);
  }

  .cart-footer {
    padding: 20px 24px;
    padding-bottom: max(20px, env(safe-area-inset-bottom)); /* Corrección iPhone Notch/Safari */
    border-top: 1px solid rgba(93,46,12,0.12);
    background: white; /* Asegurar fondo sólido */
    flex-shrink: 0; /* Evita que safari encoja el footer */
  }

  .cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--crema);
    border: 1px solid rgba(93,46,12,0.08);
    border-radius: 8px;
  }

  .cart-total span:first-child {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--cafe);
  }

  .cart-total .total-val {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--verde);
    letter-spacing: 0;
  }

  .pedido-btn {
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  }

  .pedido-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
  }

  .pedido-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
  }

  .modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Safari iOS 26: evitar que el fondo cubra el área de la barra Liquid Glass */
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
  }

  .modal-overlay.open { opacity: 1; pointer-events: all; }

  .modal-box {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(.95);
    transition: transform .3s;
  }

  .modal-overlay.open .modal-box { transform: scale(1); }

  .modal-head {
    background: linear-gradient(135deg, #4a250d, var(--cafe));
    padding: 24px 28px 22px;
    border-radius: 8px 8px 0 0;
    color: white;
    position: relative;
  }

  .modal-head h2 {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    letter-spacing: 0;
    color: var(--amarillo);
    font-weight: 900;
  }

  .modal-head p { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 4px; }

  .close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 36px; height: 36px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s, transform .2s;
  }

  .close-modal:hover {
    background: var(--rojo);
    transform: translateY(-1px);
  }

  .modal-body { padding: 28px; }

  .resumen-pedido {
    background: var(--crema);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
    border: 2px solid #f0e8d0;
  }

  .resumen-pedido h3 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    color: var(--cafe);
    font-weight: 900;
    margin-bottom: 10px;
  }

  .resumen-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 1px dashed #e0d4be;
    font-weight: 600;
  }

  .resumen-item:last-child { border: none; font-weight: 800; font-size: 15px; }

  .form-group {
    margin-bottom: 18px;
  }

  .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--cafe);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0d4be;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--cafe);
    background: white;
    transition: border-color .2s;
    outline: none;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--amarillo);
    box-shadow: 0 0 0 3px rgba(255,209,0,0.2);
  }

  .form-group textarea { resize: vertical; min-height: 80px; }

  .send-btn {
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    margin-top: 8px;
  }

  .send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
  }

  /* ===== FOOTER ===== */
  footer {
    background: var(--cafe);
    color: white;
    padding: 50px 40px 30px;
  }

  .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .footer-logo {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--amarillo);
  }

  .footer-logo p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
  }

  .footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
    color: var(--amarillo);
    margin-bottom: 14px;
  }

  .footer-col p, .footer-col a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 2;
    display: block;
    text-decoration: none;
    transition: color .2s;
  }

  .footer-col a:hover { color: var(--amarillo); }

  .footer-bottom {
    text-align: center;
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
  }

  /* ===== TOAST ===== */
  #toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: white;
    color: var(--cafe);
    padding: 14px 20px 14px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 15px;
    z-index: 3000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(46,125,50,0.25);
    white-space: nowrap;
  }
  #toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  .toast-icon {
    background: var(--verde);
    color: white;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  .toast-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* ===== SKELETON LOADERS ===== */
  .skeleton-card { border: none !important; box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; cursor: default; }
  .shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    animation: placeholderShimmer 1.5s linear infinite backwards;
  }
  @keyframes placeholderShimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
  }
  .skeleton-img { width: 100%; flex: 0 0 56%; }
  .skeleton-title { height: 26px; border-radius: 4px; margin-bottom: 12px; width: 80%; }
  .skeleton-text { height: 14px; border-radius: 4px; margin-bottom: 8px; width: 100%; }
  .skeleton-price { height: 24px; border-radius: 4px; width: 40px; }
  .skeleton-btn { height: 40px; width: 40px; border-radius: 50%; border: none !important; }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    nav { padding: 14px 20px; }
    .logo-main { font-size: 28px; }
    .nav-links { display: none; }
    .restaurant-banner { min-height: auto; }
    .restaurant-banner-inner {
      min-height: auto;
      padding: 18px 18px 20px;
      justify-content: flex-start;
    }
    .restaurant-brand {
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }
    .banner-logo-container {
      width: clamp(116px, 34vw, 154px);
      height: clamp(54px, 16vw, 72px);
    }
    .banner-logo-container img {
      transform: scale(1.2);
    }
    .banner-kicker { font-size: 11px; }
    .restaurant-brand h1 { font-size: clamp(30px, 8.5vw, 38px); }
    .banner-copy { font-size: 13px; line-height: 1.12; margin-top: 6px; }
    .restaurant-info {
      align-items: center;
      text-align: left;
      font-size: 12.5px;
      gap: 7px 11px;
      margin-top: 10px;
    }
    .restaurant-info a,
    .restaurant-info span {
      justify-content: flex-start;
    }
    @media (max-width: 420px) {
      .restaurant-banner-inner { padding-inline: 14px; }
      .restaurant-brand { gap: 10px; }
      .banner-logo-container {
        width: 104px;
        height: 50px;
      }
      .banner-logo-container img {
        transform: scale(1.14);
      }
      .banner-kicker { font-size: 10.5px; letter-spacing: 0.08em; }
      .restaurant-brand h1 { font-size: 30px; }
      .banner-copy { font-size: 12px; }
      .restaurant-info { font-size: 11.8px; gap: 6px 9px; }
    }
    .hero-content { flex-direction: column; padding: 30px 20px 50px; }
    .hero-text h1 { font-size: 38px; }
    .hero-image-box { width: 100%; max-width: 320px; height: 220px; margin-top: 24px; }
    .section { padding: 26px 14px 50px; }
    .section-title { font-size: 28px; }
    .estrella-inner { flex-direction: row-reverse; gap: 20px; align-items: center; }
    .estrella-img { width: 120px; height: 120px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
    .estrella-text h2 { font-size: 24px; margin-bottom: 8px; }
    .estrella-text p { font-size: 14px; line-height: 1.5; }
    .cart-sidebar { width: 100%; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .topbar { display: none; }
    .menu-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .menu-card {
      aspect-ratio: auto;
    }
    .card-img {
      flex: none;
      aspect-ratio: 1.5;
    }
    .skeleton-img {
      flex: none;
      aspect-ratio: 1.5;
    }
    .card-body {
      padding: 10px;
      gap: 6px;
    }
    .card-category {
      top: 8px;
      left: 8px;
      max-width: calc(100% - 16px);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .card-name {
      font-size: 13px;
      line-height: 1.2;
    }
    .skeleton-title {
      height: 16px;
      margin-bottom: 8px;
    }
    .card-desc {
      font-size: 11px;
      line-height: 1.25;
      margin-bottom: 8px;
      -webkit-line-clamp: 2;
    }
    .card-price { font-size: 15px; }
    .add-btn {
      width: 32px;
      height: 32px;
      font-size: 18px;
      flex-shrink: 0;
    }
    .add-btn:disabled {
      min-width: 58px;
      font-size: 11px;
    }
  }

  .section-bg-alt {
    background: #FFF3E0;
  }

  .menu-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    overflow-x: auto; /* Permite scroll horizontal */
    padding-bottom: 12px; /* Espacio para respirar */
    padding-top: 2px;
    -webkit-overflow-scrolling: touch; /* Suavidad en iPhone */
    scroll-snap-type: x mandatory; /* Para que el scroll se pegue a los botones */
  }

  /* Personalizar la barra de scroll pequeña */
  .menu-tabs::-webkit-scrollbar {
    height: 6px;
  }
  .menu-tabs::-webkit-scrollbar-track {
    background: transparent;
  }
  .menu-tabs::-webkit-scrollbar-thumb {
    background: #e0d4be;
    border-radius: 10px;
  }

  .tab-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid #e0d4be;
    background: white;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--cafe);
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap; /* Evita que el texto de un botón se rompa en dos líneas */
    flex-shrink: 0; /* Evita que los botones se aplasten */
    scroll-snap-align: start;
  }

  .tab-btn.active, .tab-btn:hover {
    background: var(--amarillo);
    border-color: var(--amarillo);
    box-shadow: 0 2px 0 var(--cafe);
  }

  @media (min-width: 768px) {
    .menu-tabs {
      flex-wrap: nowrap;
      justify-content: flex-start;
      overflow-x: auto;
    }
  }

  .floating-cart-btn {
    position: fixed;
    /* Safari iOS 26: usar safe-area-inset-bottom para no solapar la barra Liquid Glass */
    bottom: calc(env(safe-area-inset-bottom) + 80px);
    right: 28px;
    background: var(--rojo);
    color: white;
    border: none;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 950;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
  }

  .floating-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  }

  .floating-cart-icon {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .floating-cart-badge {
    background: var(--amarillo);
    color: var(--cafe);
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -7px;
    right: -5px;
    font-size: 13px;
    font-weight: 900;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
  }

  .whatsapp-float {
    position: fixed;
    bottom: 28px; right: 28px;
    background: #25D366;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    z-index: 800;
    text-decoration: none;
    transition: transform .2s;
    animation: pulse-green 2.5s infinite;
  }

  .whatsapp-float:hover { transform: scale(1.12); }

  @keyframes pulse-green {
    0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 4px 36px rgba(37,211,102,0.8); }
  }

  /* ============================================
     SCROLL SUAVE - Navegación fluida
     ============================================ */
  html {
    scroll-behavior: smooth;
  }

  /* Transiciones suaves en hover */
  button, .btn, .primary-btn, .secondary-btn, .cart-btn, a {
    transition: all 0.2s ease;
  }

  button:hover, .btn:hover, .primary-btn:hover, .cart-btn:hover {
    opacity: 0.9;
  }

  /* Transiciones en elementos interactivos */
  .menu-item, input, textarea, select {
    transition: all 0.2s ease;
  }

  /* ===== PRODUCT DETAIL MODAL ===== */
  .product-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Safari iOS 26: evitar que el fondo cubra el área de la barra Liquid Glass */
    padding-bottom: env(safe-area-inset-bottom);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .product-detail-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  .product-detail-box {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    transform: translateY(40px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
  }

  .product-detail-overlay.open .product-detail-box {
    transform: translateY(0) scale(1);
  }

  .product-detail-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
  }

  .product-detail-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
  }

  .product-detail-close:hover {
    background: var(--rojo);
    transform: scale(1.1);
  }

  .product-detail-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
  }

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

  .product-detail-img-wrap .product-detail-emoji {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
  }

  .product-detail-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: var(--rojo);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .product-detail-body {
    padding: 24px 24px 28px;
    overflow-y: auto;
    flex: 1;
  }

  .product-detail-name {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--cafe);
    letter-spacing: 0;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .product-detail-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 24px;
    white-space: pre-line;
  }

  .product-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 2px solid #f0e8d0;
  }

  .product-detail-price {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--verde);
    letter-spacing: 0;
  }

  .product-detail-add {
    background: var(--amarillo);
    color: var(--cafe);
    border: none;
    padding: 14px 26px;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(255, 209, 0, 0.35);
    flex-shrink: 0;
  }

  .product-detail-add svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .product-detail-add:hover {
    background: var(--rojo);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(206, 17, 38, 0.4);
  }

  .product-detail-add:disabled {
    background: #ddd;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
  }

  /* Clickable card */
  .menu-card {
    cursor: pointer;
  }

  @media (max-width: 768px) {
    .product-detail-overlay {
      padding: 0;
      align-items: flex-end;
    }

    .product-detail-box {
      max-width: 100%;
      max-height: 92vh;
      border-radius: 24px 24px 0 0;
      transform: translateY(100%);
    }

    .product-detail-overlay.open .product-detail-box {
      transform: translateY(0);
    }

    .product-detail-img-wrap {
      aspect-ratio: 16 / 9;
    }

    .product-detail-name {
      font-size: 21px;
    }

    .product-detail-desc {
      font-size: 14px;
    }

    .product-detail-price {
      font-size: 28px;
    }

    .product-detail-add {
      padding: 12px 20px;
      font-size: 17px;
    }

    .product-detail-footer {
      padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
  }
