/* ============================================================
   ASESORIA LEGAL — Sistema de diseño
   Estilo: Moderno minimalista
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Color */
  --color-bg: #ffffff;
  --color-surface: #fafafa;
  --color-surface-2: #f4f4f4;
  --color-fg: #0a0a0a;
  --color-fg-muted: #525252;
  --color-fg-subtle: #737373;
  --color-border: #e5e5e5;
  --color-border-strong: #d4d4d4;
  --color-accent: #b45309;
  --color-accent-hover: #92400e;
  --color-accent-soft: #fef3c7;
  --color-success: #15803d;
  --color-error: #b91c1c;
  --color-overlay: rgba(10, 10, 10, 0.55);

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-40: 2.5rem;
  --fs-56: 3.5rem;
  --fs-72: 4.5rem;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  /* Spacing — 4pt scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 12px 32px rgba(10, 10, 10, 0.08);
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-index */
  --z-nav: 100;
  --z-modal: 1000;
  --z-toast: 2000;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul, ol { list-style: none; padding: 0; }

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

/* ---------- TYPOGRAPHY ---------- */
.font-display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; }
.font-body { font-family: var(--font-body); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--color-fg);
}

.h-display { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.h-1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.h-2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.h-3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.h-4 { font-size: var(--fs-24); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}

.lead { font-size: var(--fs-20); line-height: var(--lh-relaxed); color: var(--color-fg-muted); }
.muted { color: var(--color-fg-muted); }
.subtle { color: var(--color-fg-subtle); }
.text-sm { font-size: var(--fs-14); }
.text-lg { font-size: var(--fs-18); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
@media (min-width: 768px) {
  .container, .container-narrow { padding: 0 var(--sp-8); }
}

.section {
  padding: var(--sp-20) 0;
}
@media (min-width: 768px) {
  .section { padding: var(--sp-32) 0; }
}
.section-sm { padding: var(--sp-12) 0; }
.section-bg { background: var(--color-surface); }
.section-dark { background: var(--color-fg); color: var(--color-bg); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-bg); }
.section-dark .muted { color: rgba(255, 255, 255, 0.7); }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  min-height: 48px;
  font-size: var(--fs-16);
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--color-fg);
  color: var(--color-bg);
}
.btn-primary:hover { background: #1f1f1f; }
.btn-accent {
  background: var(--color-accent);
  color: #ffffff;
}
.btn-accent:hover { background: var(--color-accent-hover); }
.btn-outline {
  background: transparent;
  color: var(--color-fg);
  border-color: var(--color-border-strong);
}
.btn-outline:hover { background: var(--color-fg); color: var(--color-bg); border-color: var(--color-fg); }
.btn-ghost {
  background: transparent;
  color: var(--color-fg);
  padding-left: var(--sp-2);
  padding-right: var(--sp-2);
}
.btn-ghost:hover { color: var(--color-accent); }
.btn-lg { min-height: 56px; padding: var(--sp-4) var(--sp-8); font-size: var(--fs-18); }
.btn-sm { min-height: 40px; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-14); }
.btn-block { width: 100%; }

.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- LINKS ---------- */
.link {
  color: var(--color-fg);
  border-bottom: 1px solid var(--color-fg);
  padding-bottom: 1px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.link:hover { color: var(--color-accent); border-color: var(--color-accent); }

.link-inline {
  color: var(--color-accent);
  font-weight: 500;
}
.link-inline:hover { color: var(--color-accent-hover); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 500;
  color: var(--color-fg);
  transition: gap var(--transition);
}
.link-arrow:hover { color: var(--color-accent); gap: var(--sp-3); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--transition); }
.link-arrow:hover .icon { transform: translateX(2px); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-6);
  max-width: var(--container);
  margin: 0 auto;
  min-height: 84px;
}
@media (min-width: 768px) {
  .nav-inner { padding: var(--sp-4) var(--sp-8); }
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-fg);
}
.nav-brand-mark {
  width: auto;
  height: 52px;
  max-width: 220px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .nav-brand-mark { height: 60px; max-width: 260px; }
}
.nav-brand-wordmark {
  height: 28px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .nav-brand-wordmark { height: 32px; }
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-8);
}
.nav-links a {
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--color-fg-muted);
  transition: color var(--transition-fast);
  padding: var(--sp-2) 0;
  position: relative;
}
.nav-links a:hover { color: var(--color-fg); }
.nav-links a.active { color: var(--color-fg); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-cta { display: none; align-items: center; gap: var(--sp-3); }
@media (min-width: 1024px) { .nav-cta { display: flex; } }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--color-fg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 160ms ease;
  white-space: nowrap;
}
.lang-toggle:hover {
  color: var(--color-fg);
  border-color: var(--color-fg);
}
.lang-toggle .lang-current {
  color: var(--color-fg);
  font-weight: 700;
}
.lang-toggle .lang-sep {
  color: var(--color-border-strong);
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav-mobile {
  display: none;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-4) var(--sp-6) var(--sp-8);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-18);
  font-weight: 500;
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile .btn { width: 100%; margin-top: var(--sp-4); }

/* ---------- HERO ---------- */
.hero {
  padding: var(--sp-20) 0 var(--sp-16);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: var(--sp-32) 0 var(--sp-24); }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-fg-muted);
  margin-bottom: var(--sp-6);
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
}
.hero-display {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
  font-family: var(--font-display);
  max-width: 16ch;
  margin-bottom: var(--sp-5);
  color: var(--color-fg);
}
.hero-display em {
  font-style: italic;
  color: var(--color-accent);
}
.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
  font-family: var(--font-display);
  max-width: 16ch;
  margin-bottom: var(--sp-6);
}
.hero-title em {
  font-style: italic;
  color: var(--color-accent);
}
.hero-title-seo {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--color-fg-muted);
  max-width: 60ch;
  margin-bottom: var(--sp-5);
}
.hero-sub {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: var(--lh-relaxed);
  color: var(--color-fg-muted);
  max-width: 56ch;
  margin-bottom: var(--sp-8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-14);
  color: var(--color-fg-muted);
}
.hero-meta strong { color: var(--color-fg); font-weight: 600; display: block; font-size: var(--fs-24); font-family: var(--font-display); margin-bottom: 2px;}

/* ---------- HERO STATS (redesigned) ---------- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--color-border);
}
@media (min-width: 768px) {
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
}
.hero-stat {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hero-stat:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.hero-stat-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-accent-soft, rgba(155, 34, 38, 0.08));
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-stat-icon svg { width: 22px; height: 22px; }
.hero-stat-body { min-width: 0; }
.hero-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.1;
  color: var(--color-fg);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: var(--fs-14);
  color: var(--color-fg-muted);
  line-height: 1.35;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  height: 100%;
}
.card:hover { border-color: var(--color-fg); }
.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  color: var(--color-fg);
}
.card-icon .icon { width: 22px; height: 22px; }
.card h3 {
  font-size: var(--fs-20);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: var(--lh-snug);
}
.card p {
  color: var(--color-fg-muted);
  font-size: var(--fs-14);
  line-height: var(--lh-relaxed);
  flex-grow: 1;
}
.card .link-arrow { font-size: var(--fs-14); margin-top: var(--sp-2); }

.card-feature {
  padding: var(--sp-8);
}
@media (min-width: 768px) { .card-feature { padding: var(--sp-10); } }

.card-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
}
.card-list-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}
.card-list-item:last-child { border-bottom: none; }
.card-list-item:hover { background: var(--color-surface); }
.card-list-item h4 {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  font-weight: 600;
  margin-bottom: 2px;
}
.card-list-item p { font-size: var(--fs-14); color: var(--color-fg-muted); margin: 0; }
.card-list-item .icon-wrap {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}
.card-list-item .icon-wrap .icon { width: 18px; height: 18px; }

/* ---------- BADGE / PILL ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  background: var(--color-surface-2);
  border-radius: var(--radius-pill);
  font-size: var(--fs-12);
  font-weight: 500;
  color: var(--color-fg-muted);
}
.badge-accent { background: var(--color-accent-soft); color: var(--color-accent-hover); }

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-10) 0;
}
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); padding: var(--sp-12) 0; }
}
.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-2);
}
.stat-item .stat-label {
  font-size: var(--fs-14);
  color: var(--color-fg-muted);
}

/* ---------- TESTIMONIAL ---------- */
.quote {
  border-left: 2px solid var(--color-accent);
  padding-left: var(--sp-6);
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--color-fg);
  margin-bottom: var(--sp-6);
}
.quote-author { display: flex; align-items: center; gap: var(--sp-3); }
.quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-fg);
  color: var(--color-bg);
  display: grid;
  place-items: center;
  font-weight: 600;
}
.quote-name { font-weight: 600; font-size: var(--fs-14); }
.quote-role { font-size: var(--fs-14); color: var(--color-fg-muted); }

/* ---------- FORMS ---------- */
.form { display: flex; flex-direction: column; gap: var(--sp-5); }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label {
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--color-fg);
}
.field label .req { color: var(--color-error); }
.input, .textarea, .select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  min-height: 48px;
  font-size: var(--fs-16);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-fg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--color-fg);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}
.textarea { min-height: 140px; resize: vertical; line-height: var(--lh-normal); }
.field .helper { font-size: var(--fs-12); color: var(--color-fg-subtle); }
.field .err { font-size: var(--fs-12); color: var(--color-error); display: none; }
.field.invalid .input,
.field.invalid .textarea,
.field.invalid .select { border-color: var(--color-error); }
.field.invalid .err { display: block; }

.form-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  display: none;
}
.form-success.show { display: block; }

/* ---------- WHATSAPP FAB ---------- */
.wa-fab {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-modal);
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition);
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab .icon { width: 28px; height: 28px; }
.wa-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-fg);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--sp-20) 0 var(--sp-8);
  margin-top: var(--sp-20);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-8); }
}
.footer-brand p {
  margin-top: var(--sp-4);
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-14);
  line-height: var(--lh-relaxed);
}
.footer-brand .nav-brand { color: #fff; }
.footer-brand .nav-brand-mark { height: 56px; max-width: 240px; opacity: 0.95; }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-14);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a {
  font-size: var(--fs-14);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: var(--fs-12);
  color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- SOCIAL ICONS ---------- */
.footer-social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}
.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  color: #0a0a0a;
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  outline: none;
}
.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- BLOG ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-10); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-6);
  transition: border-color var(--transition);
}
.post-card:hover { border-top-color: var(--color-fg); }
.post-card .post-meta {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-12);
  color: var(--color-fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.post-card h3 a { transition: color var(--transition-fast); }
.post-card h3 a:hover { color: var(--color-accent); }
.post-card p { color: var(--color-fg-muted); font-size: var(--fs-14); line-height: var(--lh-relaxed); }

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6);
}
.article header { margin-bottom: var(--sp-12); padding-bottom: var(--sp-8); border-bottom: 1px solid var(--color-border); }
.article header .meta {
  display: flex;
  gap: var(--sp-4);
  font-size: var(--fs-12);
  color: var(--color-fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.article header h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
}
.article header .lead { font-size: var(--fs-20); color: var(--color-fg-muted); }
.article-body { font-size: var(--fs-18); line-height: 1.7; color: #1f1f1f; }
.article-body > * + * { margin-top: var(--sp-5); }
.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--fs-32);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-family: var(--font-body);
  font-size: var(--fs-20);
  font-weight: 600;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}
.article-body p { line-height: 1.75; }
.article-body ul, .article-body ol {
  padding-left: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body strong { font-weight: 600; color: var(--color-fg); }
.article-body a {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}
.article-body a:hover { color: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.article-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--sp-2) var(--sp-6);
  font-family: var(--font-display);
  font-size: var(--fs-24);
  line-height: 1.4;
  color: var(--color-fg);
  font-style: italic;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--color-fg);
  color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--sp-12) var(--sp-8);
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 768px) {
  .cta-banner {
    padding: var(--sp-16);
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: var(--sp-12);
  }
}
.cta-banner h2 {
  color: var(--color-bg);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cta-banner p { color: rgba(255, 255, 255, 0.75); margin-top: var(--sp-3); max-width: 50ch; }
.cta-banner .actions { display: flex; flex-direction: column; gap: var(--sp-3); }
@media (min-width: 768px) {
  .cta-banner .actions { align-items: flex-end; }
}
.cta-banner .btn-outline { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-banner .btn-outline:hover { background: #fff; color: var(--color-fg); border-color: #fff; }
.cta-banner .btn-accent { background: #fff; color: var(--color-fg); }
.cta-banner .btn-accent:hover { background: var(--color-accent); color: #fff; }

/* ---------- PAGE HEADER ---------- */
.page-header {
  padding: var(--sp-20) 0 var(--sp-12);
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 768px) {
  .page-header { padding: var(--sp-24) 0 var(--sp-16); }
}
.page-header .eyebrow { margin-bottom: var(--sp-4); }
.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: var(--sp-6);
}
.page-header .lead { max-width: 60ch; }

/* ---------- CONTACT INFO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; gap: var(--sp-16); }
}
.contact-info-list { display: flex; flex-direction: column; gap: var(--sp-6); }
.contact-info-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-info-item .icon-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
}
.contact-info-item .icon-wrap .icon { width: 20px; height: 20px; }
.contact-info-item h4 { font-family: var(--font-body); font-size: var(--fs-14); font-weight: 600; margin-bottom: 2px; letter-spacing: 0.02em; }
.contact-info-item p { font-size: var(--fs-16); color: var(--color-fg-muted); }
.contact-info-item a { color: var(--color-fg); }
.contact-info-item a:hover { color: var(--color-accent); }

.map-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.team-photo {
  aspect-ratio: 4/5;
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: var(--fs-72);
  color: var(--color-fg-muted);
  letter-spacing: -0.02em;
  overflow: hidden;
  position: relative;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.6s ease;
}
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-card h4 { font-family: var(--font-body); font-size: var(--fs-18); font-weight: 600; }
.team-card .team-role { font-size: var(--fs-14); color: var(--color-fg-muted); margin-top: 2px; }
.team-card p { font-size: var(--fs-14); color: var(--color-fg-muted); line-height: var(--lh-relaxed); margin-top: var(--sp-2); }

/* ---------- PROCESS ---------- */
.process-list { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-6);
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}
.process-step:last-child { border-bottom: none; }
.process-num {
  font-family: var(--font-display);
  font-size: var(--fs-40);
  line-height: 1;
  color: var(--color-fg-subtle);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  min-width: 60px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}
.process-step p { color: var(--color-fg-muted); line-height: var(--lh-relaxed); max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-18);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--color-accent); }
.faq-item summary .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item-body {
  padding-bottom: var(--sp-6);
  color: var(--color-fg-muted);
  line-height: var(--lh-relaxed);
  max-width: 70ch;
}

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: cuando .fade-up es hijo de una grid, cada uno entra con 80ms de retraso */
.grid > .fade-up:nth-child(1),
.grid > .card:nth-child(1),
.grid-2 > .fade-up:nth-child(1),
.grid-3 > .fade-up:nth-child(1) { transition-delay: 0ms; }
.grid > .fade-up:nth-child(2),
.grid > .card:nth-child(2),
.grid-2 > .fade-up:nth-child(2),
.grid-3 > .fade-up:nth-child(2) { transition-delay: 80ms; }
.grid > .fade-up:nth-child(3),
.grid > .card:nth-child(3),
.grid-2 > .fade-up:nth-child(3),
.grid-3 > .fade-up:nth-child(3) { transition-delay: 160ms; }
.grid > .fade-up:nth-child(4),
.grid > .card:nth-child(4),
.grid-2 > .fade-up:nth-child(4),
.grid-3 > .fade-up:nth-child(4) { transition-delay: 240ms; }
.grid > .fade-up:nth-child(5),
.grid > .card:nth-child(5) { transition-delay: 320ms; }
.grid > .fade-up:nth-child(6),
.grid > .card:nth-child(6) { transition-delay: 400ms; }

/* Hero stats: entrada en cascada */
.hero-stat {
  opacity: 0;
  transform: translateY(12px);
  animation: heroStatIn 600ms ease forwards;
}
.hero-stat:nth-child(1) { animation-delay: 200ms; }
.hero-stat:nth-child(2) { animation-delay: 320ms; }
.hero-stat:nth-child(3) { animation-delay: 440ms; }
.hero-stat:nth-child(4) { animation-delay: 560ms; }
@keyframes heroStatIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero h1/h2/buttons: entrada suave en cascada */
.hero .hero-eyebrow { animation: fadeSlideDown 700ms ease both; animation-delay: 100ms; opacity: 0; }
.hero .hero-display { animation: fadeSlideUp 800ms ease both; animation-delay: 200ms; opacity: 0; }
.hero .hero-title-seo { animation: fadeSlideUp 800ms ease both; animation-delay: 350ms; opacity: 0; }
.hero .hero-sub { animation: fadeSlideUp 800ms ease both; animation-delay: 500ms; opacity: 0; }
.hero .hero-actions { animation: fadeSlideUp 800ms ease both; animation-delay: 650ms; opacity: 0; }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Punto verde pulsante en hero-eyebrow */
.hero-eyebrow .dot {
  position: relative;
  animation: dotBreath 2.2s ease-in-out infinite;
}
.hero-eyebrow .dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--color-success);
  opacity: 0;
  animation: dotRipple 2.2s ease-out infinite;
}
@keyframes dotBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
@keyframes dotRipple {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Card: efecto hover con banda dorada que entra desde abajo */
.card { position: relative; }
.card::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
  pointer-events: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }

/* Mismo trato para post-card del blog */
.post-card { position: relative; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.post-card::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
  pointer-events: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.post-card:hover::before { transform: scaleX(1); }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.06); }

/* Barra de progreso de scroll arriba */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), #e8c878);
  z-index: 9999;
  transition: width 80ms linear;
  pointer-events: none;
}

/* Formas decorativas flotantes en el hero */
.hero { isolation: isolate; }
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(201, 161, 75, 0.18), transparent 70%);
  top: -80px; right: -120px;
  animation: floatA 14s ease-in-out infinite;
}
.hero::after {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(155, 34, 38, 0.10), transparent 70%);
  bottom: 80px; left: -80px;
  animation: floatB 18s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 40px); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

/* Suave scroll en toda la página */
html { scroll-behavior: smooth; }

/* Link arrow: flecha que se desliza al hover */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; }
.link-arrow .icon { transition: transform 0.25s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Botones: leve elevación al hover */
.btn { transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary:hover, .btn-accent:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

/* Imagen de oficina (sala de juntas, recepción) con zoom muy sutil al hover del figure */
.section figure { overflow: hidden; }
.section figure img { transition: transform 0.8s ease; }
.section figure:hover img { transform: scale(1.03); }

/* prefers-reduced-motion: desactivar animaciones para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero::before, .hero::after { animation: none; }
  .scroll-progress { display: none; }
}

/* ---------- UTIL ---------- */
.divider { height: 1px; background: var(--color-border); width: 100%; margin: var(--sp-12) 0; }
.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;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--color-fg);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  z-index: var(--z-toast);
  transition: top var(--transition);
}
.skip-link:focus { top: 8px; }
