/* =========================================================
   Estudio Jurídico — Rediseño premium
   Monocromático + acento dorado sutil · tipografía editorial
   ========================================================= */

/* ===== Variables ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f3;
  --ink: #141414;
  --ink-soft: #35342f;
  --muted: #6f6d67;
  --line: #e6e3dd;
  --line-strong: #d7d3cb;
  --carbon: #141414;
  --carbon-2: #1b1b19;
  --gold: #a8874e;
  --gold-soft: #bfa16a;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 4px;
  --shadow-sm: 0 10px 30px rgba(20, 20, 20, 0.06);
  --shadow: 0 30px 70px rgba(20, 20, 20, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text, .display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.container { width: min(var(--maxw), 90%); margin: 0 auto; }

a { color: inherit; text-decoration: none; }
svg { display: block; }
img { display: block; max-width: 100%; }

em { font-style: italic; color: var(--gold); }

/* ===== Eyebrow ===== */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.eyebrow-light { color: rgba(255, 255, 255, 0.72); }
.eyebrow-light::before { background: var(--gold-soft); }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.07s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.14s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.21s; }
.testimonials .reveal:nth-child(2) { transition-delay: 0.1s; }
.testimonials .reveal:nth-child(3) { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Buttons ===== */
.btn {
  --bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  background: none;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:active { transform: translateY(1px); }

/* Primario sólido oscuro (sobre fondos claros) */
.btn-gold {
  background: var(--ink);
  color: #fff;
  --bd: var(--ink);
}
.btn-gold:hover { background: #2c2b28; --bd: #2c2b28; }

.btn-dark { background: var(--ink); color: #fff; --bd: var(--ink); }
.btn-dark:hover { background: #2c2b28; --bd: #2c2b28; }

/* Contorno oscuro (sobre fondos claros) */
.btn-ghost { color: var(--ink); --bd: var(--line-strong); }
.btn-ghost:hover { --bd: var(--ink); }

/* Sólido claro (sobre fondos oscuros / hero) */
.btn-light { background: #fff; color: var(--ink); --bd: #fff; }
.btn-light:hover { background: #efece5; --bd: #efece5; }

/* Contorno claro (sobre fondos oscuros / hero) */
.btn-outline-light { color: #fff; --bd: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { --bd: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-lg { padding: 1.1rem 2.1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
}

.logo { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; transition: color 0.4s var(--ease); }
.site-header.scrolled .logo { color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--gold);
}
.logo-mark svg { width: 26px; height: 26px; }
.logo-text { font-size: 1.4rem; letter-spacing: 0.01em; }
.logo-text em { color: var(--gold); font-style: italic; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.site-header.scrolled .nav a { color: var(--ink-soft); }
.nav-cta {
  padding: 0.62rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  color: #fff !important;
}
.nav-cta:hover { background: #fff; color: var(--ink) !important; border-color: #fff; }
.site-header.scrolled .nav-cta {
  background: var(--ink);
  color: #fff !important;
  border-color: var(--ink);
}
.site-header.scrolled .nav-cta:hover { background: #2c2b28; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0; cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease), background 0.4s var(--ease);
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.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: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  padding: 120px 0 0;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(15, 15, 15, 0.86) 0%, rgba(15, 15, 15, 0.55) 45%, rgba(15, 15, 15, 0.3) 100%),
    linear-gradient(to top, rgba(15, 15, 15, 0.75), rgba(15, 15, 15, 0.15));
}
.hero-inner { flex: 1; display: flex; align-items: center; padding: 40px 0; }
.hero-copy { max-width: 720px; }
.hero-copy h1 {
  color: #fff;
  font-size: clamp(2.9rem, 6.4vw, 5.2rem);
  margin: 1.5rem 0 1.4rem;
  font-weight: 500;
}
.hero-copy h1 em { color: var(--gold-soft); }
.hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.hero-stats-bar {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 10, 0.28);
  backdrop-filter: blur(4px);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-stats > div {
  padding: 1.9rem 0;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-stats > div:first-child { border-left: 0; }
.hero-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 500;
  color: #fff;
  line-height: 1;
}
.hero-stats span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
  display: block;
}

/* ===== Trust bar ===== */
.trust-bar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding: 1.15rem 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.trust-inner .dot { color: var(--gold); }

/* ===== Sections ===== */
.section { padding: 8rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--carbon); color: #fff; }

.section-head { max-width: 640px; margin-bottom: 3.8rem; }
.section-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin: 1.1rem 0 1rem;
  font-weight: 500;
}
.section-sub { color: var(--muted); font-size: 1.08rem; font-weight: 300; }

/* ===== Servicios (grilla editorial) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.service-card {
  position: relative;
  padding: 2.6rem 2.2rem 2.8rem;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg);
  transition: background 0.4s var(--ease);
  overflow: hidden;
}
.section-alt .service-card { background: var(--bg-alt); }
.service-card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}
.service-card:hover { background: var(--bg); }
.section-alt .service-card:hover { background: #fff; }
.service-card:hover::after { width: 100%; }
.service-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.service-icon {
  width: 46px; height: 46px;
  margin: 1.3rem 0 1.4rem;
  color: var(--ink);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.55rem; margin-bottom: 0.7rem; font-weight: 600; }
.service-card p { color: var(--muted); font-size: 0.97rem; }

/* ===== El Estudio ===== */
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4.5rem;
  align-items: center;
}
.about-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
.about-copy h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin: 1.1rem 0 1.3rem;
  font-weight: 500;
}
.about-copy > p { color: var(--muted); font-size: 1.05rem; }
.check-list { list-style: none; margin: 1.8rem 0; display: grid; gap: 0.9rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 14px; height: 1px;
  background: var(--gold);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.2rem 0;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.stat-box strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.stat-box span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 0.5rem;
  display: block;
}

/* ===== Testimonios ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 2.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.section-alt .testimonial { background: #fff; }
.stars { color: var(--gold); letter-spacing: 0.2em; font-size: 0.9rem; }
.testimonial p {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
}
.testimonial footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-top: auto;
}
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ===== Contacto ===== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.contact-copy h2 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin: 1.1rem 0 1.2rem;
  font-weight: 500;
}
.contact-copy > p { color: rgba(255, 255, 255, 0.66); font-size: 1.05rem; font-weight: 300; }
.contact-list { list-style: none; margin: 2rem 0 2.2rem; display: grid; gap: 1.15rem; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.96rem;
}
.contact-list svg { width: 20px; height: 20px; color: var(--gold-soft); flex-shrink: 0; }

.contact-form {
  background: #fff;
  color: var(--ink);
  padding: 2.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 0.6rem 0.1rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field input::placeholder,
.field textarea::placeholder { color: #b6b2aa; }
.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.form-note.show { opacity: 1; transform: none; }

/* ===== Footer ===== */
.site-footer {
  background: var(--carbon-2);
  color: rgba(255, 255, 255, 0.6);
  padding: 3.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logo { color: #fff; font-size: 1.5rem; display: block; margin-bottom: 0.4rem; }
.footer-logo em { color: var(--gold); }
.footer-inner > div p { font-size: 0.9rem; }
.footer-seal {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 52px; height: 52px;
  display: grid; place-items: center;
}
.footer-legal { font-size: 0.8rem; letter-spacing: 0.02em; width: 100%; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* ===== Volver arriba ===== */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 55;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: #fff; }

/* ===== Chat / Asistente ===== */
.chat-fab {
  position: fixed;
  right: 26px; bottom: 84px;
  z-index: 58;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem 0.7rem 1.2rem;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.chat-fab:hover { transform: translateY(-2px); background: #2c2b28; }
.chat-fab-label { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; }
.chat-fab-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; }
.chat-fab-icon svg { width: 19px; height: 19px; }
.chat-fab-dot { position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: #38b26b; border: 2px solid var(--ink); }

.chat-window {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 59;
  width: min(390px, calc(100vw - 40px));
  height: min(600px, calc(100vh - 60px));
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.chat-window.open { opacity: 1; transform: none; pointer-events: auto; }

.chat-header {
  background: var(--ink);
  color: #fff;
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 0.8rem; }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; }
.chat-avatar svg { width: 24px; height: 24px; }
.chat-header-info strong { font-family: var(--sans); font-size: 0.95rem; display: block; }
.chat-status { font-size: 0.74rem; color: rgba(255, 255, 255, 0.6); display: flex; align-items: center; gap: 0.4rem; }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #38b26b; display: inline-block; }
.chat-close { background: none; border: 0; color: rgba(255, 255, 255, 0.7); font-size: 1.1rem; cursor: pointer; padding: 4px; }
.chat-close:hover { color: #fff; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-alt);
}
.msg {
  max-width: 82%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: msgIn 0.35s var(--ease);
}
.msg strong { color: inherit; }
.msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink-soft); }
.msg-user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg-user strong { color: var(--gold-soft); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); padding: 0.8rem 1rem; border-radius: 14px; border-bottom-left-radius: 4px; display: flex; gap: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #b8b4ac; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.chat-quick { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.2rem 0.6rem; background: var(--bg-alt); }
.chat-quick button {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chat-quick button:hover { border-color: var(--gold); color: var(--gold); }

.chat-input { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1rem; border-top: 1px solid var(--line); background: var(--bg); }
.chat-input input { flex: 1; border: 0; background: none; font-family: var(--sans); font-size: 0.92rem; padding: 0.5rem; color: var(--ink); }
.chat-input input:focus { outline: none; }
.chat-input button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: background 0.3s var(--ease); }
.chat-input button:hover { background: var(--gold); color: var(--ink); }
.chat-input button svg { width: 18px; height: 18px; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .about-inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .about-media { aspect-ratio: 16 / 10; max-height: 420px; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.8rem; }
  .testimonials { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; z-index: 62; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    padding: 2.5rem;
    background: var(--ink);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav.open { transform: none; }
  .nav a { color: rgba(255, 255, 255, 0.85) !important; font-size: 1.05rem; }
  .site-header.scrolled .nav a { color: rgba(255, 255, 255, 0.85); }
  .nav-cta { border-color: rgba(255, 255, 255, 0.5); }
  .site-header.scrolled .nav-cta { background: transparent; }
  .section { padding: 5.5rem 0; }
  .hero-stats > div { padding: 1.3rem 0; }
  .hero-stats span { font-size: 0.66rem; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .chat-fab-label { display: none; }
  .contact-form { padding: 1.8rem; }
}
