/* ==========================================================================
   Alani Isabel Barrios Ramirez — Notaria · design system
   Sereno y confiable: lienzo cálido, azul marino profundo, oro suave.
   Sobrio sin rigidez: radios generosos, sombras mullidas, ritmo abierto.
   ========================================================================== */

:root {
  /* color */
  --paper:        #ffffff;
  --paper-2:      #f1f4f9;        /* bandas alternas, azul muy claro */
  --paper-3:      #e7edf5;
  --warm:         #faf9f7;        /* lienzo cálido */
  --ink:          #052c4e;        /* azul marino profundo — estructura y acción */
  --ink-soft:     #0a3a66;        /* hover sobre navy */
  --ink-deep:     #03213f;        /* texto sobre papel */
  --ink-fade:     #44627f;        /* texto secundario */
  --ink-mute:     #7e93a8;        /* metadatos, placeholder */
  --gold:         #b58a44;        /* acento cálido — usado con moderación */
  --gold-soft:    rgba(181, 138, 68, 0.16);
  --line:         rgba(5, 44, 78, 0.1);
  --line-soft:    rgba(5, 44, 78, 0.06);
  --line-strong:  rgba(5, 44, 78, 0.2);
  --ring:         #052c4e;
  --error:        #b3562a;        /* terracota suave — solo para errores */
  --on-ink:       #f3f7fc;
  --on-ink-fade:  rgba(243, 247, 252, 0.72);
  --on-ink-mute:  rgba(243, 247, 252, 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.2rem, 4.5vw, 3.25rem); /* 35 → 52 */

  /* forma — radios generosos, esquinas amables */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* 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: 1180px;
  --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;

  /* sombras mullidas: anillo + dos profundidades */
  --shadow-soft:  0 1px 2px rgba(5, 44, 78, 0.05), 0 4px 14px rgba(5, 44, 78, 0.06);
  --shadow-card:  0 2px 4px rgba(5, 44, 78, 0.05), 0 14px 30px -10px rgba(5, 44, 78, 0.14);
  --shadow-hover: 0 4px 10px rgba(5, 44, 78, 0.06), 0 22px 44px -14px rgba(5, 44, 78, 0.22);
  --shadow-cta:   0 10px 28px -8px rgba(3, 21, 45, 0.5);
}

/* ==========================================================================
   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: var(--warm);
  background-image:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(181, 138, 68, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at -5% 100%, rgba(5, 44, 78, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  -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; }

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

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

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

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

.section--alt {
  background-color: var(--paper-2);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, transparent 30%),
    linear-gradient(180deg, #f4f7fb 0%, #edf1f8 100%);
  border-block: 1px solid var(--line-soft);
}

/* Banda serena: panel navy flotante, esquinas grandes */
.section--deep {
  background: transparent;
  border: none;
  position: relative;
}

.section--deep .wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 90% at 90% -10%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 45% 70% at -5% 110%, rgba(181, 138, 68, 0.12) 0%, transparent 55%),
    linear-gradient(150deg, var(--ink-deep) 0%, var(--ink) 52%, #0c3d68 100%);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  color: var(--on-ink-fade);
  text-align: center;
  box-shadow: var(--shadow-cta);
}

@media (min-width: 900px) {
  .section--deep .wrap { padding: var(--sp-12) var(--sp-10); }
}

.section--deep .kicker {
  color: rgba(243, 247, 252, 0.55);
  justify-content: center;
}

.section--deep .section__head { margin-inline: auto; }

.section--deep .section__title,
.section--deep h2 {
  color: var(--on-ink);
  max-width: 34rem;
  margin-inline: auto;
}

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

.section--deep .btn--primary:hover {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

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

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

.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);
}

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

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

.body ul { list-style: none; }

.body ul li {
  position: relative;
  padding-left: 1.4rem;
}

.body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

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

.num { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Cabecera de sitio
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.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: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
  flex: none;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.005em;
  line-height: 1.1;
  color: var(--ink-deep);
}

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

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

.nav__link {
  position: relative;
  font-size: 0.875rem;
  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: 4px;
  height: 2px;
  border-radius: 1px;
  background: var(--gold);
  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-5);
  font-weight: 600;
  border-radius: var(--r-pill);
}

.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);
}

/* ==========================================================================
   Botones — píldoras suaves
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-pill);
  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.04);
  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 — lienzo claro, presencia serena
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-6) var(--sp-5);
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 900px) {
  .hero { padding-block: clamp(40px, 4.5vw, 60px) var(--sp-8); }
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle, rgba(181, 138, 68, 0.09) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -35%;
  left: -15%;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle, rgba(5, 44, 78, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

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

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

.hero__kicker { margin-bottom: var(--sp-3); }

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

.hero__lead {
  margin-top: var(--sp-3);
  max-width: 38rem;
  font-size: var(--fs-lead);
  color: var(--ink-fade);
  line-height: 1.62;
}

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

.hero__note {
  margin-top: var(--sp-2);
  font-size: var(--fs-label);
  color: var(--ink-mute);
}

/* Panel lateral: tarjeta de consulta */
.consult-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.consult-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(181, 138, 68, 0.2));
  border-radius: 1px;
}

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

.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.8125rem;
  color: var(--ink-fade);
  line-height: 1.45;
}

.consult-card__list .check {
  flex: none;
  color: var(--gold);
  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-radius: var(--r-lg);
  padding: var(--sp-5);
  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-5)) calc(-1 * var(--sp-5)) var(--sp-3);
  overflow: hidden;
  aspect-ratio: 320 / 100;
  background: var(--paper-2);
}

.service-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 640ms var(--ease-spring);
}

.service-card__num {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  background: rgba(3, 21, 45, 0.55);
  backdrop-filter: blur(6px);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  line-height: 1.5;
}

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

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

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

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

.service-card__link {
  align-self: flex-start;
  margin-top: var(--sp-2);
  font-size: 0.875rem;
  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: 2px;
  border-radius: 1px;
  background: var(--gold);
  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 */
.points {
  display: grid;
  gap: var(--sp-5);
}

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

.point {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  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: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  margin-bottom: var(--sp-4);
  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: 20px; height: 20px; }

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

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

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

/* ==========================================================================
   Encabezado de página interior
   ========================================================================== */

.page-head {
  padding-block: var(--sp-8) var(--sp-6);
  background:
    linear-gradient(180deg, var(--paper-2) 0%, rgba(255, 255, 255, 0.55) 100%);
  border-bottom: 1px solid var(--line-soft);
}

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

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

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

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

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

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

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

/* Retrato de la abogada: marco con filete dorado y guarda marina */
.portrait {
  position: relative;
  max-width: 240px;
  margin: 0 auto var(--sp-5);
  line-height: 0;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 8px -8px -8px 8px;
  border: 1px solid rgba(181, 138, 68, 0.55);
  border-radius: calc(var(--r-md) + 4px);
  z-index: 0;
  pointer-events: none;
}

.portrait__img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--paper);
  outline: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.page-head__crumb {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

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

.page-head__crumb .sep { opacity: 0.45; }

/* ==========================================================================
   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);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.steps li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line-soft);
  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.09em;
  text-transform: uppercase;
  color: var(--ink-fade);
}

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

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink-deep);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: inset 0 1px 2px rgba(5, 44, 78, 0.04);
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, box-shadow 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);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

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

.textarea { min-height: 130px; 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='%23052c4e' 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(--error);
  background: rgba(179, 86, 42, 0.03);
}

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

.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);
  overflow: hidden;
}

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

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

.faq__summary::after {
  content: "";
  width: 9px;
  height: 9px;
  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-6);
}

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

.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-card);
  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-card);
}

.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.09em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--sp-1);
}

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

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

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

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(181, 138, 68, 0.08) 60%, transparent 100%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 90% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 5% 90%, rgba(181, 138, 68, 0.06) 0%, transparent 50%);
  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(243, 247, 252, 0.45);
  color: var(--on-ink);
}

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

.site-footer .brand__sub { color: rgba(181, 138, 68, 0.85); }

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

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

.footer-brand p {
  margin-top: var(--sp-3);
  font-size: 0.8125rem;
  color: var(--on-ink-fade);
  max-width: 32rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
  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-6);
  padding-top: var(--sp-3);
  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: var(--on-ink-mute);
}

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition:
    opacity 560ms var(--ease-spring),
    transform 560ms var(--ease-spring),
    filter 560ms 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; }

  .section--deep .wrap { border-radius: var(--r-lg); }

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

@media (max-width: 599px) {
  .wrap { padding-inline: var(--sp-5); }
  .section { padding-block: var(--sp-8); }
  .consult-card { padding: var(--sp-5); }
  .footer-legal { flex-direction: column; gap: var(--sp-2); }
  .section--deep .wrap { padding: var(--sp-6) var(--sp-5); }
  .brand__name { font-size: 1.05rem; }
  .brand__sub { font-size: 0.625rem; letter-spacing: 0.08em; }
  .hero { padding-block: var(--sp-8) var(--sp-6); }
  .hero__title { font-size: clamp(1.75rem, 8vw, 2.4rem); }
}

@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); }
  .steps li:hover { transform: none; box-shadow: var(--shadow-soft); }
  .btn:hover { transform: none; box-shadow: none; }
}
