/* ══════════════════════════════════════════
   DISTRITO 87 — GLOBAL STYLES v2
   ══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;600;700&family=Playfair+Display:ital@1&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --negro:   #0D0A07;
  --carbon:  #1A1510;
  --brasas:  #C0390B;
  --fuego:   #E85D12;
  --naranja: #F5832A;
  --crema:   #F2E8D9;
  --humo:    #3A3128;
  --texto:   #E8DDD0;
}

html { scroll-behavior: smooth; }
body { background: var(--negro); color: var(--texto); font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(13,10,7,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(58,49,40,.35);
  transition: padding .3s, background .3s;
}
nav.scrolled { padding: .75rem 3rem; background: rgba(13,10,7,.98); }
.nav-logo {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem;
  letter-spacing: .12em; color: var(--naranja); text-decoration: none;
  transition: color .2s;
}
.nav-logo:hover { color: var(--fuego); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .76rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--crema); text-decoration: none;
  opacity: .62; transition: opacity .22s, color .22s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1.5px; background: var(--naranja); transition: width .3s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--naranja); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .3rem; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--crema); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(13,10,7,.97); backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Bebas Neue', sans-serif; font-size: 3rem;
  letter-spacing: .1em; color: var(--crema); text-decoration: none; transition: color .2s;
}
.nav-mobile a:hover { color: var(--naranja); }
.nav-mobile-close { position: absolute; top: 1.5rem; right: 2rem; font-size: 2rem; color: var(--crema); cursor: pointer; background: none; border: none; }

/* ── BOTONES ── */
.btn {
  display: inline-block; padding: .85rem 2.2rem; border-radius: 3px;
  font-size: .78rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer; border: none; font-family: 'Inter', sans-serif;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.08);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform .4s;
}
.btn:hover::before { transform: translateX(110%) skewX(-15deg); }
.btn-primary { background: var(--fuego); color: #fff; box-shadow: 0 0 28px rgba(232,93,18,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 48px rgba(232,93,18,.65); background: var(--naranja); }
.btn-ghost { background: transparent; color: var(--crema); border: 1.5px solid rgba(242,232,217,.28); }
.btn-ghost:hover { border-color: var(--naranja); color: var(--naranja); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.4rem; font-size: .72rem; }

/* ── TYPOGRAPHY UTILS ── */
.section-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .3em;
  text-transform: uppercase; color: var(--naranja); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.section-tag::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, var(--naranja), transparent); }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem,6vw,5rem); line-height: 1; color: var(--crema); margin-bottom: 1.5rem; }
.section-title em { color: var(--fuego); font-style: normal; }
.section-body { font-size: 1rem; line-height: 1.82; opacity: .72; margin-bottom: 1.5rem; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(45px); transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── EMBER ── */
.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute; border-radius: 50%;
  animation: float-up linear infinite; opacity: 0;
}
@keyframes float-up {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: .9; }
  50%  { transform: translateY(-55vh) translateX(var(--drift, 0px)) scale(.7); opacity: .6; }
  100% { transform: translateY(-110vh) translateX(calc(var(--drift,0px)*1.5)) scale(.15); opacity: 0; }
}

/* ── PAGE HERO (subpages) ── */
.page-hero {
  position: relative; height: 42vh; min-height: 320px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding-top: 80px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(200,57,11,.55) 0%, transparent 65%),
    var(--negro);
}
.page-hero h1 {
  position: relative; z-index: 2;
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(4rem,10vw,8rem);
  line-height: 1; color: var(--crema); letter-spacing: .04em;
  animation: slide-up .8s cubic-bezier(.16,1,.3,1) both;
}
.page-hero p {
  position: relative; z-index: 2;
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.1rem; color: var(--crema); opacity: .62; margin-top: .75rem;
  animation: fade-in .8s ease .25s both;
}

/* ── RATING BADGE ── */
.rating-badge {
  display: inline-flex; align-items: center; gap: .75rem;
  background: var(--carbon); border: 1px solid var(--humo);
  padding: .8rem 1.5rem; border-radius: 4px;
}
.rating-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--naranja); line-height: 1; }
.rating-stars { color: var(--naranja); font-size: 1rem; }
.rating-count { font-size: .75rem; opacity: .55; }

/* ── RESEÑAS COMUNES ── */
.reviews-track { position: relative; overflow: hidden; }
.reviews-track::before, .reviews-track::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.reviews-track::before { left: 0; background: linear-gradient(to right, var(--negro), transparent); }
.reviews-track::after  { right: 0; background: linear-gradient(to left, var(--negro), transparent); }
.reviews-inner { display: flex; gap: 1.5rem; animation: scroll-left 50s linear infinite; width: max-content; }
.reviews-inner:hover { animation-play-state: paused; }
.review-card {
  background: var(--carbon); border: 1px solid var(--humo);
  border-radius: 8px; padding: 1.8rem; width: 330px; flex-shrink: 0;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.review-card:hover { border-color: var(--brasas); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(192,57,11,.18); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.review-stars { color: var(--naranja); font-size: 1rem; letter-spacing: .04em; }
.review-time { font-size: .68rem; opacity: .4; }
.review-text { font-size: .88rem; line-height: 1.75; opacity: .72; font-style: italic; }
.review-author { margin-top: 1rem; font-size: .76rem; font-weight: 700; color: var(--naranja); }

/* ── FOOTER ── */
footer { background: var(--negro); border-top: 1px solid var(--humo); padding: 4rem 3rem 2.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; max-width: 1200px; margin: 0 auto 3rem; }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; color: var(--naranja); letter-spacing: .1em; line-height: 1; margin-bottom: .5rem; }
.footer-tagline { font-family: 'Playfair Display', serif; font-style: italic; opacity: .45; font-size: .9rem; }
.footer-brand p { margin-top: 1rem; font-size: .85rem; opacity: .5; line-height: 1.7; }
.footer-col h4 { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: .12em; color: var(--crema); margin-bottom: 1rem; border-bottom: 1px solid var(--humo); padding-bottom: .5rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a { color: var(--texto); text-decoration: none; font-size: .85rem; opacity: .55; transition: opacity .2s, color .2s; }
.footer-col ul li a:hover { opacity: 1; color: var(--naranja); }
.footer-col p { font-size: .85rem; opacity: .55; line-height: 1.8; }
.footer-col a { color: var(--naranja); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--humo); padding-top: 1.5rem; text-align: center; font-size: .75rem; opacity: .3; max-width: 1200px; margin: 0 auto; }

/* ── KEYFRAMES ── */
@keyframes fade-in  { from { opacity:0; } to { opacity:1; } }
@keyframes slide-up { from { opacity:0; transform:translateY(35px); } to { opacity:1; transform:translateY(0); } }
@keyframes scroll-left { from { transform:translateX(0); } to { transform:translateX(-50%); } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  footer { padding: 3rem 1.5rem 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
