/* ============================================================
   AJA · Asesores Jurídicos Asociados — Rediseño 2026
   Paleta: blanco / navy #122c4f / gris azulado / negro
   Tipografía: Playfair Display (títulos) + DM Sans (cuerpo)
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg-0: #eef1f5;
  --bg-1: #ffffff;
  --bg-card: #ffffff;
  --navy: #122c4f;
  --navy-deep: #0c1f39;

  --ink: #0b0d12;
  --ink-soft: #1a2433;
  --ink-mute: #64707d;

  --accent: #122c4f;
  --accent-2: #3b5f82;
  --accent-glow: rgba(18, 44, 79, 0.18);
  --accent-glow-soft: rgba(18, 44, 79, 0.07);

  --on-navy: #f4f7fb;
  --on-navy-mute: #9db1c9;
  --silver: #c8d2de;

  --line: rgba(11, 13, 18, 0.09);
  --shadow-sm: 0 2px 8px rgba(11, 13, 18, 0.05);
  --shadow-md: 0 10px 30px rgba(11, 13, 18, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 13, 18, 0.12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --max: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* FIX: scroll-padding aumentado para que el hash no quede tapado por la navbar */
html { scroll-padding-top: 110px; }
body {
  font-family: var(--font-body);
  background: var(--bg-1);
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent;}
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
em { font-style: italic; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 50px 0; }
.section-alt { background: var(--bg-0); }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- CABECERAS DE SECCIÓN ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-kicker::before, .section-kicker::after {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--accent-2);
  box-shadow: 0 3px 0 var(--line);
  opacity: 0.55;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  margin-bottom: 18px;
}
.section-title em { color: var(--accent-2); }
.section-sub { color: var(--ink-mute); font-size: 1.05rem; }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: var(--on-navy); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-2); }
.btn-light { background: var(--on-navy); color: var(--navy); }
.btn-light:hover { background: #ffffff; }
.btn-outline { border: 1px solid rgba(244, 247, 251, 0.35); color: var(--on-navy); }
.btn-outline:hover { border-color: var(--on-navy); background: rgba(255, 255, 255, 0.06); }
.btn-block { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
  padding: 18px 0;
}
.nav .nav-link { color: var(--on-navy-mute); }
.nav .nav-logo-name { color: var(--on-navy); }
.nav .nav-logo-sub { color: var(--on-navy-mute); }
.nav .nav-toggle span { background: var(--on-navy); }
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.nav.scrolled .nav-link { color: var(--ink-mute); }
.nav.scrolled .nav-logo-name { color: var(--ink); }
.nav.scrolled .nav-logo-sub { color: var(--ink-mute); }
.nav.scrolled .nav-toggle span { background: var(--ink); }

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-name { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; letter-spacing: 0.04em; }
.nav-logo-sub { font-size: 0.88rem; letter-spacing: 0.18em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link { font-size: 0.92rem; font-weight: 500; transition: color 0.25s; position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav .nav-link:hover { color: var(--on-navy); }
.nav .nav-link.active { color: var(--on-navy); }
.nav.scrolled .nav-link:hover, .nav.scrolled .nav-link.active { color: var(--ink); }

.nav-cta {
  background: var(--accent-2);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--navy); }
.nav-cta.active { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 6px 18px rgba(0, 0, 0, 0.25); }
.nav.scrolled .nav-cta { background: var(--navy); }
.nav.scrolled .nav-cta:hover { background: var(--accent-2); }
.nav.scrolled .nav-cta.active { box-shadow: 0 0 0 2px var(--accent-glow), var(--shadow-md); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(900px 600px at 78% 42%, rgba(59, 95, 130, 0.45) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #17395f 100%);
  color: var(--on-navy);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 100% 56px;
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px 24px 90px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 26px;
}
.hero-title em { color: var(--silver); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--on-navy-mute);
  max-width: 52ch;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-trust { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-trust-item { display: flex; flex-direction: column; }
.hero-trust-item strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--on-navy);
  line-height: 1.1;
}
.hero-trust-item span { font-size: 0.8rem; color: var(--on-navy-mute); }
.hero-trust-div { width: 1px; height: 34px; background: rgba(255, 255, 255, 0.14); }

.hero-seal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}
.hero-seal-img {
  width: min(380px, 78%);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  animation: sealFloat 7s ease-in-out infinite;
  cursor: pointer;
  will-change: transform, filter;
}
.hero-seal-img:hover {
  filter: drop-shadow(0 36px 70px rgba(0, 0, 0, 0.65));
}
.hero-seal-ring {
  position: absolute;
  width: min(480px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(200, 210, 222, 0.18);
  outline: 1px solid rgba(200, 210, 222, 0.07);
  outline-offset: 22px;
  animation: sealSpin 60s linear infinite;
  pointer-events: none;
}
.hero-seal-ring::after {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--silver);
  opacity: 0.7;
}
@keyframes sealFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes sealSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero-seal-img, .hero-seal-ring { animation: none; }
}

/* ============================================================
   ÁREAS DE PRÁCTICA
   ============================================================ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.area-card {
  background: var(--bg-card);
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.area-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-glow);
}
.area-head { margin-bottom: 12px; }
.area-num {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.area-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.area-card > p { font-size: 0.95rem; color: var(--ink-mute); margin-bottom: 18px; }
.area-list { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.area-list li {
  font-size: 0.9rem;
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--ink-soft);
}
.area-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 14px;
  width: 6px; height: 6px;
  background: var(--accent-2);
  transform: rotate(45deg);
}

.area-featured {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  border-color: transparent;
  color: var(--on-navy-mute);
  position: relative;
}
.area-featured h3, .area-featured .area-list li { color: var(--on-navy); }
.area-featured > p { color: var(--on-navy-mute); }
.area-featured .area-list { border-top-color: rgba(255, 255, 255, 0.14); }
.area-featured .area-list li::before { background: var(--silver); }
.area-cta { margin-top: 22px; background: var(--on-navy); color: var(--navy); }
.area-cta:hover { background: #ffffff; }

.area-other {
  background: var(--bg-0);
  border-style: dashed;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}
.area-other h3 { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); margin-bottom: 10px; }
.area-other h3 em { color: var(--accent-2); }
.area-other p { font-size: 0.95rem; color: var(--ink-mute); margin-bottom: 18px; }
.area-other-link { font-weight: 600; color: var(--accent-2); transition: gap 0.3s; }
.area-other:hover .area-other-link { text-decoration: underline; }

/* ============================================================
   CÓMO TRABAJAMOS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.process-step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
}
.process-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--accent-glow);
  -webkit-text-stroke: 1px var(--accent-2);
  line-height: 1;
  margin-bottom: 16px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.process-step p { font-size: 0.92rem; color: var(--ink-mute); }

/* ============================================================
   UBICACIÓN
   ============================================================ */
.map-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 26px;
  align-items: stretch;
}
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.map-info {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  justify-content: center;
}
.map-info-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: block;
  margin-bottom: 6px;
}
.map-info-value { color: var(--ink); font-size: 1.05rem; line-height: 1.5; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-glow);
}
.contact-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.contact-card-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}
.contact-card-hint { font-size: 0.88rem; color: var(--ink-mute); margin-top: 6px; }

/* ============================================================
   EQUIPO (carrusel en nosotros.html)
   ============================================================ */
.team-carousel {
  display: flex;
  align-items: center;
  gap: 18px;
}
.team-viewport { overflow: hidden; flex: 1; }
.team-track {
  display: flex;
  transition: transform 0.75s var(--ease);
}
.team-page {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 6px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 26px 30px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-glow);
}
.team-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid var(--bg-0);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-deep), var(--accent-2));
  color: var(--silver);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.team-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.team-socials { display: flex; justify-content: center; gap: 10px; }
.team-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.team-social:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}
.team-social svg { width: 16px; height: 16px; }

.team-arrow {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.team-arrow:hover {
  background: var(--navy);
  color: #fff;
  transform: scale(1.06);
  box-shadow: var(--shadow-md);
}
.team-arrow svg { width: 22px; height: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: var(--on-navy-mute);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo-img { width: 48px; height: 48px; border-radius: 50%; }
.footer-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.footer-logo-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--on-navy); }
.footer-logo-sub { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; }
.footer-tag { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; color: var(--silver); }
.footer-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-navy);
  margin-bottom: 18px;
}
.footer-list li { padding: 5px 0; font-size: 0.92rem; }
.footer-list a { transition: color 0.25s; }
.footer-list a:hover { color: var(--on-navy); }
.footer-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.footer-contact li { padding: 8px 0; }
.footer-bottom { padding-top: 26px; text-align: center; font-size: 0.85rem; }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wpp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease);
}
.wpp-float:hover { transform: scale(1.08); }
.wpp-float svg { width: 30px; height: 30px; }

/* ============================================================
   PÁGINA NOSOTROS
   ============================================================ */
.page-hero {
  padding: 190px 0 100px;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(59, 95, 130, 0.4) 0%, transparent 65%),
    linear-gradient(170deg, var(--navy-deep), var(--navy));
  color: var(--on-navy);
  text-align: center;
}
.page-hero .section-kicker { color: var(--silver); }
.page-hero .section-kicker::before, .page-hero .section-kicker::after { background: var(--silver); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 20px;
}
.page-hero h1 em { color: var(--silver); }
.page-hero-sub { color: var(--on-navy-mute); font-size: 1.08rem; max-width: 56ch; margin: 0 auto; }

.about-page-content { max-width: 780px; margin: 0 auto; text-align: center; }
.about-page-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 26px;
}
.about-page-content h2 em { color: var(--accent-2); }
.about-page-content > p { color: var(--ink-mute); font-size: 1.05rem; margin-bottom: 18px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 54px;
  text-align: left;
}
.value-card {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.value-card:hover { transform: translateY(-4px); border-color: var(--accent-glow); }
.value-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.value-card p { font-size: 0.88rem; color: var(--ink-mute); }

/* ============================================================
   MODAL DE ABOGADO — animación de apertura profesional
   ============================================================ */
.lawyer-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lawyer-modal.open { display: flex; }

.lawyer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 31, 57, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: modalBackdropIn 0.5s var(--ease) forwards;
}

.lawyer-modal-box {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
  background: #091d38;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 44px;
  overflow: hidden;
  max-height: 70vh;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(36px) scale(0.92);
  animation: lawyerModalIn 0.7s var(--ease) forwards;
}

.lawyer-modal-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: linear-gradient(115deg, transparent, rgba(200, 210, 222, 0.16), transparent);
  transform: skewX(-20deg) translateX(-40%);
  animation: lawyerModalShine 1.1s 0.35s var(--ease) forwards;
  pointer-events: none;
  z-index: 2;
}

.lawyer-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-0);
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
  transition: background 0.25s, transform 0.25s var(--ease);
  z-index: 3;
}
.lawyer-modal-close:hover {
  background: var(--navy);
  color: #fff;
  transform: rotate(90deg);
}

.lawyer-modal-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}
.lawyer-modal-images img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: lawyerFadeUp 0.6s var(--ease) forwards;
}
.lawyer-modal-images img:nth-child(1) { animation-delay: 0.15s; }
.lawyer-modal-images img:nth-child(2) { animation-delay: 0.25s; }

.lawyer-modal-content { text-align: center; position: relative; z-index: 1; }

.lawyer-modal-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-navy);
  margin-bottom: 10px;
  opacity: 0;
  animation: lawyerFadeUp 0.6s var(--ease) forwards;
  animation-delay: 0.42s;
}

.lawyer-modal-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--on-navy);
  margin-bottom: 14px;
  opacity: 0;
  display: inline-block;
  position: relative;
  animation: lawyerFadeUp 0.9s var(--ease) forwards;
  animation-delay: 0.9s;
}

.lawyer-modal-content h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  transform: translateX(-50%) scaleX(0);
  animation: lawyerLineIn 0.9s var(--ease) forwards;
  animation-delay: 0.5s;
}

.lawyer-modal-content p {
  color: var(--on-navy);
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0;
  animation: lawyerFadeUp 0.6s var(--ease) forwards;
  animation-delay: 0.5s;
}

@keyframes lawyerModalIn {
  0% { opacity: 0; transform: translateY(36px) scale(0.92); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes modalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lawyerModalShine {
  from { transform: skewX(-20deg) translateX(-40%); }
  to   { transform: skewX(-20deg) translateX(420%); }
}
@keyframes lawyerFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lawyerLineIn {
  to { transform: translateX(-50%) scaleX(1); }
}

body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .lawyer-modal-backdrop,
  .lawyer-modal-box,
  .lawyer-modal-box::before,
  .lawyer-modal-images img,
  .lawyer-modal-kicker,
  .lawyer-modal-content h3,
  .lawyer-modal-content h3::after,
  .lawyer-modal-content p {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 130px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-seal { order: -1; }
  .hero-seal-img { width: min(240px, 55%); }
  .hero-seal-ring { width: min(310px, 72%); }
  .map-wrapper { grid-template-columns: 1fr; }
  .team-page { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .areas-grid, .contact-grid, .process-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-trust { justify-content: center; gap: 18px; }

  .team-page { grid-template-columns: 1fr; }
  .team-carousel { gap: 10px; }
  .team-arrow { width: 42px; height: 42px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(300px, 80vw);
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 34px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links .nav-link { color: var(--on-navy) !important; font-size: 1.1rem; }
  .nav.scrolled .nav-links .nav-link { color: var(--on-navy) !important; }
  .nav-toggle { position: relative; z-index: 110; }

  .lawyer-modal-box { padding: 26px 20px; }
  .lawyer-modal-images { grid-template-columns: 1fr; }
  .lawyer-modal-images img { height: 220px; }
  .lawyer-modal-content h3 { font-size: 1.6rem; }
}

/* ============================================================
   TEMA NAVY (nosotros.html — body.theme-navy)
   ============================================================ */
body.theme-navy {
  background:
    radial-gradient(1000px 700px at 82% -6%, rgba(59, 95, 130, 0.35), transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, #0e2340 50%, var(--navy-deep) 100%);
  background-attachment: fixed;
  color: var(--on-navy-mute);
}
.theme-navy .section-alt { background: transparent; }
.theme-navy .section-title { color: var(--on-navy); }
.theme-navy .section-title em { color: var(--silver); }
.theme-navy .section-sub { color: var(--on-navy-mute); }
.theme-navy .section-kicker { color: var(--silver); }
.theme-navy .section-kicker::before,
.theme-navy .section-kicker::after { background: var(--silver); opacity: 0.5; box-shadow: none; }

/* ---- Quiénes somos: dos columnas ---- */
.about-split {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.about-text { text-align: left; }
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--on-navy);
  margin-bottom: 22px;
}
.about-text h2 em { color: var(--silver); }
.about-text > p { color: var(--on-navy-mute); font-size: 1.05rem; margin-bottom: 18px; }

/* Valores en modo oscuro */
.theme-navy .values-grid { text-align: left; }
.theme-navy .value-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.theme-navy .value-card:hover { border-color: rgba(200, 210, 222, 0.4); }
.theme-navy .value-card h4 { color: var(--on-navy); }
.theme-navy .value-card p { color: var(--on-navy-mute); }

/* ============================================================
   CARRUSEL FUTURISTA DE EDIFICIOS
   ============================================================ */
.about-media { position: relative; }
.bldg-carousel {
  position: relative;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(200, 210, 222, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bldg-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  background: var(--navy-deep);
}
.bldg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s var(--ease), transform 6s ease-out;
  will-change: opacity, transform;
}
.bldg-slide.is-active { opacity: 1; transform: scale(1); }
.bldg-slide img { width: 100%; height: 100%; object-fit: cover; }

.bldg-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 31, 57, 0.25) 0%, transparent 28%, rgba(12, 31, 57, 0.6) 100%);
}

.bldg-corner {
  position: absolute;
  width: 26px; height: 26px;
  z-index: 3;
  border: 2px solid var(--silver);
  opacity: 0.7;
}
.bldg-corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.bldg-corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.bldg-corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.bldg-corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }

.bldg-scan {
  position: absolute;
  left: 0; right: 0;
  height: 32%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(200, 210, 222, 0.14), transparent);
  animation: bldgScan 7s linear infinite;
}
@keyframes bldgScan { 0% { transform: translateY(-40%); } 100% { transform: translateY(170%); } }

.bldg-caption {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--on-navy);
}
.bldg-caption-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}
.bldg-caption-count { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.08em; }
.bldg-caption-count b { color: var(--silver); font-weight: 600; }

.bldg-bars { display: flex; gap: 8px; margin-top: 12px; padding: 0 4px; }
.bldg-bar {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  position: relative;
}
.bldg-bar i {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--silver));
}
.bldg-bar.is-active i { animation: bldgFill var(--bar-dur, 4.2s) linear forwards; }
@keyframes bldgFill { to { width: 100%; } }
.bldg-carousel:hover .bldg-bar.is-active i { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .bldg-slide { transition: opacity 0.3s; transform: none; }
  .bldg-slide.is-active { transform: none; }
  .bldg-scan { display: none; }
  .bldg-bar.is-active i { width: 100%; animation: none; }
}

/* ============================================================
   EQUIPO PRO (cards con vidrio, acento y detalle fino)
   ============================================================ */
.theme-navy .team-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.theme-navy .team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--silver), transparent);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}
.theme-navy .team-card:hover::before { transform: scaleX(1); }
.theme-navy .team-card:hover {
  border-color: rgba(200, 210, 222, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}
.theme-navy .team-card h3 { color: var(--on-navy); }

.theme-navy .team-photo {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(200, 210, 222, 0.25), 0 10px 26px rgba(0, 0, 0, 0.4);
}

.theme-navy .team-role {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  background: rgba(59, 95, 130, 0.25);
  border: 1px solid rgba(200, 210, 222, 0.22);
  color: var(--silver);
  margin-bottom: 18px;
}

.theme-navy .team-social { border-color: rgba(255, 255, 255, 0.15); color: var(--on-navy-mute); }
.theme-navy .team-social:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

.team-more {
  display: block;
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.theme-navy .team-more { color: var(--silver); }
.team-card:hover .team-more { opacity: 1; transform: none; }

.theme-navy .team-arrow {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--on-navy);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.theme-navy .team-arrow:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

.team-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.team-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}
.team-dot.is-active {
  width: 28px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--silver));
}

/* ---- Ubicación en modo oscuro ---- */
.theme-navy .map-info {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.theme-navy .map-info-value { color: var(--on-navy); }
.theme-navy .map-frame { border-color: rgba(255, 255, 255, 0.12); }

/* Responsive del tema navy */
@media (max-width: 1024px) {
  .about-split { grid-template-columns: 1fr; gap: 44px; }
  .about-text { text-align: center; }
  .about-media { width: 100%; max-width: 440px; margin: 0 auto; }
  .theme-navy .values-grid { text-align: left; }
}

/* ============================================================
   PÁGINA ÁREAS DE PRÁCTICA (areas.html)
   ============================================================ */

/* ---- Botón "Saber más" en las tarjetas del index ---- */
.area-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-2);
  transition: gap 0.3s var(--ease), color 0.3s;
}
.area-more-link:hover {
  gap: 10px;
  color: var(--navy);
}
.area-featured .area-more-link { color: var(--silver); }
.area-featured .area-more-link:hover { color: var(--on-navy); }

/* ---- Secciones de detalle de cada área ---- */
.area-detail {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.area-detail-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.area-detail-split.reverse { direction: rtl; }
.area-detail-split.reverse > * { direction: ltr; }

.area-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--on-navy);
  margin-bottom: 22px;
  line-height: 1.15;
}
.area-detail-title em { color: var(--silver); }

.area-detail-text > p {
  color: var(--on-navy-mute);
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.7;
}

.area-detail-services {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.area-detail-services h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--on-navy);
  margin-bottom: 18px;
}

.area-detail-list li {
  font-size: 0.95rem;
  padding: 9px 0 9px 22px;
  position: relative;
  color: var(--on-navy-mute);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.area-detail-list li:last-child { border-bottom: none; }
.area-detail-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 17px;
  width: 6px; height: 6px;
  background: var(--accent-2);
  transform: rotate(45deg);
}

/* ---- Sección empresarial destacada ---- */
.area-detail-featured {
  background: linear-gradient(160deg, rgba(59, 95, 130, 0.15), rgba(59, 95, 130, 0.05));
  border-bottom: none;
}
.area-detail-featured .area-detail-services {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border-color: rgba(200, 210, 222, 0.22);
}

/* ---- CTA final ---- */
.area-detail-cta {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.area-detail-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--on-navy);
  margin-bottom: 14px;
}
.area-detail-cta p {
  color: var(--on-navy-mute);
  font-size: 1.05rem;
  max-width: 50ch;
  margin: 0 auto 30px;
}

/* ============================================================
   NUEVO: CARRUSEL DE IMÁGENES POR ÁREA (areas.html)
   3 imágenes con fade, dots interactivos, autoplay
   AJUSTE: tamaño reducido, más compacto y proporcional
   ============================================================ */
.area-img-carousel {
  position: relative;
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.area-img-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 260px;
  overflow: hidden;
}

.area-img-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s var(--ease), transform 3s ease-out;
}
.area-img-track img.is-active {
  opacity: 1;
  transform: scale(1);
}

.area-img-track::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 31, 57, 0.15) 0%,
    transparent 30%,
    transparent 70%,
    rgba(12, 31, 57, 0.4) 100%
  );
}

.area-img-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 0;
}

.area-img-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.35s var(--ease), background 0.35s var(--ease), border-radius 0.35s var(--ease);
  border: none;
  cursor: pointer;
}
.area-img-dot.is-active {
  width: 28px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--silver));
}

@media (prefers-reduced-motion: reduce) {
  .area-img-track img {
    transition: opacity 0.3s;
    transform: none;
  }
  .area-img-track img.is-active { transform: none; }
}

/* Accesibilidad: sin animación si reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .area-img-track img {
    transition: opacity 0.3s;
    transform: none;
  }
  .area-img-track img.is-active { transform: none; }
}

/* ---- Responsive áreas detalle ---- */
@media (max-width: 1024px) {
  .area-detail-split {
    grid-template-columns: 1fr;
    gap: 34px;
    .area-img-track { aspect-ratio: 16 / 8; max-height: 240px; }
  .area-img-carousel { max-width: 100%; }
  }
  .area-detail-split.reverse { direction: ltr; }

  /* Carrusel de área: ratio más alto en tablet */
  .area-img-track { aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
  .area-detail-services { padding: 24px 20px; }
  .area-detail-cta { padding: 40px 24px; }

  /* Carrusel de área: ratio cuadrado en mobile */
  .area-img-track { aspect-ratio: 4 / 3; max-height: 220px; }
}
/* ============================================================
   TARJETAS DE ÁREA SIMPLIFICADAS (index.html)
   Solo nombre + kicker, click abre modal
   ============================================================ */
.area-card-mini {
  cursor: pointer;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
}

/* Efecto de brillo que recorre la tarjeta al hover */
.area-card-mini::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: linear-gradient(115deg, transparent, rgba(59, 95, 130, 0.12), transparent);
  transform: skewX(-20deg) translateX(-100%);
  transition: none;
  pointer-events: none;
}
.area-card-mini:hover::after {
  animation: areaCardShine 0.8s var(--ease) forwards;
}
@keyframes areaCardShine {
  from { transform: skewX(-20deg) translateX(-100%); }
  to   { transform: skewX(-20deg) translateX(420%); }
}

/* Borde animado al hover */
.area-card-mini:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 20px 50px rgba(18, 44, 79, 0.18);
  border-color: var(--accent-2);
}

/* Hint que aparece al hover */
.area-card-hint {
  display: block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.area-card-mini:hover .area-card-hint {
  opacity: 1;
  transform: none;
}

/* Featured mini card adjustments */
.area-card-mini.area-featured {
  border-color: transparent;
}
.area-card-mini.area-featured:hover {
  border-color: rgba(200, 210, 222, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   MODAL DE ÁREA (index.html)
   ============================================================ */
.area-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.area-modal.open { display: flex; }

.area-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 31, 57, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: modalBackdropIn 0.5s var(--ease) forwards;
}

.area-modal-box {
  position: relative;
  z-index: 1;
  width: min(380px, 92%);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59, 95, 130, 0.35);
  max-height: 80vh;
  /* FIX: la caja SOLO recorta (no scrollea); así el ::before del shine,
     que mide 200% de alto, queda oculto y no genera una barra de scroll falsa */
  overflow: hidden;
  text-align: center;
  opacity: 0;
  transform: translateY(36px) scale(0.92);
  animation: lawyerModalIn 0.6s var(--ease) forwards, areaGlowPulse 2.6s ease-in-out 0.6s infinite;
  box-shadow: 0 20px 60px rgba(18, 44, 79, 0.35), 0 0 0 1px rgba(59, 95, 130, 0.08);
}

/* FIX: el scroll real (solo si el contenido no entra) vive acá adentro,
   separado del elemento que tiene el shine, para que ese efecto decorativo
   no cuente como "contenido" y dispare la scrollbar sin necesidad */
.area-modal-scroll {
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 46px 32px 36px;
}

/* Glow pulsante — le da el aire "futurista" a la tarjeta */
@keyframes areaGlowPulse {
  0%, 100% { box-shadow: 0 20px 60px rgba(18, 44, 79, 0.35), 0 0 0 1px rgba(59, 95, 130, 0.08), 0 0 26px rgba(59, 95, 130, 0.14); }
  50%      { box-shadow: 0 20px 60px rgba(18, 44, 79, 0.35), 0 0 0 1px rgba(59, 95, 130, 0.16), 0 0 48px rgba(59, 95, 130, 0.32); }
}

/* Ícono circular con anillos tipo radar */
.area-modal-icon {
  position: relative;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), var(--accent-2));
  color: #fff;
  opacity: 0;
  animation: lawyerFadeUp 0.6s var(--ease) forwards;
  animation-delay: 0.15s;
}
.area-modal-icon svg { width: 25px; height: 25px; position: relative; z-index: 2; }

.area-modal-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent-2);
  opacity: 0;
  animation: areaRingPing 2.4s ease-out infinite;
}
.area-modal-icon-ring-2 { animation-delay: 0.9s; }

@keyframes areaRingPing {
  0%   { transform: scale(1);   opacity: 0.55; }
  80%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Shine effect */
.area-modal-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: linear-gradient(115deg, transparent, rgba(59, 95, 130, 0.1), transparent);
  transform: skewX(-20deg) translateX(-40%);
  animation: lawyerModalShine 1.1s 0.35s var(--ease) forwards;
  pointer-events: none;
  z-index: 2;
}

.area-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-0);
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
  transition: background 0.25s, transform 0.25s var(--ease);
  z-index: 3;
}
.area-modal-close:hover {
  background: var(--navy);
  color: #fff;
  transform: rotate(90deg);
}

.area-modal-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
  opacity: 0;
  animation: lawyerFadeUp 0.6s var(--ease) forwards;
  animation-delay: 0.2s;
}

.area-modal-box h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  opacity: 0;
  animation: lawyerFadeUp 0.6s var(--ease) forwards;
  animation-delay: 0.3s;
}
.area-modal-box h3::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -8px;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  transform: translateX(-50%) scaleX(0);
  animation: lawyerLineIn 0.9s var(--ease) forwards;
  animation-delay: 0.5s;
}

.area-modal-desc {
  color: var(--ink-mute);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 22px;
  opacity: 0;
  animation: lawyerFadeUp 0.6s var(--ease) forwards;
  animation-delay: 0.4s;
}

.area-modal-list {
  text-align: left;
  margin: 0 auto 28px;
  max-width: 460px;
  opacity: 0;
  animation: lawyerFadeUp 0.6s var(--ease) forwards;
  animation-delay: 0.5s;
}
.area-modal-list li {
  font-size: 0.92rem;
  padding: 8px 0 8px 22px;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.area-modal-list li:last-child { border-bottom: none; }
.area-modal-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 16px;
  width: 6px; height: 6px;
  background: var(--accent-2);
  transform: rotate(45deg);
}

.area-modal-cta {
  opacity: 0;
  animation: lawyerFadeUp 0.6s var(--ease) forwards;
  animation-delay: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  .area-modal-backdrop,
  .area-modal-box,
  .area-modal-box::before,
  .area-modal-icon,
  .area-modal-kicker,
  .area-modal-box h3,
  .area-modal-box h3::after,
  .area-modal-desc,
  .area-modal-list,
  .area-modal-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .area-modal-icon-ring { display: none; }
}

@media (max-width: 720px) {
  .area-modal-box { padding: 38px 24px 30px; }
  .area-modal-box h3 { font-size: 1.25rem; }
}

/* ============================================================
   RESEÑAS DE GOOGLE — sección simplificada (index.html)
   ============================================================ */
.reviews { background: var(--bg-0); }

/* CTA para ver reseñas en Google */
.reviews-cta {
  text-align: center;
  margin-top: 8px;
}
.reviews-btn {
  gap: 10px;
}
.reviews-btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   NUEVO: CARRUSEL DE FOTOS DE LA SEDE (index.html)
   Scroll continuo e infinito, lento
   ============================================================ */
.sede-section {
  padding: 80px 0 90px;
  overflow: hidden;
}

.sede-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.sede-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: sedeScroll 40s linear infinite;
  will-change: transform;
}

.sede-marquee-track img {
  width: 420px;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.sede-marquee-track img:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

@keyframes sedeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Se mueve exactamente la mitad del track (6 imágenes + 6 gaps) */
    transform: translateX(calc(-50% - 10px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sede-marquee-track {
    animation: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .sede-marquee-track img {
    scroll-snap-align: start;
  }
}

/* Responsive fotos sede */
@media (max-width: 720px) {
  .sede-marquee-track img {
    width: 360px;
    height: 280px;
  }
  .sede-marquee-track {
    gap: 14px;
    animation-duration: 30s;
  }
}