/* =========================================================
   LO DE CHELO — LOMITOS Y CAFÉ
   Paleta: negro carbón + rojo brasa
   ========================================================= */

:root{
  --black:        #0a0a0a;
  --black-soft:   #161313;
  --black-elev:   #1e1a1a;
  --line:         rgba(200, 32, 47, 0.28);
  --line-soft:    rgba(255, 255, 255, 0.08);

  --red:          #c81f2e;
  --red-dark:     #7c0f1c;
  --red-bright:   #ff3b44;

  --cream:        #f3ece3;
  --cream-dim:    rgba(243, 236, 227, 0.66);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Work Sans', sans-serif;

  --container:    1180px;
  --gap:          clamp(1.5rem, 4vw, 3rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--black);
  color: var(--cream);
  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{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3{ margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }
p{ margin: 0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

:focus-visible{
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.section__head{
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  padding: 0 var(--gap);
  text-align: center;
}
.section__title{
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--cream);
  line-height: 1;
}
.section__title::after{
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: .9rem auto 0;
  background: var(--red);
}
.section__lead{
  margin-top: 1.1rem;
  color: var(--cream-dim);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  will-change: transform;
}
.btn--primary{
  background: var(--red);
  color: var(--cream);
}
.btn--primary:hover{
  background: var(--red-bright);
  transform: translateY(-2px);
}
.btn--ghost{
  border-color: rgba(243,236,227,.35);
  color: var(--cream);
}
.btn--ghost:hover{
  border-color: var(--red-bright);
  color: var(--red-bright);
  transform: translateY(-2px);
}

/* ---------- Reveal on scroll (one subtle pass, not per-card) ---------- */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   NAV
   ========================================================= */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-scrolled{
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--line);
}
.nav__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand{
  display: flex;
  align-items: center;
}
.nav__brand-img{
  height: 42px;
  width: auto;
  display: block;
  transition: transform .3s var(--ease);
}
.nav__brand:hover .nav__brand-img{ transform: scale(1.04); }

.nav__links{
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav__link{
  position: relative;
  font-size: .93rem;
  font-weight: 500;
  color: var(--cream-dim);
  transition: color .3s var(--ease);
  padding: .3rem 0;
}
.nav__link::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--red-bright);
  transition: width .35s var(--ease);
}
.nav__link:hover{ color: var(--cream); }
.nav__link:hover::after{ width: 100%; }

.nav__cta{
  background: var(--red);
  color: var(--cream) !important;
  padding: .6rem 1.3rem;
  font-size: .88rem;
  font-weight: 600;
  border-radius: 2px;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.nav__cta:hover{ background: var(--red-bright); transform: translateY(-1px); }

.nav__burger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  background: none; border: none;
  cursor: pointer;
  padding: 0;
}
.nav__burger span{
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__media{
  position: absolute; inset: 0;
}
.hero__media img{
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Velo liviano: solo lo justo para que el logo y los botones
   se lean bien, sin apagar la foto del producto. */
.hero__scrim{
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 58%, rgba(10,10,10,.62) 0%, rgba(10,10,10,0) 68%),
    linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,0) 68%, rgba(10,10,10,.6) 100%);
}
.hero__content{
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 8rem) var(--gap) clamp(3rem, 8vh, 4rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__kicker{
  color: var(--red-bright);
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: rise .8s var(--ease) .1s forwards;
}
.hero__logo{
  width: min(520px, 82vw);
  height: auto;
  filter:
    drop-shadow(0 0 1px rgb(255, 255, 255))
    drop-shadow(0 0 1px #ffffff)
    drop-shadow(0 0 1px rgb(255, 255, 255))
    drop-shadow(0 75px 10px rgba(0,0,0,.55));
  opacity: 0;
  animation: rise 1.4s var(--ease) .47s forwards;
}
.hero__text{
  margin-top: 1.6rem;
  max-width: 40ch;
  color: var(--cream-dim);
  font-size: 1.08rem;
  opacity: 0;
  animation: rise .9s var(--ease) .45s forwards;
}
.hero__actions{
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  animation: rise .9s var(--ease) .6s forwards;
}
@keyframes rise{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: translateY(0); }
}

.hero__scroll{
  position: absolute;
  right: var(--gap);
  bottom: 2rem;
  z-index: 2;
  width: 30px; height: 46px;
  border: 1px solid rgba(243,236,227,.4);
  border-radius: 20px;
  display: none;
}
.hero__scroll span{
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--red-bright);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ transform: translateY(0); opacity: 1; }
  70%{ transform: translateY(14px); opacity: 0; }
  100%{ transform: translateY(0); opacity: 0; }
}
@media (min-width: 700px){ .hero__scroll{ display: block; } }

/* =========================================================
   MENU (lista, no grilla de tarjetas)
   ========================================================= */
.menu{
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
}
.menu__list{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.menu__item{
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0,260px) 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-bottom: 1px solid var(--line-soft);
}
.menu__item:first-child{ border-top: 1px solid var(--line-soft); }

.menu__num{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--red);
  line-height: 1;
}
.menu__media{
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  will-change: transform;
}
.menu__media img{
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .7s var(--ease), filter .7s var(--ease);
  filter: saturate(.92);
}
.menu__item:hover .menu__media{
  transform: scale(1.12);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  position: relative;
  z-index: 3;
}
.menu__item:hover .menu__media img{
  filter: saturate(1.05);
}
.menu__info h3{
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--cream);
}
.menu__tag{
  color: var(--red-bright);
  font-size: .82rem;
  font-weight: 600;
  margin: .35rem 0 .8rem;
}
.menu__info p:last-child{
  color: var(--cream-dim);
  max-width: 52ch;
}

.menu__item--reverse{
  grid-template-columns: auto 1fr minmax(0,260px);
}
.menu__item--reverse .menu__media{ order: 3; }
.menu__item--reverse .menu__info{ order: 2; }

@media (max-width: 760px){
  .menu__item, .menu__item--reverse{
    grid-template-columns: 1fr;
    grid-template-areas:
      "num"
      "media"
      "info";
    row-gap: 1rem;
  }
  .menu__num{ grid-area: num; }
  .menu__media{ grid-area: media; max-width: 100%; width: 100%; }
  .menu__info{ grid-area: info; }
  .menu__item--reverse .menu__media,
  .menu__item--reverse .menu__info{ order: initial; }
}

/* =========================================================
   PROMO
   ========================================================= */
.promo{
  position: relative;
  background: var(--black-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.promo__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--gap);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.promo__kicker{
  color: var(--red-bright);
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .6rem;
}
.promo__text h2{
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--cream);
  line-height: .95;
}
.promo__text p{
  margin: 1.1rem 0 1.8rem;
  color: var(--cream-dim);
  max-width: 46ch;
}
.promo__media{
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 3px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.promo__media::before{
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--red);
  transform: translate(14px, 14px);
  z-index: -1;
}
.promo__media img{ width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.promo__media:hover{
  transform: scale(1.05);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}

@media (max-width: 760px){
  .promo__inner{ grid-template-columns: 1fr; }
  .promo__media{ order: -1; }
}

/* =========================================================
   DESAYUNOS
   ========================================================= */
.desayunos{ padding: clamp(5rem, 10vw, 8rem) 0; }
.desayunos__row{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}
.desayunos__card img{
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 1rem;
  cursor: zoom-in;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.desayunos__card:hover img{
  transform: scale(1.1);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  position: relative;
  z-index: 3;
}
.desayunos__card h3{
  font-size: 1.3rem;
  color: var(--cream);
}
.desayunos__card p{
  margin-top: .4rem;
  color: var(--cream-dim);
  font-size: .92rem;
}
@media (max-width: 900px){
  .desayunos__row{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .desayunos__row{ grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* =========================================================
   LOCAL / GALERÍA
   ========================================================= */
.local{
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--black-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.local__grid{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 1rem;
}
.local__cell{
  overflow: hidden; border-radius: 3px; grid-column: span 1; grid-row: span 2;
  position: relative;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.local__cell--big{ grid-column: span 2; grid-row: span 3; }
.local__cell--wide{ grid-column: span 2; grid-row: span 2; }
.local__cell img{
  width: 100%; height: 100%; object-fit: cover;
  cursor: zoom-in;
  transition: transform .7s var(--ease), filter .5s var(--ease);
  filter: grayscale(.35);
}
.local__cell:hover{
  transform: scale(1.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  z-index: 3;
}
.local__cell:hover img{ filter: grayscale(0); }

@media (max-width: 760px){
  .local__grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .local__cell--big, .local__cell--wide{ grid-column: span 2; }
}

/* =========================================================
   LIGHTBOX (foto ampliada al hacer click)
   ========================================================= */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: rgba(10,10,10,.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease);
}
.lightbox.is-open{ opacity: 1; visibility: visible; }
.lightbox__img{
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transform: scale(.94);
  transition: transform .3s var(--ease);
}
.lightbox.is-open .lightbox__img{ transform: scale(1); }
.lightbox__close{
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 44px; height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--cream);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover{ background: rgba(255,255,255,.14); }

/* =========================================================
   CONTACTO
   ========================================================= */
.contacto{ padding: clamp(5rem, 10vw, 8rem) 0; }
.contacto__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contacto__info .section__head{ margin: 0 0 2rem; padding: 0; text-align: left; max-width: none; }
.contacto__info .section__title::after{ margin-left: 0; }

.contacto__list{ display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2rem; }
.contacto__list li{ display: flex; flex-direction: column; gap: .25rem; }
.contacto__label{
  font-size: .78rem;
  font-weight: 600;
  color: var(--red-bright);
}
.contacto__list a:hover{ color: var(--red-bright); }

.contacto__social{ display: flex; gap: 1.4rem; }
.contacto__social a{
  font-size: .9rem;
  font-weight: 600;
  color: var(--cream-dim);
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.contacto__social a:hover{ color: var(--red-bright); border-color: var(--red-bright); }

.contacto__map{
  aspect-ratio: 4/3.4;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.contacto__map iframe{
  width: 100%; height: 100%; border: 0;
  filter: grayscale(.5) invert(.92) contrast(.9);
}

@media (max-width: 800px){
  .contacto__inner{ grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  border-top: 1px solid var(--line);
  padding: 3rem var(--gap) 2.2rem;
}
.footer__inner{
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer__brand img{
  height: 36px;
  width: auto;
}
.footer__links{ display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer__links a{
  font-size: .88rem;
  color: var(--cream-dim);
  transition: color .3s var(--ease);
}
.footer__links a:hover{ color: var(--red-bright); }
.footer__copy{
  width: 100%;
  margin-top: 1rem;
  font-size: .78rem;
  color: rgba(243,236,227,.4);
}

/* =========================================================
   WHATSAPP FLOATING BUTTON
   ========================================================= */
.whatsapp-fab{
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.whatsapp-fab:hover{
  background: var(--red-bright);
  transform: translateY(-3px) scale(1.04);
}

/* =========================================================
   MOBILE NAV
   ========================================================= */
@media (max-width: 860px){
  .nav__burger{ display: flex; }
  .nav__links{
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    background: var(--black-elev);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem var(--gap);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
  }
  .nav__links.is-open{ transform: translateX(0); }
  .nav__cta{ margin-top: .5rem; }
}
