/* =========================================================
   Estudio López Di Lorenzo — Liquidadores de siniestros
   ========================================================= */

:root {
  --navy-950: #070d1c;
  --navy-900: #0b1830;
  --navy-800: #10203f;
  --navy-700: #182a52;
  --navy-600: #223a6b;
  --navy-500: #2f4c86;
  --silver-100: #f5f6fa;
  --silver-200: #e6e9f1;
  --silver-300: #ccd2e2;
  --silver-400: #a8b0c6;
  --ink: #12182a;
  --paper: #f9f8f4;
  --paper-dim: #f1efe8;
  --gold: #b6924f;
  --gold-light: #d9bc85;
  --line: rgba(18, 24, 42, 0.1);
  --line-light: rgba(255, 255, 255, 0.14);

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-soft: 0 20px 50px -25px rgba(7, 13, 28, 0.35);
  --shadow-strong: 0 30px 70px -20px rgba(7, 13, 28, 0.55);
  --header-h: 104px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

[id] { scroll-margin-top: var(--header-h); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: fixed;
  z-index: 200;
  top: -60px;
  left: 16px;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius);
  transition: top 0.25s ease;
}
.skip-link:focus { top: 16px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.view.is-active { flex: 1 0 auto; }
footer { flex-shrink: 0; }

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

h1, h2, h3 {
  font-family: var(--font-serif);
  margin: 0;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; line-height: 1.65; color: #3d4356; }

.section { padding: clamp(64px, 9vw, 128px) clamp(24px, 6vw, 64px); max-width: var(--container); margin: 0 auto; }

.view { width: 100%; opacity: 0; transform: translateY(16px); transition: opacity 0.45s ease, transform 0.45s ease; }
.view[hidden] { display: none !important; }
.view.is-active { opacity: 1; transform: translateY(0); }
.intro-page { display: flex; flex-direction: column; justify-content: center; }
.intro-page .team-intro { max-width: 760px; margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
  white-space: nowrap;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; flex: 0 0 auto; }
.eyebrow.light { color: var(--gold-light); }

.hero-tagline {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold-light);
  font-size: clamp(1.7rem, 3.8vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 6px 0 22px;
  max-width: 700px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.button.primary {
  background: var(--gold);
  color: var(--navy-950);
}
.button.primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(182, 146, 79, 0.55); }
.button.pale {
  background: transparent;
  border-color: var(--line-light);
  color: var(--silver-100);
  margin-top: 22px;
}
.button.pale:hover { background: rgba(255,255,255,0.08); border-color: var(--gold); transform: translateY(-2px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--silver-100);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-light);
  transition: border-color 0.25s ease, color 0.25s ease, gap 0.25s ease;
}
.text-link:hover { color: var(--gold-light); border-color: var(--gold-light); gap: 12px; }
.text-link span { transition: transform 0.25s ease; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(20px, 5vw, 56px);
  background: rgba(11, 24, 48, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  transform: translateZ(0);
  will-change: transform;
}
.site-header.scrolled {
  background: rgba(8, 16, 34, 0.96);
  box-shadow: var(--shadow-soft);
}

.brand { display: flex; align-items: center; gap: 16px; }
.brand-logo { border-radius: 12px; flex: 0 0 auto; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.brand span { display: flex; flex-direction: column; line-height: 1.3; }
.brand b {
  font-family: var(--font-serif);
  color: var(--silver-100);
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
  letter-spacing: 0.02em;
}
.brand small { color: var(--silver-400); font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; }

nav[aria-label="Navegación principal"] { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
nav[aria-label="Navegación principal"] a {
  color: var(--silver-300);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s ease;
}
nav[aria-label="Navegación principal"] a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s ease;
}
nav[aria-label="Navegación principal"] a:hover { color: var(--silver-100); }
nav[aria-label="Navegación principal"] a:hover::after { right: 0; }
nav[aria-label="Navegación principal"] a.active { color: var(--gold-light); }
nav[aria-label="Navegación principal"] a.active::after { right: 0; background: var(--gold-light); }

.header-right { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  flex: 0 0 auto;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px 0 8px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--silver-400);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.lang-option .flag { width: 20px; height: 14px; border-radius: 2px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }
.lang-option:hover { color: var(--silver-100); }
.lang-option.active { background: rgba(255,255,255,0.1); color: var(--silver-100); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--silver-100);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-950);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideFade 32s infinite;
}
.hero-slide-city {
  background:
    linear-gradient(200deg, rgba(9,16,34,0.58) 0%, rgba(7,13,28,0.74) 55%, rgba(5,9,20,0.92) 100%),
    url("https://images.unsplash.com/photo-1768230130990-6b4fe57778ce?q=75&w=1920&auto=format&fit=crop") center/cover no-repeat;
  animation-delay: 0s;
}
.hero-slide-ship {
  background:
    linear-gradient(200deg, rgba(10,15,32,0.6) 0%, rgba(8,14,30,0.76) 55%, rgba(5,9,20,0.92) 100%),
    url("https://images.unsplash.com/photo-1715499000302-3b0114d6564b?q=75&w=1920&auto=format&fit=crop") center/cover no-repeat;
  animation-delay: 8s;
}
.hero-slide-industrial {
  background:
    linear-gradient(200deg, rgba(10,15,32,0.62) 0%, rgba(8,14,30,0.78) 55%, rgba(5,9,20,0.93) 100%),
    url("https://images.unsplash.com/photo-1494412552100-42e4e7a74ec6?q=75&w=1920&auto=format&fit=crop") center/cover no-repeat;
  animation-delay: 16s;
}
.hero-slide-silo {
  background:
    linear-gradient(200deg, rgba(9,16,34,0.58) 0%, rgba(7,13,28,0.75) 55%, rgba(5,9,20,0.93) 100%),
    url("https://images.unsplash.com/photo-1748119814697-4ab8b4a00903?q=75&w=1920&auto=format&fit=crop") center/cover no-repeat;
  animation-delay: 24s;
}
@keyframes slideFade {
  0%, 22% { opacity: 1; }
  25%, 97% { opacity: 0; }
  100% { opacity: 1; }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, black, transparent 75%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 clamp(24px, 6vw, 64px);
}
.hero h1 {
  color: var(--silver-100);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  margin: 8px 0 24px;
}
.hero-copy {
  color: var(--silver-300);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 560px;
  margin: 6px 0 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

/* ---------- Team ---------- */
.team-intro { max-width: 720px; margin-bottom: 8px; }
.team-intro h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.25; margin: 6px 0 20px; }
.team-intro p:last-child { font-size: 1.03rem; max-width: 640px; }

.team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}
.team-header .eyebrow { margin-bottom: 0; }

.country-tabs { display: flex; gap: 10px; }
.country-tab {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #565c70;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.country-tab:hover { border-color: var(--navy-700); color: var(--navy-900); }
.country-tab.active { background: var(--navy-900); border-color: var(--navy-900); color: var(--silver-100); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
}
.team-grid[hidden] { display: none; }
.member-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--gold); }
.member-photo { aspect-ratio: 4 / 5; background: var(--navy-950); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-info { padding: 20px 22px 26px; }
.member-info h3 { font-size: 1.1rem; margin-bottom: 6px; }
.member-role { color: var(--gold); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.member-meta { color: #6b7189; font-size: 0.8rem; margin-top: 6px; }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
.section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.25; }
.section-heading > p { color: #565c70; padding-bottom: 4px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--paper);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
}
.service-card:hover { background: var(--navy-900); transform: translateY(-3px); z-index: 1; box-shadow: var(--shadow-strong); }
.service-card:hover span { color: var(--gold-light); }
.service-card:hover h3, .service-card:hover p, .service-card:hover .icon { color: var(--silver-100); }
.service-card .icon { color: var(--navy-600); width: 30px; height: 30px; transition: color 0.3s ease; }
.service-card .icon svg { width: 100%; height: 100%; }
.service-card span { font-family: var(--font-serif); font-size: 0.85rem; color: var(--silver-400); letter-spacing: 0.05em; transition: color 0.3s ease; }
.service-card h3 { font-size: 1.15rem; transition: color 0.3s ease; }
.service-card p { font-size: 0.92rem; color: #565c70; transition: color 0.3s ease; }
.service-card:hover p { color: var(--silver-300); }

/* ---------- Method ---------- */
.method {
  position: relative;
  overflow: hidden;
  background: linear-gradient(200deg, var(--navy-900) 0%, var(--navy-950) 100%);
  max-width: none;
  margin: 0;
  padding: clamp(64px, 9vw, 128px) clamp(24px, 6vw, 64px);
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(32px, 6vw, 80px);
  align-content: center;
}
.method::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 65% 70% at 85% 15%, black, transparent 72%);
  pointer-events: none;
}
.method-panel, .pillars { position: relative; z-index: 1; }
.method-panel { max-width: 420px; }
.method h2 { color: var(--silver-100); font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 8px 0 18px; line-height: 1.25; }
.method-panel > p { color: var(--silver-300); }

.pillars { display: flex; flex-direction: column; gap: 32px; }
.pillar { display: flex; gap: 22px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.pillar:last-child { border-bottom: none; padding-bottom: 0; }
.pillar > span { font-family: var(--font-serif); font-size: 1.6rem; color: var(--gold); flex: 0 0 auto; opacity: 0.8; }
.pillar h3 { color: var(--silver-100); font-size: 1.2rem; margin-bottom: 10px; }
.pillar > div > p { color: var(--silver-400); font-size: 0.92rem; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 32px; margin-top: 4px; }
.value-item b { display: block; font-family: var(--font-serif); color: var(--gold-light); font-size: 0.95rem; margin-bottom: 5px; }
.value-item p { color: var(--silver-400); font-size: 0.85rem; line-height: 1.55; }

/* ---------- Coverage ---------- */
.coverage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  align-content: center;
}
.coverage h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.25; margin: 8px 0 18px; }
.coverage-copy > p { margin-bottom: 26px; font-size: 1.03rem; }
.country-list { display: flex; flex-wrap: wrap; gap: 10px; }
.country-list span {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--navy-800);
  font-weight: 500;
  background: var(--paper-dim);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.country-list span:hover { border-color: var(--gold); color: var(--navy-950); background: #fff; }

.map-card {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, var(--navy-700) 0%, var(--navy-950) 78%);
  box-shadow: var(--shadow-strong), inset 0 0 50px rgba(0,0,0,0.45);
}
.radar-ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid rgba(217, 188, 133, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.radar-ring.r1 { width: 34%; height: 34%; }
.radar-ring.r2 { width: 62%; height: 62%; }
.radar-ring.r3 { width: 90%; height: 90%; border-color: rgba(217, 188, 133, 0.14); }
.radar-cross { position: absolute; inset: 0; }
.radar-cross::before, .radar-cross::after {
  content: "";
  position: absolute;
  background: rgba(217, 188, 133, 0.14);
}
.radar-cross::before { left: 50%; top: 5%; bottom: 5%; width: 1px; transform: translateX(-50%); }
.radar-cross::after { top: 50%; left: 5%; right: 5%; height: 1px; transform: translateY(-50%); }
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(217, 188, 133, 0.5), rgba(217, 188, 133, 0.1) 15%, transparent 38%, transparent 100%);
  animation: radarSpin 7s linear infinite;
}
@keyframes radarSpin { to { transform: rotate(360deg); } }
.radar-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold-light);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(217, 188, 133, 0.16), 0 0 20px 4px rgba(217, 188, 133, 0.55);
}
.pin { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 3px rgba(217,188,133,0.25); }
.pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(217,188,133,0.5); animation: pulse 2.6s ease-out infinite; }
.p1 { top: 20%; left: 24%; }
.p2 { top: 16%; right: 20%; }
.p2::after { animation-delay: 0.5s; }
.p3 { bottom: 22%; left: 40%; }
.p3::after { animation-delay: 1s; }
.p4 { top: 46%; right: 12%; }
.p4::after { animation-delay: 1.5s; }
.p5 { bottom: 14%; right: 32%; }
.p5::after { animation-delay: 2s; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  max-width: none;
  margin: 0;
  background: radial-gradient(ellipse 70% 60% at 15% 0%, var(--navy-800) 0%, var(--navy-950) 60%);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(64px, 9vw, 128px) clamp(24px, 6vw, 64px);
  align-content: center;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 65% at 90% 85%, black, transparent 72%);
  pointer-events: none;
}
.contact > div { position: relative; z-index: 1; }
.contact h2 { color: var(--silver-100); font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 8px 0 16px; line-height: 1.25; }

.offices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-content: start;
}
.offices article {
  padding: 26px 24px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.045);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.5);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.offices article:hover { border-color: var(--gold); background: rgba(255,255,255,0.08); transform: translateY(-3px); box-shadow: 0 20px 40px -18px rgba(0,0,0,0.6); }
.offices article b { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); color: var(--silver-100); font-size: 1.02rem; margin-bottom: 10px; }
.offices article b svg { width: 15px; height: 15px; color: var(--gold-light); flex: 0 0 auto; }
.offices article p { color: var(--silver-400); font-size: 0.86rem; line-height: 1.6; }
.contact-chips { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 12px 22px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.phone-link svg { width: 18px; height: 18px; color: var(--gold-light); flex: 0 0 auto; }
.phone-link .phone-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.15; }
.phone-link .phone-text b {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}
.phone-link .phone-number {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--silver-100);
}
.phone-link:hover { border-color: var(--gold); background: rgba(255,255,255,0.05); transform: translateY(-2px); }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px clamp(24px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand b { color: var(--silver-100); }
footer p { color: var(--silver-400); font-size: 0.82rem; }
footer > a { color: var(--silver-400); font-size: 0.82rem; transition: color 0.25s ease; }
footer > a:hover { color: var(--gold-light); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: var(--navy-900);
  color: var(--silver-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.25s ease, border-color 0.25s ease;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: var(--navy-950); border-color: var(--gold); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .coverage, .method, .contact { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .offices { grid-template-columns: 1fr 1fr; }
  .map-card { max-width: 340px; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  nav[aria-label="Navegación principal"] {
    position: fixed;
    inset: 0 0 0 auto;
    top: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: rgba(8, 16, 34, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 32px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid rgba(255,255,255,0.08);
  }
  nav[aria-label="Navegación principal"].open { transform: translateX(0); }
  nav[aria-label="Navegación principal"] a { font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .hero { padding-bottom: 40px; }
  .service-grid { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
  .team-header { flex-direction: column; align-items: flex-start; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 18px; }
}
