* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #172033;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 45%, #fffbeb 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid #fed7aa;
  backdrop-filter: blur(14px);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: #ea580c;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
}

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

.brand p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 14px;
}

.header-badges {
  display: flex;
  gap: 12px;
}

.header-badges span {
  background: #fff7ed;
  color: #c2410c;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
}

.header-badges .whatsapp {
  background: #ecfdf5;
  color: #047857;
}

.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 22px;
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 24px;
}

.hero {
  border-radius: 34px;
  padding: 32px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #ea580c, #f59e0b);
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: center;
  box-shadow: 0 22px 45px rgba(234, 88, 12, 0.16);
}

.hero-pill {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.03;
  letter-spacing: -1.2px;
}

.hero p {
  color: #fff7ed;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.6;
}

.hero-image img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(0,0,0,0.2);
}

.stats {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats div {
  min-width: 138px;
  background: rgba(255,255,255,0.2);
  padding: 14px 18px;
  border-radius: 20px;
}

.stats small {
  display: block;
  color: #ffedd5;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.stats strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.info-cards {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.info-cards article {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 26px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.info-cards span {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  background: #ffedd5;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.info-cards h3 {
  margin: 0;
  font-size: 16px;
}

.info-cards p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

.menu-header {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.menu-header h2 {
  margin: 0;
  font-size: 28px;
}

.menu-header p {
  margin: 6px 0 0;
  color: #64748b;
}

.search-box {
  position: relative;
  width: 320px;
}

.search-box span {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
}

.search-box input {
  width: 100%;
  border: 1px solid #fed7aa;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px 14px 44px;
  font-size: 15px;
  outline: none;
}

.search-box input:focus {
  box-shadow: 0 0 0 4px #fed7aa;
}

.categories {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin-top: 18px;
  padding-bottom: 8px;
}

.categories button {
  white-space: nowrap;
  border: 0;
  background: #ffffff;
  color: #475569;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

.categories button.active {
  background: #ea580c;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(234, 88, 12, 0.18);
}

.product-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-image {
  position: relative;
  height: 190px;
  overflow: hidden;
}

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

.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(255,255,255,0.95);
  color: #c2410c;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
}

.product-body {
  padding: 18px;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.product-title-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.rating {
  flex: none;
  background: #fffbeb;
  color: #b45309;
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
}

.product-description {
  min-height: 44px;
  margin: 10px 0 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-footer small {
  color: #94a3b8;
}

.product-footer strong {
  display: block;
  font-size: 19px;
}

.add-btn,
.confirm-btn {
  border: 0;
  background: #ea580c;
  color: #ffffff;
  border-radius: 16px;
  padding: 13px 16px;
  font-weight: 900;
  cursor: pointer;
}

.add-btn:hover,
.confirm-btn:hover {
  background: #c2410c;
}

.cart-panel {
  position: sticky;
  top: 92px;
  height: fit-content;
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 22px 45px rgba(234, 88, 12, 0.14);
}

.cart-header {
  background: #020617;
  color: #ffffff;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  margin: 0;
  font-size: 26px;
}

.cart-header p {
  margin: 5px 0 0;
  color: #cbd5e1;
  font-size: 14px;
}

.cart-icon {
  position: relative;
  background: #ea580c;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.cart-icon span {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: #ffffff;
  color: #c2410c;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.cart-body {
  padding: 20px;
}

.order-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff7ed;
  border-radius: 18px;
  padding: 5px;
}

.order-tabs button {
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 11px;
  font-weight: 900;
  color: #64748b;
  cursor: pointer;
}

.order-tabs button.active {
  background: #ffffff;
  color: #c2410c;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

.cart-items {
  margin-top: 18px;
  display: grid;
  gap: 13px;
}

.empty-cart {
  border: 1px dashed #fdba74;
  background: #fff7ed;
  border-radius: 26px;
  padding: 28px 18px;
  text-align: center;
  color: #64748b;
}

.empty-cart strong {
  display: block;
  color: #334155;
  margin-bottom: 5px;
}

.cart-item {
  display: flex;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 6px 14px rgba(15,23,42,0.04);
}

.cart-item img {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  object-fit: cover;
}

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

.cart-item-info h4 {
  margin: 0;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-info .price {
  margin: 5px 0 8px;
  color: #c2410c;
  font-weight: 900;
  font-size: 14px;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px;
}

.qty button,
.delete-btn {
  border: 0;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.delete-btn {
  color: #ef4444;
}

.payment-box {
  margin-top: 18px;
  background: #f8fafc;
  border-radius: 24px;
  padding: 16px;
}

.payment-box h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.payment-box select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 13px;
  font-weight: 700;
  background: #ffffff;
  outline: none;
}

.summary {
  margin-top: 18px;
  background: #020617;
  color: #ffffff;
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 11px;
}

.summary div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.summary span {
  color: #cbd5e1;
}

.summary .total {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 12px;
  font-size: 18px;
}

.summary .total strong {
  color: #fdba74;
}

.confirm-btn {
  width: 100%;
  margin-top: 18px;
  padding: 17px;
  font-size: 16px;
}

.confirm-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

.success-box {
  margin-top: 18px;
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 24px;
  padding: 16px;
}

.success-box p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.hidden {
  display: none;
}

.features {
  margin-top: 18px;
  color: #475569;
  font-size: 14px;
}

.features p {
  margin: 8px 0;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .header-badges,
  .hero-image {
    display: none;
  }

  .topbar-inner,
  .menu-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .hero h2 {
    font-size: 34px;
  }

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

  .search-box {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   AJUSTES RESPONSIVE REFORZADOS PARA MÓVILES
   Versión optimizada para demo en celular
   ========================================================= */

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

@media (max-width: 900px) {
  .topbar {
    position: relative;
  }

  .topbar-inner {
    padding: 12px 14px;
    display: block;
  }

  .brand {
    align-items: center;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    font-size: 21px;
  }

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

  .brand p {
    font-size: 12px;
    line-height: 1.25;
  }

  .layout {
    width: 100%;
    display: block;
    padding: 14px;
  }

  .content {
    width: 100%;
  }

  .hero {
    display: block;
    width: 100%;
    padding: 22px;
    border-radius: 26px;
  }

  .hero-pill {
    font-size: 12px;
    padding: 8px 12px;
    margin-bottom: 14px;
  }

  .hero h2 {
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.6px;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.5;
  }

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

  .stats div {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
  }

  .stats strong {
    font-size: 22px;
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

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

  .info-cards span {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    font-size: 20px;
  }

  .menu-header {
    display: block;
    margin-top: 22px;
  }

  .menu-header h2 {
    font-size: 24px;
  }

  .menu-header p {
    font-size: 14px;
  }

  .search-box {
    width: 100%;
    margin-top: 14px;
  }

  .search-box input {
    font-size: 16px;
    padding: 13px 14px 13px 42px;
  }

  .categories {
    width: 100%;
    gap: 8px;
    margin-top: 14px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .categories button {
    padding: 10px 15px;
    font-size: 13px;
  }

  .product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }

  .product-card {
    border-radius: 24px;
  }

  .product-image {
    height: 165px;
  }

  .product-body {
    padding: 15px;
  }

  .product-title-row h3 {
    font-size: 17px;
  }

  .product-description {
    min-height: auto;
    font-size: 13px;
  }

  .product-footer {
    align-items: center;
  }

  .product-footer strong {
    font-size: 17px;
  }

  .add-btn {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
  }

  .cart-panel {
    position: static;
    width: 100%;
    margin-top: 18px;
    border-radius: 26px;
  }

  .cart-header {
    padding: 20px;
  }

  .cart-header h2 {
    font-size: 22px;
  }

  .cart-header p {
    font-size: 13px;
  }

  .cart-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .cart-body {
    padding: 16px;
  }

  .cart-item {
    border-radius: 22px;
    padding: 10px;
  }

  .cart-item img {
    width: 70px;
    height: 70px;
    border-radius: 16px;
  }

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

  .summary,
  .payment-box,
  .success-box {
    border-radius: 22px;
  }

  .confirm-btn {
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .layout {
    padding: 10px;
  }

  .hero {
    padding: 18px;
    border-radius: 22px;
  }

  .hero h2 {
    font-size: 25px;
  }

  .hero p {
    font-size: 13.5px;
  }

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

  .product-image {
    height: 145px;
  }

  .product-title-row {
    display: block;
  }

  .rating {
    display: inline-block;
    margin-top: 8px;
  }

  .product-footer {
    gap: 12px;
  }

  .add-btn {
    flex: none;
  }

  .cart-header {
    gap: 10px;
  }

  .cart-header h2 {
    font-size: 20px;
  }
}


/* =========================================================
   WHATSAPP BUTTONS FIX - SIICSABOT GASTRO TIENDA
   ========================================================= */

.header-whatsapp-btn,
.mobile-whatsapp-btn,
.cart-whatsapp-btn {
  text-decoration: none;
}

.wa-badge-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.94);
  color: #25D366;
  font-size: 16px;
  line-height: 1;
}

.header-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.22);
  white-space: nowrap;
}

.header-whatsapp-btn:hover {
  background: #1ebe5d;
}

.cart-whatsapp-btn {
  margin: 18px 0 14px;
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366, #1ebe5d);
  color: #ffffff;
  border-radius: 16px;
  font-weight: 800;
  padding: 13px 16px;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.20);
}

.cart-whatsapp-btn:hover {
  background: linear-gradient(135deg, #1ebe5d, #169b50);
}

.mobile-whatsapp-bar {
  display: none;
}

.mobile-whatsapp-btn {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366, #1ebe5d);
  color: #ffffff;
  border-radius: 18px;
  font-weight: 900;
  font-size: 15px;
  padding: 14px 16px;
  box-shadow: 0 16px 35px rgba(37, 211, 102, 0.25);
}

/* Desktop + tablet */
@media (min-width: 769px) {
  .header-whatsapp-btn {
    display: inline-flex;
  }
}

/* Mobile fixes */
@media (max-width: 768px) {
  body {
    padding-bottom: 96px;
  }

  .topbar-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    align-items: center;
  }

  .header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-badges span {
    font-size: 12px;
    padding: 8px 12px;
  }

  .header-whatsapp-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .mobile-whatsapp-bar {
    display: block;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 12px;
    z-index: 9999;
  }

  .cart-whatsapp-btn {
    display: none;
  }
}

@media (max-width: 420px) {
  .topbar-inner {
    padding: 10px 12px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    font-size: 20px;
  }

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

  .brand p {
    font-size: 12px;
  }

  .header-whatsapp-btn,
  .mobile-whatsapp-btn {
    font-size: 14px;
  }

  .wa-badge-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 15px;
  }
}
