/* =========================================================
   Ortiz Tristán & Asociados — Hoja de estilos
   Basada en la «Solicitud de cambios a la página web» (nov. 2026):
   azul marino #1F3A66, azul oscuro #13294B, dorado #C9A227,
   fondo #F4F6F9. Títulos en Caladea (equivale a Cambria) y
   texto en Carlito (equivale a Calibri).
   ========================================================= */

:root {
  --navy: #1f3a66;
  --navy-dark: #13294b;
  --navy-soft: #2b4a7d;      /* tarjetas sobre fondo azul */
  --gold: #c9a227;
  --gold-text: #8d6f12;      /* dorado legible sobre fondo claro */
  --bg: #f4f6f9;
  --white: #ffffff;
  --ink: #1d2533;
  --text: #3a4352;
  --muted: #667085;
  --line: #e2e7ef;
  --chip: #e6ebf3;
  --whatsapp: #25d366;
  --error: #b42318;
  --ok: #1e7b4c;

  --radius: 12px;
  --radius-sm: 8px;
  --font-head: "Caladea", Cambria, Georgia, serif;
  --font-body: "Carlito", Calibri, "Segoe UI", Arial, sans-serif;

  --header-h: 84px;
  --gutter: 40px;
}

/* ---------- Idioma: el contenido existe en ES y EN y se muestra uno ---------- */
html:not([lang="en"]) [data-lang="en"],
html[lang="en"] [data-lang="es"] {
  display: none !important;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--navy);
}
a:hover {
  color: var(--navy-dark);
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
strong,
b {
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 400;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow--light {
  color: var(--gold);
}
.title {
  font-size: clamp(30px, 3.4vw, 44px);
  max-width: 860px;
  margin-bottom: 20px;
}
.title--light {
  color: var(--white);
}
.lead {
  max-width: 820px;
  font-size: 19px;
  color: var(--text);
}
.section {
  padding: 96px 0;
}
.section--bg {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
}
.section--dark {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.86);
}
.section__head {
  margin-bottom: 44px;
}
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.link-arrow {
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link-arrow::after {
  content: " →";
}
.link-arrow--gold {
  color: var(--gold);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: 700 18px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--navy-dark);
  color: var(--white);
}
.btn--gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn--gold:hover {
  background: #b8931f;
  color: var(--navy-dark);
}
.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--navy);
}
.btn--white {
  background: var(--white);
  color: var(--navy);
}
.btn--white:hover {
  background: var(--bg);
  color: var(--navy-dark);
}
.btn--block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.btn-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  text-decoration: none;
}
.btn-link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ---------- Encabezado (1) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-top: 4px solid var(--gold);
  border-bottom: 1px solid var(--line);
}
.header.is-scrolled {
  box-shadow: 0 4px 16px rgba(19, 41, 75, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
}
.logo img {
  width: 210px;
  height: auto;
}
.nav__list {
  display: flex;
  gap: 6px;
}
.nav__link {
  display: block;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.nav__link:hover,
.nav__link.is-active {
  border-bottom-color: var(--gold);
  color: var(--navy-dark);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}
.lang__btn {
  padding: 4px 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 400 16px/1 var(--font-body);
  cursor: pointer;
}
.lang__sep {
  padding: 0 2px;
  color: var(--line);
}
.lang__btn.is-active {
  color: var(--navy);
  font-weight: 700;
}
.lang__btn:hover {
  color: var(--navy-dark);
}
.header__cta {
  min-height: 48px;
  padding: 10px 22px;
}
.menu-toggle {
  display: none;
  place-items: center;
  align-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Franja de indicadores (2) ---------- */
.ticker {
  background: var(--navy-dark);
  border-bottom: 4px solid var(--gold);
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}
.ticker__row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
}
.ticker__label {
  flex: none;
  padding: 6px 14px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 60s linear infinite;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
  animation-play-state: paused;
}
.ticker__item {
  flex: none;
  padding: 0 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}
.ticker__item strong {
  color: var(--white);
}
.ticker__all {
  flex: none;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.ticker__all:hover {
  color: #e2bf4c;
}
.ticker__note {
  margin: 0;
  padding: 6px 0 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Portada (3) ---------- */
.hero {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 110px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 26px;
}
.hero__lead {
  max-width: 720px;
  font-size: 21px;
  color: rgba(255, 255, 255, 0.86);
}
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-top: 40px;
}
.hero__stats {
  display: grid;
  gap: 18px;
}
.stat-card {
  padding: 26px 30px;
  border-radius: var(--radius);
  background: var(--navy-soft);
}
.stat-card strong {
  display: block;
  font: 700 46px/1.1 var(--font-head);
  color: var(--white);
}
.stat-card span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Encabezado de páginas interiores ---------- */
.page-hero {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
  padding: 72px 0 64px;
}
.page-hero h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  color: var(--white);
  max-width: 900px;
}
.page-hero p {
  max-width: 820px;
  margin: 0;
  font-size: 20px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Tarjetas ---------- */
.card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.card--flat {
  background: var(--bg);
  border-color: transparent;
}
.card--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: rgba(255, 255, 255, 0.86);
}
.card--navy h3,
.card--navy h4,
.card--navy strong {
  color: var(--white);
}
.card h3 {
  font-size: 25px;
}
.card h4 {
  font-family: var(--font-body);
  font-size: 20px;
  margin-bottom: 10px;
}
.card p:last-child {
  margin-bottom: 0;
}
.icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 24px;
}
.icon--gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.icon--sm {
  width: 48px;
  height: 48px;
  font-size: 19px;
  margin-bottom: 16px;
}
.grid {
  display: grid;
  gap: 28px;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Servicios (4) */
.service-card {
  display: flex;
  flex-direction: column;
}
.service-card p {
  flex: 1;
}
.service-card .link-arrow {
  margin-top: 18px;
  text-decoration: none;
}
.service-card.card--navy .link-arrow {
  color: var(--gold);
}

/* Etapas (5) */
.step__num {
  display: block;
  margin-bottom: 14px;
  font: 700 36px/1 var(--font-head);
  color: var(--gold);
}

/* Nuestra firma en portada */
.firm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.firm__text p {
  text-align: justify;
}

/* Frase (6) */
.quote-band {
  padding: 88px 0;
  text-align: center;
}
.quote-band__icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 26px;
}
.quote-band blockquote {
  max-width: 1040px;
  margin: 0 auto;
}
.quote-band blockquote p {
  margin: 0;
  font: italic 400 clamp(24px, 2.7vw, 36px) / 1.5 var(--font-head);
  color: var(--white);
}
.quote-band figcaption {
  margin-top: 26px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Sectores */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.chips li {
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--navy);
  font-weight: 700;
}

/* Actualidad fiscal (7) */
.post-card .post-meta {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.post-card h3 {
  font-size: 25px;
  line-height: 1.25;
}
.post-card h3 a {
  color: inherit;
  text-decoration: none;
}
.post-card h3 a:hover {
  text-decoration: underline;
}
.post-card .placeholder {
  color: var(--muted);
}

/* Boletín (13) */
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  margin-top: 64px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.newsletter__intro {
  display: flex;
  gap: 24px;
}
.newsletter__intro .icon {
  width: 72px;
  height: 72px;
  margin: 0;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 26px;
}
.newsletter__intro h3 {
  font-size: 32px;
  margin-bottom: 8px;
}
.newsletter__intro p {
  margin: 0;
}
.newsletter__fields {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 14px;
  align-items: end;
}
.newsletter__fields .field {
  margin: 0;
}

/* ---------- Formularios ---------- */
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.field label {
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #c7cfdb;
  border-radius: var(--radius-sm);
  font: 18px var(--font-body);
  color: var(--ink);
  background: var(--white);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 58, 102, 0.18);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--error);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 22px;
  font-size: 16px;
  color: var(--muted);
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--navy);
}
.check.is-invalid {
  color: var(--error);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-msg {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
}
.form-msg.is-error {
  background: #fdecea;
  color: var(--error);
}
.form-msg.is-ok {
  background: #e7f6ee;
  color: var(--ok);
}

/* ---------- Contacto (8) ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 64px;
  align-items: start;
}
.contact__intro p {
  font-size: 20px;
}
.contact__data {
  margin: 32px 0;
}
.contact__data li {
  margin-bottom: 12px;
}
.contact__data b {
  color: var(--gold);
}
.contact__data a {
  color: var(--white);
}
.contact__form {
  padding: 44px;
  border-radius: 16px;
  background: var(--white);
  color: var(--text);
}
.map {
  margin-top: 32px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-soft);
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.btn-wa i {
  color: #1da851;
  font-size: 22px;
}

/* ---------- Pie de página (9) ---------- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 48px;
  padding-bottom: 36px;
  /* Divisor del ancho del contenido */
  background: linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)) bottom / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.footer__logo img {
  width: 230px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
}
.footer__links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 32px;
}
.footer__bottom a {
  color: rgba(255, 255, 255, 0.88);
}
.footer__social {
  display: flex;
  gap: 18px;
}

/* ---------- Aviso de cookies (11) ---------- */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  border-top: 4px solid var(--gold);
  background: var(--white);
  box-shadow: 0 -6px 24px rgba(19, 41, 75, 0.12);
}
.cookie-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.cookie-bar p {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}
.cookie-bar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.cookie-bar .btn {
  min-height: 46px;
  padding: 8px 22px;
  font-size: 16px;
}
.btn--outline {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--white);
}
.btn--outline:hover {
  background: var(--bg);
}
.text-btn {
  border: 0;
  background: none;
  color: var(--navy);
  font: 700 16px var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(19, 41, 75, 0.55);
}
.modal[hidden] {
  display: none;
}
.modal__box {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px;
  border-radius: 16px;
  background: var(--white);
}
.modal__box h2 {
  font-size: 28px;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.toggle-row h3 {
  margin: 0 0 4px;
  font: 700 18px var(--font-body);
  color: var(--navy);
}
.toggle-row p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
}
.switch {
  position: relative;
  flex: none;
  width: 52px;
  height: 30px;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c7cfdb;
  transition: background-color 0.2s;
  pointer-events: none;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s;
}
.switch input:checked + span {
  background: var(--navy);
}
.switch input:checked + span::after {
  transform: translateX(22px);
}
.switch input:disabled + span {
  opacity: 0.6;
}
.switch input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  font-size: 32px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: bottom 0.25s;
}
.wa-float:hover {
  color: var(--white);
  background: #1fbd5a;
}
body.has-cookie-bar .wa-float {
  bottom: calc(var(--cookie-h, 100px) + 18px);
}

/* ---------- Páginas interiores: contenido ---------- */
.prose {
  max-width: 860px;
}
.prose h2 {
  margin-top: 44px;
  font-size: 28px;
}
.prose h3 {
  margin-top: 28px;
  font-size: 22px;
}
.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 24px;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin-bottom: 8px;
}
.prose p,
.prose li {
  text-align: justify;
}
.prose .updated {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid var(--gold);
  font-weight: 700;
  color: var(--navy);
}
.doc-note {
  margin-bottom: 32px;
  padding: 16px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg);
  font-size: 16px;
}
.checks li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
}
.checks li::before {
  content: "\f00c";
  position: absolute;
  left: 2px;
  top: 14px;
  font: 900 15px/1 "Font Awesome 6 Free";
  color: var(--gold-text);
}
.card--navy .checks li {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}
.card--navy .checks li::before {
  color: var(--gold);
}
.numbered {
  counter-reset: n;
  border-top: 1px solid var(--line);
}
.numbered li {
  counter-increment: n;
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
}
.numbered li::before {
  content: counter(n, decimal-leading-zero);
  flex: none;
  min-width: 30px;
  font: 700 22px/1.2 var(--font-head);
  color: var(--gold);
}
.leader {
  text-align: center;
}
.leader__avatar {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 48px;
}
.leader__role {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--gold-text);
}
.values-more {
  margin-top: 28px;
  color: var(--muted);
}
.checks--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}
.callout {
  margin-top: 32px;
  padding: 22px 28px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--navy);
  color: var(--white);
}
.callout strong {
  color: var(--gold);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pills li {
  padding: 7px 16px;
  border: 1px solid #c7cfdb;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
}
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.split img {
  width: 100%;
  border-radius: var(--radius);
}
.service-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px 40px;
  border-radius: 16px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
}
.service-cta h2 {
  margin: 0 0 6px;
  font-size: 30px;
  color: var(--white);
}
.service-cta p {
  margin: 0;
}
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.related a {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.related a:hover {
  border-color: var(--navy);
}

/* Pestañas */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}
.tabs__tab {
  padding: 14px 20px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  font: 700 18px var(--font-body);
  cursor: pointer;
}
.tabs__tab.is-active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.tabs__panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding-top: 36px;
}
.tabs__panel[hidden] {
  display: none;
}
.tabs__panel img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Tabla de indicadores */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.data-table th,
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.data-table th {
  background: var(--bg);
  color: var(--navy);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.data-table td.num {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.data-table tr:last-child td {
  border-bottom: 0;
}

.links-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
}
.links-list li {
  border-bottom: 1px solid var(--line);
}
.links-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.links-list a::after {
  content: "\f35d";
  font: 900 12px/1.8 "Font Awesome 6 Free";
  color: var(--gold-text);
}
.links-list a:hover {
  text-decoration: underline;
}

/* ---------- Redes sociales (15) ---------- */
.social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social__label {
  margin-right: 4px;
  color: var(--gold);
  font-weight: 700;
}
.social__btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white) !important;
  font-size: 18px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
/* Colores de marca de cada red (como en la referencia de la firma) */
.social__btn--linkedin { background: #0a66c2; border-color: #0a66c2; }
.social__btn--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); border-color: transparent; }
.social__btn--facebook { background: #1877f2; border-color: #1877f2; }
.social__btn--youtube { background: #ff0000; border-color: #ff0000; }
.social__btn--x { background: #000; border-color: rgba(255, 255, 255, 0.4); }
a.social__btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark) !important;
}
.social__btn--soon {
  cursor: default;
}
.social--contact {
  margin-top: 28px;
}
.footer__icon {
  color: var(--gold);
}

/* Compartir circulares (15) */
.share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.share__label {
  margin-right: 4px;
}
.share__btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--navy);
  text-decoration: none;
}
.share__btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Formulario «Contáctenos» con dos pestañas (16) ---------- */
.contact__title {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: 32px;
  color: var(--navy);
}
.contact__form .tabs__list {
  margin-bottom: 28px;
}
.contact__form .tabs__tab {
  padding: 12px 16px;
  font-size: 17px;
}
.form-panel[hidden] {
  display: none;
}
.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.checks-grid legend {
  margin-bottom: 10px;
  padding: 0;
  font-weight: 700;
  color: var(--navy);
}
.checks-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
}
.checks-grid input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--navy);
}
.checks-grid__other {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.checks-grid__other input[type="text"] {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #c7cfdb;
  border-radius: var(--radius-sm);
  font: 16px var(--font-body);
}
.checks-grid__other input[type="text"]:disabled {
  background: var(--bg);
}
.recaptcha-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 14.5px;
  color: var(--muted);
}
.recaptcha-note i {
  color: var(--navy);
}
.recaptcha-note--plain {
  padding: 0;
  border: 0;
  background: none;
}
.req {
  color: var(--error);
}

/* ---------- Bolsa de trabajo (17) ---------- */
.jobs-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.jobs-hero > p {
  margin: 0;
}
.section__head--center {
  text-align: center;
}
.section__head--center .title {
  margin-left: auto;
  margin-right: auto;
}
.section__head--center .lead {
  margin: 0 auto 8px;
  font-size: 18px;
  color: var(--muted);
}
.job-card {
  display: flex;
  flex-direction: column;
}
.job-card__head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}
.job-card__head .icon {
  margin-bottom: 0;
}
.job-card__head h3 {
  margin-bottom: 6px;
}
.job-card__meta {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}
.job-card__meta b {
  color: var(--navy);
}
.job-card .job-card__label {
  margin: 22px 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.job-card__list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  font-size: 16.5px;
}
.job-card__list li {
  margin-bottom: 6px;
}
.job-card .btn {
  align-self: flex-start;
  margin-top: auto;
}
.job-card .job-card__list:last-of-type {
  margin-bottom: 28px;
}
/* «¿Le interesa otra área?» */
.jobs-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 40px;
  padding: 32px 40px;
  border-radius: var(--radius);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
}
.jobs-cta h3 {
  margin: 0 0 6px;
  color: var(--white);
}
.jobs-cta p {
  margin: 0;
}
.jobs-cta .btn {
  flex: none;
}
@media (max-width: 720px) {
  .jobs-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
}
.jobs-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px dashed #c7cfdb;
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  color: var(--muted);
}
.jobs-form {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: start;
}
.small-note {
  font-size: 15.5px;
  color: var(--muted);
}
.form-box {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.file-input {
  padding: 12px !important;
  border-style: dashed !important;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .jobs-hero,
  .jobs-form {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 720px) {
  .checks-grid {
    grid-template-columns: 1fr;
  }
  .form-box {
    padding: 24px 18px;
  }
  .contact__form .tabs__tab {
    flex: 1;
    padding: 10px 8px;
    font-size: 15.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ticker__track {
    animation: none;
  }
  .ticker__viewport {
    overflow-x: auto;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
/* Encabezado: más ancho que el contenido para que el menú respire */
.header .container,
.ticker .container {
  max-width: 1440px;
}
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav__list {
  gap: 4px;
}
.nav__link {
  white-space: nowrap;
}

@media (max-width: 1440px) {
  .header__inner {
    gap: 20px;
  }
  .nav__link {
    padding: 8px 10px;
    font-size: 16.5px;
  }
  .logo img {
    width: 185px;
  }
  .header__actions {
    gap: 14px;
  }
  .header__cta {
    padding: 10px 18px;
    white-space: nowrap;
  }
}

/* Por debajo de 1260 px el menú completo ya no cabe con holgura:
   se usa el menú desplegable (hamburguesa). */
@media (max-width: 1260px) {
  .menu-toggle {
    display: grid;
  }
  .nav {
    position: fixed;
    top: var(--nav-top, var(--header-h));
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 8px var(--gutter) 32px;
    background: var(--white);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
  }
  .nav__link {
    padding: 18px 0;
    font-size: 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav__link:hover,
  .nav__link.is-active {
    border-bottom-color: var(--line);
    color: var(--gold-text);
  }
}

@media (max-width: 1180px) {
  :root {
    --gutter: 28px;
  }
  .logo img {
    width: 180px;
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
  }
  .menu-toggle {
    display: grid;
  }
  .nav {
    position: fixed;
    top: var(--nav-top, var(--header-h));
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px var(--gutter) 32px;
    background: var(--white);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
  }
  .nav__link {
    padding: 18px 0;
    font-size: 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav__link:hover,
  .nav__link.is-active {
    border-bottom-color: var(--line);
    color: var(--gold-text);
  }
  .hero__inner,
  .firm,
  .contact,
  .split,
  .tabs__panel {
    grid-template-columns: 1fr;
  }
  .hero__inner {
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .tabs__panel img {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 8;
  }
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }
  :root {
    --gutter: 18px;
  }
  .logo img {
    width: 150px;
  }
  .header__cta {
    display: none;
  }
  .header__actions {
    gap: 10px;
  }
  .ticker__label {
    display: none;
  }
  .ticker__row {
    gap: 12px;
  }
  .hero__stats,
  .grid--2,
  .grid--3,
  .grid--4,
  .form-row,
  .checks--2col,
  .links-list,
  .newsletter__fields {
    grid-template-columns: 1fr;
  }
  .stat-card strong {
    font-size: 38px;
  }
  .hero__buttons .btn {
    width: 100%;
  }
  .firm__text p {
    text-align: left;
  }
  .card,
  .contact__form,
  .newsletter,
  .service-cta {
    padding: 26px 22px;
  }
  .newsletter__intro {
    flex-direction: column;
    gap: 16px;
  }
  .cookie-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-bar__actions {
    justify-content: space-between;
  }
  .cookie-bar .btn {
    flex: 1;
    padding: 8px 12px;
  }
  .footer__top,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .prose p,
  .prose li {
    text-align: left;
  }
  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }
}
