/* ════════════════════════════════════════════════════════════════════════
   Medina de La Paz Consultores — Hoja de estilos del sitio público
   Diseño iOS suave y fluido · paleta original (#CC6805 · #161513 · #FAF9F7)
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #faf9f7;
  --fg: #2d2d2d;
  --card: #ffffff;
  --brand: #cc6805;
  --brand-dark: #a35304;
  --brand-light: #e8954f;
  --ink: #2d2d2d;
  --ink-soft: #545454;
  --muted: #808080;
  --secondary: #f3f1ee;
  --accent: #faf3ea;
  --accent-fg: #a35304;
  --border: rgba(45, 45, 45, .08);
  --ring: rgba(204, 104, 5, .45);
  --hero-bg: #161513;
  --radius: 1.25rem;
  --radius-card: 1.5rem;
  --radius-soft: 12px;
  --shadow-ios: 0 8px 30px rgba(45, 45, 45, .08), 0 2px 8px rgba(45, 45, 45, .04);
  --shadow-ios-lg: 0 18px 60px rgba(45, 45, 45, .14), 0 4px 16px rgba(45, 45, 45, .06);
  --shadow-brand: 0 10px 34px rgba(204, 104, 5, .32);
  --ease-ios: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 88rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(204, 104, 5, .22); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

section[id] { scroll-margin-top: 4.5rem; }

.ico {
  width: 1em; height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  border-radius: 999px;
  padding: .875rem 1.75rem;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  transition: transform .3s var(--ease-ios), box-shadow .3s var(--ease-ios), background-color .3s var(--ease-ios), border-color .3s var(--ease-ios), color .3s var(--ease-ios);
}
.btn:active { transform: scale(.95); }
.btn .ico { width: 1.05em; height: 1.05em; }

.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-brand:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(204, 104, 5, .45);
}
.btn-brand .ico { transition: transform .3s var(--ease-ios); }
.btn-brand:hover .ico { transform: translate(2px, -2px); }

.btn-glass {
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 500;
}
.btn-glass:hover {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.btn-block { width: 100%; }

.btn-spinner {
  display: none;
  width: 1.05em; height: 1.05em;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Superficies iOS ─────────────────────────────────────── */
.card-ios {
  background: var(--card);
  border: 1px solid rgba(45, 45, 45, .06);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-ios);
  padding: 1.75rem;
}

.glass {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .65);
}

.brand-grad {
  background: linear-gradient(135deg, #cc6805 0%, #e8954f 60%, #a35304 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Reveal on scroll (iOS blur + rise) ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition: opacity .8s var(--ease-ios), transform .8s var(--ease-ios), filter .8s var(--ease-ios);
}
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════ NAVBAR ═══════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .45s var(--ease-ios), box-shadow .45s var(--ease-ios), backdrop-filter .45s;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: .875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) { .nav-inner { padding: 1rem 2rem; } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.nav-logo-img {
  height: 3rem;
  width: auto;
  object-fit: contain;
  transition: filter .45s;
  /* El src (versión blanca/color) lo gestionan SSR + site.js según config y scroll */
}
.nav-logo-text {
  display: none;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: .01em;
  color: #fff;
  transition: color .45s;
}
.nav-logo-text span { display: block; font-size: .8125rem; color: rgba(255, 255, 255, .6); transition: color .45s; }
@media (min-width: 900px) { .nav-logo-text { display: block; } }

.nav-links {
  position: relative;
  display: none;
  align-items: center;
  gap: .25rem;
  padding: .3rem;
  border-radius: 999px;
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-pastilla {
  position: absolute;
  top: .3rem;
  height: calc(100% - .6rem);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: left .55s var(--ease-spring), width .55s var(--ease-spring), background-color .45s, border-color .45s;
  pointer-events: none;
}

.nav-link {
  position: relative;
  z-index: 1;
  padding: .5rem .9rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .72);
  transition: color .3s, transform .3s var(--ease-ios);
  white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.nav-link:active { transform: scale(.96); }
.nav-link.is-active { color: #fff; font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: .625rem; }

.nav-cta {
  display: none;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .625rem 1.15rem;
  font-size: .8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  box-shadow: var(--shadow-brand);
  transition: transform .3s var(--ease-ios), background-color .3s;
}
.nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }
.nav-cta:active { transform: scale(.96); }
.nav-cta .ico { width: .9em; height: .9em; }
@media (min-width: 1100px) { .nav-cta { display: inline-flex; } }

.nav-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: color .3s, border-color .3s, transform .3s var(--ease-ios);
}
.nav-lock:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.nav-lock:active { transform: scale(.94); }
.nav-lock .ico { width: 1.05rem; height: 1.05rem; }

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
}
.nav-burger span {
  width: 1.05rem;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .85);
  transition: transform .4s var(--ease-ios), opacity .3s;
}
@media (min-width: 900px) { .nav-burger { display: none; } }
.nav-burger.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav-drawer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  /* Glass oscuro tipo iOS sobre el hero: sin esto el menú quedaba
     transparente en el tope del Inicio y los enlaces (texto blanco)
     se perdían sobre el contenido claro al desbordar el hero en móvil. */
  background: rgba(22, 21, 19, .94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 24px 48px rgba(22, 21, 19, .4);
  transition: max-height .5s var(--ease-ios), opacity .4s;
}
.nav-drawer.is-open {
  max-height: 26rem;
  opacity: 1;
  padding-bottom: env(safe-area-inset-bottom);
}
/* Velo oscuro bajo el drawer abierto (patrón iOS, z-index bajo el nav) */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(22, 21, 19, .45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer-link, .drawer-cta, .drawer-admin {
  display: block;
  padding: .8rem 2rem;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
}
.drawer-link:active, .drawer-link.is-active { color: #fff; background: rgba(255, 255, 255, .07); }
.drawer-cta {
  margin: .5rem 1.5rem;
  border-radius: 999px;
  text-align: center;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.drawer-admin { font-size: .8125rem; color: rgba(255, 255, 255, .5); }

/* Navbar desplegada tras el hero (glass claro) */
.nav.is-scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(45, 45, 45, .06), 0 10px 34px rgba(45, 45, 45, .07);
}
.nav.is-scrolled .nav-logo-img { /* logo de color aplicado por JS (data-logo-color) */ }
.nav.is-scrolled .nav-logo-text { color: var(--ink); }
.nav.is-scrolled .nav-logo-text span { color: var(--muted); }
.nav.is-scrolled .nav-link { color: var(--ink-soft); }
.nav.is-scrolled .nav-link.is-active { color: var(--accent-fg); }
.nav.is-scrolled .nav-pastilla {
  background: var(--accent);
  border-color: rgba(204, 104, 5, .25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav.is-scrolled .nav-lock { color: var(--ink); border-color: rgba(45, 45, 45, .2); }
.nav.is-scrolled .nav-burger { border-color: rgba(45, 45, 45, .14); }
.nav.is-scrolled .nav-burger span { background: var(--ink); }
.nav.is-scrolled .drawer-link { color: var(--ink-soft); }
.nav.is-scrolled .drawer-link.is-active, .nav.is-scrolled .drawer-link:active { color: var(--ink); background: var(--secondary); }
.nav.is-scrolled .drawer-admin { color: var(--muted); }
.nav.is-scrolled .nav-drawer {
  background: rgba(255, 255, 255, .96);
  border-top-color: rgba(45, 45, 45, .07);
  box-shadow: 0 18px 40px rgba(45, 45, 45, .12);
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: #fff;
}

.hero-bg { position: absolute; inset: 0; }
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .38;
  -webkit-mask-image: linear-gradient(to right, transparent 2%, black 42%, black 75%, transparent);
  mask-image: linear-gradient(to right, transparent 2%, black 42%, black 75%, transparent);
}
.hero-bg-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(22, 21, 19, .85), rgba(22, 21, 19, .55) 45%, #161513);
}
.hero-bg-left {
  position: absolute; inset: 0;
  background: linear-gradient(to right, #161513, rgba(22, 21, 19, .55) 55%, transparent);
}
@media (min-width: 1024px) { .hero-bg-left { width: 62%; } }

.hero-glow {
  position: absolute;
  right: 4%; top: 16%;
  width: 46rem; height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 104, 5, .2), rgba(204, 104, 5, .05) 45%, transparent 68%);
  transition: transform .6s var(--ease-ios);
}
.hero-grid-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
}
.hero-hairline { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .05); display: none; }
.hero-hairline-l { left: 7%; }
.hero-hairline-r { right: 7%; }
@media (min-width: 1280px) { .hero-hairline { display: block; } }

.hero-wrap {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 6rem 1.25rem 2.5rem;
}
@media (min-width: 640px) { .hero-wrap { padding: 6.5rem 2rem 2.5rem; } }
@media (min-width: 1024px) { .hero-wrap { padding-top: 7.5rem; } }

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  padding-bottom: 1rem;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 2rem; }
}
@media (min-width: 1280px) { .hero-grid { gap: 3.5rem; } }

/* — Columna de texto — */
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 1024px) { .hero-copy { align-items: flex-start; text-align: left; } }

.hero-kicker { display: flex; align-items: center; gap: .75rem; }
.kicker-text {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: var(--brand-light);
}
.rule { height: 1px; width: 2.5rem; background: linear-gradient(to right, transparent, rgba(232, 149, 79, .8)); }
.rule-r { background: linear-gradient(to left, transparent, rgba(232, 149, 79, .8)); }
@media (min-width: 1024px) { .rule-r { display: none; } }

.hero-title {
  margin: 1.5rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 4.35rem);
  line-height: 1.06;
  font-weight: 700;
  color: #fff;
}
.hero-title em { font-style: italic; font-weight: 300; color: rgba(255, 255, 255, .9); }
.hero-title .soft { font-weight: 300; color: rgba(255, 255, 255, .75); }

.hero-sub {
  margin: 1.75rem 0 0;
  max-width: 36rem;
  font-size: .9375rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, .65);
}
@media (min-width: 640px) { .hero-sub { font-size: 1rem; } }
.hero-sub b { font-weight: 500; color: rgba(255, 255, 255, .85); }

.hero-ctas {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .875rem;
}
@media (min-width: 1024px) { .hero-ctas { justify-content: flex-start; } }

.hero-stats {
  margin-top: 3rem;
  width: 100%;
  max-width: 36rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 1.75rem;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 0 .5rem; }
@media (min-width: 1024px) { .stat { align-items: flex-start; padding: 0 1.25rem; } }
.stat:first-child { padding-left: 0; }
.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: .625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  line-height: 1.6;
  color: rgba(255, 255, 255, .5);
}
@media (min-width: 640px) { .stat-label { font-size: .6875rem; } }
.hero-stats .stat + .stat { border-left: 1px solid rgba(255, 255, 255, .1); }

/* — Escena visual — */
.hero-scene-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.hero-scene {
  position: relative;
  display: flex;
  flex-direction: column; /* foto arriba, tarjeta de datos debajo (móvil/tablet) */
  align-items: center;
  justify-content: center;
  transition: transform .7s var(--ease-ios);
}

.hero-frame {
  position: absolute;
  inset: -2rem;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 2.75rem;
  pointer-events: none;
}
@media (min-width: 640px) { .hero-frame { inset: -3rem; } }

/* Contenedor del abogado: CUADRADO con esquinas levemente redondeadas.
   La animación de entrada vive en el wrapper para no congelar el transform
   del card; al pasar el mouse la foto sobresale un poco hacia afuera (pop). */
.hero-card-wrap {
  animation: heroCardIn .85s var(--ease-ios) .35s backwards;
}
@keyframes heroCardIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

.hero-card {
  position: relative;
  margin: 0;
  width: min(74vw, 330px);
  aspect-ratio: 10 / 16.5;
  overflow: hidden;
  border-radius: var(--radius-soft);
  border: 1px solid rgba(255, 255, 255, .15);
  background: linear-gradient(to bottom, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color .5s, box-shadow .5s, transform .7s var(--ease-spring);
}
@media (min-width: 640px) { .hero-card { width: min(60vw, 360px); } }
@media (min-width: 1024px) { .hero-card { width: min(42vw, 380px); } }

/* POP hacia afuera al pasar el mouse (scale 1.035 con rebote suave) */
.hero-card:hover {
  transform: scale(1.035);
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .45);
}
.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity .65s var(--ease-ios), transform .65s var(--ease-ios), filter .65s var(--ease-ios);
}
.hero-card img.img-enter { opacity: 0; transform: translateX(46px) scale(1.05); filter: blur(8px); }
.hero-card img.img-exit { opacity: 0; transform: translateX(-46px) scale(1.03); filter: blur(8px); }
.hero-card.img-dir-back img.img-enter { transform: translateX(-46px) scale(1.05); }
.hero-card.img-dir-back img.img-exit { transform: translateX(46px) scale(1.03); }

.hero-card-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(22, 21, 19, .85), transparent);
}
.hero-card-line {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(to right, transparent, rgba(232, 149, 79, .7), transparent);
}

/* Insignia rotatoria */
.hero-seal {
  position: absolute;
  top: 10%;
  right: -1.5rem;
  width: 6rem; height: 6rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sealIn .6s var(--ease-spring) .95s backwards;
}
@media (min-width: 640px) { .hero-seal { right: -2.25rem; width: 7rem; height: 7rem; } }
@media (min-width: 1024px) { .hero-seal { right: -3rem; width: 8rem; height: 8rem; } }
@keyframes sealIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

.seal-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: sealSpin 32s linear infinite;
}
@keyframes sealSpin { to { transform: rotate(360deg); } }

.seal-core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: var(--shadow-brand);
}
.seal-core .ico { width: 1.35rem; height: 1.35rem; color: #fff; }

/* Contador 01/07 — vive en la esquina inferior derecha del panel de datos,
   al nivel del email/teléfono (como la referencia), números sobre barra de
   progreso. Oculto en móvil/tablet (como siempre). */
.hero-counter { display: none; }
@media (min-width: 1024px) {
  .hero-counter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .375rem;
    flex: none;
    margin-left: .875rem;
    animation: sealIn .6s var(--ease-ios) 1.05s backwards;
  }
}
.counter-nums {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .55);
  font-variant-numeric: tabular-nums;
}
.counter-nums .counter-sep { margin: 0 .25rem; color: rgba(255, 255, 255, .3); }
.counter-nums #counter-total { color: rgba(255, 255, 255, .85); }
.counter-bar {
  width: 5rem; height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
}
.counter-progress {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(to right, var(--brand-light), var(--brand));
  transform-origin: left;
  transform: scaleX(0);
}

/* Tarjeta glass del abogado — MÓVIL/TABLET: en flujo, debajo de la foto
   (la escena apila en columna; idéntico al diseño original).
   ESCRITORIO: panel anclado al pie de la FOTO, dentro de su contenedor;
   si se agrega más información el panel crece hacia arriba y nunca se
   sale de la imagen del abogado. */
.hero-info {
  position: relative;
  margin: 1.25rem auto 0;
  width: min(100%, 270px);
  z-index: 3;
  animation: heroInfoIn .7s var(--ease-ios) .8s backwards;
}
@media (min-width: 640px) { .hero-info { width: 300px; } }
@media (min-width: 1024px) {
  .hero-info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: auto;
    margin: 0;
  }
  /* Panel más angosto que la foto (margen a los lados y abajo), flotando
     sobre el pie de la imagen con esquinas redondeadas (estilo referencia) */
  .hero-info-card {
    width: auto;
    margin: 0 1rem 1rem;
  }
}
/* Escritorios de altura ajustada (portátiles ≤880px de alto): foto algo más
   compacta para que todo el conjunto quede siempre visible. */
@media (min-width: 1024px) and (max-height: 880px) {
  .hero-card { width: min(42vw, 320px); }
  .hero-info-card { padding: 1rem; margin: 0 .875rem .875rem; }
  .hero-thumbs-wrap { margin-top: 1.25rem; }
  /* Aire bajo el header fijo: navbar 80px + margen (antes 3.25rem = pegado) */
  .hero-wrap { padding-top: 6.5rem; }
}
@keyframes heroInfoIn { from { opacity: 0; transform: translateY(30px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

.hero-info-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(20, 19, 17, .8);
  padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.card-accent {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(to right, transparent, rgba(204, 104, 5, .8), transparent);
}
.hero-cargo {
  margin: 0;
  font-size: .625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--brand-light);
}
.hero-nombre {
  margin: .375rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
/* Fila inferior del panel: contactos a la izquierda + contador a la derecha.
   En móvil el contador está oculto → la fila degrada a los contactos solos. */
.hero-info-row {
  display: flex;
  align-items: flex-end;
  gap: .875rem;
}
.hero-contact {
  flex: 1;
  min-width: 0;
  margin-top: .875rem;
  padding-top: .875rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.hero-contact-row {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .78rem;
  color: rgba(255, 255, 255, .8);
  min-width: 0;
}
.hero-contact-row .ico { width: .875rem; height: .875rem; color: var(--brand-light); }
.hero-contact-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.hero-contact-row:hover span { color: #fff; }

/* Miniaturas */
.hero-thumbs-wrap {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  min-width: 0;
  animation: heroInfoIn .7s var(--ease-ios) 1.1s backwards;
}
@media (min-width: 1024px) { .hero-thumbs-wrap { margin-top: 2rem; } }

.thumb-arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, color .3s, transform .3s var(--ease-ios);
}
.thumb-arrow:hover { border-color: rgba(255, 255, 255, .35); color: #fff; }
.thumb-arrow:active { transform: scale(.9); }

.hero-thumbs {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-width: 0;
  overflow-x: auto;
  padding: .25rem;
  scrollbar-width: none;
}
.hero-thumbs::-webkit-scrollbar { display: none; }

.hero-thumb {
  position: relative;
  flex: none;
  width: 3rem; height: 3rem;
  border-radius: 999px;
  overflow: hidden;
  opacity: .55;
  filter: grayscale(1);
  transition: opacity .3s, filter .3s, transform .5s var(--ease-spring), box-shadow .3s;
}
@media (min-width: 640px) { .hero-thumb { width: 3.35rem; height: 3.35rem; } }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-thumb:hover { opacity: .9; transform: scale(1.08); }
.hero-thumb.is-active {
  opacity: 1;
  filter: none;
  transform: scale(1.12);
  box-shadow: 0 0 0 2px var(--brand), 0 0 0 4px var(--hero-bg);
}

/* ═══════════════════ SECCIONES ═══════════════════ */
.section { padding: 5.5rem 0; position: relative; }

/* ═══════════ Vistas por módulo (una pantalla por sección) ═══════════
   Activo por JS (body.mod-vistas): al pulsar una opción del menú se muestra
   únicamente la pantalla de ese módulo. Sin JS queda el one-page clásico. */
body.mod-vistas main > section:not(.mod-activo) { display: none; }
body.mod-vistas main > section.mod-activo { animation: pantallaIn .55s var(--ease-ios); }
@keyframes pantallaIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  body.mod-vistas main > section.mod-activo { animation: none; }
}
@media (min-width: 640px) { .section { padding: 7rem 0; } }
.section-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .section-wrap { padding: 0 2rem; } }

.section-abogados, .section-clientes { background: #fff; }
.section-servicios { background: var(--secondary); }
.section-contacto { background: var(--accent); }

.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.5rem;
  align-items: end;
  margin-bottom: 3rem;
}
@media (min-width: 1024px) {
  .section-head {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 22rem);
    gap: 2.5rem;
  }
}
.section-num {
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  padding-bottom: .375rem;
  align-self: end;
}
.section-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .75rem;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: var(--brand);
}
.section-kicker .rule { background: linear-gradient(to right, transparent, rgba(204, 104, 5, .7)); }
.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}
.section-desc {
  grid-column: 2;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--muted);
}
@media (min-width: 1024px) { .section-desc { grid-column: 3; align-self: end; text-align: right; } }

/* — Nosotros — */
.nosotros-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) { .nosotros-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; } }

.nosotros-intro .lead {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--ink);
  font-weight: 500;
}
.nosotros-intro p { margin: 0 0 1rem; font-size: .9375rem; line-height: 1.85; color: var(--ink-soft); }
.nosotros-intro p:last-child { margin: 0; }

.nosotros-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 1024px) { .nosotros-stats { grid-template-columns: 1fr; gap: 1.25rem; } }
.stat-tile {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  padding: 1.5rem 1.25rem;
}
.stat-tile-value {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-tile-label {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
}

.mvv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
@media (min-width: 900px) { .mvv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mvv h3 {
  margin: 1rem 0 .625rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.mvv p { margin: 0; font-size: .9375rem; line-height: 1.85; color: var(--ink-soft); }
.mvv-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: .875rem;
  background: var(--accent);
  color: var(--accent-fg);
}
.mvv-ico .ico { width: 1.25rem; height: 1.25rem; }

/* — Abogados — */
.abogados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem;
}

.abogado-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(45, 45, 45, .06);
  box-shadow: var(--shadow-ios);
  padding: 1.25rem;
  text-align: left;
  transition: transform .5s var(--ease-ios), box-shadow .5s var(--ease-ios);
}
.abogado-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-ios-lg); }
.abogado-card:active { transform: scale(.985); }

/* Contenedor de foto: CUADRADO, esquinas levemente redondeadas */
.abogado-foto {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-soft);
  background: linear-gradient(to bottom, var(--secondary), rgba(232, 149, 79, .4));
  margin: 0 auto;
}
.abogado-foto img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(45, 45, 45, .15));
  transition: transform .7s var(--ease-ios);
}
.abogado-card:hover .abogado-foto img { transform: scale(1.02); }
.abogado-badge {
  position: absolute;
  top: .625rem; left: .625rem;
  padding: .3rem .625rem;
  border-radius: .5rem;
  background: rgba(255, 255, 255, .92);
  color: var(--accent-fg);
  font-size: .625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  box-shadow: 0 4px 14px rgba(45, 45, 45, .12);
}

.abogado-body { display: flex; flex-direction: column; flex: 1; padding: 1rem .25rem .25rem; }
.abogado-cargo {
  margin: 0;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--brand);
}
.abogado-nombre {
  margin: .375rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.abogado-desc {
  margin: .5rem 0 0;
  font-size: .8125rem;
  line-height: 1.65;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.abogado-ver {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent-fg);
}
.abogado-ver .ico { width: .9em; height: .9em; transition: transform .3s var(--ease-ios); }
.abogado-card:hover .abogado-ver .ico { transform: translateX(3px); }

/* — Servicios (acordeón) — */
.servicios-list { display: flex; flex-direction: column; gap: .875rem; }

.servicio-item {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(45, 45, 45, .06);
  box-shadow: var(--shadow-ios);
  transition: box-shadow .5s var(--ease-ios), transform .5s var(--ease-ios);
}
.servicio-item:hover { box-shadow: var(--shadow-ios-lg); transform: translateY(-2px); }
.servicio-item.is-open { box-shadow: var(--shadow-ios-lg); }

.servicio-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.125rem;
  padding: 1.25rem 1.375rem;
  text-align: left;
}
.servicio-ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: .875rem;
  background: var(--accent);
  color: var(--accent-fg);
  overflow: hidden;
}
.servicio-ico .ico { width: 1.35rem; height: 1.35rem; }
.servicio-ico img { width: 100%; height: 100%; object-fit: contain; padding: .3rem; }

.servicio-title {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.servicio-chevron {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--ink-soft);
  transition: transform .45s var(--ease-ios), background-color .3s, color .3s;
}
.servicio-item.is-open .servicio-chevron {
  transform: rotate(180deg);
  background: var(--brand);
  color: #fff;
}

.servicio-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease-ios);
}
.servicio-item.is-open .servicio-body { grid-template-rows: 1fr; }
.servicio-body-inner { overflow: hidden; }
.servicio-desc {
  margin: 0;
  padding: 0 1.375rem 1.375rem 5.5rem;
  font-size: .9375rem;
  line-height: 1.85;
  color: var(--ink-soft);
  white-space: pre-line;
}
@media (max-width: 639px) { .servicio-desc { padding-left: 1.375rem; } }

/* — Clientes — */
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 1.5rem;
}
.cliente-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(45, 45, 45, .06);
  box-shadow: var(--shadow-ios);
  transition: transform .5s var(--ease-ios), box-shadow .5s var(--ease-ios);
}
.cliente-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-ios-lg); }
.cliente-logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem; height: 5.5rem;
  border-radius: 1.125rem;
  background: var(--secondary);
  color: var(--accent-fg);
  overflow: hidden;
}
.cliente-logo .ico { width: 2.5rem; height: 2.5rem; }
.cliente-logo img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.cliente-nombre {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.cliente-rubro { margin: .25rem 0 0; font-size: .8125rem; color: var(--muted); }

/* — Contacto — */
.contacto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
@media (min-width: 1024px) { .contacto-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem; } }

.contacto-form { display: flex; flex-direction: column; gap: 1rem; }
.form-title {
  margin: 0 0 .5rem;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
}
.field { display: flex; flex-direction: column; gap: .375rem; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(45, 45, 45, .12);
  border-radius: .875rem;
  padding: .8rem 1rem;
  transition: border-color .3s, box-shadow .3s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}
.field input::placeholder, .field textarea::placeholder { color: #b3b3b3; }
.field.is-error input, .field.is-error textarea { border-color: #cc4b37; }
.field-error { font-size: .75rem; color: #cc4b37; margin: 0; }
.form-hint { margin: .25rem 0 0; font-size: .75rem; color: var(--muted); text-align: center; }

.contacto-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-content: start; }
@media (min-width: 640px) { .contacto-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .contacto-side { grid-template-columns: minmax(0, 1fr); } }
.contacto-card { display: flex; flex-direction: column; gap: .375rem; }
.contact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: .875rem;
  background: var(--accent);
  color: var(--accent-fg);
  margin-bottom: .5rem;
}
.contact-ico .ico { width: 1.25rem; height: 1.25rem; }
.contacto-card h3 { margin: 0; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.contact-big { margin: 0; font-family: var(--font-serif); font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.contact-soft { margin: 0; font-size: .875rem; color: var(--ink-soft); }
.contact-break { word-break: break-all; }
.contacto-social { grid-column: 1 / -1; display: flex; gap: .625rem; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(45, 45, 45, .08);
  box-shadow: var(--shadow-ios);
  color: var(--ink-soft);
  transition: transform .3s var(--ease-ios), color .3s, border-color .3s;
}
.social-btn:hover { transform: translateY(-2px); color: var(--brand); border-color: rgba(204, 104, 5, .3); }

/* — Sedes (múltiples direcciones + Google Maps) — */
.sedes-card { gap: 0; }
.sedes-list { display: flex; flex-direction: column; }
.sede-item {
  display: flex;
  gap: .85rem;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(45, 45, 45, .06);
}
.sede-item:first-child { padding-top: .4rem; }
.sede-item:last-child { border-bottom: 0; padding-bottom: .25rem; }
.sede-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .75rem;
  background: var(--accent);
  color: var(--accent-fg);
  flex: none;
}
.sede-pin .ico { width: 1.05rem; height: 1.05rem; }
.sede-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.sede-nombre { margin: 0; font-family: var(--font-serif); font-size: .9875rem; font-weight: 700; color: var(--ink); }
.sede-dir { margin: 0; font-size: .875rem; color: var(--ink-soft); line-height: 1.5; }
.sede-ciudad, .sede-tel { margin: 0; font-size: .8125rem; color: var(--muted); }
.sede-maps {
  margin-top: .35rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--brand);
  transition: color .25s, gap .25s var(--ease-ios);
}
.sede-maps .ico { width: .9em; height: .9em; transition: transform .3s var(--ease-ios); }
.sede-maps:hover { color: var(--brand-dark); }
.sede-maps:hover .ico { transform: translate(2px, -2px); }

.sedes-map { display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; }
.sedes-map[hidden] { display: none; }
.sedes-map-head { display: flex; flex-direction: column; gap: .75rem; }
.sedes-map-head h3 { margin: 0; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.sedes-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.sedes-chips[hidden] { display: none; }
.sede-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: color .25s, background-color .25s, border-color .25s, transform .3s var(--ease-ios);
}
.sede-chip:hover { color: var(--ink); transform: translateY(-1px); }
.sede-chip.is-active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 6px 18px rgba(204, 104, 5, .28);
}
.sedes-map-frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(45, 45, 45, .08);
  background: var(--secondary);
}
.sedes-map-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  filter: saturate(.92);
}
@media (max-width: 640px) { .sedes-map-frame iframe { aspect-ratio: 4 / 3; } }

/* — Botón brochure (hero) — */
.btn-brochure .ico { transition: transform .3s var(--ease-ios); }
.btn-brochure:hover .ico { transform: translateY(2px); }
.btn-brochure[hidden] { display: none; }

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
  position: relative;
  margin-top: auto;
  background: var(--hero-bg);
  color: rgba(255, 255, 255, .65);
}
.footer-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  text-align: center;
}
#footer-sedes { display: flex; flex-direction: column; gap: .375rem; }
#footer-sedes p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
}
.footer-contact p { margin: 0; font-size: .875rem; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  font-size: .75rem;
}
@media (min-width: 640px) { .footer-bottom { padding-left: 2rem; padding-right: 2rem; } }
.footer-city { color: rgba(255, 255, 255, .4); }

/* ═══════════════════ MODAL PERFIL ═══════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity .4s var(--ease-ios), visibility .4s;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 21, 19, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-panel {
  position: relative;
  width: min(100%, 46rem);
  max-height: min(92vh, 46rem);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  transform: translateY(24px) scale(.97);
  transition: transform .45s var(--ease-spring);
}
@media (min-width: 768px) { .modal-panel { grid-template-columns: 15rem minmax(0, 1fr); padding: 0; } }
.modal.is-open .modal-panel { transform: none; }
.modal-close {
  position: absolute;
  top: .875rem; right: .875rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  box-shadow: var(--shadow-ios);
  transition: transform .3s var(--ease-ios);
}
.modal-close:hover { transform: rotate(90deg); }
.modal-close .ico { width: 1.1rem; height: 1.1rem; }

.modal-foto-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, var(--secondary), rgba(232, 149, 79, .4));
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  padding: 2rem;
  min-height: 14rem;
}
@media (min-width: 768px) { .modal-foto-wrap { border-radius: var(--radius-card) 0 0 var(--radius-card); min-height: 100%; } }
.modal-foto-wrap img { max-height: 22rem; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(45, 45, 45, .2)); }
.modal-info { padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.perfil-cargo {
  margin: 0;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--brand);
}
.perfil-nombre {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.perfil-desc, .perfil-edu { margin: 0; font-size: .9375rem; line-height: 1.8; color: var(--ink-soft); }
.perfil-edu { border-top: 1px solid var(--border); padding-top: .75rem; font-size: .875rem; color: var(--muted); }
.perfil-contact { margin-top: .5rem; display: flex; flex-direction: column; gap: .5rem; }
.perfil-contact a, .perfil-contact span {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  color: var(--ink-soft);
}
.perfil-contact a:hover { color: var(--brand); }
.perfil-contact .ico { width: 1rem; height: 1rem; color: var(--brand); }

/* ═══════════════════ TOASTS ═══════════════════ */
.toast-region {
  position: fixed;
  z-index: 100;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: .625rem;
  width: min(92vw, 26rem);
  padding-bottom: env(safe-area-inset-bottom);
}
.toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.125rem;
  border-radius: 1rem;
  background: rgba(26, 26, 26, .92);
  color: #fff;
  font-size: .875rem;
  line-height: 1.5;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: toastIn .5s var(--ease-spring);
}
.toast.is-out { animation: toastOut .35s var(--ease-ios) forwards; }
.toast .ico { width: 1.2rem; height: 1.2rem; }
.toast-ok .ico { color: #7dd8a0; }
.toast-error .ico { color: #f2937f; }
.toast-info .ico { color: var(--brand-light); }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ═══════════════════ UTILIDADES ═══════════════════ */
.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;
}
.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }
