/* ==========================================================================
   Bendición Sabor Latino — styles.css
   ========================================================================== */

:root {
  --red: #C8102E;
  --red-dark: #A00C24;
  --gold: #F4B400;
  --gold-dark: #D69A00;
  --green: #2E7D32;
  --blue: #1565C0;
  --carbon: #1A1A1A;
  --white: #FFFFFF;
  --cream: #FFFBF2;

  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 34px rgba(0,0,0,0.18);
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  background: var(--white);
  color: var(--carbon);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

p, span, a, button, input, textarea, select, label {
  font-family: var(--font-body);
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 70px 0;
}

.section--alt {
  background: var(--cream);
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--carbon);
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: #555;
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1rem;
}

.section-title .accent { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--red {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--red:hover { background: var(--red-dark); }

.btn--gold {
  background: var(--gold);
  color: var(--carbon);
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { background: var(--gold-dark); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.15); }

.btn--green {
  background: var(--green);
  color: var(--white);
}
.btn--green:hover { background: #235e26; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  transition: box-shadow .25s ease, padding .25s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 6px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-brand img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--carbon);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--carbon);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover { color: var(--red); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-pill {
  display: flex;
  border: 2px solid var(--gold);
  border-radius: 50px;
  overflow: hidden;
}

.lang-pill button {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--carbon);
}

.lang-pill button.active {
  background: var(--gold);
  color: var(--carbon);
}

.nav-call {
  background: var(--red);
  color: var(--white);
  padding: 9px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-call:hover { background: var(--red-dark); }
.nav-call .call-text { white-space: nowrap; }

.cart-btn {
  position: relative;
  background: var(--cream);
  border: 1px solid #eee;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.cart-btn.bounce { animation: cartBounce .5s ease; }
@keyframes cartBounce {
  0%,100% { transform: scale(1); }
  30% { transform: scale(1.3); }
  55% { transform: scale(0.9); }
  75% { transform: scale(1.15); }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--carbon);
  border-radius: 2px;
}

.mobile-nav {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  gap: 14px;
  transform: translateY(-120%);
  transition: transform .3s ease;
  z-index: 999;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  font-weight: 600;
  font-size: 1.05rem;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('img/hero.png') center/cover no-repeat;
  overflow: hidden;
  padding: 120px 20px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(200,16,46,0.18), rgba(90,6,6,0.4));
  z-index: 1;
}

.hero-particle {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-particle span {
  position: absolute;
  bottom: -10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, rgba(244,180,0,0) 70%);
  animation: particleFloat 6s ease-in infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-90vh) scale(1.1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 720px;
}

.hero-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
  animation: heartbeat 1.8s ease-in-out infinite;
}

@media (max-width: 600px) {
  .hero-logo {
    width: 150px;
    height: 150px;
  }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.08); }
  40% { transform: scale(1); }
  60% { transform: scale(1.05); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.hero-title {
  color: var(--gold);
  font-size: clamp(2.1rem, 7.5vw, 3.8rem);
  -webkit-text-stroke: 1.5px #000;
  text-stroke: 1.5px #000;
  paint-order: stroke fill;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 6px 20px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

.hero-tagline {
  color: #fff;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.hero-actions .btn { font-size: clamp(0.9rem, 2.4vw, 1.05rem); }

/* ==========================================================================
   Bestsellers slider
   ========================================================================== */
.bestsellers {
  padding: 60px 0 40px;
  background: var(--white);
}

.bestsellers-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.bestsellers-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: bsScroll 26s linear infinite;
}

.bestsellers-track:hover { animation-play-state: paused; }

@keyframes bsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.bs-card {
  width: 200px;
  flex-shrink: 0;
  background: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f2e8cf;
}

.bs-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.bs-card-body {
  padding: 12px 14px 16px;
  text-align: center;
}

.bs-card-body h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.bs-card-body .bs-price {
  color: var(--red);
  font-weight: 700;
  font-family: var(--font-display);
}

/* ==========================================================================
   Menu
   ========================================================================== */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.menu-tab {
  padding: 9px 20px;
  border-radius: 50px;
  border: 2px solid var(--gold);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--carbon);
  transition: background .2s ease, color .2s ease;
}

.menu-tab.active,
.menu-tab:hover {
  background: var(--gold);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 900px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
}

.menu-card {
  background: var(--white);
  border: 1px solid #f0eee6;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.menu-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-ref-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(26,26,26,0.65);
  color: var(--white);
  font-size: 0.6rem;
  padding: 3px 7px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  text-transform: uppercase;
}

.menu-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.menu-card-body h4 {
  font-size: 1rem;
  line-height: 1.25;
}

.menu-card-desc {
  font-size: 0.78rem;
  color: #666;
  min-height: 0;
}

.menu-card-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red);
  font-size: 1.05rem;
  border-bottom: 2px dotted var(--gold);
  padding-bottom: 6px;
  display: inline-block;
}

.menu-card select {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  background: var(--cream);
  color: var(--carbon);
}

.add-to-cart-btn {
  margin-top: auto;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background .2s ease;
}
.add-to-cart-btn:hover { background: var(--red-dark); }

/* ==========================================================================
   Cart panel
   ========================================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(400px, 92vw);
  background: var(--white);
  z-index: 1999;
  box-shadow: -8px 0 30px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
}
.cart-panel.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.cart-header h3 { font-size: 1.2rem; }

.cart-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--carbon);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  text-align: center;
  color: #888;
  margin-top: 40px;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 12px;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

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

.cart-item-info h5 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.cart-item-info .cart-item-price {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: var(--cream);
  font-weight: 700;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #bbb;
  font-size: 1.1rem;
}
.cart-item-remove:hover { color: var(--red); }

.cart-footer {
  padding: 18px 20px 24px;
  border-top: 1px solid #eee;
}

.cart-totals {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: #555;
}

.cart-totals.total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--carbon);
  margin-bottom: 16px;
}

.whatsapp-checkout-btn {
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.whatsapp-checkout-btn:hover { background: #235e26; }

/* ==========================================================================
   Catering
   ========================================================================== */
.catering {
  position: relative;
  background: url('img/catering.png') center/cover no-repeat;
  padding: 80px 0;
}

.catering::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.75));
}

.catering .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .catering .container { grid-template-columns: 1fr 1fr; align-items: center; }
}

.catering-intro h2, .catering-intro p { color: var(--white); }
.catering-intro h2 { text-align: left; margin-bottom: 14px; }
.catering-intro p { font-size: 1rem; opacity: 0.92; line-height: 1.7; }

.catering-form {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.catering-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--carbon);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catering-form input,
.catering-form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.92rem;
  font-family: var(--font-body);
  width: 100%;
}

.catering-form textarea { resize: vertical; min-height: 90px; }

.catering-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 520px) {
  .catering-form .form-row.two { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.reviews-header svg { width: 28px; height: 28px; }
.reviews-header span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
}

.reviews-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 30px;
}

.reviews-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--white);
  border: 1px solid #f0eee6;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.review-stars { color: var(--gold); margin-bottom: 8px; font-size: 0.95rem; }
.review-name { font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.review-text { font-size: 0.85rem; color: #555; line-height: 1.55; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #444;
}

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.contact-map iframe {
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--carbon);
  color: #eee;
  padding: 40px 0 20px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--gold);
}

.footer p { font-size: 0.85rem; color: #bbb; margin: 4px 0; }

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 16px 0 4px;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #eee;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-icon:hover {
  background: var(--gold);
  color: var(--carbon);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #333;
  font-size: 0.75rem;
  color: #777;
}

.footer-credit {
  margin-top: 10px;
  font-size: 0.75rem;
}

.footer-credit a {
  color: var(--gold);
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1500;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ==========================================================================
   Mobile optimizations (critical)
   ========================================================================== */
@media (max-width: 600px) {
  .nav-brand span { display: none; }
  .nav-call .call-text { display: none; }
  .nav-call { padding: 9px 11px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-actions { gap: 8px; }
  .lang-pill button { padding: 5px 9px; font-size: 0.75rem; }
  .cart-btn { width: 38px; height: 38px; }
  .section { padding: 50px 0; }
}

@media (max-width: 480px) {
  .hero { padding: 110px 16px 60px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .bs-card { width: 160px; }
}
