:root {
  --green: #2f6843;
  --green-dark: #1f4b31;
  --red: #b63b29;
  --orange: #7cfe35;
  --cream: #f4eadb;
  --cream-2: #fffaf2;
  --ink: #2a2925;
  --muted: #756e64;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(74, 46, 22, .13);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-2);
  font-family: "DM Sans", system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.ambient { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: .14; pointer-events: none; z-index: -1; }
.ambient-one { background: var(--orange); top: 30%; left: -180px; }
.ambient-two { background: var(--green); right: -180px; top: 65%; }

.hero {
  min-height: 760px;
  color: var(--white);
  position: relative;
  background:
    radial-gradient(circle at 80% 20%, rgba(239,122,36,.30), transparent 28%),
    linear-gradient(135deg, #244f34 0%, #2f6843 52%, #3a7650 100%);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%;
}
.hero::before { width: 470px; height: 470px; right: -140px; top: 60px; }
.hero::after { width: 280px; height: 280px; right: 30px; top: 155px; }
.navbar { height: 88px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 5; }
.brand-mini { font-family: "Playfair Display", serif; font-weight: 800; letter-spacing: .08em; font-size: 1.45rem; }
.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 700; }
.nav-links a { opacity: .9; }
.nav-order { background: var(--white); color: var(--green-dark); padding: 12px 18px; border-radius: 999px; }
.nav-toggle { display: none; background: transparent; border: 0; color: white; font-size: 1.7rem; }
.hero-content { min-height: 610px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; position: relative; z-index: 2; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 800; color: var(--orange); margin-bottom: 14px; }
.eyebrow.light { color: #ffd7b6; }
.hero h1, .section-heading h2, .delivery-copy h2 { font-family: "Playfair Display", serif; margin: 0; line-height: 1.04; }
.hero h1 { font-size: clamp(2.7rem, 5vw, 5rem); max-width: 780px; }
.hero h1 span { color: #ffcc9d; }
.hero-copy > p { font-size: 1.12rem; line-height: 1.75; max-width: 650px; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; gap: 14px; margin: 30px 0; flex-wrap: wrap; }
.btn { border: 0; border-radius: 999px; padding: 15px 24px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: white; box-shadow: 0 10px 30px rgba(239,122,36,.32); }
.btn-soft { background: rgba(255,255,255,.12); color: white; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges span { font-size: .86rem; padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.08); }
.hero-logo-card { background: rgba(255,255,255,.95); border-radius: 34px; padding: 36px; text-align: center; box-shadow: 0 35px 80px rgba(0,0,0,.25); transform: none; position: relative; overflow: hidden; }
.hero-logo-card img { width: 100%; max-width: 420px; position: relative; z-index: 2; }
.hero-logo-card p { color: var(--green); font-weight: 800; margin: 8px 0 0; position: relative; z-index: 2; }
.sun-pattern { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(239,122,36,.12) 0 7deg, transparent 7deg 15deg); right: -90px; top: -100px; }
.floating-card { animation: logoEntrance .7s ease-out both; }
@keyframes logoEntrance { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; background: var(--cream-2); clip-path: polygon(0 54%, 15% 70%, 34% 48%, 52% 72%, 72% 47%, 88% 65%, 100% 43%, 100% 100%, 0 100%); }

.menu-section { padding: 90px 0 110px; }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-heading h2 { color: var(--green-dark); font-size: clamp(2.2rem, 4vw, 3.6rem); }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.menu-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab { border: 1px solid #e1d7c8; background: white; padding: 11px 17px; border-radius: 999px; font-weight: 800; color: var(--muted); transition: .2s; }
.tab.active, .tab:hover { background: var(--green); color: white; border-color: var(--green); }
.search-box { min-width: 250px; background: white; border: 1px solid #e1d7c8; border-radius: 999px; padding: 10px 15px; display: flex; align-items: center; gap: 10px; }
.search-box input { border: 0; outline: 0; width: 100%; background: transparent; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.menu-card { background: white; border: 1px solid rgba(47,104,67,.10); border-radius: 20px; padding: 20px; display: flex; justify-content: space-between; gap: 14px; align-items: center; box-shadow: 0 9px 30px rgba(75,54,30,.05); transition: .25s ease; animation: cardIn .38s both; }
.menu-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(47,104,67,.22); }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.item-info { min-width: 0; }
.item-category { color: var(--orange); font-size: .71rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.menu-card h3 { font-size: 1.03rem; margin: 6px 0 5px; line-height: 1.25; }
.item-price { color: var(--green); font-weight: 900; }
.item-note { color: var(--muted); font-size: .79rem; }
.add-btn { flex: 0 0 42px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--cream); color: var(--green); font-size: 1.45rem; font-weight: 800; transition: .2s; }
.add-btn:hover { background: var(--green); color: white; transform: rotate(90deg); }
.no-results { grid-column: 1 / -1; text-align: center; padding: 50px; color: var(--muted); }

.delivery-section { background: var(--green-dark); color: white; padding: 90px 0; position: relative; overflow: hidden; }
.delivery-section::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 70px solid rgba(255,255,255,.04); right: -120px; bottom: -180px; }
.delivery-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; position: relative; z-index: 2; }
.delivery-copy h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.delivery-copy > p { color: rgba(255,255,255,.75); }
.delivery-prices { margin: 28px 0; display: grid; gap: 10px; }
.delivery-prices div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 18px; background: rgba(255,255,255,.07); border-radius: 14px; }
.delivery-prices .free { background: var(--orange); }
.small-note { font-size: .85rem; }
.delivery-card { background: white; color: var(--ink); border-radius: 28px; padding: 34px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.delivery-icon { font-size: 3rem; }
.delivery-card h3 { font-size: 1.6rem; margin: 12px 0 8px; }
.delivery-card p { color: var(--muted); line-height: 1.6; }
.delivery-card > a { display: block; color: var(--green); font-weight: 800; margin-top: 14px; }
.btn-whatsapp { width: 100%; background: #25d366; color: white; }
.btn-whatsapp span { background: rgba(0,0,0,.13); min-width: 24px; height: 24px; border-radius: 999px; display: inline-grid; place-items: center; }

footer { background: #183c28; color: white; padding: 32px 0; }
.footer-content { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 24px; }
.footer-content img { width: 130px; filter: brightness(0) invert(1); opacity: .9; }
.footer-content p { margin: 4px 0 0; color: rgba(255,255,255,.65); }
.footer-content > a { color: #ffcc9d; font-weight: 800; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 20; width: 62px; height: 62px; border-radius: 50%; border: 0; background: #25d366; color: white; box-shadow: 0 14px 32px rgba(0,0,0,.25); font-size: 1.8rem; }
.whatsapp-float b { position: absolute; right: -2px; top: -4px; min-width: 23px; height: 23px; border-radius: 50%; background: var(--red); font-size: .72rem; display: grid; place-items: center; }
.cart-panel { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.cart-panel.open { visibility: visible; pointer-events: auto; }
.cart-overlay { position: absolute; inset: 0; background: rgba(20,21,19,.52); opacity: 0; transition: .3s; }
.cart-panel.open .cart-overlay { opacity: 1; }
.cart-drawer { position: absolute; right: 0; top: 0; height: 100%; width: min(430px, 100%); background: var(--cream-2); padding: 26px; transform: translateX(100%); transition: .35s ease; display: flex; flex-direction: column; }
.cart-panel.open .cart-drawer { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #e3d9cb; padding-bottom: 16px; }
.cart-header h3 { margin: 0; font-size: 2rem; font-family: "Playfair Display", serif; }
.cart-close { border: 0; background: white; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; }
.cart-items { flex: 1; overflow: auto; padding: 15px 0; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; background: white; border-radius: 15px; padding: 14px; margin-bottom: 10px; }
.cart-item h4 { margin: 0 0 4px; }
.cart-item small { color: var(--green); font-weight: 800; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-controls button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--cream); }
.cart-empty { color: var(--muted); text-align: center; margin: auto; }
.cart-footer { border-top: 1px solid #e3d9cb; padding-top: 18px; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 14px; }
.cart-total strong { color: var(--green); font-size: 1.2rem; }
.clear-cart { width: 100%; border: 0; background: transparent; margin-top: 12px; color: var(--red); font-weight: 800; }
.reveal { opacity: 0; transform: translateY(24px); transition: .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-content { grid-template-columns: 1fr; padding: 70px 0 120px; text-align: center; gap: 42px; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-logo-card { max-width: 540px; margin-inline: auto; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-layout { grid-template-columns: 1fr; }
  .delivery-card { max-width: 500px; }
}
@media (max-width: 700px) {
  .navbar { height: 72px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; background: white; color: var(--green-dark); border-radius: 18px; padding: 18px; flex-direction: column; box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: .2s; }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .hero-content { padding-top: 38px; }
  .hero h1 { font-size: 2.55rem; }
  .hero-logo-card { padding: 24px; border-radius: 24px; }
  .menu-section { padding-top: 70px; }
  .menu-toolbar { align-items: stretch; flex-direction: column; }
  .category-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .tab { white-space: nowrap; }
  .search-box { min-width: 0; }
  .menu-grid { grid-template-columns: 1fr; }
  .delivery-section { padding: 70px 0; }
  .footer-content { grid-template-columns: 90px 1fr; }
  .footer-content img { width: 90px; }
  .footer-content > a { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   IMÁGENES DE LOS PRODUCTOS
   =========================================================
   Para cambiar el tamaño de las fotos modifica:
   - width y height en .product-image
   - object-fit: cover mantiene la foto bien recortada
   ========================================================= */
.product-image {
  width: 112px;
  height: 92px;
  flex: 0 0 112px;
  object-fit: cover;
  border-radius: 15px;
  background: var(--cream);
  border: 1px solid rgba(47,104,67,.10);
}

.cart-item {
  grid-template-columns: 58px 1fr auto;
  align-items: center;
}

.cart-item-image {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--cream);
}

@media (max-width: 480px) {
  .menu-card {
    display: grid;
    grid-template-columns: 92px 1fr 42px;
    padding: 14px;
  }

  .product-image {
    width: 92px;
    height: 82px;
    flex-basis: 92px;
  }
}
