/* ══════════════════════════════════════════════
   TACOS DON PEPE — custom effects
   Todo lo que Tailwind no puede hacer bien
   ══════════════════════════════════════════════ */

/* Font smoothing global */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: #FAF4EC;
  color: #2A1810;
}

/* ─────────────────────────────────────────────
   Header scroll behavior
   ───────────────────────────────────────────── */
#site-header {
  background: transparent;
}
#site-header.is-scrolled {
  background: rgba(250, 244, 236, 0.92);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(230, 215, 190, 0.6);
}

.nav-link {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: #D4380D;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover { color: #D4380D; }
.nav-link:hover::after { width: 100%; }

/* Hamburguesa → X */
#menu-toggle.is-open .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menu-toggle.is-open .hamburger-line:nth-child(2) { opacity: 0; }
#menu-toggle.is-open .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   HERO — asimétrico, con textura y carácter
   ───────────────────────────────────────────── */
.hero-section {
  position: relative;
  background: #FAF4EC;
  overflow: hidden;
}
/* Textura de grano sutil — le da calidez */
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(212, 56, 13, 0.06) 0, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(245, 166, 35, 0.08) 0, transparent 40%);
  pointer-events: none;
  z-index: 0;
}
/* Grano adicional tipo papel */
.hero-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.09 0 0 0 0 0.06 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Título hero con capas */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.hero-title em {
  font-style: italic;
  color: #D4380D;
  font-weight: 900;
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: -4%; right: -4%;
  bottom: 4%;
  height: 22%;
  background: rgba(245, 166, 35, 0.4);
  z-index: -1;
  transform: skew(-4deg);
}

.hero-script {
  font-family: 'Caveat', cursive;
  color: #D4380D;
  font-weight: 500;
  transform: rotate(-3deg);
  display: inline-block;
}

/* Placeholder visual del hero — sin imagen real */
.hero-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #D4380D 0%, #8B2500 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(42, 24, 16, 0.35);
}
.hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(245, 166, 35, 0.5) 0, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255, 90, 43, 0.4) 0, transparent 45%);
}
.hero-visual .placeholder-label {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
/* Sello "Desde 2003" sobre el hero */
.hero-stamp {
  position: absolute;
  top: -1rem; right: -1rem;
  width: 7rem; height: 7rem;
  background: #F5A623;
  color: #2A1810;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: 0 10px 30px -5px rgba(245, 166, 35, 0.5);
  z-index: 2;
}
.hero-stamp .year { font-size: 1.75rem; line-height: 1; }
.hero-stamp .label { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 0.25rem; }

@media (max-width: 767px) {
  .hero-stamp { width: 5.5rem; height: 5.5rem; top: -0.5rem; right: -0.5rem; }
  .hero-stamp .year { font-size: 1.25rem; }
  .hero-stamp .label { font-size: 0.5rem; }
}

/* Stats bar del hero */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.hero-stats .stat-num {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: #D4380D;
  font-size: 2.25rem;
  line-height: 1;
}
.hero-stats .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6B5548;
  margin-top: 0.35rem;
}

/* ─────────────────────────────────────────────
   BOTONES
   ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.75rem;
  background: #D4380D;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px -4px rgba(212, 56, 13, 0.4);
}
.btn-primary:hover {
  background: #8B2500;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(212, 56, 13, 0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  color: #2A1810;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 999px;
  border: 1.5px solid #2A1810;
  transition: all 0.2s ease;
}
.btn-ghost:hover { background: #2A1810; color: white; }

/* ─────────────────────────────────────────────
   SECTION HEADINGS
   ───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #D4380D;
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1.5px;
  background: #D4380D;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: #2A1810;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

/* ─────────────────────────────────────────────
   MENÚ — cards de platillos
   ───────────────────────────────────────────── */
.menu-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid #E6D7BE;
  transition: padding 0.2s ease;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { padding-left: 0.5rem; }

.menu-number {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: #D4380D;
  font-size: 1.75rem;
  line-height: 1;
  min-width: 3rem;
  opacity: 0.4;
}
.menu-content { flex: 1; }
.menu-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: #2A1810;
  margin-bottom: 0.25rem;
}
.menu-desc {
  font-size: 0.9375rem;
  color: #6B5548;
  line-height: 1.5;
}
.menu-tag {
  display: inline-block;
  font-family: 'Caveat', cursive;
  font-size: 1.125rem;
  color: #D4380D;
  margin-left: 0.75rem;
  transform: rotate(-2deg);
}

/* ─────────────────────────────────────────────
   GALERÍA — grid asimétrico
   ───────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 120px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #D4380D 0%, #8B2500 100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(245, 166, 35, 0.4) 0, transparent 50%);
}
.gallery-item .g-label {
  position: absolute;
  bottom: 0.75rem; left: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: 'DM Sans', sans-serif;
}

.gallery-item.g-1 { grid-column: span 3; grid-row: span 2; }
.gallery-item.g-2 { grid-column: span 3; grid-row: span 1; background: linear-gradient(135deg, #F5A623 0%, #D68910 100%); }
.gallery-item.g-3 { grid-column: span 2; grid-row: span 1; background: linear-gradient(135deg, #2A1810 0%, #6B5548 100%); }
.gallery-item.g-4 { grid-column: span 1; grid-row: span 1; background: linear-gradient(135deg, #D4380D 0%, #FF5A2B 100%); }
.gallery-item.g-5 { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, #8B2500 0%, #D4380D 100%); }
.gallery-item.g-6 { grid-column: span 4; grid-row: span 1; background: linear-gradient(135deg, #F5A623 0%, #FF5A2B 100%); }

@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 0.75rem; }
  .gallery-item.g-1 { grid-column: span 2; grid-row: span 2; }
  .gallery-item.g-2 { grid-column: span 2; grid-row: span 1; }
  .gallery-item.g-3 { grid-column: span 1; grid-row: span 1; }
  .gallery-item.g-4 { grid-column: span 1; grid-row: span 1; }
  .gallery-item.g-5 { grid-column: span 2; grid-row: span 1; }
  .gallery-item.g-6 { grid-column: span 2; grid-row: span 1; }
}

/* ─────────────────────────────────────────────
   TESTIMONIOS
   ───────────────────────────────────────────── */
.review-card {
  background: white;
  border: 1px solid #E6D7BE;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(42, 24, 16, 0.12);
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 0.5rem; left: 1.25rem;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: #F5A623;
  line-height: 1;
  opacity: 0.4;
}
.review-stars {
  color: #F5A623;
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.review-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.125rem;
  color: #2A1810;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.review-author {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: #2A1810;
  font-size: 0.9375rem;
}
.review-meta {
  font-size: 0.8125rem;
  color: #6B5548;
  margin-top: 0.125rem;
}

/* ─────────────────────────────────────────────
   MAPA / UBICACIÓN
   ───────────────────────────────────────────── */
.map-placeholder {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(42, 24, 16, 0.08) 0%, rgba(107, 85, 72, 0.12) 100%),
    repeating-linear-gradient(0deg, #E6D7BE 0, #E6D7BE 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, #E6D7BE 0, #E6D7BE 1px, transparent 1px, transparent 40px),
    #F1E6D2;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  width: 48px; height: 48px;
  background: #D4380D;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 8px 20px rgba(212, 56, 13, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-pin::after {
  content: '';
  width: 14px; height: 14px;
  background: white;
  border-radius: 50%;
  transform: rotate(45deg);
}

/* ─────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid #E6D7BE;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #2A1810;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-question:hover { color: #D4380D; }
.faq-icon {
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: 1.5px solid #2A1810;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.faq-item.is-open .faq-icon {
  background: #D4380D;
  border-color: #D4380D;
  color: white;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.is-open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: #6B5548;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   REVEAL ON SCROLL
   ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ─────────────────────────────────────────────
   WHATSAPP PING
   ───────────────────────────────────────────── */
@keyframes pingSlow {
  0% { transform: scale(1); opacity: 0.6; }
  75%, 100% { transform: scale(1.8); opacity: 0; }
}
.animate-ping-slow { animation: pingSlow 2.2s cubic-bezier(0, 0, 0.2, 1) infinite; }

/* ─────────────────────────────────────────────
   CTA FINAL — banda coral
   ───────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #D4380D 0%, #8B2500 100%);
  color: white;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 166, 35, 0.3) 0, transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(255, 90, 43, 0.25) 0, transparent 50%);
  pointer-events: none;
}
