/* ============================================================
   DC Sabores del Sur — Modern 2026 stylesheet
   Light & Dark themes via [data-theme] on <html>
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(15px, 1vw + 0.4rem, 17px);
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tokens ---------- */
:root {
  --container: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 4px 14px rgba(0,0,0,.08);
  --shadow-md: 0 14px 36px rgba(0,0,0,.18);
  --shadow-lg: 0 28px 60px rgba(0,0,0,.28);

  --ease: cubic-bezier(.2,.7,.2,1);

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-script: "Caveat", "Brush Script MT", cursive;
}

/* ---------- Dark theme (default) ---------- */
:root, [data-theme="dark"] {
  --bg: #121b16;
  --bg-2: #182219;
  --surface: #1f2d22;
  --surface-2: #263628;
  --surface-3: #2f4233;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);

  --text: #f1ead6;
  --text-strong: #ffffff;
  --muted: #b6ad94;

  --primary: #d44a31;       /* warm red */
  --primary-strong: #e85a3e;
  --primary-soft: rgba(212,74,49,.18);

  --accent: #e3b04a;         /* gold */
  --accent-strong: #f3c061;

  --success: #4caf6a;
  --wsp: #25d366;

  --gradient-hero: radial-gradient(120% 100% at 80% 0%, rgba(227,176,74,.18), transparent 60%),
                   radial-gradient(80% 80% at 0% 100%, rgba(212,74,49,.20), transparent 55%),
                   linear-gradient(180deg, #161f18 0%, #0e1612 100%);
  --gradient-cta: linear-gradient(135deg, #d44a31, #b6321e);
  --grain-opacity: .07;
  --shadow-soft: 0 30px 80px rgba(0,0,0,.45);
}

[data-theme="light"] {
  --bg: #faf5e8;
  --bg-2: #f3ead3;
  --surface: #fffaeb;
  --surface-2: #f7eed5;
  --surface-3: #ecdfb8;
  --border: rgba(40,30,20,.10);
  --border-strong: rgba(40,30,20,.18);

  --text: #2a2117;
  --text-strong: #1a130a;
  --muted: #6e6147;

  --primary: #b53620;
  --primary-strong: #c64431;
  --primary-soft: rgba(181,54,32,.10);

  --accent: #b3852a;
  --accent-strong: #c5982f;

  --gradient-hero: radial-gradient(120% 100% at 80% 0%, rgba(179,133,42,.20), transparent 60%),
                   radial-gradient(80% 80% at 0% 100%, rgba(181,54,32,.16), transparent 55%),
                   linear-gradient(180deg, #fbf3df 0%, #f5ead0 100%);
  --gradient-cta: linear-gradient(135deg, #c64431, #9d2a18);
  --grain-opacity: .04;
  --shadow-soft: 0 30px 80px rgba(60,40,20,.18);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.section {
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative;
}
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 70px);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--text-strong);
  margin-top: 6px;
}
.section__sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow i { font-size: .8em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn i { font-size: 1.05em; }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(212,74,49,.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(212,74,49,.7); }
.btn--ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--primary-soft);
  backdrop-filter: blur(4px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.nav__logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  border: 1.5px solid var(--border-strong);
}
.nav__brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: var(--text-strong);
}
.nav__brand-text strong { color: var(--accent); font-weight: 900; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--muted);
  font-size: .95rem;
  transition: color .25s ease, background .25s ease;
}
.nav__links a:hover { color: var(--text-strong); background: var(--surface-2); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-strong);
  position: relative;
  overflow: hidden;
  transition: background .25s ease, transform .3s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); transform: rotate(15deg); }
.theme-toggle .icon-light, .theme-toggle .icon-dark { position: absolute; transition: opacity .3s ease, transform .3s ease; }
[data-theme="dark"] .theme-toggle .icon-light { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .theme-toggle .icon-dark { opacity: 1; }
[data-theme="light"] .theme-toggle .icon-dark { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="light"] .theme-toggle .icon-light { opacity: 1; color: var(--accent); }

.nav__cta { padding: 10px 18px; }
.nav__cta i { color: #fff; }

.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--text-strong); border-radius: 4px; transition: transform .3s ease, opacity .25s ease; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0 0;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(620px, 86vh, 820px);
  color-scheme: dark;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    /* readability gradient — dark on the left, fading right */
    linear-gradient(100deg,
      rgba(8, 14, 10, .96) 0%,
      rgba(8, 14, 10, .82) 30%,
      rgba(8, 14, 10, .45) 55%,
      rgba(8, 14, 10, .25) 75%,
      rgba(8, 14, 10, .55) 100%),
    url("../img/hero-dc.png");
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
  z-index: -1;
}
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .9 0 0 0 0 .8 0 0 0 0 .6 0 0 0 .8 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; pointer-events: none; }
.hero__glow--a { width: 380px; height: 380px; background: var(--primary); top: -140px; right: -60px; }
.hero__glow--b { width: 360px; height: 360px; background: var(--accent); bottom: -140px; left: -120px; opacity: .25; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-bottom: clamp(80px, 10vw, 140px);
}
.hero__copy { max-width: 620px; position: relative; z-index: 2; }

/* Force a dark, cinematic feel on the hero in BOTH themes — image is intrinsically dark */
.hero .badge {
  background: rgba(212, 74, 49, .25);
  color: #fff;
  border-color: rgba(255, 255, 255, .14);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: .95;
  letter-spacing: -.03em;
  color: #fff;
  margin: 22px 0 18px;
  display: flex;
  flex-direction: column;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}
.hero__title span { color: #fff; }
.hero__title-mark {
  color: var(--primary-strong);
  font-style: italic;
  letter-spacing: -.05em;
}
.hero__tagline {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
  color: #f1ead6;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
.script--accent { color: var(--accent-strong); transform: translateX(28px) rotate(-2deg); }

.hero__lead {
  color: rgba(241, 234, 214, .88);
  font-size: 1.06rem;
  max-width: 520px;
  margin-bottom: 28px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #fff;
}
.hero__phone i {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--accent-strong);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
}
.hero__phone a { color: inherit; }
.hero__phone a:hover { color: var(--accent-strong); }

/* The right-side art is no longer needed — the photo fills that space */
.hero__art { display: none; }

/* Hero strip */
.hero__strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(6px);
}
.hero__strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
  font-weight: 600;
  color: var(--text);
}
.hero__strip-inner i { color: var(--accent); margin-right: 6px; }
.hero__strip-inner .dot { color: var(--muted); }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.product-card--featured {
  border-color: var(--accent);
  box-shadow: 0 10px 36px -10px rgba(227,176,74,.4);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  overflow: hidden;
}
.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.product-card:hover .product-card__img { transform: scale(1.06); }
.product-placeholder {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .04em;
}
.product-placeholder i {
  font-size: clamp(48px, 6vw, 72px);
  color: var(--accent);
  opacity: .85;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.12));
}
.product-card__chip {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
}
.product-card__chip--hot { background: var(--primary); }
.product-card__chip--gold { background: var(--accent); color: #2a2117; }

.product-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.product-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-strong);
}
.product-card__body p {
  color: var(--muted);
  font-size: .92rem;
  flex-grow: 1;
}
.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
}
.product-card__price .price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--primary);
}
.product-card__price .unit {
  color: var(--muted);
  font-size: .9rem;
}
.product-card .btn { align-self: flex-start; margin-top: 6px; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--bg-2); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.6rem;
  margin: 0 auto 16px;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-strong);
  margin-bottom: 6px;
}
.feature p { color: var(--muted); font-size: .9rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 5vw, 70px);
  align-items: center;
}
.about__media { position: relative; }
.about__photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: .85rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.about__photo i {
  font-size: clamp(64px, 8vw, 110px);
  color: var(--accent);
  opacity: .85;
}
.about__photo--has-image { padding: 0; background: #000; }
.about__photo--has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.about__photo--has-image:hover img { transform: scale(1.04); }
.about__sticker {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--bg);
  transform: rotate(-8deg);
}
.about__sticker img { width: 100%; height: 100%; object-fit: cover; }

.about__copy h2 { margin: 8px 0 18px; }
.about__copy p { color: var(--muted); margin-bottom: 14px; }
.about__copy strong { color: var(--text-strong); }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px dashed var(--border-strong);
}
.about__stats div { display: flex; flex-direction: column; gap: 4px; }
.about__stats strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--accent);
  font-weight: 900;
  line-height: 1;
}
.about__stats span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ============================================================
   DESPACHO
   ============================================================ */
.despacho { background: var(--bg-2); position: relative; overflow: hidden; }
.despacho::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(227,176,74,.10), transparent 70%);
  pointer-events: none;
}
.despacho__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ---- Map ---- */
.despacho__map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0f0c;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(227,176,74,.08) inset;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.despacho__map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(227,176,74,.18), transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
}
.despacho__map:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(227,176,74,.18) inset; }
.despacho__map img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.05);
}
.despacho__map-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10,15,12,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(227,176,74,.25);
  color: var(--accent-strong);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  z-index: 2;
}

/* ---- Info column ---- */
.despacho__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.despacho__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.despacho__item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.despacho__pin {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 10px 24px -8px rgba(212,74,49,.55);
}
.despacho__pin--alt {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #2a2117;
  box-shadow: 0 10px 24px -8px rgba(227,176,74,.55);
}
.despacho__pin--ghost {
  background: var(--surface-2);
  color: var(--accent);
  border: 1px dashed var(--accent);
  box-shadow: none;
}
.despacho__item-body { min-width: 0; }
.despacho__item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-strong);
  margin-bottom: 4px;
  line-height: 1.2;
}
.despacho__item p { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.despacho__item--cta {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border-style: dashed;
}
.despacho__item--cta .btn { margin-top: 12px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__panel {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: clamp(32px, 4vw, 60px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.contact__panel::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: var(--primary-soft);
  filter: blur(20px);
  z-index: 0;
}
.contact__copy { position: relative; z-index: 1; }
.contact__copy h2 { margin: 8px 0 8px; }
.contact__copy > p { color: var(--muted); margin-bottom: 22px; }
.contact__list { display: grid; gap: 12px; max-width: 460px; }
.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform .25s var(--ease), border-color .25s ease, background .25s ease;
}
.contact__item:hover { transform: translateX(6px); border-color: var(--accent); background: var(--surface-2); }
.contact__item i {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--accent);
  font-size: 1.2rem;
}
.contact__item:nth-child(1) i { color: var(--wsp); }
.contact__item:nth-child(2) i { background: linear-gradient(135deg,#fdb86b,#d8458b 50%,#7d3edb); color: #fff; }
.contact__item div { display: flex; flex-direction: column; }
.contact__item strong { color: var(--text-strong); font-size: .95rem; }
.contact__item span { color: var(--muted); font-size: .85rem; }

.contact__action {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  justify-content: center;
}
.contact__circle {
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--accent);
}
.contact__circle img { width: 100%; height: 100%; object-fit: cover; }
.contact__note { color: var(--muted); font-size: .85rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  isolation: isolate;
  padding-top: 72px;
  color: #f1ead6;
  overflow: hidden;
  color-scheme: dark;
  background:
    linear-gradient(180deg,
      #0c1410 0%,
      #0a1310 60%,
      #060c09 100%);
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(227,176,74,.45) 30%,
    rgba(212,74,49,.45) 70%,
    transparent 100%);
}
.footer__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  z-index: -1;
  background:
    radial-gradient(50% 70% at 20% 30%, rgba(212,74,49,.14), transparent 70%),
    radial-gradient(45% 60% at 85% 20%, rgba(227,176,74,.12), transparent 70%);
  pointer-events: none;
  filter: blur(10px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  position: relative;
  z-index: 1;
}

/* ---- Brand ---- */
.footer__brand { display: flex; flex-direction: column; gap: 22px; }
.footer__brand-head { display: flex; gap: 14px; align-items: flex-start; }
.footer__brand img {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(227,176,74,.25);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.footer__brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}
.footer__brand p { color: rgba(241,234,214,.62); font-size: .9rem; line-height: 1.55; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(241,234,214,.85);
  font-size: 1rem;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s var(--ease);
}
.footer__social a:hover {
  background: rgba(227,176,74,.14);
  border-color: rgba(227,176,74,.35);
  color: var(--accent-strong);
  transform: translateY(-2px);
}

/* ---- Columns ---- */
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col strong {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-strong);
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__col strong::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent-strong);
  opacity: .55;
}
.footer__col a, .footer__col span {
  color: rgba(241,234,214,.7);
  font-size: .92rem;
  transition: color .2s ease, transform .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__col a:hover { color: #fff; transform: translateX(2px); }
.footer__col a i, .footer__loc i { color: var(--accent); width: 16px; text-align: center; }

/* ---- Pitch ---- */
.footer__pitch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: linear-gradient(150deg, rgba(227,176,74,.08), rgba(212,74,49,.05));
  border: 1px solid rgba(227,176,74,.18);
  border-radius: var(--radius-lg);
  align-self: start;
}
.footer__pitch .script {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--accent-strong);
  line-height: 1.1;
}
.footer__pitch-sub { color: rgba(241,234,214,.68); font-size: .88rem; }

/* ---- Bottom ---- */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(241,234,214,.5);
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.footer__credit a { color: var(--accent-strong); font-weight: 600; transition: color .2s ease; }
.footer__credit a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.fab-wsp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wsp);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.fab-wsp:hover { transform: scale(1.08); box-shadow: 0 20px 40px -10px rgba(37,211,102,.7); }
.fab-wsp__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wsp);
  opacity: .55;
  animation: pulse 2s infinite;
  z-index: -1;
}
.fab-wsp__label {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--surface);
  color: var(--text-strong);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.fab-wsp:hover .fab-wsp__label { opacity: 1; transform: translateY(-50%) translateX(0); }

@keyframes pulse {
  0% { transform: scale(1); opacity: .55; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__bg {
    background-image:
      linear-gradient(180deg,
        rgba(8, 14, 10, .82) 0%,
        rgba(8, 14, 10, .55) 45%,
        rgba(8, 14, 10, .85) 100%),
      url("../img/hero-dc.png");
    background-position: center, center;
  }
  .about__grid { grid-template-columns: 1fr; }
  .about__sticker { right: 10px; bottom: 10px; width: 100px; height: 100px; }
  .contact__panel { grid-template-columns: 1fr; text-align: center; }
  .contact__list { margin-inline: auto; }
  .contact__action { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .despacho__layout { grid-template-columns: 1fr; gap: 28px; }
  .despacho__map { max-width: 560px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .nav__inner { height: 64px; gap: 12px; }
  .nav__logo { width: 40px; height: 40px; }
  .nav__brand { gap: 10px; }
  .nav__brand-text { font-size: .98rem; }
  .nav__actions { gap: 6px; }
  .theme-toggle { width: 40px; height: 40px; }
  .nav__burger { width: 40px; height: 40px; }

  .nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    transform: translateY(calc(-100% - 64px));
    transition: transform .3s var(--ease), visibility .3s linear;
    box-shadow: var(--shadow-md);
    visibility: hidden;
  }
  .nav__links.is-open { transform: translateY(0); visibility: visible; transition: transform .3s var(--ease); }
  .nav__links a { padding: 14px; border-radius: 12px; }
  .nav__burger { display: flex; }
  .nav__cta span { display: none; }
  .nav__cta { padding: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
  .nav__cta i { font-size: 1rem; }

  .hero__title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .script--accent { transform: translateX(14px) rotate(-2deg); }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .fab-wsp { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .fab-wsp__label { display: none; }
}

@media (max-width: 560px) {
  .nav__brand-text { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .about__stats { grid-template-columns: 1fr; gap: 12px; }
  .hero__strip-inner { font-size: .85rem; gap: 10px; }
  .hero__strip-inner .dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
