/* Rauh & Briones Abogados — rbabogados.mx
   Paleta oficial de la marca: azul #162943 y dorado #C4A233. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #162943;
  --navy-900: #0e1b2e;
  --navy-800: #1c3352;
  --navy-700: #2a4467;
  --gold: #c4a233;
  --gold-600: #a98a22;
  --gold-text: #7d6616;
  --paper: #f7f5ef;
  --white: #fff;
  --ink: #1a2333;
  --muted: #586174;
  --line: #e4dfd3;
  --line-dark: rgba(255, 255, 255, 0.14);
  --text-on-dark: rgba(255, 255, 255, 0.78);
  --danger: #b3261e;
  --success: #1e6b45;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 46, 0.06);
  --shadow: 0 12px 32px -12px rgba(14, 27, 46, 0.18);
  --header-h: 76px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

ul[role="list"],
ol[role="list"] { list-style: none; margin: 0; padding: 0; }

strong { font-weight: 600; }

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Tipografía utilitaria -------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--gold-text);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--gold); }

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 350;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform 0.2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Botones --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-800); box-shadow: var(--shadow); }

.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: #d1b04a; }

.btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.btn[disabled] { opacity: 0.65; cursor: progress; }

/* Encabezado ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(14, 27, 46, 0.35); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.site-header__brand { flex: none; }
.site-header__brand img { width: 196px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__list {
  display: flex;
  gap: 4px;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 450;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--navy); font-weight: 550; }

.site-nav__aside {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__phone .icon { color: var(--gold-600); width: 1.1em; height: 1.1em; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1080px) {
  .site-nav__phone { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .site-header__brand img { width: 164px; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(14, 27, 46, 0.35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .js .site-nav:not(.is-open) { pointer-events: none; }
  .no-js .site-nav,
  html:not(.js) .site-nav { position: static; visibility: visible; opacity: 1; transform: none; }

  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { color: var(--gold-text); }

  .site-nav__aside {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 20px;
  }
  .site-nav__phone { display: inline-flex; justify-content: center; padding: 8px 0; }
  .site-nav__aside .btn { min-height: 50px; }
}

/* Hero (inicio) --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 11vw, 136px) 0 clamp(72px, 9vw, 112px);
  background:
    radial-gradient(1200px 520px at 85% -10%, rgba(196, 162, 51, 0.12), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
  color: var(--white);
}

.hero__arc {
  position: absolute;
  inset: 0 -10% auto;
  height: 46%;
  color: var(--gold);
  opacity: 0.35;
  pointer-events: none;
}
.hero__arc svg { width: 100%; height: 100%; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: end;
}

.hero__title {
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.hero__title em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.hero__lead {
  max-width: 38em;
  margin: 28px 0 0;
  color: var(--text-on-dark);
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero__panel {
  padding: 8px 28px 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.hero__stats { margin: 0; }

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}
.stat__label {
  color: var(--text-on-dark);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}
.stat__value {
  margin: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.hero__panel-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  color: var(--white);
  font-size: 0.9375rem;
}
.hero__panel-note .icon { color: var(--gold); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__panel { padding: 4px 22px 20px; }
  .hero__arc { height: 30%; }
}

/* Encabezado de páginas internas ---------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(52px, 7vw, 84px);
  background:
    radial-gradient(900px 360px at 100% 0%, rgba(196, 162, 51, 0.14), transparent 65%),
    var(--navy);
  color: var(--white);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -40px;
  width: 560px;
  height: 220px;
  border-top: 1px solid rgba(196, 162, 51, 0.4);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }

.page-hero__title {
  max-width: 18em;
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.page-hero__lead {
  max-width: 44em;
  margin: 20px 0 0;
  color: var(--text-on-dark);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
}
.page-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border: 1px solid rgba(196, 162, 51, 0.5);
  border-radius: 50%;
  color: var(--gold);
}
.page-hero__icon .icon { width: 26px; height: 26px; }

.page-hero--compact { padding-bottom: clamp(40px, 5vw, 56px); }
.page-hero--full {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 120px);
}

.breadcrumb { margin-bottom: 28px; font-size: 0.875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.6); }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, 0.35); }
.breadcrumb a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold); }

/* Secciones ------------------------------------------------------------- */
.section { padding: var(--section-y) 0; }
.section--paper { background: var(--paper); }
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy .section__intro { color: var(--text-on-dark); }

.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 400;
}
.section__title--sm {
  margin-bottom: 28px;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}
.section__intro {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.125rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split__main p { color: var(--muted); }
.split__main .lead { color: var(--ink); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 20px; }
}

.prose p { color: var(--muted); }
.prose .lead { color: var(--ink); }

/* Servicios ------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.service-card__link:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy);
  transition: background-color 0.25s, color 0.25s;
}
.section--paper .service-card__icon { background: #efebe0; }
.service-card__icon .icon { width: 24px; height: 24px; }
.service-card__link:hover .service-card__icon { background: var(--navy); color: var(--gold); }

.service-card__title {
  font-size: 1.4rem;
  font-weight: 500;
}
.service-card__text {
  flex: 1;
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 0.98rem;
}
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-text);
  font-size: 0.9375rem;
  font-weight: 500;
}
.service-card__more .icon { width: 1.05em; height: 1.05em; transition: transform 0.2s; }
.service-card__link:hover .service-card__more .icon { transform: translateX(4px); }

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card__link { padding: 26px 22px 22px; }
}

/* Principios ------------------------------------------------------------ */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  counter-reset: principle;
}
.principle {
  padding-top: 28px;
  border-top: 1px solid var(--gold);
}
.principle__icon {
  display: inline-flex;
  color: var(--gold);
  margin-bottom: 18px;
}
.principle__icon .icon { width: 30px; height: 30px; }
.principle__title {
  margin-bottom: 12px;
  font-size: 1.6rem;
  font-weight: 400;
}
.principle p { color: var(--text-on-dark); }

@media (max-width: 800px) {
  .principles { grid-template-columns: 1fr; }
}

/* Sectores -------------------------------------------------------------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}
.sectors li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 26px;
  background: var(--white);
  font-weight: 450;
  line-height: 1.35;
}
.sectors .icon {
  width: 28px;
  height: 28px;
  color: var(--gold-600);
}

@media (max-width: 860px) {
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .sectors { grid-template-columns: 1fr; }
  .sectors li { padding: 18px 20px; }
}

/* Franja de llamada a la acción ----------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1400px;
  height: 340px;
  border-top: 1px solid rgba(196, 162, 51, 0.35);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: translateX(-50%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto;
  gap: 32px 64px;
  align-items: center;
}
.cta-band__title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 400;
}
.cta-band__text {
  max-width: 40em;
  margin-top: 16px;
  color: var(--text-on-dark);
}
.cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.cta-band__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}
.cta-band__phone .icon { color: var(--gold); width: 1.1em; height: 1.1em; }
.cta-band__phone:hover { color: var(--gold); }

@media (max-width: 860px) {
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__actions { align-items: flex-start; }
  .cta-band__phone { justify-content: flex-start; }
}

/* Página de servicio ---------------------------------------------------- */
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.service-layout__main { max-width: 760px; }
.service-layout__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 20px;
}

.check-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.check-list li:first-child { padding-top: 0; }
.check-list .icon {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  padding: 3px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  stroke-width: 2.4;
}

.aside-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.aside-card__title {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
}
.aside-card--navy {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}
.aside-card--navy p:not(.aside-card__title) { color: var(--text-on-dark); margin-bottom: 22px; }
.aside-card__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--white);
  font-size: 0.9375rem;
  text-decoration: none;
}
.aside-card__phone .icon { color: var(--gold); width: 1.1em; height: 1.1em; }

.related-list li + li { border-top: 1px solid var(--line); }
.related-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s;
}
.related-list .icon { width: 20px; height: 20px; color: var(--gold-600); }
.related-list a:hover { color: var(--gold-text); }

@media (max-width: 960px) {
  .service-layout { grid-template-columns: 1fr; }
  .service-layout__aside { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* Contacto -------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.form-card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-info .contact-list { margin-bottom: 28px; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.contact-list li:first-child { padding-top: 0; }
.contact-list .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--gold-600);
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-text); text-decoration: underline; }

/* Formulario ------------------------------------------------------------ */
.form { display: grid; gap: 20px; }
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 600px) {
  .form__row { grid-template-columns: 1fr; }
}

.form__field { display: grid; gap: 8px; }
.form__field label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}
.form__field label span { color: var(--gold-text); }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfc8b8;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form textarea { min-height: 140px; resize: vertical; }
.form select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23162943' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(196, 162, 51, 0.35);
}
.form .is-invalid,
.form [aria-invalid="true"] { border-color: var(--danger); }

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--muted);
  cursor: pointer;
}
.form__check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--navy);
}
.form__check.is-invalid { color: var(--danger); }
.form__check a { color: var(--navy); }

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.form__status { margin: 0; font-size: 0.9375rem; }
.form__status.is-error { color: var(--danger); }
.form__status.is-success { color: var(--success); font-weight: 500; }

.btn.is-loading .icon { animation: nudge 0.8s ease-in-out infinite alternate; }
@keyframes nudge { to { transform: translateX(5px); } }

/* Texto legal ----------------------------------------------------------- */
.prose--legal {
  max-width: 780px;
  margin-inline: auto;
}
.prose--legal h2 {
  margin: 2.2em 0 0.7em;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 500;
  color: var(--navy);
}
.prose--legal ol { padding-left: 1.4em; color: var(--muted); }
.prose--legal li { margin-bottom: 0.6em; }
.prose--legal a { color: var(--navy); }

/* Pie de página --------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--text-on-dark);
  font-size: 0.9375rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: 40px;
  padding-block: clamp(56px, 7vw, 80px);
}
.site-footer__brand img { width: 190px; margin-bottom: 22px; }
.site-footer__brand p { max-width: 30em; }

.site-footer__title {
  margin-bottom: 18px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-footer__col li + li { margin-top: 10px; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--gold); }

.site-footer .contact-list li { padding: 0 0 14px; border: 0; }
.site-footer .contact-list .icon { color: var(--gold); }
.site-footer .contact-list a:hover { color: var(--gold); text-decoration: none; }

.site-footer__bar { border-top: 1px solid var(--line-dark); }
.site-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__bar a { color: rgba(255, 255, 255, 0.75); }

@media (max-width: 1000px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Animaciones de entrada ------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.services-grid .reveal:nth-child(3n + 2) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(3n) { transition-delay: 0.16s; }
.principles .reveal:nth-child(2) { transition-delay: 0.1s; }
.principles .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .cta-band, .site-footer, .nav-toggle { display: none; }
  .page-hero { background: none; color: var(--ink); padding: 0 0 24px; }
  .page-hero__lead, .breadcrumb { color: var(--muted); }
}
