/* ==========================================================================
   Abogada — design tokens
   Papel timbrado de despacho: azul marino profundo sobre papel.
   Una sola familia de tono, variando solo la claridad. Firma del sistema:
   doble filete de membrete (regla navy + hairline), rúbrica sobre los
   títulos y folio con separador ◆. Depth: borders + sombras sutiles.
   ========================================================================== */

:root {
  /* color */
  --paper:        #ffffff;
  --paper-2:      #e9eef5;        /* superficie alternativa, gris azulado suave */
  --paper-3:      #dfe7f0;        /* capa más profunda para contraste */
  --ink:          #052c4e;        /* azul marino profundo — estructura y acción */
  --ink-soft:     #0a3a66;        /* hover sobre navy */
  --ink-deep:     #031a30;        /* texto sobre papel */
  --ink-fade:     #415f80;        /* texto secundario */
  --ink-mute:     #7a90a8;        /* metadatos, placeholder */
  --line:         rgba(5, 44, 78, 0.12);   /* hairline estándar */
  --line-soft:    rgba(5, 44, 78, 0.07);   /* separación suave */
  --line-strong:  rgba(5, 44, 78, 0.24);   /* énfasis de borde */
  --ring:         #052c4e;
  --on-ink:       #f2f6fb;        /* texto sobre fondos navy */
  --on-ink-fade:  rgba(242, 246, 251, 0.72);
  --on-ink-mute:  rgba(242, 246, 251, 0.5);

  /* tipografía */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-caption:   0.6875rem;   /* 11 */
  --fs-label:     0.75rem;     /* 12 */
  --fs-body:      0.9375rem;   /* 15 */
  --fs-lead:      1.125rem;    /* 18 */
  --fs-h3:        1.25rem;     /* 20 */
  --fs-h2:        1.5625rem;   /* 25 */
  --fs-h1:        2rem;        /* 32 */
  --fs-display:   clamp(2.5rem, 5vw, 4rem); /* 40 → 64 */

  /* forma */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  /* espaciado (base 4) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-16: 64px;
  --sp-18: 72px;
  --sp-24: 96px;

  --wrap: 1120px;
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --shadow-soft:  0 2px 10px rgba(5, 44, 78, 0.06);
  --shadow-card:  0 8px 28px -8px rgba(5, 44, 78, 0.16);
  --shadow-hover: 0 18px 40px -14px rgba(5, 44, 78, 0.32);
  --shadow-nav:   0 1px 0 var(--line-soft), 0 4px 16px rgba(5, 44, 78, 0.08);
  --grid-line: rgba(242, 246, 251, 0.035);   /* textura de papel pautado en navy */
}

/* Superficies con relieve — paneles y sidebars */
.surface {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   Reset y base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-deep);
  background-color: #f5f8fc;
  background-image:
    radial-gradient(ellipse 90% 55% at 100% -5%, rgba(5, 44, 78, 0.08) 0%, transparent 58%),
    radial-gradient(ellipse 70% 45% at -5% 105%, rgba(5, 44, 78, 0.06) 0%, transparent 52%),
    linear-gradient(180deg, #f2f6fb 0%, #ffffff 38%, #f5f8fc 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

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

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd {
  margin: 0;
}

ul, ol { padding-left: 0; }

a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration: underline; }

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.section {
  padding-block: var(--sp-12);
}

@media (min-width: 900px) {
  .section { padding-block: var(--sp-16); }
}

.section--alt {
  background-color: var(--paper-2);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 28%),
    linear-gradient(135deg, #e3eaf3 0%, #e9eef5 50%, #dce5ef 100%);
  border-block: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(5, 44, 78, 0.04);
}

.section--deep {
  background: linear-gradient(155deg, var(--ink-deep) 0%, var(--ink) 55%, #0d3d69 100%);
  color: var(--on-ink-fade);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.section--deep::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 88px),
    radial-gradient(ellipse 55% 80% at 100% 0%, rgba(255, 255, 255, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(255, 255, 255, 0.04) 0%, transparent 55%);
  pointer-events: none;
}

.section--deep .wrap { position: relative; z-index: 1; }

.section--deep .kicker {
  color: rgba(242, 246, 251, 0.6);
}

.section--deep .kicker::before {
  background: rgba(242, 246, 251, 0.5);
}

.section--deep .section__title,
.section--deep h2 {
  color: var(--on-ink);
}

.section--deep .section__title::before {
  border-color: rgba(242, 246, 251, 0.9);
}

.section--deep .btn--primary {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.section--deep .btn--primary:hover {
  background: var(--on-ink);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.section--deep .section__title::after {
  background: linear-gradient(90deg, rgba(242, 246, 251, 0.9) 0%, rgba(242, 246, 251, 0.15) 100%);
}

/* Cabecera de sección: kicker + título + regla corta */
.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
  max-width: 42rem;
}

.kicker {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-fade);
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ==========================================================================
   Tipografía
   ========================================================================== */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

.section__title {
  font-size: var(--fs-h2);
  position: relative;
  padding-bottom: var(--sp-5);
}

/* Rúbrica: regla corta + rombo, como firma de despacho */
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 2px;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(5, 44, 78, 0.15) 100%);
  border-radius: 1px;
}

.section__title::before {
  content: "";
  position: absolute;
  left: 1.16rem;
  bottom: -2.5px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--ink);
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.9);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-fade);
}

.body p + p,
.body ul + p { margin-top: var(--sp-4); }

.body ul { list-style: none; }
.body ul li {
  padding-left: 1.4em;
  position: relative;
  margin-top: var(--sp-2);
}
.body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45em;
  height: 0.45em;
  border: 1px solid var(--ink);
  transform: rotate(45deg);
}

.text-muted { color: var(--ink-mute); }
.text-fade  { color: var(--ink-fade); }

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ==========================================================================
   Cabecera de sitio — con folio de expediente
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 252, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ink);
  box-shadow:
    inset 0 -4px 0 var(--line-soft),
    0 1px 0 var(--line-soft),
    0 4px 16px rgba(5, 44, 78, 0.08);
}

.site-header__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--ink);
}

.brand:hover { text-decoration: none; }

.brand__mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0;
  flex: none;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line-strong);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-fade);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav__link {
  position: relative;
  font-size: 0.84375rem; /* 13.5 */
  font-weight: 500;
  color: var(--ink-fade);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: 5px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-out);
}

.nav__link:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav__link:hover::after,
.nav__link.is-current::after {
  transform: scaleX(1);
}

.nav__link.is-current {
  color: var(--ink);
  font-weight: 600;
}

.nav__cta {
  margin-left: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  font-weight: 600;
}

.nav__cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--ink);
  position: relative;
}

.nav-toggle__line {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base);
}

.nav-toggle__line:nth-child(1) { top: 16px; }
.nav-toggle__line:nth-child(2) { top: 21px; }
.nav-toggle__line:nth-child(3) { top: 26px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(5.25px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-5.25px) rotate(-45deg);
}

/* Folio — sello temático del expediente */
.folio {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--ink);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.folio__n {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.folio__label {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-3);
}

.folio__label::after {
  content: "◆";
  font-size: 7px;
  color: var(--ink);
  opacity: 0.55;
  align-self: center;
}

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 46px;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    box-shadow var(--dur-base) var(--ease-out),
    transform 90ms ease;
}

.btn:hover { text-decoration: none; }

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--ink-soft);
  color: var(--paper);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(5, 44, 78, 0.05);
  transform: translateY(-1px);
}

.btn--block { width: 100%; }

.btn__arrow {
  font-variant-numeric: tabular-nums;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .btn__arrow { transform: translateX(3px); }

/* ==========================================================================
   Hero — panel navy profundo, papel pautado
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-12) var(--sp-8);
  color: var(--on-ink);
  background:
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 84px),
    radial-gradient(ellipse 65% 90% at 85% -10%, rgba(255, 255, 255, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at -10% 110%, rgba(19, 68, 112, 0.45) 0%, transparent 60%),
    linear-gradient(150deg, var(--ink-deep) 0%, var(--ink) 48%, #0d3d69 100%);
  border-bottom: 1px solid rgba(242, 246, 251, 0.1);
}

@media (min-width: 900px) {
  .hero { padding-block: clamp(64px, 7vw, 104px) var(--sp-12); }
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(242, 246, 251, 0.9) 0%, rgba(242, 246, 251, 0.1) 100%);
  pointer-events: none;
}

.hero::before {
  content: "A";
  position: absolute;
  top: -8%;
  right: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16rem, 28vw, 24rem);
  line-height: 1;
  color: rgba(242, 246, 251, 0.06);
  pointer-events: none;
  user-select: none;
}

.hero__grid {
  display: grid;
  gap: var(--sp-12);
  align-items: start;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--sp-16);
  }
}

.hero__kicker {
  margin-bottom: var(--sp-4);
  color: rgba(242, 246, 251, 0.62);
}

.hero__kicker::before {
  background: rgba(242, 246, 251, 0.5);
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--on-ink);
}

.hero__lead {
  margin-top: var(--sp-4);
  max-width: 34rem;
  font-size: var(--fs-lead);
  color: rgba(242, 246, 251, 0.75);
  line-height: 1.62;
}

.hero__actions {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero .btn--primary {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero .btn--primary:hover {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.hero .btn--ghost {
  border-color: rgba(242, 246, 251, 0.45);
  color: var(--on-ink);
  background: rgba(255, 255, 255, 0.05);
}

.hero .btn--ghost:hover {
  border-color: rgba(242, 246, 251, 0.9);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.hero__note {
  margin-top: var(--sp-4);
  font-size: var(--fs-label);
  color: rgba(242, 246, 251, 0.5);
}

/* Panel lateral: tarjeta de consulta */
.consult-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--paper);
  box-shadow: 0 24px 56px -20px rgba(2, 16, 30, 0.5);
}

.consult-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink-soft) 100%);
}

/* Cornisa de esquina — marcas de formulario oficial */
.consult-card::after {
  content: "";
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 14px;
  height: 14px;
  border-top: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
  pointer-events: none;
}

.consult-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--ink);
  line-height: 1.15;
}

.consult-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  border-top: 1px solid var(--line-soft);
  padding-top: var(--sp-5);
}

.consult-card__list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--ink-fade);
}

.consult-card__list .check {
  flex: none;
  color: var(--ink);
  margin-top: 3px;
}

/* ==========================================================================
   Tarjetas de servicios
   ========================================================================== */

.card-grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  border: 1px solid var(--line);
  border-top: 2px solid transparent;
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    border-color var(--dur-base) ease,
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.service-card__visual {
  position: relative;
  margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-2);
  overflow: hidden;
  aspect-ratio: 320 / 168;
  background: var(--paper-2);
}

.service-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-card__num {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 1;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--ink);
  backdrop-filter: blur(4px);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  line-height: 1.4;
  box-shadow: 0 6px 16px -6px rgba(5, 44, 78, 0.45);
}

.service-card:hover {
  border-color: rgba(5, 44, 78, 0.35);
  border-top-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover .service-card__visual img {
  transform: scale(1.03);
}

.service-card__visual img {
  transition: transform 640ms var(--ease-spring);
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.1;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--ink-fade);
  flex: 1;
}

.service-card__link {
  align-self: flex-start;
  margin-top: var(--sp-2);
  font-size: 0.84375rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
  text-decoration: none;
}

.service-card__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-out);
}

.service-card__link:hover::after { transform: scaleX(1); }

.service-card__link .btn__arrow { transition: transform var(--dur-fast) var(--ease-out); }
.service-card__link:hover .btn__arrow { transform: translateX(3px); }

/* Puntos destacados (hero inferior, sobre nosotros) */
.points {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 900px) {
  .points { grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
}

.point {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition:
    border-color var(--dur-base) ease,
    box-shadow var(--dur-base) ease,
    transform var(--dur-base) var(--ease-out);
}

.point:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.point__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: linear-gradient(145deg, var(--paper-2) 0%, var(--paper) 100%);
  color: var(--ink);
  margin-bottom: var(--sp-3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background-color var(--dur-base) ease, color var(--dur-base) ease, transform var(--dur-base) var(--ease-out);
}

.point__icon svg { width: 19px; height: 19px; }

.point:hover .point__icon {
  background: var(--ink);
  color: var(--paper);
}

.point__title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.point p {
  font-size: 0.875rem;
  color: var(--ink-fade);
}

/* ==========================================================================
   Encabezado de página interior (folio grande)
   ========================================================================== */

.page-head {
  padding-block: var(--sp-12) var(--sp-8);
  background:
    linear-gradient(180deg, var(--paper-2) 0%, rgba(255, 255, 255, 0.6) 100%);
  border-bottom: 2px solid var(--ink);
  box-shadow:
    inset 0 -4px 0 var(--line-soft),
    inset 0 -1px 0 rgba(255, 255, 255, 0.8);
}

@media (min-width: 900px) {
  .page-head { padding-block: var(--sp-14) var(--sp-10); }
}

.page-head__title {
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  line-height: 1.02;
}

.page-head__lead {
  margin-top: var(--sp-4);
  max-width: 40rem;
  font-size: var(--fs-lead);
  color: var(--ink-fade);
  line-height: 1.6;
}

.page-head__grid {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}

@media (min-width: 900px) {
  .page-head__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--sp-12);
  }
}

.svc-art {
  overflow: hidden;
  border-radius: var(--r-lg);
  line-height: 0;
}

.svc-art img,
.svc-art svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
}

.page-head__crumb {
  margin-bottom: var(--sp-5);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.page-head__crumb a { color: var(--ink); }

/* ==========================================================================
   Proceso / pasos (detalle de servicio)
   ========================================================================== */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
}

.steps li {
  counter-increment: step;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  font-size: 1.125rem;
  margin-bottom: var(--sp-2);
}

.steps p {
  font-size: 0.875rem;
  color: var(--ink-fade);
}

/* ==========================================================================
   Formulario
   ========================================================================== */

.form {
  display: grid;
  gap: var(--sp-5);
}

.field { display: grid; gap: var(--sp-2); }

.field__label {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-fade);
}

.field__label .req { color: var(--ink); }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink-deep);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
  appearance: none;
}

.input:hover, .select:hover, .textarea:hover {
  border-color: var(--line-strong);
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
}

.input::placeholder, .textarea::placeholder { color: var(--ink-mute); }

.textarea { min-height: 120px; resize: vertical; }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b2b4b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-10);
  cursor: pointer;
}

.field--invalid .input,
.field--invalid .select,
.field--invalid .textarea {
  border-color: var(--ink);
  background: rgba(5, 44, 78, 0.03);
}

.field__error {
  display: none;
  font-size: var(--fs-label);
  color: var(--ink);
}

.field--invalid .field__error { display: block; }

.form__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
}

.form__hint {
  font-size: var(--fs-label);
  color: var(--ink-mute);
}

.form__success {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  font-size: 0.875rem;
  color: var(--ink-fade);
}

.form__success.is-open { display: block; }

.form__success a { font-weight: 600; }

/* ==========================================================================
   FAQ — <details> nativo
   ========================================================================== */

.faq-list { display: grid; gap: var(--sp-3); }

.faq {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq__summary::-webkit-details-marker { display: none; }

.faq__summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  transition: transform var(--dur-base) var(--ease-out);
  flex: none;
  margin-top: -4px;
}

.faq[open] .faq__summary::after { transform: rotate(225deg); }

.faq__summary:hover { background: var(--paper-2); }

.faq[open] .faq__summary { border-bottom: 1px solid var(--line-soft); }

.faq__body {
  padding: var(--sp-2) var(--sp-5) var(--sp-5);
  font-size: 0.875rem;
  color: var(--ink-fade);
  line-height: 1.65;
}

/* ==========================================================================
   Contacto
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: var(--sp-8);
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 360px minmax(0, 1fr); gap: var(--sp-12); }
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  align-self: start;
}

.contact-grid .form {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.contact-side dl {
  display: grid;
  gap: var(--sp-5);
}

.contact-side dt {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--sp-1);
}

.contact-side dt svg {
  width: 15px;
  height: 15px;
  color: var(--ink);
  flex: none;
}

.contact-side dd {
  font-size: 0.9375rem;
  color: var(--ink-deep);
}

.contact-side dd .num { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Pie de página
   ========================================================================== */

.site-footer {
  border-top: none;
  background: linear-gradient(165deg, var(--ink-deep) 0%, var(--ink) 45%, #0d3d69 100%);
  color: var(--on-ink-fade);
  padding-block: var(--sp-12) var(--sp-6);
  margin-top: var(--sp-12);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 88px),
    radial-gradient(ellipse 50% 70% at 90% 10%, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 5% 90%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(242, 246, 251, 0.35) 100%);
  pointer-events: none;
}

.site-footer .wrap { position: relative; z-index: 1; }

.site-footer .brand { color: var(--on-ink); }

.site-footer .brand__mark {
  border-color: rgba(242, 246, 251, 0.45);
  color: var(--on-ink);
  box-shadow: 0 0 0 2px rgba(5, 44, 78, 0.9), 0 0 0 3px rgba(242, 246, 251, 0.35);
}

.site-footer .brand__sub { color: rgba(242, 246, 251, 0.55); }

.footer-grid {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-8); }
}

.footer-brand p {
  margin-top: var(--sp-3);
  font-size: 0.84375rem;
  color: var(--on-ink-fade);
  max-width: 26rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 246, 251, 0.45);
  margin-bottom: var(--sp-4);
}

.footer-col ul { list-style: none; display: grid; gap: var(--sp-2); }

.footer-col a {
  font-size: 0.875rem;
  color: var(--on-ink-fade);
}

.footer-col a:hover { color: var(--on-ink); }

.footer-legal {
  margin-top: var(--sp-8);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  font-size: var(--fs-caption);
  color: rgba(242, 246, 251, 0.45);
}

/* ==========================================================================
   Animaciones de entrada (respetan reduced-motion)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 640ms var(--ease-spring),
    transform 640ms var(--ease-spring),
    filter 640ms var(--ease-spring);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    will-change: auto;
  }
  .btn:active { transform: none; }
  * { transition-duration: 1ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 899px) {
  .nav {
    position: absolute;
    top: calc(var(--nav-h) + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-1);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-4) var(--sp-6) var(--sp-6);
    display: none;
  }

  .nav.is-open { display: flex; }

  .nav__link { padding: var(--sp-3) var(--sp-4); font-size: 0.9375rem; }

  .nav__cta { margin-left: 0; justify-content: center; }

  .nav-toggle { display: block; }

  .folio { justify-content: space-between; }

  .hero__grid { gap: var(--sp-6); }
}

@media (max-width: 599px) {
  .wrap { padding-inline: var(--sp-5); }
  .section { padding-block: var(--sp-10); }
  .consult-card { padding: var(--sp-5); }
  .footer-legal { flex-direction: column; gap: var(--sp-2); }
  .hero::before { font-size: 12rem; top: 0; right: 0; }
}

@media (hover: none) {
  .service-card:hover { transform: none; box-shadow: var(--shadow-soft); }
  .service-card:hover .service-card__visual img { transform: none; }
  .point:hover { transform: none; box-shadow: var(--shadow-soft); }
  .btn:hover { transform: none; box-shadow: none; }
}
