/* Wow Que Rico — Restaurant Styles */

:root {
  --red: #e31837;
  --red-dark: #b8122c;
  --blue: #0050a0;
  --yellow: #f5c518;
  --black: #0a0a0a;
  --dark: #141414;
  --dark-card: #1c1c1c;
  --gray: #888;
  --light: #f5f5f5;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(227, 24, 55, 0.4);
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 28px rgba(227, 24, 55, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-full { width: 100%; }

.btn-cart {
  background: var(--dark-card);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
}

.btn-cart:hover { background: var(--red); border-color: var(--red); }

.cart-badge {
  background: var(--yellow);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.cart-badge:empty,
.cart-badge[data-count="0"] { display: none; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 48px; width: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--light);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--yellow); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, var(--black) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-logo {
  width: min(420px, 85vw);
  margin: 0 auto 1rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: 0.15em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.featured {
  padding: 5rem 0;
  background: var(--dark);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.3s;
}

.featured-card:hover {
  border-color: var(--red);
  transform: scale(1.02);
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.featured-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.featured-card .price {
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Menu */
.menu {
  padding: 5rem 0;
}

.menu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--dark-card);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.menu-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(227, 24, 55, 0.3);
}

.menu-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.menu-card:hover .menu-card-image img { transform: scale(1.06); }

.menu-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.menu-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.menu-card p {
  font-size: 0.875rem;
  color: var(--gray);
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.menu-card .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--yellow);
}

.add-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  border: none;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.add-btn:hover {
  background: var(--red-dark);
  transform: scale(1.05);
}

/* About */
.about {
  padding: 5rem 0;
  background: var(--dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--red);
}

.about-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.about-text p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-highlights {
  list-style: none;
  margin-top: 1.5rem;
}

.about-highlights li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--yellow);
  font-weight: 500;
}

.about-highlights li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--red);
}

/* Contact */
.contact { padding: 5rem 0; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--dark-card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.contact-card p { color: rgba(255,255,255,0.75); margin-bottom: 0.25rem; }
.contact-card a { color: var(--yellow); }

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--dark);
}

.footer-logo {
  height: 60px;
  margin: 0 auto 1rem;
  opacity: 0.9;
}

.footer p { color: var(--gray); font-size: 0.875rem; }

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--dark);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.cart-sidebar.open { transform: translateX(0); }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  padding-top: max(1.25rem, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.cart-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
}

.cart-close {
  background: none;
  border: none;
  color: var(--light);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
}

.cart-close:hover { color: var(--red); }

.cart-items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.5rem;
}

.cart-empty {
  color: var(--gray);
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.95rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  color: var(--yellow);
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: var(--dark-card);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover { background: var(--red); border-color: var(--red); }

.qty-value {
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.remove-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.remove-btn:hover { color: var(--red); }

.cart-footer {
  flex-shrink: 0;
  padding: 1.25rem 1.5rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--black);
}

.cart-footer .btn {
  min-height: 48px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.cart-total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.cart-totals { margin-bottom: 1rem; }

/* Checkout Modal */
.checkout-modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  background: var(--dark);
  color: var(--light);
  max-width: 520px;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow);
}

.checkout-modal::backdrop {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.checkout-inner {
  padding: 2rem;
  position: relative;
}

.checkout-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.checkout-close:hover { color: var(--white); }

.checkout-inner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: rgba(255,255,255,0.8);
}

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--dark-card);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.radio-label input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  min-height: unset;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--red);
}

.checkout-summary {
  background: var(--dark-card);
  border-radius: 8px;
  padding: 1rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.checkout-summary .summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.checkout-summary .summary-total {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--yellow);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

/* Confirmation */
.confirm { text-align: center; padding: 3rem 2rem; }

.confirm-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.confirm-order-id {
  font-family: monospace;
  color: var(--yellow);
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--red);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 300;
  opacity: 0;
  transition: transform 0.35s, opacity 0.35s;
  box-shadow: 0 4px 20px rgba(227, 24, 55, 0.5);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Mobile cart FAB */
.mobile-cart-fab {
  display: none;
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  right: max(1.25rem, env(safe-area-inset-right));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: none;
  box-shadow: 0 6px 24px rgba(227, 24, 55, 0.5);
  cursor: pointer;
  z-index: 90;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.mobile-cart-fab:active { transform: scale(0.95); }

.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.fab-badge[data-count="0"] { display: none; }

.footer-staff {
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.footer-staff a {
  color: var(--gray);
  text-decoration: none;
}

.footer-staff a:hover { color: var(--yellow); }

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }

  .nav {
    padding: 0.5rem 1rem;
    padding-top: max(0.5rem, env(safe-area-inset-top));
  }

  .nav-logo img { height: 40px; }

  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: calc(56px + env(safe-area-inset-top));
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li { width: 100%; }

  .nav-links a,
  .nav-links .btn-cart {
    display: flex;
    width: 100%;
    padding: 0.85rem 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  .nav-links .btn-cart span:not(.cart-badge) { display: inline; }

  .hero {
    min-height: 85vh;
    padding: 5rem 1rem 3rem;
  }

  .hero-desc { font-size: 1rem; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-actions .btn { width: 100%; min-height: 48px; }

  .featured,
  .menu,
  .about,
  .contact { padding: 3rem 0; }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .menu-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    margin: 0 -1rem 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .menu-filters::-webkit-scrollbar { display: none; }

  .filter-btn {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0.6rem 1.1rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .menu-card-footer {
    flex-wrap: wrap;
  }

  .add-btn {
    flex: 1;
    min-height: 44px;
    font-size: 0.9rem;
  }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }

  .contact-grid { grid-template-columns: 1fr; }

  .cart-sidebar {
    width: 100vw;
  }

  .cart-header {
    padding-top: max(1rem, env(safe-area-inset-top));
  }

  .cart-footer {
    padding: 1rem 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .qty-btn {
    width: 36px;
    height: 36px;
  }

  .checkout-modal {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .checkout-inner {
    padding: 1.5rem 1rem;
    padding-top: max(2.5rem, env(safe-area-inset-top));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    max-height: 100dvh;
    overflow-y: auto;
  }

  .form-group input:not([type="radio"]):not([type="checkbox"]),
  .form-group textarea {
    font-size: 16px;
    min-height: 48px;
  }

  .form-row { grid-template-columns: 1fr; }

  .mobile-cart-fab { display: flex; }

  .nav-links .btn-cart { display: none; }

  .toast {
    bottom: max(5.5rem, calc(5.5rem + env(safe-area-inset-bottom)));
    left: 1rem;
    right: 1rem;
    transform: translateY(100px);
    text-align: center;
    border-radius: 12px;
  }

  .toast.show {
    transform: translateY(0);
  }
}

@media (max-width: 380px) {
  .menu-card h3 { font-size: 1.05rem; }
  .section-title { font-size: 2.2rem; }
}
