/* ============================================================
   SAZÓN PERUANA · Cinematic Elegance
   Inspirado en Tierra de Fuego · Oscuro, parallax, script gold
   ============================================================ */

:root {
  --bg:          #131110;   /* fondo casi negro cálido */
  --bg-alt:      #1A1715;   /* alterno sutil */
  --bg-deep:     #0D0B0A;   /* más profundo */
  --cream:       #ECE3D4;   /* texto principal */
  --cream-70:    rgba(236, 227, 212, 0.7);
  --cream-45:    rgba(236, 227, 212, 0.45);
  --gold:        #C8A15A;   /* dorado acento */
  --gold-soft:   #D8BC85;
  --clay:        #B0552F;   /* terracota secundario */
  --line:        rgba(200, 161, 90, 0.22);
  --line-soft:   rgba(236, 227, 212, 0.10);

  --serif:  'Playfair Display', Georgia, serif;
  --serif2: 'Cormorant Garamond', Georgia, serif;
  --script: 'Great Vibes', cursive;
  --sans:   'Jost', 'Helvetica Neue', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Canvas de humo del cursor */
#smokeCanvas {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--cream);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* BOTÓN WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 1001;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: waPulse 2s infinite;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 26px rgba(37, 211, 102, 0.6);
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0); }
}

@media (max-width: 720px) {
  .whatsapp-float { bottom: 20px; right: 20px; width: 54px; height: 54px; font-size: 1.7rem; }
}

/* Acentos tipográficos */
.hero-script,
.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--gold);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  display: inline-block;
}
.kicker {
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold); display: inline-block;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(19, 17, 16, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 24px 40px; }
.brand img { height: 76px; width: auto; transition: transform 0.5s var(--ease); }
.brand:hover img { transform: scale(1.05); }

.nav nav { display: flex; align-items: center; gap: 40px; }
.nav nav a {
  font-family: var(--sans);
  font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); text-decoration: none;
  position: relative; padding: 4px 0;
  transition: color 0.35s var(--ease);
}
.nav nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav nav a:hover { color: var(--gold); }
.nav nav a:hover::after { width: 100%; }
.back-btn { color: var(--gold) !important; display: inline-flex; align-items: center; gap: 8px; }

/* BOTÓN RESERVAR MESA EN NAV */
.nav-reserva-btn {
  background: var(--gold) !important;
  color: var(--bg-deep) !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 14px rgba(200, 161, 90, 0.3) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}
.nav-reserva-btn:hover {
  background: var(--gold-soft) !important;
  color: var(--bg-deep) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(200, 161, 90, 0.5) !important;
}
.nav-reserva-btn::after { display: none !important; }
.nav-reserva-btn i { font-size: 0.8rem; }

.nav-toggle {
  display: none; background: none; border: none;
  color: var(--cream); font-size: 1.5rem; cursor: pointer; line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.peru-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.peru-hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-images { position: absolute; inset: 0; }
.hero-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2.6s ease-in-out;
  transform: scale(1.05);
  animation-fill-mode: both;
}
.hero-image-0 { animation: heroCycle 32s infinite, heroZoom 32s infinite; }
.hero-image-1 { animation: heroCycle 32s infinite 8s, heroZoom 32s infinite 8s; }
.hero-image-2 { animation: heroCycle 32s infinite 16s, heroZoom 32s infinite 16s; }
.hero-image-3 { animation: heroCycle 32s infinite 24s, heroZoom 32s infinite 24s; }
@keyframes heroCycle {
  0%, 20% { opacity: 1; }
  27%, 100% { opacity: 0; }
}
@keyframes heroZoom {
  0% { transform: scale(1.02); }
  25% { transform: scale(1.12); }
  100% { transform: scale(1.12); }
}
.peru-hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(circle at center, rgba(13,11,10,0.35) 0%, rgba(13,11,10,0.75) 100%),
    linear-gradient(to bottom, rgba(13,11,10,0.6) 0%, rgba(13,11,10,0.35) 45%, rgba(13,11,10,0.85) 100%);
}
.peru-hero-content { position: relative; z-index: 3; width: 100%; }
.peru-hero-text { max-width: 820px; margin: 0 auto; padding-top: 90px; }
.hero-script { margin-top: 28px; margin-bottom: 10px; }
.peru-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  line-height: 1.08;
  color: var(--cream);
  letter-spacing: 0.5px;
  margin-bottom: 26px;
}
.peru-hero h1 .highlight { color: var(--gold); font-style: italic; }
.hero-lead {
  font-family: var(--serif2);
  font-size: 1.3rem; font-weight: 300;
  line-height: 1.8; color: var(--cream-70);
  max-width: 600px; margin: 0 auto 40px;
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-bottom: 54px; }
.hero-info {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 40px;
  padding-top: 34px; border-top: 1px solid var(--line-soft);
  max-width: 720px; margin: 0 auto;
}
.hero-review {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 0.76rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-soft); text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.35s var(--ease);
}
.hero-review i { font-size: 0.7rem; }
.hero-review:hover { color: var(--gold); }
.info-item {
  display: flex; align-items: center; gap: 11px;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream-70);
}
.info-item i { color: var(--gold); font-size: 1rem; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  padding: 17px 40px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all 0.45s var(--ease);
}
.btn-peru { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }
.btn-peru:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--cream); border-color: rgba(236,227,212,0.35); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 80px; }
.section-header .kicker { margin-bottom: 16px; }
.section-header h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 3.4rem); line-height: 1.15;
}
.section-header h2 .highlight { font-style: italic; color: var(--gold); }
.section-lead { font-family: var(--serif2); font-size: 1.25rem; color: var(--cream-70); margin-top: 18px; }

/* ============================================================
   EXPERIENCIA
   ============================================================ */
.experiencia { padding: 140px 0; background: var(--bg-alt); }
.exp-content { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.exp-text .kicker { margin-bottom: 16px; }
.exp-text h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.15; margin-bottom: 26px;
}
.exp-text h2 .highlight { font-style: italic; color: var(--gold); }
.exp-text p { color: var(--cream-70); font-weight: 300; margin-bottom: 22px; font-size: 1.05rem; }
.exp-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 44px; border-top: 1px solid var(--line-soft);
}
.exp-feature {
  display: flex; align-items: center; gap: 15px; padding: 22px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem; letter-spacing: 0.04em; color: var(--cream-70);
}
.exp-feature:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.exp-feature:nth-child(odd) { padding-right: 24px; }
.exp-feature i { color: var(--gold); font-size: 1.1rem; width: 22px; text-align: center; }

.exp-image { position: relative; }
.exp-image img { width: 100%; height: 580px; object-fit: cover; }
.exp-image::after {
  content: ''; position: absolute; inset: 18px;
  border: 1px solid rgba(200,161,90,0.5); pointer-events: none;
}

/* ============================================================
   CARTA
   ============================================================ */
.carta-peruana { padding: 140px 0; background: var(--bg); }
.carta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 54px 44px; }
.plato-card { background: transparent; transition: transform 0.6s var(--ease); }
.plato-card:hover { transform: translateY(-8px); }
.plato-image { position: relative; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 24px; }
.plato-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.plato-card:hover .plato-image img { transform: scale(1.07); }
.plato-image::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(13,11,10,0.55) 0%, transparent 45%);
}
.plato-overlay {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  width: 46px; height: 46px; border: 1px solid var(--gold);
  background: rgba(19,17,16,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem;
}
.plato-content { padding: 0 2px; }
.plato-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.plato-header h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; }
.plato-tag {
  flex-shrink: 0; font-family: var(--sans);
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
}
.plato-desc { font-family: var(--serif2); color: var(--cream-70); font-size: 1.08rem; line-height: 1.75; }
.plato-card.featured .plato-header h3 { color: var(--gold); }
.plato-card.featured .plato-overlay { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }

/* ============================================================
   BANDA PARALLAX
   ============================================================ */
.parallax-band {
  position: relative; padding: 160px 0; text-align: center;
  overflow: hidden;
}
.parallax-band::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: url('images/parallax.png');
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: parallaxZoom 20s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes parallaxZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.22); }
}
.parallax-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(13,11,10,0.75), rgba(13,11,10,0.6));
}
.parallax-content { position: relative; z-index: 2; }
.parallax-content .hero-script { margin-bottom: 8px; }
.parallax-content h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.2;
  color: var(--cream); margin-bottom: 36px;
}

/* ============================================================
   HORARIO
   ============================================================ */
.horario { padding: 140px 0; background: var(--bg-alt); }
.horario-content { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.horario-info .kicker { margin-bottom: 16px; }
.horario-info h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.15; margin-bottom: 24px; color: var(--cream);
}
.horario-info h2 .highlight { font-style: italic; color: var(--gold); }
.horario-info > p { color: var(--cream-70); font-weight: 300; margin-bottom: 44px; font-size: 1.05rem; }
.horario-details { margin-bottom: 44px; }
.horario-item {
  display: flex; align-items: center; gap: 20px; padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.horario-item:first-child { border-top: 1px solid var(--line-soft); }
.horario-item i { color: var(--gold); font-size: 1.2rem; width: 26px; text-align: center; }
.horario-item strong {
  display: block; font-family: var(--sans); font-weight: 400;
  font-size: 0.95rem; letter-spacing: 0.06em; color: var(--cream); margin-bottom: 3px;
}
.horario-item span { color: var(--cream-45); font-size: 0.9rem; }
.horario-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.horario-image { position: relative; }
.horario-image img,
.horario-image iframe { width: 100%; height: 540px; object-fit: cover; border: 0; display: block; }
.horario-image iframe { filter: grayscale(0.25) contrast(1.05); }
.horario-image::after {
  content: ''; position: absolute; inset: 18px;
  border: 1px solid rgba(200,161,90,0.5); pointer-events: none; z-index: 2;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-deep); padding: 100px 0 34px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; margin-bottom: 60px; }
.footer-brand img { height: 70px; margin-bottom: 22px; }
.footer-brand h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-bottom: 12px; color: var(--cream); }
.footer-brand p { color: var(--cream-70); font-weight: 300; max-width: 340px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-col h4 {
  font-family: var(--sans); font-weight: 500;
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 16px; color: var(--cream-70); font-size: 0.92rem; }
.footer-col a {
  color: var(--cream-70); text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
  transition: color 0.35s var(--ease); font-size: 0.92rem;
}
.footer-col a:hover { color: var(--gold); }
.copy {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 30px; border-top: 1px solid var(--line-soft);
  font-size: 0.82rem; color: var(--cream-45);
}
.back-link { color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.35s var(--ease); }
.back-link:hover { gap: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .carta-grid { grid-template-columns: repeat(2, 1fr); gap: 46px 36px; }
  .exp-content, .horario-content { gap: 60px; }
}

/* Tablets */
@media (max-width: 900px) {
  .container { padding: 0 32px; }
  .exp-content, .horario-content { grid-template-columns: 1fr; gap: 50px; }
  .exp-image img, .horario-image img,
  .horario-image iframe { height: 420px; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .parallax-band { background-attachment: scroll; padding: 130px 0; }
  .experiencia, .carta-peruana, .horario { padding: 110px 0; }
}

/* Móviles */
@media (max-width: 720px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 16px 24px; }
  .brand img { height: 60px; }
  .nav nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 20px;
    background: rgba(19,17,16,0.98); backdrop-filter: blur(14px);
    padding: 28px 24px; border-bottom: 1px solid var(--line);
  }
  .nav nav.active { display: flex; }
  .nav.menu-open { background: rgba(19,17,16,0.98); border-bottom-color: var(--line); }
  .nav-toggle { display: block; }

  .carta-grid { grid-template-columns: 1fr; gap: 44px; }
  .plato-image { aspect-ratio: 16 / 11; }
  .exp-features { grid-template-columns: 1fr; }
  .exp-feature:nth-child(even) { padding-left: 4px; border-left: none; }
  .exp-feature:nth-child(odd) { padding-right: 4px; }

  .peru-hero-text { padding-top: 160px; }
  .hero-lead { font-size: 1.15rem; }
  .hero-info { gap: 16px 26px; padding-top: 28px; }
  .info-item { font-size: 0.74rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn, .horario-actions .btn { flex: 1 1 auto; justify-content: center; }

  .section-header { margin-bottom: 56px; }
  .section-lead { font-size: 1.1rem; }
  .copy { flex-direction: column; gap: 16px; text-align: center; }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .experiencia, .carta-peruana, .horario { padding: 80px 0; }
  .parallax-band { padding: 100px 0; }

  .peru-hero-text { padding-top: 190px; }
  .peru-hero h1 { font-size: 2.5rem; }
  .hero-script, .parallax-content .hero-script { font-size: 1.9rem; }
  .hero-lead { font-size: 1.05rem; margin-bottom: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .btn { padding: 16px 28px; font-size: 0.72rem; letter-spacing: 0.18em; }

  .exp-image img, .horario-image img,
  .horario-image iframe { height: 340px; }
  .exp-image::after, .horario-image::after { inset: 12px; }

  .plato-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .plato-header h3 { font-size: 1.35rem; }

  .horario-actions { flex-direction: column; }
  .horario-actions .btn { width: 100%; }
  .footer-col { text-align: left; }
}
