:root {
  --bg: #1C1C1C;
  --bg-alt: #101010;
  --bg-red: #450000;
  --bg-footer: #040404;
  --card: #2E2E2E;
  --border: #4A3B33;
  --border-soft: #3B1F16;
  --heading: #FAF7F4;
  --body: #C2A497;
  --body-light: #E2E8F0;
  --gold: #D1A66A;
  --brown: #855F4F;
  --ease-out-strong: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out-strong: cubic-bezier(.65, 0, .35, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { margin: 0; background: var(--bg); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; scrollbar-width: none; -ms-overflow-style: none; }
body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ---------- Page transition ---------- */
#page-content { transition: opacity .32s cubic-bezier(.4,0,.2,1), transform .32s cubic-bezier(.4,0,.2,1); }
#page-content.page-fading { opacity: 0; transform: translateY(10px); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(.97); transition: opacity .95s var(--ease-out-strong), transform .95s var(--ease-out-strong); }
.reveal.in-view { opacity: 1; transform: translateY(0) scale(1); }

/* Card-grid cascade: individual cards stagger in on top of their section's reveal */
.reveal-card { opacity: 0; transform: translateY(30px) scale(.93); transition: opacity .75s var(--ease-out-strong), transform .75s var(--ease-out-strong); transition-delay: var(--reveal-delay, 0ms); }
.reveal-card.in-view { opacity: 1; transform: translateY(0) scale(1); }

/* Directional two-column reveal: left child slides from the left, right child from the right */
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity 1s var(--ease-out-strong), transform 1s var(--ease-out-strong); }
.reveal-left.in-view { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity 1s var(--ease-out-strong), transform 1s var(--ease-out-strong); }
.reveal-right.in-view { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-card, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  #page-content { transition: none; }
}

/* ---------- Hero entrance choreography ---------- */
@keyframes heroDropIn { 0% { opacity: 0; transform: translateY(-90px) scale(.9); } 60% { opacity: 1; } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes heroSlideLeft { from { opacity: 0; transform: translateX(-110px); } to { opacity: 1; transform: translateX(0); } }
@keyframes heroSlideRight { from { opacity: 0; transform: translateX(110px); } to { opacity: 1; transform: translateX(0); } }
@keyframes heroRiseIn { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: translateY(0); } }

.hero-anim-logo { animation: heroDropIn 1.1s cubic-bezier(.22,1.1,.36,1) .1s both; }
.hero-anim-eyebrow { animation: heroSlideRight 1s cubic-bezier(.16,.8,.24,1) .35s both; }
.hero-anim-title { animation: heroSlideLeft 1.05s cubic-bezier(.16,.8,.24,1) .55s both; }
.hero-anim-text { animation: heroSlideRight 1s cubic-bezier(.16,.8,.24,1) .8s both; }
.hero-anim-buttons { animation: heroRiseIn 1s cubic-bezier(.22,1,.36,1) 1.05s both; }

@media (prefers-reduced-motion: reduce) {
  .hero-anim-logo, .hero-anim-eyebrow, .hero-anim-title, .hero-anim-text, .hero-anim-buttons {
    animation: none; opacity: 1; transform: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(69, 0, 0, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, backdrop-filter .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(69, 0, 0, 0.88);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(209, 166, 106, 0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
a { color: var(--body); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--heading)}
img { max-width: 100%; }
::selection { background: var(--brown); color: var(--heading); }
button { font: inherit; }

/* ---------- Icon links (utility bar + footer social) ---------- */
.icon-link { transition: transform .3s cubic-bezier(.34,1.56,.64,1), filter .25s ease, opacity .25s ease; }
.icon-link:hover { transform: translateY(-3px) scale(1.12); filter: drop-shadow(0 4px 10px rgba(209,166,106,0.45)); opacity: .95; }

/* ---------- Utility bar phone / address hover ---------- */
.util-link { transition: color .25s ease, letter-spacing .25s ease; }
.util-link:hover { color: var(--heading); }

.nav-burger { display: none; transition: opacity .25s ease; }
.nav-burger span { transition: background-color .25s ease, transform .25s ease; }
.nav-burger:hover { opacity: .85; }
.nav-burger:hover span:nth-child(1) { transform: translateX(3px); background: var(--gold); }
.nav-burger:hover span:nth-child(2) { background: var(--gold); }
.nav-burger:hover span:nth-child(3) { transform: translateX(-3px); background: var(--gold); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; overflow-x: hidden; }
.two-col-rev { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; overflow-x: hidden; }
.rec-row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }

.nav-bar { box-sizing: border-box; }
.nav-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.nav-logo { width: 108px; height: 108px; border-radius: 50%; object-fit: contain; background: #FAF7F4; padding: 8px; box-sizing: border-box; border: 2px solid #D1A66A; box-shadow: 0 4px 14px rgba(0,0,0,0.35); flex-shrink: 0; transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, border-color .35s ease; }
.nav-brand-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 30px; color: #FAF7F4; white-space: nowrap; transition: color .3s ease; }
.nav-brand-sub { font-family: 'Playfair Display', sans-serif; font-size: 12px; font-weight: 500; color: var(--gold); white-space: nowrap; letter-spacing: 0.06em; text-align: center; transition: letter-spacing .3s ease; }
.nav-brand:hover .nav-logo { transform: scale(1.06); box-shadow: 0 10px 26px rgba(0,0,0,0.5); border-color: var(--heading); }
.nav-brand:hover .nav-brand-name { color: var(--gold); }
.nav-brand:hover .nav-brand-sub { letter-spacing: 0.1em; }

.hero-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, filter .3s ease; }
.hero-btn:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 14px 28px rgba(0,0,0,0.4); }

.visitanos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.visitanos-map { order: 1; }
.visitanos-info { order: 2; display: flex; flex-direction: column; gap: 22px; }
.visitanos-block { display: flex; flex-direction: column; gap: 6px; }
.visitanos-label { font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #D1A66A; }
.visitanos-value { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 20px; color: #FAF7F4; }
.visitanos-sub { font-family: 'Inter', sans-serif; font-size: 14px; color: #E2E8F0; }

.products-wrap { position: relative; }
.products-dropdown {
  position: absolute; top: 100%; left: 0; padding-top: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.products-wrap:hover .products-dropdown,
.products-wrap:focus-within .products-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-item { cursor: pointer; font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--body); padding: 9px 10px; border-radius: 2px; background: none; border: none; border-left: 2px solid transparent; text-align: left; display: block; width: 100%; transition: background-color .22s ease, color .22s ease, padding-left .22s ease, border-color .22s ease; }
.dropdown-item:hover { background: rgba(209,166,106,0.12); color: var(--heading); padding-left: 15px; border-left-color: var(--gold); }

.nav-link { cursor: pointer; background: none; border: none; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; padding-bottom: 4px; color: var(--body); position: relative; transition: color .25s ease; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform .3s cubic-bezier(.4,0,.2,1); }
.nav-link:hover { color: var(--heading); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--heading); }
.nav-link.active::after { transform: scaleX(1); background: var(--brown); }

#mobile-menu { display: none; position: fixed; inset: 0; z-index: 100; background: var(--bg); flex-direction: column; padding: 24px 28px; overflow-y: auto; }
#mobile-menu.open { display: flex; }

/* ---------- Mobile menu links ---------- */
.mobile-link { transition: color .22s ease, padding-left .22s ease, border-color .22s ease; }
.mobile-link:hover { color: var(--gold) !important; padding-left: 6px; }
.mobile-link-sub { transition: color .22s ease, padding-left .22s ease; }
.mobile-link-sub:hover { color: var(--heading) !important; padding-left: 18px; }
.mobile-products-toggle { transition: color .22s ease; }
.mobile-products-toggle:hover { color: var(--gold); }

/* ---------- CTA buttons (WhatsApp gold pill) ---------- */
.btn-cta { display: inline-flex; align-items: center; justify-content: center; text-align: center; transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, filter .3s ease; }
.btn-cta:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 12px 26px rgba(209,166,106,0.4); }

/* ---------- Arrow links (Ver más, Consultar, etc.) ---------- */
.link-arrow { display: inline-flex; align-items: center; gap: 4px; transition: color .25s ease, gap .25s ease, letter-spacing .25s ease; }
.link-arrow:hover { color: var(--heading); gap: 9px; }

/* ---------- Category / cut / recipe cards ---------- */
.cat-card, .cut-card, .hover-card {
  transition: transform .35s cubic-bezier(.16,.8,.24,1), box-shadow .35s ease, border-color .3s ease;
}
.cat-card:hover, .cut-card:hover, .hover-card:hover,
.cat-card:focus-within, .cut-card:focus-within, .hover-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.4);
  border-color: var(--gold);
}
.cat-card .cat-card-img, .cut-card .cut-card-img { transition: transform .5s ease; overflow: hidden; }
.cat-card:hover .cat-card-img img, .cut-card:hover .cut-card-img { transform: scale(1.06); }
.cat-card img { transition: transform .5s ease; }

/* ---------- Recipe cards (full-bleed photo + reveal-on-hover glass panel) ---------- */
.receta-card-bg { transition: transform .6s cubic-bezier(.16,.8,.24,1); }
.receta-card:hover .receta-card-bg, .receta-card:focus-within .receta-card-bg { transform: scale(1.08); }
.receta-card-mask {
  position: absolute; inset: 0;
  background: rgba(10,9,8,0.5);
  transition: background-color .35s ease;
}
.receta-card:hover .receta-card-mask, .receta-card:focus-within .receta-card-mask { background: rgba(10,9,8,0.72); }
.receta-card-panel {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.receta-card-glass {
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  max-width: 92%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 20px 22px;
  transition: background-color .35s ease, border-color .35s ease, transform .35s cubic-bezier(.16,.8,.24,1);
}
.receta-card:hover .receta-card-glass, .receta-card:focus-within .receta-card-glass {
  background: rgba(255,255,255,0.18);
  border-color: rgba(209,166,106,0.5);
}
.receta-card-desc {
  font-family: 'Inter', sans-serif; font-size: 13.5px; line-height: 1.55; color: #FAF7F4; margin: 0;
  max-height: 0; opacity: 0; transform: translateY(8px); overflow: hidden;
  transition: max-height .5s cubic-bezier(.16,.8,.24,1), opacity .4s ease .05s, transform .4s ease .05s, margin-top .4s ease;
}
.receta-card:hover .receta-card-desc, .receta-card:focus-within .receta-card-desc {
  max-height: 200px; opacity: 1; transform: translateY(0); margin-top: 4px;
}
.receta-card:focus-within { outline: none; }
.receta-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .receta-card-bg, .receta-card-mask, .receta-card-glass, .receta-card-desc { transition: none; }
}

/* ---------- Cut cards (product catalog): bottom caption so the photo stays the hero ---------- */
.cut-card .receta-card-mask { background: rgba(10,9,8,0.06); }
.cut-card:hover .receta-card-mask, .cut-card:focus-within .receta-card-mask { background: rgba(10,9,8,0.28); }
.cut-card .receta-card-panel { align-items: flex-end; padding: 0; }
.cut-card .receta-card-glass {
  width: 100%; max-width: 100%; border-radius: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0) 0%, rgba(10,9,8,0.58) 38%, rgba(10,9,8,0.94) 100%);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: none;
  padding: 64px 20px 20px;
  transition: padding-top .35s cubic-bezier(.16,.8,.24,1);
}
.cut-card:hover .receta-card-glass, .cut-card:focus-within .receta-card-glass {
  background: linear-gradient(180deg, rgba(10,9,8,0) 0%, rgba(10,9,8,0.6) 30%, rgba(10,9,8,0.96) 100%);
  border-color: transparent;
  padding-top: 84px;
}

/* ---------- Footer nav links ---------- */
.footer-link { transition: color .22s ease, padding-left .22s ease; }
.footer-link:hover { color: var(--gold) !important; padding-left: 4px; }

/* ---------- Process timeline ---------- */
.timeline-wrap { position: relative; }
.timeline-rail { position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-rail-fill {
  position: absolute; left: 23px; top: 0; width: 2px; height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--brown));
  transform-origin: top; transform: scaleY(0);
  transition: transform 1.3s cubic-bezier(.16,.8,.24,1);
}
.timeline-wrap.in-view .timeline-rail-fill { transform: scaleY(1); }
.timeline-items { display: flex; flex-direction: column; gap: 36px; position: relative; }
.timeline-item {
  display: flex; gap: 20px; align-items: flex-start;
  opacity: 0; transform: translateY(30px) scale(.98);
  transition: opacity .6s cubic-bezier(.16,.8,.24,1), transform .6s cubic-bezier(.16,.8,.24,1);
}
.timeline-item.in-view { opacity: 1; transform: translateY(0) scale(1); }
.timeline-avatar {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--bg); box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 2;
  color: var(--gold); transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s ease;
}
.timeline-item:hover .timeline-avatar { transform: scale(1.08); border-color: var(--gold); }
.timeline-card {
  flex: 1; min-width: 0; background: rgba(69,0,0,0.82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-soft); border-radius: 6px; padding: 20px 22px;
  transition: transform .3s cubic-bezier(.16,.8,.24,1), box-shadow .3s ease, border-color .3s ease, background-color .3s ease;
}
.timeline-item:hover .timeline-card { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.4); border-color: rgba(209,166,106,0.4); background: rgba(69,0,0,0.92); }
.timeline-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.timeline-title { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 19px; margin: 0; color: var(--heading); }
.timeline-badge { font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); background: rgba(209,166,106,0.12); border: 1px solid rgba(209,166,106,0.3); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.timeline-desc { font-family: 'Inter', sans-serif; font-size: 13.5px; line-height: 1.6; color: var(--body-light); margin: 0 0 14px; }
.timeline-progress { height: 4px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.timeline-progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brown), var(--gold)); width: 0; transition: width 1s cubic-bezier(.16,.8,.24,1); }
.timeline-item.in-view .timeline-progress-fill { width: var(--progress); }
@media (max-width: 620px) {
  .timeline-rail, .timeline-rail-fill { left: 19px; }
  .timeline-avatar { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-item { opacity: 1; transform: none; }
  .timeline-rail-fill { transform: scaleY(1); }
  .timeline-progress-fill { width: var(--progress); }
}

/* ---------- Google reviews carousel (infinite, never stops) ---------- */
.reviews-carousel {
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reviews-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: reviews-scroll 34s linear infinite;
}
.review-card { flex: 0 0 320px; }
@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 14px)); }
}

@media (max-width: 940px) {
  .nav-links-desktop { display: none !important; }
  .nav-burger { display: flex !important; }
  
  .util-bar-item-hide { display: none !important; }
  .grid-4 { grid-template-columns: repeat(2,1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2,1fr) !important; }
  .two-col { grid-template-columns: 1fr !important; }
  .two-col-rev { grid-template-columns: 1fr !important; }
  .two-col-rev > *:first-child { order: 2 !important; }
  .rec-row { grid-template-columns: 160px 1fr !important; }
  .nav-bar { position: relative; height: 92px !important; justify-content: flex-end !important; }
  .nav-brand { position: absolute; left: 30%; top: 50%; transform: translate(-50%, -50%); }
  .nav-logo { width: 72px; height: 72px; padding: 5px; }
  .visitanos-grid { grid-template-columns: 1fr !important; }
  .visitanos-map { order: 2 !important; }
  .visitanos-info { order: 1 !important; align-items: center; text-align: center; }
  .carnicero-photo { height: auto !important; }
  .carnicero-photo img { height: auto !important; object-fit: contain !important; }
  .cat-banner { min-height: 320px !important; }
  .cat-banner-inner { min-height: 320px !important; justify-content: center !important; }
  .cat-banner-text { align-items: center !important; text-align: center !important; max-width: 100% !important; }
  .recipe-card { padding: 40px 30px !important; }
}
@media (max-width: 620px) {
  .grid-4 { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .rec-row { grid-template-columns: 1fr !important; }
  .hero-title { font-size: 34px !important; }
  .section-pad { padding-left: 20px !important; padding-right: 20px !important; }
  .valores-grid { grid-template-columns: 1fr !important; }
  .nav-bar { height: 68px !important; padding-left: 16px !important; padding-right: 16px !important; }
  .nav-logo { width: 50px; height: 50px; padding: 4px; }
  .nav-brand-name { font-size: 25px !important; }
  .hero-logo { width: 155px !important; height: 155px !important; }
  .hero-cta-group { flex-direction: column !important; align-items: stretch !important; }
  .hero-btn { width: 100%; }
  .review-card { flex-basis: 260px; }
  .cat-banner { min-height: 260px !important; }
  .cat-banner-inner { min-height: 260px !important; }
  .recipe-card { padding: 32px 20px !important; gap: 32px !important; }
  .recipe-dish-photo { height: 200px !important; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .hero-logo { width: 90px !important; height: 90px !important; margin-bottom: 0 !important; }
}
