/* ==========================================================================
   Corte & Brasa — stylesheet
   ========================================================================== */

:root{
  /* Colors */
  --bg:        #14100d;
  --bg-alt:    #1a1512;
  --surface:   #221b16;
  --surface-2: #2a221b;
  --text:      #f4ede2;
  --text-muted: #b9ab97;
  --text-dim:  #8b7f70;
  --ember:     #c1481f;
  --ember-light: #e2703c;
  --gold:      #c9a227;
  --line:      rgba(244,237,226,0.12);
  --line-strong: rgba(244,237,226,0.22);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 3px;
  --ease: cubic-bezier(.22,.68,0,1);
  --ease-out-quick: cubic-bezier(.16,1,.3,1);
}

/* ---- Reset ---- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html{ scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,p{ margin: 0; }
button{ font: inherit; color: inherit; background: none; border: 0; }
svg{ width: 1em; height: 1em; }

/* Keep keyboard navigation visible without changing the visual language. */
:focus-visible{
  outline: 2px solid var(--ember-light);
  outline-offset: 4px;
}

/* Anchor targets should not disappear behind the fixed header. */
:target{ scroll-margin-top: 5.5rem; }

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--ember); color: #fff;
  padding: .75rem 1.25rem; z-index: 999;
}
.skip-link:focus{ left: 1rem; top: 1rem; border-radius: var(--radius); }

/* ---- Reveal animation ---- */
[data-animate]{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-animate="fade-right"]{ transform: translateX(-26px); }
[data-animate="fade-scale"]{ transform: translateY(16px) scale(.96); }
[data-animate].is-visible{
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce){
  [data-animate]{ opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85rem 1.6rem;
  min-height: 48px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  border-radius: var(--radius);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease-out-quick), background-color .25s var(--ease-out-quick), border-color .25s var(--ease-out-quick), color .25s var(--ease-out-quick);
}
.btn svg{ font-size: 1.15em; flex-shrink: 0; transition: transform .3s var(--ease-out-quick); }
.btn:active{ transform: scale(.96); transition-duration: .15s; }
.btn-primary{
  background: var(--ember);
  color: #fff9f2;
}
.btn-primary:hover{ background: var(--ember-light); transform: translateY(-2px); }
.btn-primary:hover svg{ transform: translateX(2px); }
.btn-primary:active{ transform: scale(.96); }

.btn-ghost{
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover{ border-color: var(--text); background: rgba(244,237,226,.06); transform: translateY(-2px); }
.btn-ghost:hover svg{ transform: translateX(2px); }
.btn-ghost:active{ transform: scale(.96); }

.btn-whatsapp{
  background: #2b3a2f;
  color: #eafbee;
  border: 1.5px solid rgba(120,200,140,.35);
}
.btn-whatsapp:hover{ background: #33472f; transform: translateY(-2px); }
.btn-whatsapp:active{ transform: scale(.96); }

.btn-small{ padding: .6rem 1.1rem; font-size: .82rem; min-height: 42px; }
.btn-large{ padding: 1rem 1.9rem; font-size: 1rem; width: 100%; }

@media (min-width: 560px){
  .btn-large{ width: auto; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: .75rem 0;
  background: rgba(20,16,13,.92);
  border-bottom: 1px solid rgba(244,237,226,.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background-color .18s var(--ease-out-quick);
}
.site-header.is-scrolled{
  background: rgba(20,16,13,.97);
}
.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand{ display: flex; align-items: center; }
.brand-logo{
  height: 50px;
  width: auto;
}

.header-actions{ display: flex; align-items: center; gap: .75rem; }
.header-actions .btn-primary span{ display: none; }
@media (min-width: 480px){
  .header-actions .btn-primary span{ display: inline; }
}

.menu-toggle{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 102;
}
.menu-toggle span{
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.main-nav ul{ display: flex; gap: clamp(1.4rem, 3vw, 2.4rem); }
.main-nav a{
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .015em;
  position: relative;
  padding: .3rem 0;
}
.main-nav a::after{
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--ember-light);
  transition: right .35s var(--ease-out-quick);
}
.main-nav a:hover::after{ right: 0; }

@media (max-width: 860px){
  .main-nav{
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(16,12,10,.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 101;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .main-nav.is-open{ opacity: 1; visibility: visible; }
  .main-nav ul{
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .main-nav a{ font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; }
}
@media (min-width: 861px){
  .menu-toggle{ display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media{ position: absolute; inset: 0; z-index: 0; will-change: transform; animation: heroMediaIn 1.8s var(--ease-out-quick) forwards; }
.hero-media img{
  width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
  will-change: transform;
  transition: transform .2s var(--ease-out-quick);
}
@keyframes heroMediaIn{
  from{ transform: scale(1.12); }
  to{ transform: scale(1); }
}
@keyframes heroReveal{
  from{ opacity: 0; transform: translateY(26px); }
  to{ opacity: 1; transform: translateY(0); }
}
.rating-badge, .hero-title, .hero-tagline, .hero-schedule, .hero-ctas{
  opacity: 0;
  animation: heroReveal .9s var(--ease) forwards;
}
.rating-badge{ animation-delay: .15s; }
.hero-title{ animation-delay: .3s; }
.hero-tagline{ animation-delay: .5s; }
.hero-schedule{ animation-delay: .65s; }
.hero-ctas{ animation-delay: .8s; }
.hero-overlay{
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(14,11,9,.35) 0%, rgba(14,11,9,.25) 30%, rgba(14,11,9,.65) 78%, rgba(12,9,7,.92) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) clamp(4rem, 10vh, 7rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.rating-badge{
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  background: rgba(20,16,13,.5);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  padding: .5rem .9rem;
  border-radius: 999px;
}
.rating-badge svg{ color: var(--gold); font-size: 1.05em; }
.rating-badge span{ color: var(--text-muted); font-weight: 400; }

.hero-title{
  width: min(91vw, 860px);
  line-height: 1;
}
.hero-wordmark{
  display: block;
  width: 100%;
  height: clamp(3.3rem, 13.5vw, 8rem);
  overflow: hidden;
}
.hero-wordmark img{
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}
.hero-tagline{
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-muted);
  font-weight: 400;
}
.hero-schedule{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .92rem;
  color: var(--text);
  font-weight: 500;
}
.hero-schedule svg{ color: var(--ember-light); }
.hero-ctas{
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: .5rem;
}

@media (max-width: 479px){
  .hero-content{ padding-bottom: max(3rem, env(safe-area-inset-bottom) + 2rem); }
  .hero-ctas{ width: 100%; }
  .hero-ctas .btn{ flex: 1 1 10rem; }
}

.scroll-cue{
  position: absolute;
  z-index: 2;
  bottom: clamp(1.25rem, 3vh, 2rem);
  right: clamp(1.25rem, 4vw, 3rem);
  color: var(--text-muted);
  width: 40px; height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  animation: bob 2.6s ease-in-out infinite;
}
@media (min-width: 640px){ .scroll-cue{ display: flex; } }
@keyframes bob{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce){ .scroll-cue{ animation: none; } }

/* ==========================================================================
   Section heads / eyebrows
   ========================================================================== */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember-light);
  margin-bottom: .9rem;
}
.eyebrow::before{
  content: "";
  width: 22px; height: 1.5px;
  background: var(--ember-light);
}
.section-head{ max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2{ font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: .9rem; }
.lead{ color: var(--text-muted); font-size: 1.05rem; max-width: 46ch; }

section{ position: relative; }

/* ==========================================================================
   About
   ========================================================================== */
.about{ background: var(--bg); padding: clamp(4.5rem, 12vh, 8rem) 0; }
.about-grid{
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.about-media{
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.about-media::after{
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--line);
}
.about-media img{ width: 100%; height: auto; }
.about-copy h2{ font-size: clamp(2rem, 4.6vw, 2.9rem); margin-bottom: 1.1rem; }
.about-copy .lead{ margin-bottom: 2.2rem; color: var(--text-muted); max-width: 52ch; }

.feature-list{ display: flex; flex-direction: column; gap: 1.4rem; }
.feature-list li{
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feature-list svg{
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--ember-light);
  margin-top: .2rem;
}
.feature-list strong{
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .2rem;
}
.feature-list span{ color: var(--text-muted); font-size: .93rem; }

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

/* ==========================================================================
   Parallax divider
   ========================================================================== */
.divider{
  position: relative;
  height: clamp(280px, 48vw, 460px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.divider-media{ position: absolute; inset: -18% 0; z-index: -2; }
.divider-media img{
  width: 100%; height: 100%; object-fit: cover; object-position: center 52%;
  will-change: transform;
}
.divider-overlay{
  position: absolute; inset: 0; z-index: -1;
  background: rgba(15,11,9,.52);
}
.divider-quote{
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 4.4vw, 2.6rem);
  text-align: center;
  color: var(--text);
  padding: 0 1.25rem;
  line-height: 1.3;
}

/* ==========================================================================
   Carta
   ========================================================================== */
.carta{ background: var(--bg-alt); padding: clamp(4.5rem, 12vh, 8rem) 0; }

.menu-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
}
@media (min-width: 720px){
  .menu-grid{ grid-template-columns: repeat(3, 1fr); }
}

.menu-item{
  margin: 0;
  cursor: default;
}
.menu-item-media{
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.menu-item-media::after{
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}
.menu-item-media img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .5s var(--ease-out-quick);
}
.menu-item:hover .menu-item-media img{
  transform: scale(1.07);
  filter: brightness(1.04);
}
.menu-item figcaption{
  margin-top: .85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  color: var(--text);
  transition: color .25s var(--ease-out-quick);
}
.menu-item:hover figcaption{ color: var(--ember-light); }

/* ==========================================================================
   Delivery / Uber Eats
   ========================================================================== */
.delivery{
  background: linear-gradient(135deg, #3a1a0e, #1c1310 70%);
  padding: clamp(3rem, 8vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.delivery-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
}
.delivery-icon{
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(244,237,226,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--ember-light);
}
.delivery-icon svg{ width: 28px; height: 28px; }
.delivery-copy h2{ font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: .5rem; }
.delivery-copy p{ color: var(--text-muted); }

@media (min-width: 780px){
  .delivery-inner{
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Ubicación
   ========================================================================== */
.ubicacion{ background: var(--bg); padding: clamp(4.5rem, 12vh, 8rem) 0; }
.location-grid{
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px){
  .location-grid{ grid-template-columns: 1.5fr 1fr; align-items: stretch; }
}
.location-map{
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dfe6e1;
}

.location-map iframe{ display: block; min-height: 320px; filter: none; }
.location-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.pin-icon{ width: 30px; height: 30px; color: var(--ember-light); margin-bottom: .8rem; }
.location-card h3{ font-size: 1.5rem; margin-bottom: .6rem; }
.location-card p{ color: var(--text-muted); line-height: 1.5; }
.location-card .neighborhood{
  color: var(--gold);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 1.4rem;
}
.location-card .location-nearby{
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
  margin: -.45rem 0 1.4rem;
}
.location-card .location-nearby::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ember-light);
  box-shadow: 0 0 0 4px rgba(226,112,60,.12);
}
.location-card .btn{ align-self: flex-start; margin-top: auto; }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contacto{ background: var(--bg-alt); padding: clamp(4.5rem, 12vh, 8rem) 0; }
.contacto-grid{
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.contacto-copy h2{ font-size: clamp(2rem, 4.6vw, 2.9rem); margin-bottom: 1rem; }
.contacto-copy .lead{ margin-bottom: 1.6rem; }
.contacto-schedule, .contacto-phone{
  display: flex;
  align-items: center;
  gap: .6em;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: .7rem;
}
.contacto-schedule svg, .contacto-phone svg{ color: var(--ember-light); flex-shrink: 0; }
.contacto-phone{ font-family: var(--font-display); font-size: 1.3rem; }

.contacto-actions{
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
@media (min-width: 900px){
  .contacto-grid{ grid-template-columns: 1.1fr .9fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background: #0e0b09;
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 2rem;
}
.footer-inner{
  display: grid;
  gap: 2rem;
  text-align: center;
  justify-items: center;
}
.footer-brand{ display: flex; align-items: center; }
.footer-brand img{ height: 50px; width: auto; }
.footer-nav{ display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; }
.footer-nav a{ font-size: .9rem; color: var(--text-muted); }
.footer-nav a:hover{ color: var(--text); }

.footer-social{ display: flex; gap: .9rem; }
.footer-social a{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all .25s var(--ease);
}
.footer-social a:hover{ color: var(--text); border-color: var(--text-muted); }
.footer-social svg{ width: 18px; height: 18px; }
.footer-social .is-disabled{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  opacity: .45;
  cursor: not-allowed;
}

.footer-legal{ color: var(--text-dim); font-size: .82rem; display: flex; flex-direction: column; gap: .35rem; }

@media (min-width: 780px){
  .footer-inner{
    grid-template-columns: auto 1fr auto auto;
    text-align: left;
    justify-items: start;
    align-items: center;
  }
  .footer-legal{ align-items: flex-end; text-align: right; }
}
