/* ============================================================
   IURIS CONSULENTI — Design System
   Minimalista, elegante, rojo como acento
   ============================================================ */

/* --- Variables --- */
:root {
  --red:        #8B0000;
  --red-hover:  #6d0000;
  --red-light:  rgba(139,0,0,.06);
  --bg:         #ffffff;
  --bg-alt:     #f7f6f8;   /* lavanda muy tenue, estilo aireado */
  --bg-tint:    #f1eff3;   /* tinte un poco más marcado para secciones */
  --bg-dark:    #2b2730;   /* ya no negro: gris berenjena suave para el footer */
  --text:       #25222a;   /* tinta suave, no negro puro */
  --text-soft:  #5a5760;
  --text-light: #908d97;
  --border:     #e7e4ea;
  --gold:       #c9c5a8;
  --ghost:      #ece9ef;   /* gris para titulares "fantasma" */
  --max-w:      1100px;
  --hdr-h:      80px;
  --radius:     3px;
  --shadow:     0 6px 30px rgba(43,39,48,.08);
}

/* Titular "fantasma" gigante (estilo ylaw "KNOW YLAW") */
.ghost-title {
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ghost);
  text-transform: uppercase;
  margin-bottom: -.4rem;
  user-select: none;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
/* Fondo de columnas móvil: oculto por defecto, visible solo en @media ≤640px */
.bg-columnas-mobile { display: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Libre Caslon Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-soft); line-height: 1.85; }
strong { color: var(--text); }

/* --- Layout helpers --- */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5.5rem 0; }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--bg-tint); }
.section--dark h2,
.section--dark h3 { color: var(--text); }
.section--dark p  { color: var(--text-soft); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Section header */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
}
.section-title { margin-bottom: 1rem; }
.section-intro { max-width: 620px; margin: 0 auto 3rem; font-size: 1.05rem; }

/* Divider */
.divider {
  width: 48px; height: 3px;
  background: var(--red);
  margin: 1rem 0 2rem;
}
.divider--center { margin: 1rem auto 2rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: background .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--red   { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); }
.btn--outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--white {
  background: #fff;
  color: var(--red);
  font-weight: 700;
}
.btn--white:hover { background: #f0f0f0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hdr-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  line-height: 0;
}
.site-logo img {
  height: 52px;
  width: auto;
  /* Logo recoloreado a rojo profundo + extrusión 3D */
  filter:
    brightness(0) saturate(100%)
    invert(13%) sepia(95%) saturate(3500%) hue-rotate(355deg) brightness(70%) contrast(105%)
    drop-shadow(1px 1px 0 rgba(0,0,0,.35))
    drop-shadow(2px 2px 0 rgba(0,0,0,.25))
    drop-shadow(3px 3px 0 rgba(0,0,0,.15))
    drop-shadow(4px 4px 0 rgba(0,0,0,.08));
  transition: transform .3s ease;
}
.site-logo img:hover {
  transform: translateY(-1px);
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.header-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .1rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.header-phones a {
  color: var(--text-soft);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}
.header-phones a::before {
  content: attr(data-label);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--red);
  background: var(--red-light);
  padding: .05rem .3rem;
  border-radius: 3px;
}
.header-phones a:hover { color: var(--red); }

/* Nav */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.site-nav a {
  display: block;
  padding: .45rem .75rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active { color: var(--red); background: var(--red-light); }
.site-nav .btn { padding: .55rem 1.2rem; font-size: .82rem; }

/* Mobile hamburger (CSS-only) */
.nav-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .2s;
}
.hamburger:hover { background: var(--bg-alt); }
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
/* Animate hamburger → X */
.nav-toggle:checked ~ .site-header .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked ~ .site-header .hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked ~ .site-header .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--bg-alt);
  color: var(--text);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: var(--red);
  z-index: 3;
}
/* Grid de 2 columnas: el texto vive SIEMPRE en la mitad izquierda
   (no puede solaparse con la imagen de la derecha). */
.hero--split .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  min-height: 600px;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero-copy { max-width: 520px; }
.hero-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--text); margin-bottom: 1.25rem; }
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}
.hero p  {
  color: var(--text-soft);
  font-size: 1.1rem;
  max-width: 440px;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* --- Hero split: imagen Lady Justice con luz cálida a la derecha --- */
.hero--split .hero-figure {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 48%;
  z-index: 1;
  overflow: hidden;
}
.hero--split .hero-figure img {
  display: block;
  width: 100%; height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 72% center;
  /* la imagen ya es cálida: solo un realce muy leve */
  filter: saturate(1.05) contrast(1.02);
}
/* Desvanecido fuerte hacia el texto: el tercio izquierdo de la imagen queda
   en fondo sólido para que el título y el párrafo se lean sobre fondo limpio */
.hero--split .hero-figure::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--bg-alt) 0%, var(--bg-alt) 24%, rgba(247,246,248,.6) 44%, rgba(247,246,248,0) 72%);
  pointer-events: none;
}
/* Acento rojo sutil en el borde inferior de la imagen */
.hero--split .hero-figure::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 40%;
  background: linear-gradient(to top, rgba(139,0,0,.10), transparent);
  pointer-events: none;
}

/* ============================================================
   SERVICES GRID (home)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s ease;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 44px; height: 44px;
  margin-bottom: 1.25rem;
  color: var(--red);
}
.service-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.service-card p  { font-size: .9rem; line-height: 1.7; }
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--red);
  transition: gap .2s;
}
.service-card:hover .card-link { gap: .6rem; }

/* ============================================================
   ABOUT SNIPPET (home)
   ============================================================ */
/* About split: espejo del hero — foto izquierda sangrando, texto derecha */
.about--split { position: relative; overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  min-height: 560px;
  padding: 5rem 0;
}
.about-grid > div:first-child { grid-column: 2; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.stat-item { border-left: 3px solid var(--red); padding-left: 1rem; }
.stat-num  { font-family: 'Libre Caslon Display', Georgia, serif; font-size: 2rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: .82rem; color: var(--text-light); margin-top: .15rem; }
.about-image {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 48%;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}
.about-image img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}
/* Degradado derecho: funde la foto con el fondo del texto */
.about-image::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(247,246,248,0) 55%,
    rgba(247,246,248,.7) 75%,
    var(--bg-alt) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--red);
  padding: 4rem 0;
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p  { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 2rem; }

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.team-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.team-card-img {
  height: 220px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--gold);
  overflow: hidden;
}
.team-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-card-body { padding: 1.5rem; }
.team-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.team-card-role {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: .75rem;
}
.team-card p { font-size: .88rem; line-height: 1.75; }
.team-card-email {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--text-light);
  transition: color .2s;
}
.team-card-email:hover { color: var(--red); }

/* ============================================================
   PRACTICE AREA PAGES (inner layout)
   ============================================================ */
.page-hero {
  position: relative;
  background: var(--bg-alt);
  padding: 4rem 0 3.5rem;
  color: var(--text);
  border-bottom: 4px solid var(--red);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(247, 246, 248, 0.76);
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 641px) {
  .page-hero {
    background: url('../images/bg-columnas.jpg') center 30% / cover no-repeat;
  }
}
.page-hero .container { max-width: 800px; position: relative; z-index: 1; }
.page-hero .section-label { color: var(--red); }
.page-hero h1 { color: var(--text); margin: .5rem 0 1rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p  { color: var(--text-soft); font-size: 1.05rem; max-width: 600px; }

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 4rem 0;
}
.content-main h2 { font-size: 1.55rem; margin: 2rem 0 .75rem; color: var(--text); }
.content-main h2:first-child { margin-top: 0; }
.content-main p { margin-bottom: 1.1rem; }
.content-main ul { margin: .75rem 0 1.1rem 0; }
.content-main ul li {
  padding: .4rem 0 .4rem 1.4rem;
  position: relative;
  color: var(--text-soft);
  font-size: .95rem;
}
.content-main ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .85rem;
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
}

/* Sidebar */
.content-sidebar { }
.sidebar-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border-top: 3px solid var(--red);
}
.sidebar-card h4 { margin-bottom: .85rem; font-size: .95rem; }
.sidebar-card ul li {
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .87rem;
}
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { color: var(--text-soft); transition: color .2s; }
.sidebar-card ul li a:hover { color: var(--red); }
.sidebar-contact {
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.sidebar-contact h4 { color: #fff; margin-bottom: .6rem; }
.sidebar-contact p  { color: rgba(255,255,255,.85); font-size: .88rem; margin-bottom: 1.25rem; }
.sidebar-contact .btn { width: 100%; justify-content: center; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  padding: 4rem 0;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info .divider { margin-top: 0; }
.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.contact-item:last-of-type { border-bottom: none; }
.contact-icon {
  width: 40px; height: 40px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.contact-item-text strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); margin-bottom: .25rem; }
.contact-item-text a { color: var(--text-soft); transition: color .2s; }
.contact-item-text a:hover { color: var(--red); }

/* Form */
.contact-form-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2.5rem;
  border-top: 4px solid var(--red);
}
.contact-form-card h3 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-soft);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  font-size: .92rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(139,0,0,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-msg {
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  margin-top: 1rem;
  display: none;
}
.form-msg.success { background: #d4edda; color: #155724; display: block; }
.form-msg.error   { background: #f8d7da; color: #721c24; display: block; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.value-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
}
.value-card h4 { margin-bottom: .5rem; }
.value-card p  { font-size: .9rem; }

/* Mission / Vision */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.mv-card {
  padding: 2.5rem;
  border-radius: var(--radius);
}
.mv-card--mission { background: #fff; color: var(--text); border: 1px solid var(--border); border-top: 4px solid var(--red); }
.mv-card--mission h3 { color: var(--text); }
.mv-card--mission p  { color: var(--text-soft); }
.mv-card--vision { background: var(--red); color: #fff; }
.mv-card--vision h3 { color: #fff; }
.mv-card--vision p  { color: rgba(255,255,255,.9); }
.mv-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red);
  display: block; margin-bottom: .6rem;
}
.mv-card--vision .mv-label { color: rgba(255,255,255,.8); }

/* ============================================================
   AREAS HUB PAGE
   ============================================================ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}
.area-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.area-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.area-card-icon {
  width: 48px; height: 48px;
  background: var(--red-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.area-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.area-card p  { font-size: .88rem; line-height: 1.7; margin-bottom: .75rem; }
.area-card .card-link { font-size: .8rem; font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s; }
.area-card:hover .card-link { gap: .55rem; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: .9rem 0;
  font-size: .8rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-light); transition: color .2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 .4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-alt);
  color: var(--text-soft);
  padding: 2.25rem 0 0;
  border-top: 4px solid var(--red);
}
/* Fila 1: logo + navegación */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
}
.footer-logo img {
  height: 40px;
  display: block;
  /* Logo rojo 3D, igual que el header */
  filter:
    brightness(0) saturate(100%)
    invert(13%) sepia(95%) saturate(3500%) hue-rotate(355deg) brightness(70%) contrast(105%)
    drop-shadow(1px 1px 0 rgba(0,0,0,.25))
    drop-shadow(2px 2px 0 rgba(0,0,0,.15))
    drop-shadow(3px 3px 0 rgba(0,0,0,.08));
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-nav a {
  font-size: .85rem;
  color: var(--text-soft);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--red); }
/* Fila 2: contacto en línea */
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  color: var(--text-soft);
}
.footer-contact svg { flex-shrink: 0; color: var(--red); }
.footer-contact a { color: var(--text-soft); transition: color .2s; }
.footer-contact a:hover { color: var(--red); }
/* Fila 3: copyright */
.footer-bottom {
  padding: 1.1rem 0;
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-light);
}
.footer-bottom a { color: var(--text-light); transition: color .2s; }
.footer-bottom a:hover { color: var(--red); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.bg-alt { background: var(--bg-alt); }
.pill {
  display: inline-block;
  padding: .3rem .8rem;
  background: var(--red-light);
  color: var(--red);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
}

/* Oficina Virtual price highlight */
.price-highlight {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  background: var(--red-light);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  margin: 1.25rem 0;
  border-left: 3px solid var(--red);
}
.price-highlight .amount { font-family: 'Libre Caslon Display', Georgia, serif; font-size: 2rem; font-weight: 700; color: var(--red); }
.price-highlight .period { font-size: .9rem; color: var(--text-soft); }

/* ============================================================
   FAQ (acordeón nativo, sin JS)
   ============================================================ */
.faq-list { max-width: 820px; margin: 2.5rem auto 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .85rem;
  background: var(--bg);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: var(--red); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--red);
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--red); }
.faq-answer { padding: 0 1.5rem 1.4rem; }
.faq-answer p { color: var(--text-soft); font-size: .95rem; line-height: 1.8; margin-bottom: .75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  /* El nav horizontal completo + logo + teléfonos no caben bajo ~1150px:
     colapsamos a menú hamburguesa para que nada se salga del header. */
  .hamburger { display: flex; margin-right: 6px; }
  .site-nav {
    position: absolute;
    top: var(--hdr-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 2px solid var(--red);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 1rem;
    display: none;
  }
  .nav-toggle:checked ~ .site-header .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: .25rem; align-items: stretch; }
  .site-nav a { padding: .75rem 1rem; }
  .site-nav .btn { margin-top: .5rem; text-align: center; justify-content: center; }
  .header-right { gap: 1.25rem; }
}

@media (max-width: 900px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .team-grid      { grid-template-columns: repeat(2, 1fr); }
  .areas-grid     { grid-template-columns: 1fr; }
  .about-grid     { grid-template-columns: 1fr; min-height: 0; padding: 3.5rem 0; }
  .about-grid > div:first-child { grid-column: 1; }
  .about-image    { display: none; }
  /* Hero móvil: imagen portrait full-screen con overlay oscuro cálido */
  .hero--split {
    background-image: url('../images/hero-justicia-mobile.jpg');
    background-size: cover;
    background-position: center 15%;
  }
  .hero--split::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
      160deg,
      rgba(18,12,8,.65) 0%,
      rgba(25,15,8,.55) 55%,
      rgba(100,20,0,.28) 100%
    );
    z-index: 1;
  }
  .hero--split .container {
    grid-template-columns: 1fr;
    min-height: 90vh;
    padding-top: 5rem; padding-bottom: 5rem;
    align-items: center;
    justify-items: center;
    text-align: center;
  }
  .hero--split .hero-copy { max-width: 480px; }
  .hero--split .hero-figure { display: none; }
  .hero--split .hero-label { color: #f0c070; }
  .hero--split h1 { color: #fff; }
  .hero--split h1 em { color: #f0c070; }
  .hero--split p { color: rgba(255,255,255,.88); }
  .hero--split .hero-actions { justify-content: center; }
  .hero--split .btn--outline {
    border-color: rgba(255,255,255,.65);
    color: #fff;
  }
  .hero--split .btn--outline:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
  }
  .content-layout { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .mv-grid        { grid-template-columns: 1fr; }
  .values-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --hdr-h: 64px; }
  .section { padding: 3.5rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid     { grid-template-columns: 1fr; }
  .values-grid   { grid-template-columns: 1fr; }
  .footer-top    { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-nav    { gap: 1rem 1.25rem; }
  .footer-bottom { flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
  .hero { min-height: 480px; padding: 4rem 0; }
  /* === Fondo fijo de columnas en páginas interiores === */
  body:has(.bg-columnas-mobile) { background: transparent; }

  .bg-columnas-mobile {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      linear-gradient(rgba(247,246,248,0.88), rgba(247,246,248,0.88)),
      url('../images/bg-columnas.jpg') center 30% / cover no-repeat;
  }

  /* Secciones y breadcrumb transparentes para que la foto se vea a través */
  body:has(.bg-columnas-mobile) .breadcrumb,
  body:has(.bg-columnas-mobile) .section,
  body:has(.bg-columnas-mobile) .section--alt,
  body:has(.bg-columnas-mobile) .section--dark {
    background: transparent;
    position: relative;
    z-index: 1;
  }

  /* page-hero sin su propio fondo en móvil */
  .page-hero { background: transparent; }
  .page-hero::before { display: none; }

  /* Header y footer sólidos, por encima del div */
  body:has(.bg-columnas-mobile) .site-header { position: sticky; z-index: 100; }
  body:has(.bg-columnas-mobile) .site-footer { position: relative; z-index: 1; background: var(--bg-alt); }
  .header-phones { display: none; }
  .about-stats   { grid-template-columns: 1fr 1fr; }
  .header-right { gap: 1rem; }
  .site-logo img { height: 38px; }
}
