/* =========================================================
   MIGRANTE CAFÉ — Design tokens
   Paleta: crema cálida + marrones + un acento tinta-pasaporte
   Tipografía: Fraunces (display) / Work Sans (texto) / Space Mono (utilitaria)
   Firma visual: sello de pasajero / boarding pass (juego con "Migrante")
   ========================================================= */

:root{
  --cream:        #F3ECDF;
  --paper:        #FBF7EF;
  --cream-dark:   #E4D8BF;
  --espresso:     #2E2016;
  --coffee:       #6B4A34;
  --coffee-soft:  #8A6A52;
  --clay:         #A85C32;
  --clay-dark:    #8B4826;
  --gold:         #C7A15A;
  --ink:          #35506B;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Space Mono", monospace;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 12px 30px -12px rgba(46, 32, 22, 0.25);
  --shadow-lift: 0 20px 45px -18px rgba(46, 32, 22, 0.35);

  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

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

body{
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  line-height: 1.55;
  -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,h4{ font-family: var(--font-display); color: var(--espresso); margin: 0 0 .4em; font-weight: 500; line-height: 1.12; }

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

/* ---------- Botones ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px; font-family: var(--font-body);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary{ background: var(--clay); color: var(--paper); box-shadow: var(--shadow-soft); }
.btn-primary:hover{ background: var(--clay-dark); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-secondary{ background: var(--espresso); color: var(--paper); }
.btn-secondary:hover{ background: #1c130c; transform: translateY(-2px); }
.btn-ghost{ background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-ghost:hover{ background: var(--espresso); color: var(--paper); }

.eyebrow{
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em;
  font-size: .75rem; color: var(--clay-dark); margin: 0 0 12px;
}
.eyebrow.center{ text-align: center; }
.section-title.center{ text-align: center; }
.section-sub{ color: var(--coffee-soft); max-width: 560px; }
.section-sub.center{ margin: 0 auto 40px; text-align: center; }

.menu-banner{
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft);
  margin-bottom: 46px; max-height: 260px;
}
.menu-banner img{ width: 100%; height: 100%; object-fit: cover; max-height: 260px; }

/* ---------- Sello de pasajero (elemento firma) ---------- */
.stamp-badge svg{ width: 100%; height: 100%; fill: none; stroke: currentColor; }
.stamp-badge circle{ stroke-width: 2.2; fill: rgba(251,247,239,.06); }
.stamp-badge text{ font-family: var(--font-mono); fill: currentColor; stroke: none; }
.stamp-badge textPath{ font-size: 8.6px; letter-spacing: .12em; }

/* ---------- HEADER ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(243,236,223,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-dark);
}
.header-inner{
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.logo{ display: flex; align-items: center; margin-right: auto; }
.logo-img{ height: 46px; width: auto; }

.main-nav{ display: flex; gap: 28px; }
.main-nav a{ font-size: .95rem; font-weight: 500; color: var(--coffee); position: relative; padding: 4px 0; }
.main-nav a::after{
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--clay); transition: width .25s ease;
}
.main-nav a:hover{ color: var(--espresso); }
.main-nav a:hover::after{ width: 100%; }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; background: var(--paper); border: 1px solid var(--cream-dark);
  border-radius: 12px; cursor: pointer; padding: 0; box-shadow: 0 4px 12px -4px rgba(46,32,22,.25);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;   /* ← AGREGA ESTA LÍNEA */
  outline: none; 
}
.nav-toggle span{ width: 22px; height: 2px; background: var(--espresso); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open{ background: var(--espresso); border-color: var(--espresso); }
.nav-toggle.open span{ background: var(--paper); }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero{ position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media{ position: absolute; inset: 0; }
.hero-media img{ width: 100%; height: 100%; object-fit: cover; }
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,32,22,.35) 0%, rgba(46,32,22,.35) 40%, rgba(28,19,12,.92) 100%);
}
.hero-content{ position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 0 24px 90px; color: var(--paper); }
.hero-stamp{ position: absolute; top: -220px; right: 24px; width: 128px; height: 128px; color: var(--paper); opacity: .85; animation: spin-slow 32s linear infinite; }
@keyframes spin-slow{ to{ transform: rotate(360deg); } }
.stamp-center{ font-size: 20px; }

.hero .eyebrow{ color: var(--gold); }
.hero h1{ font-size: clamp(2.4rem, 5.6vw, 4.4rem); color: var(--paper); max-width: 12ch; }
.hero-sub{ max-width: 46ch; color: rgba(251,247,239,.85); font-size: 1.05rem; margin-bottom: 30px; }
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-ghost{ color: var(--paper); border-color: rgba(251,247,239,.6); }
.hero .btn-ghost:hover{ background: var(--paper); color: var(--espresso); }

.scroll-cue{ position: absolute; bottom: 24px; left: 50%; translate: -50% 0; z-index: 2; }
.scroll-cue span{
  display: block; width: 22px; height: 34px; border: 2px solid rgba(251,247,239,.7); border-radius: 20px; position: relative;
}
.scroll-cue span::before{
  content: ""; position: absolute; top: 6px; left: 50%; translate: -50% 0; width: 4px; height: 8px;
  background: var(--gold); border-radius: 2px; animation: cue 1.6s ease infinite;
}
@keyframes cue{ 0%{ opacity: 1; top: 6px; } 100%{ opacity: 0; top: 18px; } }

/* ---------- CUPÓN / TICKET ---------- */
.coupon-section{ padding: 90px 0; background: var(--cream); }
.ticket{
  position: relative; display: grid; grid-template-columns: 1fr auto 260px;
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  overflow: hidden; transition: transform .35s ease;
}
.ticket:hover{ transform: rotate(-.6deg); }
.ticket-left{ padding: 52px; position: relative; }
.ticket-stamp{ position: absolute; top: 32px; right: 32px; width: 92px; height: 92px; color: var(--ink); transform: rotate(12deg); }
.ticket-stamp-big{ font-size: 22px; font-weight: 700; }
.ticket-stamp-small{ font-size: 7px; letter-spacing: .08em; }
.ticket-eyebrow{ font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--ink); margin-bottom: 10px; }
.ticket h2{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 8ch; }
.ticket-copy{ max-width: 46ch; color: var(--coffee); margin-bottom: 28px; }
.ticket-btn{ box-shadow: none; }

.ticket-perforation{
  position: relative; width: 2px;
  background-image: repeating-linear-gradient(180deg, var(--cream-dark) 0 10px, transparent 10px 20px);
}
.ticket-perforation::before, .ticket-perforation::after{
  content: ""; position: absolute; left: 50%; translate: -50% 0; width: 28px; height: 28px;
  background: var(--cream); border-radius: 50%;
}
.ticket-perforation::before{ top: -14px; }
.ticket-perforation::after{ bottom: -14px; }

.ticket-right{ background: var(--espresso); color: var(--paper); padding: 40px 30px; display: flex; flex-direction: column; justify-content: center; gap: 16px; font-family: var(--font-mono); }
.ticket-field{ margin: 0; font-size: .82rem; line-height: 1.4; }
.ticket-field span{ display: block; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-size: .68rem; margin-bottom: 2px; }
.ticket-code{ margin-top: 10px; padding-top: 16px; border-top: 1px dashed rgba(251,247,239,.3); font-size: .78rem; letter-spacing: .12em; color: rgba(251,247,239,.7); }

/* ---------- MENÚ ---------- */
.menu-section{ padding: 100px 0; background: var(--paper); border-top: 1px solid var(--cream-dark); border-bottom: 1px solid var(--cream-dark); }

.menu-tabs{ display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 50px; }
.menu-tab{
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--cream-dark); background: transparent;
  color: var(--coffee); cursor: pointer; transition: all .25s ease;
}
.menu-tab:hover{ border-color: var(--clay); }
.menu-tab.active{ background: var(--espresso); border-color: var(--espresso); color: var(--paper); }

.menu-panel{ display: none; }
.menu-panel.active{ display: block; animation: fade-up .5s ease; }
@keyframes fade-up{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: translateY(0); } }

.menu-grid{ display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: start; }

.menu-card.featured{
  background: var(--cream); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft);
  position: sticky; top: 110px;
}
.menu-card.featured img{ width: 100%; height: 260px; object-fit: cover; }
.menu-card-body{ padding: 28px; }
.tag-star{ font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); margin: 0 0 10px; }
.menu-card.featured h3{ font-size: 1.5rem; }

.menu-list li{ padding: 18px 0; border-bottom: 1px solid var(--cream-dark); }
.menu-list li:first-child{ padding-top: 0; }
.menu-line{ display: flex; align-items: baseline; gap: 8px; }
.menu-line h3, .menu-line h4{ font-size: 1.15rem; white-space: nowrap; margin: 0; }
.menu-line h4{ font-family: var(--font-display); font-weight: 500; }
.leader{ flex: 1; border-bottom: 2px dotted var(--cream-dark); transform: translateY(-4px); }
.price{ font-family: var(--font-mono); font-weight: 700; color: var(--clay-dark); white-space: nowrap; }
.desc{ margin: 6px 0 0; color: var(--coffee-soft); font-size: .92rem; }
.menu-note{ text-align: center; margin-top: 40px; font-size: .82rem; color: var(--coffee-soft); }

/* ---------- SOBRE NOSOTROS ---------- */
.about-section{ padding: 100px 0; background: var(--cream); }
.about-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 100px; }
.about-text p{ color: var(--coffee); }
.about-text h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.about-photo img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); aspect-ratio: 4/5; object-fit: cover; }

.about-photo-duo{ position: relative; }
.about-photo-small{
  position: absolute; bottom: -34px; left: -34px; width: 54%; aspect-ratio: 4/5;
  border: 6px solid var(--cream); box-shadow: var(--shadow-lift);
}

/* ---- Tarjeta: espacio para reuniones ---- */
.meeting-card{
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; gap: 0;
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-soft); margin-bottom: 70px;
}
.meeting-photo{ height: 100%; min-height: 280px; }
.meeting-photo img{ width: 100%; height: 100%; object-fit: cover; }
.meeting-copy{ padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.meeting-copy h3{ font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 14ch; }
.meeting-copy p:not(.eyebrow){ color: var(--coffee); max-width: 42ch; margin-bottom: 22px; }
.meeting-copy .btn{ align-self: flex-start; }

.gallery{
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 16px;
}
.g-item{ margin: 0; border-radius: var(--radius-md); overflow: hidden; position: relative; }
.g-item img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img{ transform: scale(1.06); }
.g-tall{ grid-row: span 2; }
.g-wide{ grid-column: span 2; }

/* ---------- UBICACIÓN ---------- */
.location-section{ padding: 100px 0; background: var(--paper); }
.location-grid{ display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: stretch; margin-top: 40px; }
.map-frame{ position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); min-height: 380px; background: var(--cream-dark); }
.map-frame iframe{ width: 100%; height: 100%; min-height: 380px; border: 0; position: absolute; inset: 0; }
.map-fallback{
  position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  display: flex; align-items: flex-end;
}
.map-fallback img{ width: 100%; height: 100%; object-fit: cover; }
.map-fallback-label{
  position: absolute; bottom: 16px; left: 16px; background: var(--espresso); color: var(--paper);
  padding: 10px 18px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.map-frame iframe[data-failed="true"] ~ .map-fallback{ opacity: 1; pointer-events: auto; z-index: 1; }

.location-info{ display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.location-info h3{ font-size: 1.6rem; }
.location-info p{ color: var(--coffee); margin: 0 0 12px; }
.location-info .btn{ align-self: flex-start; }

/* ---------- FOOTER ---------- */
.site-footer{ background: var(--espresso); color: var(--paper); padding: 80px 0 0; }
.footer-grid{ display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(251,247,239,.12); }
.footer-brand{ display: flex; flex-direction: column; gap: 14px; }
.footer-logo-badge{
  width: 68px; height: 68px; border-radius: 50%; background: var(--paper);
  display: flex; align-items: center; justify-content: center; padding: 12px;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.4);
}
.footer-logo-badge img{ width: 100%; height: 100%; object-fit: contain; }
.footer-tag{ font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: rgba(251,247,239,.75); max-width: 20ch; }
.footer-col h4{ font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--gold); margin-bottom: 14px; }
.footer-col p{ margin: 0 0 14px; color: rgba(251,247,239,.8); font-size: .92rem; }
.footer-col p span{ color: rgba(251,247,239,.55); }
.footer-col a{ font-size: .9rem; color: var(--paper); border-bottom: 1px solid rgba(251,247,239,.3); padding-bottom: 2px; }
.footer-col a:hover{ border-color: var(--gold); }
.social-row{ display: flex; gap: 12px; margin-bottom: 22px; }
.social-icon{
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(251,247,239,.3);
  display: flex; align-items: center; justify-content: center; transition: all .25s ease;
}
.social-icon svg{ width: 18px; height: 18px; fill: var(--paper); }
.social-icon:hover{ background: var(--gold); border-color: var(--gold); }
.social-icon:hover svg{ fill: var(--espresso); }
.footer-cta{ width: 100%; text-align: center; }
.footer-bottom{ text-align: center; padding: 22px 0; font-size: .8rem; color: rgba(251,247,239,.5); }

/* ---------- WHATSAPP FLOTANTE ---------- */
.whatsapp-float{
  position: fixed; bottom: 26px; right: 26px; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); z-index: 200; transition: transform .25s ease;
}
.whatsapp-float svg{ width: 30px; height: 30px; fill: var(--paper); }
.whatsapp-float::before{
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366;
  animation: pulse-wa 2.4s ease-out infinite; z-index: -1;
}
.whatsapp-float:hover{ transform: scale(1.08); }
@keyframes pulse-wa{ 0%{ transform: scale(1); opacity: .55; } 100%{ transform: scale(1.7); opacity: 0; } }

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

/* =========================================================
   RESPONSIVE — Mobile first breakpoints
   ========================================================= */
@media (max-width: 980px){
  .menu-grid{ grid-template-columns: 1fr; }
  .menu-card.featured{ position: static; }
  .about-grid{ grid-template-columns: 1fr; margin-bottom: 60px; }
  .about-photo{ order: -1; }
  .about-photo-small{ width: 52%; bottom: -24px; left: -16px; border-width: 5px; }
  .meeting-card{ grid-template-columns: 1fr; }
  .meeting-photo{ min-height: 220px; }
  .location-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed; inset: 68px 0 0 0; background: var(--cream); flex-direction: column;
    padding: 30px 24px; gap: 6px; transform: translateX(100%); transition: transform .35s ease;
    border-top: 1px solid var(--cream-dark);
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a{ padding: 14px 4px; border-bottom: 1px solid var(--cream-dark); font-size: 1.05rem; }
  .nav-toggle{ display: flex; }
  .nav-cta{ display: none; }

  .hero{ min-height: 100vh; }
  .hero-stamp{ display: none; }
  .hero-content{ padding-bottom: 70px; }

  .ticket{ grid-template-columns: 1fr; }
  .ticket-perforation{ width: auto; height: 2px; background-image: repeating-linear-gradient(90deg, var(--cream-dark) 0 10px, transparent 10px 20px); }
  .ticket-perforation::before, .ticket-perforation::after{ top: 50%; translate: 0 -50%; }
  .ticket-perforation::before{ left: -14px; }
  .ticket-perforation::after{ left: auto; right: -14px; }
  .ticket-left{ padding: 34px 28px; }
  .ticket-stamp{ top: 24px; right: 24px; width: 70px; height: 70px; }

  .gallery{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g-wide{ grid-column: span 2; }
  .meeting-copy{ padding: 30px 26px; }

  .footer-grid{ grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 420px){
  .section-inner{ padding: 0 18px; }
  .btn{ padding: 13px 24px; font-size: .9rem; }
  .about-photo-small{ width: 48%; left: -10px; bottom: -18px; }
}
