/* =========================================================
   ADN ABOGADOS — Sistema de diseño
   ========================================================= */

:root {
  /* Brand */
  --navy-900: #0a1628;
  --navy-800: #0f1d2e;
  --navy-700: #15263d;
  --navy-600: #1e3a5f;
  --blue-500: #2196f3;
  --blue-600: #1976d2;
  --blue-400: #64b5f6;

  /* Neutrals */
  --cream-50: #faf8f4;
  --cream-100: #f5f1ea;
  --ivory: #ffffff;
  --line: rgba(10, 22, 40, 0.08);
  --line-strong: rgba(10, 22, 40, 0.16);

  /* Text */
  --ink: #0a1628;
  --ink-soft: #2c3e50;
  --ink-muted: #5a6478;
  --ink-faint: #8a93a3;

  /* Tokens */
  --accent: var(--blue-500);
  --bg: var(--cream-50);
  --bg-dark: var(--navy-900);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06), 0 1px 3px rgba(10, 22, 40, 0.04);
  --shadow: 0 8px 24px -8px rgba(10, 22, 40, 0.12), 0 2px 6px rgba(10, 22, 40, 0.06);
  --shadow-lg: 0 24px 60px -16px rgba(10, 22, 40, 0.18), 0 8px 20px rgba(10, 22, 40, 0.06);

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --density: 1; /* tweakable */
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;       /* clip > hidden — funciona mejor en iOS */
  max-width: 100vw;
  width: 100%;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* Contenedor general — evita que decoraciones desborden el ancho */
.hero, .cta-final, .strip, section { overflow-x: clip; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 5.5vw, 76px); line-height: 1.02; font-weight: 500; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.08; font-weight: 500; letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; font-weight: 600; }
h4 { font-size: 18px; line-height: 1.4; }
p { margin: 0; }

.serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; }
.italic { font-style: italic; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; transform: translateY(-2px); }

/* =========================================================
   Layout
   ========================================================= */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: calc(120px * var(--density)) 0; position: relative; }

/* =========================================================
   Botones
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  position: relative;
  white-space: nowrap;
}
.btn .arrow { display: inline-block; transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn.primary { background: var(--navy-900); color: var(--ivory); }
.btn.primary:hover { background: var(--accent); }
.btn.primary.on-dark { background: var(--accent); color: var(--ivory); }
.btn.primary.on-dark:hover { background: var(--ivory); color: var(--navy-900); }

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn.secondary:hover { border-color: var(--ink); }
.btn.secondary.on-dark {
  color: var(--ivory);
  border-color: rgba(255,255,255,0.25);
}
.btn.secondary.on-dark:hover { border-color: var(--ivory); background: rgba(255,255,255,0.06); }

.btn.tertiary {
  padding: 10px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font-size: 14px;
}
.btn.tertiary:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================
   Nav
   ========================================================= */
.nav-wrap {
  position: fixed;
  top: 20px;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: 100%;
  max-width: var(--max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 14px 22px;
  background: rgba(250, 248, 244, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(250, 248, 244, 0.92);
  box-shadow: var(--shadow);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav ul a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s ease, background .2s ease;
}
.nav ul a:hover { color: var(--ink); background: rgba(10,22,40,0.04); }
.nav .cta-nav {
  background: var(--navy-900);
  color: var(--ivory);
  padding: 12px 22px;
}
.nav .cta-nav:hover { background: var(--accent); color: var(--ivory); }

.menu-toggle { display: none; }
.menu-toggle .ic-close { display: none; }
.nav.menu-open .menu-toggle .ic-open { display: none; }
.nav.menu-open .menu-toggle .ic-close { display: block; }

/* =========================================================
   Logo
   ========================================================= */
.logo-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 2px;
}
.logo-mark .adn {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.logo-mark .label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.42em;
  font-weight: 400;
  color: var(--ink-soft);
}
.logo-mark.on-dark .adn { color: var(--ivory); }
.logo-mark.on-dark .label { color: rgba(255,255,255,0.7); }

.logo-mark.lg .adn { font-size: 56px; letter-spacing: 0.05em; }
.logo-mark.lg .label { font-size: 12px; letter-spacing: 0.5em; }

/* Logo en imagen (reemplazo del texto) */
.nav-logo .logo-img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}
.footer-brand .footer-logo-img {
  height: 64px;
  width: auto;
  /* Asume logo oscuro → fuerza a blanco en fondo navy del footer */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
@media (max-width: 640px) {
  .nav-logo .logo-img { height: 36px; }
}

/* =========================================================
   Hero (full-bleed background + overlay)
   ========================================================= */
.hero {
  padding-top: 180px;
  padding-bottom: 120px;
  position: relative;
  color: #fff;
  min-height: 92vh;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  filter: grayscale(0.18) contrast(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg,
      rgba(10, 16, 28, 0.92) 0%,
      rgba(10, 16, 28, 0.78) 35%,
      rgba(10, 16, 28, 0.52) 70%,
      rgba(10, 16, 28, 0.35) 100%
    ),
    radial-gradient(ellipse at 80% 50%, rgba(6, 182, 212, 0.18) 0%, transparent 55%);
  pointer-events: none;
}
.hero-container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }

.hero h1 {
  color: #fff;
}
.hero h1 .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: inherit;
  position: relative;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 6px;
  background: var(--accent);
  opacity: 0.55;
  z-index: -1;
}
.hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero .eyebrow .dot { background: var(--accent); }

/* Editorial kicker — reemplaza el eyebrow genérico */
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.hero-kicker .kicker-mark {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
  transform: translateY(-1px);
}
.hero-kicker .kicker-text { font-family: var(--font-sans); }
.hero-kicker .kicker-text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: #fff;
  font-size: 17px;
  letter-spacing: -0.005em;
}
.hero-kicker .kicker-rule {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.4), transparent);
}

.hero-lead {
  margin-top: 28px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
}
.hero-lead b { color: #fff; font-weight: 600; }

.hero-buttons { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn.primary {
  background: var(--accent);
  color: #fff;
}
.hero .btn.primary:hover { background: #fff; color: var(--navy-900); }
.hero .btn.secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}
.hero .btn.secondary:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.hero-meta {
  margin-top: 64px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-meta-item .num {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-meta-item .num sup { font-size: 22px; color: var(--accent); margin-left: 2px; }
.hero-meta-item .lbl {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 10px;
  font-weight: 500;
}

@media (max-width: 760px) {
  .hero { padding-top: 140px; padding-bottom: 80px; min-height: auto; }
  .hero-bg img { object-position: center; }
  .hero-meta { gap: 28px; margin-top: 48px; }
  .hero-meta-item .num { font-size: 34px; }
}

/* =========================================================
   Marquee / strip
   ========================================================= */
.strip {
  padding: 28px 0;
  background: var(--navy-900);
  color: var(--ivory);
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.marquee {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
}
.marquee span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee span::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   Stats
   ========================================================= */
.stats {
  padding: 100px 0;
  background: var(--bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 48px 32px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat .n {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 500;
  color: var(--navy-900);
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat .n .plus, .stat .n .pct { color: var(--accent); margin-left: 2px; font-size: 0.7em; }
.stat .desc {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 220px;
}

/* =========================================================
   Sección title block
   ========================================================= */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  margin-bottom: 72px;
  align-items: end;
}
.section-head .left { padding-top: 8px; }
.section-head h2 .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}
.section-head .right {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 580px;
}

/* =========================================================
   Áreas
   ========================================================= */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.area-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.area-card .visual {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
}
.area-card .visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.area-card:hover .visual img { transform: scale(1.05); }
.area-card .visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0) 40%, rgba(10,22,40,0.55) 100%);
}
.area-card .tag {
  position: absolute;
  top: 20px; left: 20px;
  background: rgba(255,255,255,0.94);
  color: var(--navy-900);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.area-card .body {
  padding: 36px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.area-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
}
.area-card .desc { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.area-card ul.bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.area-card ul.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.area-card ul.bullets li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 9px;
  flex: none;
}
.area-card .foot { margin-top: auto; padding-top: 16px; }

/* =========================================================
   Nosotros
   ========================================================= */
.nosotros { background: var(--cream-100); }
.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.nosotros-visual {
  position: relative;
  aspect-ratio: 5/6;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.nosotros-visual img { width: 100%; height: 100%; object-fit: cover; }
.nosotros-visual .float-card {
  position: absolute;
  bottom: 24px;
  right: -28px;
  background: var(--ivory);
  padding: 22px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
}
.nosotros-visual .float-card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--ivory);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 22px;
  flex: none;
}
.nosotros-visual .float-card .txt { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.nosotros-visual .float-card .txt b { color: var(--ink); display: block; margin-bottom: 2px; }

.nosotros-content h2 { max-width: 540px; }
.nosotros-content .lede {
  margin-top: 28px;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 520px;
}
.values {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
}
.value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}
.value .num {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.value h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.value p { font-size: 14px; color: var(--ink-muted); line-height: 1.55; }

/* =========================================================
   Equipo
   ========================================================= */
.equipo {}
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.member {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ivory);
  border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member .ph {
  aspect-ratio: 4/5;
  background: var(--navy-800);
  position: relative;
  overflow: hidden;
}
.member .ph img { width: 100%; height: 100%; object-fit: cover; }
.member .ph .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.04) 0 8px,
      transparent 8px 16px
    ),
    var(--navy-800);
  color: rgba(255,255,255,0.55);
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.member .info { padding: 24px 26px 28px; }
.member .info h4 { font-family: var(--font-serif); font-size: 22px; font-weight: 500; }
.member .info .role { font-size: 13px; color: var(--ink-muted); margin-top: 4px; letter-spacing: 0.04em; }
.member .info .creds { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }

/* =========================================================
   Proceso (timeline)
   ========================================================= */
.proceso { background: var(--navy-900); color: var(--ivory); }
.proceso .section-head .right { color: rgba(255,255,255,0.7); }
.proceso .section-head .eyebrow { color: rgba(255,255,255,0.65); }
.proceso .section-head .eyebrow .dot { background: var(--accent); }
.proceso h2 { color: var(--ivory); }
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 16px;
  position: relative;
}
.proceso-grid::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 32px; right: 32px;
  height: 1px;
  background: rgba(255,255,255,0.12);
}
.step {
  position: relative;
}
.step .marker {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--accent);
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}
.step:hover .marker { background: var(--accent); color: var(--ivory); border-color: var(--accent); transition: all .3s ease; }
.step h4 { font-size: 18px; margin-bottom: 8px; font-weight: 600; }
.step p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.55; }

/* =========================================================
   Testimonios
   ========================================================= */
.testi { background: var(--bg); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.testi-card .quote {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 0.6;
  color: var(--accent);
  height: 30px;
}
.testi-card .body {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
  font-style: italic;
}
.testi-card .person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.testi-card .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--ivory);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
}
.testi-card .meta .name { font-weight: 600; font-size: 14.5px; }
.testi-card .meta .case { font-size: 12px; color: var(--ink-muted); letter-spacing: 0.04em; }

/* =========================================================
   Contacto
   ========================================================= */
/* =========================================================
   Contacto (WhatsApp-first, sin formulario)
   ========================================================= */
.contact-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.contact-head .eyebrow { justify-content: center; }
.contact-head h2 { margin: 18px auto 0; }
.contact-head .lede {
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 580px;
}
.contact-head .lede b { color: var(--ink); }

/* WhatsApp hero card */
.wa-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -16px rgba(37, 211, 102, 0.45), 0 8px 20px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
  margin-bottom: 28px;
}
.wa-hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.wa-hero::after {
  content: "";
  position: absolute;
  bottom: -180px; left: 20%;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.wa-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px -16px rgba(37, 211, 102, 0.55), 0 12px 28px rgba(0,0,0,0.1);
}
.wa-hero-icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  flex: none;
  position: relative;
  z-index: 1;
}
.wa-hero-icon svg { width: 38px; height: 38px; }
.wa-hero-text { position: relative; z-index: 1; }
.wa-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 600;
}
.wa-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.wa-hero-sub {
  font-size: 15.5px;
  opacity: 0.9;
  margin-top: 8px;
  line-height: 1.4;
  max-width: 520px;
}
.wa-hero-cta {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.95);
  color: #128C7E;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background .25s ease, transform .25s ease;
}
.wa-hero:hover .wa-hero-cta { background: #fff; }
.wa-hero:hover .wa-hero-cta .arrow { transform: translateX(4px); }
.wa-hero-cta .arrow { transition: transform .3s ease; display: inline-block; }

/* Cards alternativas */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.c-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  color: inherit;
}
.c-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.c-ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--cream-100);
  color: var(--navy-900);
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: background .3s ease, color .3s ease;
}
.c-ic svg { width: 22px; height: 22px; }
.c-card:hover .c-ic {
  background: var(--accent);
  color: #fff;
}
.c-lbl {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.c-val {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 8px;
  letter-spacing: -0.005em;
}
.c-hint {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 10px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .wa-hero {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 18px;
  }
  .wa-hero-cta { justify-self: start; }
  .contact-cards { grid-template-columns: 1fr; }
}

/* =========================================================
   Contacto (legacy — formulario, sin uso ahora)
   ========================================================= */
.contact { background: var(--cream-100); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.contact-info {}
.contact-info h2 { margin-bottom: 28px; }
.contact-info .lede { color: var(--ink-soft); font-size: 17px; line-height: 1.65; max-width: 460px; }
.contact-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-item {
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  gap: 18px;
}
.contact-item:last-child { border-bottom: 1px solid var(--line-strong); }
.contact-item .ic {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--ivory);
  display: grid; place-items: center;
  flex: none;
}
.contact-item .ic svg { width: 18px; height: 18px; }
.contact-item .lbl { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.contact-item .val { font-size: 16px; font-weight: 500; color: var(--ink); }
.contact-item .val a:hover { color: var(--accent); }

.contact-form {
  background: var(--ivory);
  padding: clamp(28px, 3vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-form h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  margin-bottom: 6px;
}
.contact-form .form-sub { color: var(--ink-muted); font-size: 14.5px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.field input, .field select, .field textarea {
  font: inherit;
  padding: 14px 16px;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--ivory);
}
.field textarea { resize: vertical; min-height: 120px; }
.consent {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-muted);
  margin-bottom: 24px;
}
.consent input { accent-color: var(--navy-900); }
.contact-form button[type="submit"] { width: 100%; justify-content: center; padding: 18px; }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }

.form-feedback {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 16px;
}
.form-feedback.show { display: block; }
.form-feedback.success {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--ink);
}
.form-feedback.error {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #991b1b;
}

/* Mapa */
.map-wrap {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 280px;
  position: relative;
  background: var(--navy-800);
}
.map-wrap iframe { border: 0; width: 100%; height: 100%; filter: grayscale(0.4) contrast(0.95); }
.map-pin {
  position: absolute;
  bottom: 16px; left: 16px;
  background: var(--ivory);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
  z-index: 2;
  pointer-events: none;
}
.map-pin::before { content: "📍"; }

/* =========================================================
   Final CTA
   ========================================================= */
.cta-final {
  background: var(--navy-900);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33,150,243,0.18), transparent 65%);
  top: -300px; right: -200px;
  pointer-events: none;
}
.cta-final-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.cta-final h2 { font-size: clamp(36px, 4.5vw, 64px); color: var(--ivory); max-width: 740px; }
.cta-final h2 .accent { font-family: var(--font-serif); font-style: italic; color: var(--blue-400); }
.cta-final .sub { margin-top: 24px; color: rgba(255,255,255,0.7); font-size: 17px; max-width: 460px; line-height: 1.6; }
.cta-final .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.cta-side {
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 48px;
}
.cta-side .label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.cta-side .phone {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: -0.01em;
}
.cta-side .hrs { margin-top: 20px; color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.7; }

/* =========================================================
   Footer
   ========================================================= */
footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { margin-top: 24px; max-width: 320px; font-size: 14px; line-height: 1.6; }
.footer-col h5 {
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom .links { display: flex; gap: 24px; }

/* =========================================================
   WhatsApp flotante
   ========================================================= */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0;
  background: #25D366;
  color: white;
  padding: 14px;
  border-radius: 999px;
  box-shadow: 0 12px 36px -8px rgba(37,211,102,0.55), 0 4px 12px rgba(0,0,0,0.15);
  transition: padding .3s ease, transform .3s ease;
  overflow: hidden;
  cursor: pointer;
}
.wa-float:hover { padding-right: 22px; transform: translateY(-2px); }
.wa-float .wa-icon { width: 28px; height: 28px; flex: none; }
.wa-float .wa-text {
  font-size: 14px;
  font-weight: 600;
  max-width: 0;
  white-space: nowrap;
  transition: max-width .35s ease, margin-left .35s ease;
  overflow: hidden;
}
.wa-float:hover .wa-text { max-width: 220px; margin-left: 12px; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(37,211,102,0.4);
  animation: pulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* =========================================================
   Animaciones reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner, .nosotros-inner, .contact-grid, .cta-final-inner { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .areas-grid, .testi-grid, .equipo-grid, .proceso-grid, .values { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-side { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 32px; margin-top: 16px; }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }

  /* Mobile nav */
  .nav { padding: 12px 12px 12px 18px; border-radius: 22px; transition: border-radius .3s ease; }
  .nav.menu-open { border-radius: 22px 22px 18px 18px; }

  .nav ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: rgba(250, 248, 244, 0.96);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    animation: navDrop .25s ease;
  }
  .nav.menu-open ul { display: flex; }
  .nav ul li { width: 100%; }
  .nav ul a {
    display: block;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 12px;
    width: 100%;
    text-align: left;
  }
  .nav .cta-nav {
    background: var(--navy-900);
    color: var(--ivory);
    text-align: center;
    margin-top: 6px;
  }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .menu-toggle {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    background: var(--navy-900);
    color: var(--ivory);
    border-radius: 999px;
    transition: background .25s ease;
  }
  .nav.menu-open .menu-toggle { background: var(--accent); }

  .areas-grid, .testi-grid, .equipo-grid, .proceso-grid, .values, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 130px; }
  .hero-meta { gap: 24px; }
  .proceso-grid::before { display: none; }
}
