/* Atherso Asesores — identidad: azul #222b57, gris #4d4a4a, tipografía humanista (Cabin ≈ Gill Sans). */
@font-face {
  font-family: "Cabin";
  src: url("/fonts/cabin-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cabin";
  src: url("/fonts/cabin-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #222b57;
  --navy-deep: #161c3d;
  --steel: #3f617d;
  --ice: #b9cbe2;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --alt: #eceae3;
  --ink: #12172e;
  --muted: #383e52; /* 10.6:1 sobre --bg */
  --line: #d6d3ca;
  --brand-ink: #222b57; /* azul usado como TEXTO */
  --pill-lab: #222b57;
  --pill-fis: #4d4a4a;
  --shadow: 0 24px 50px -32px #12172e66;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 18px;
  color-scheme: light;
}
.dark {
  --bg: #0c1024;
  --surface: #141a36;
  --alt: #10162e;
  --ink: #eef1f8;
  --muted: #c6cde0; /* 11.9:1 sobre --bg */
  --line: #2a3359;
  --brand-ink: #b9cbe2;
  --pill-lab: #34407c;
  --pill-fis: #5c5959;
  --shadow: 0 24px 50px -30px #000000aa;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: clamp(1rem, 0.42vw + 0.6rem, 1.1875rem); /* BONES §3.11: crece en pantallas anchas */
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Cabin", "Gill Sans", "Gill Sans MT", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
  transition: background-color 0.3s, color 0.3s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}
.skip:focus {
  top: 1rem;
}
:focus-visible {
  outline: 3px solid #6f9bd1;
  outline-offset: 3px;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* ── Contenedores (pantallas anchas ≥ 15") ─────────────────────────────── */
.shell {
  width: 100%;
  max-width: min(max(87.5rem, 94vw), 140rem);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 3rem);
}
.narrow {
  max-width: 54rem;
}
.section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
  position: relative;
}
.section-alt {
  background: var(--alt);
}
.section-head {
  max-width: 48rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head-row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}
.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-ink);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.kicker::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: currentColor;
}
.kicker-light {
  color: var(--ice);
}
.h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 42rem;
}

/* ── Botones ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background-color 0.25s;
  white-space: normal;
  text-align: center;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, #ffffff40 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn:hover::after {
  transform: translateX(120%);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 30px -18px #222b57;
}
.dark .btn-primary {
  background: #3a4a95;
}
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-sm {
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}
.hero .btn-primary,
.page-hero .btn-primary,
.article-head .btn-primary {
  background: #fff;
  color: var(--navy);
}
.hero .btn-light,
.page-hero .btn-light {
  background: transparent;
  color: #fff;
  border-color: #ffffff80;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--brand-ink);
  text-decoration: none;
}
.text-link .icon {
  transition: transform 0.35s var(--ease);
}
.text-link:hover .icon,
a:hover > .text-link .icon {
  transform: translateX(4px);
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pill-lab);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
}
.pill-fiscal {
  background: var(--pill-fis);
}

/* ── Encabezado ─────────────────────────────────────────────────────────── */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 90;
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll, 0));
  background: linear-gradient(90deg, #6f9bd1, #fff);
  pointer-events: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  transition: box-shadow 0.4s;
}
.is-scrolled .site-header {
  box-shadow: 0 14px 34px -26px #000000a0;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
  transition: min-height 0.45s var(--ease);
}
.is-scrolled .header-row {
  min-height: 4.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--brand-ink);
  margin-right: auto;
  min-width: 0;
}
.logo {
  fill: currentColor;
}
.logo-word {
  font-family: "Cabin", "Gill Sans", sans-serif;
  font-size: 108px;
  font-weight: 400;
  opacity: 0.85;
}
.logo-dot {
  opacity: 0.85;
}
.brand-logo {
  width: 3.1rem;
  height: auto;
}
.brand-logo .logo-word,
.brand-logo .logo-dot {
  display: none;
}
.brand-text {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-text small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  font-weight: 500;
  margin-top: 0.3rem;
}
.main-nav {
  display: none;
  gap: 0.2rem;
}
.main-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 0.85rem;
  color: var(--ink);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--brand-ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
}
.theme-picker {
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem;
  margin: 0;
}
.theme-picker label {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
}
.theme-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.theme-picker label:has(input:checked) {
  background: var(--navy);
  color: #fff;
}
.theme-picker label:has(input:focus-visible) {
  outline: 3px solid #6f9bd1;
}
.header-call {
  display: none;
}
.menu-toggle {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.bars,
.bars::before,
.bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
  position: relative;
}
.bars::before,
.bars::after {
  content: "";
  position: absolute;
}
.bars::before {
  top: -6px;
}
.bars::after {
  top: 6px;
}
.menu-toggle[aria-expanded="true"] .bars {
  background: transparent;
}
.menu-toggle[aria-expanded="true"] .bars::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .bars::after {
  transform: translateY(-6px) rotate(-45deg);
}
.mobile-nav {
  border-top: 1px solid var(--line);
  padding-block: 1rem 1.5rem;
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
}
.mobile-nav .shell > a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .call-list {
  margin-top: 1rem;
}
@media (min-width: 1100px) {
  .main-nav {
    display: flex;
  }
  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
  .header-call {
    display: inline-flex;
  }
}
@media (max-width: 520px) {
  .brand-text {
    font-size: 1.05rem;
    letter-spacing: 0.1em;
  }
  .brand-text small {
    display: none;
  }
  .brand-logo {
    width: 2.4rem;
  }
  .theme-picker {
    padding: 0;
    border-width: 1px;
  }
  .theme-picker label {
    width: 2.75rem;
    height: 2.75rem;
  }
  .lang-switch .icon {
    display: none;
  }
  .header-tools {
    gap: 0.3rem;
  }
}
/* Con los 3 botones de tema a 44 px el nombre ya no cabe: queda el monograma y el nombre va en el hero. */
@media (max-width: 429px) {
  .brand-text {
    display: none;
  }
  .lang-switch,
  .menu-toggle {
    min-height: 2.75rem;
    width: 2.75rem;
    padding: 0;
    justify-content: center;
  }
}

/* ── Selector de llamadas ──────────────────────────────────────────────── */
.call-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.call-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s;
  min-width: 0;
}
.call-row:hover {
  transform: translateY(-2px);
  border-color: var(--brand-ink);
  box-shadow: var(--shadow);
}
.call-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  min-width: 5.6rem;
  text-align: center;
}
.dark .call-tag {
  background: #3a4a95;
}
.call-who {
  display: grid;
  font-weight: 600;
  line-height: 1.3;
  min-width: 0;
  margin-right: auto;
}
.call-who small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.call-ico {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.65rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
}
.call-row:hover .call-ico {
  animation: ring 0.6s var(--ease);
}
@keyframes ring {
  20% {
    transform: rotate(-14deg);
  }
  40% {
    transform: rotate(12deg);
  }
  60% {
    transform: rotate(-8deg);
  }
}
.call-dock {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 75;
  display: grid;
  justify-items: end;
  gap: 0.75rem;
}
.call-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.5rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  /* El anillo claro lo separa del hero azul (navy sobre navy se perdía en celular). */
  box-shadow:
    0 0 0 2px #ffffff59,
    0 18px 40px -16px #12172ecc;
}
.dark .call-fab {
  background: #3a4a95;
}
.call-fab .icon {
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  70%,
  100% {
    transform: none;
  }
  78% {
    transform: rotate(-14deg) scale(1.1);
  }
  86% {
    transform: rotate(12deg) scale(1.1);
  }
}
.call-panel {
  width: min(23rem, calc(100vw - 2rem));
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.call-panel-title {
  font-weight: 700;
  margin-bottom: 0.7rem;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero,
.page-hero,
.article-head {
  position: relative;
  overflow: hidden;
  background: #27395f;
  background: linear-gradient(160deg, #283a62 0%, #222b57 55%, #161c3d 100%);
  color: #fff;
  isolation: isolate;
}
.hero-stripes {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: repeating-linear-gradient(-36deg, transparent 0 9rem, #ffffff07 9rem 9.6rem, #00000024 9.6rem 13rem, transparent 13rem 19rem);
  animation: drift 26s linear infinite;
}
@keyframes drift {
  to {
    transform: translate3d(-19rem, 0, 0);
  }
}
.hero {
  min-height: min(92vh, 62rem);
  display: grid;
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hero-mark {
  position: absolute;
  right: -4vw;
  top: 4%;
  width: clamp(18rem, 42vw, 52rem);
  z-index: -1;
  color: #ffffff12;
}
.hero-logo .logo-word,
.hero-logo .logo-dot {
  display: none;
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-title,
.page-title {
  font-size: clamp(2.6rem, 6.4vw, 6.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 1.5rem;
}
.page-title {
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
}
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.line > span {
  display: inline-block;
}
.accent {
  color: var(--ice);
  font-style: italic;
}
.hero-lead {
  font-size: clamp(1.08rem, 1.3vw, 1.3rem);
  color: #e4eaf5;
  max-width: 40rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-block: 2rem 1.2rem;
}
.hero-note {
  font-size: 0.95rem;
  color: #d5deee;
}
.hero-note a {
  color: #fff;
  font-weight: 600;
}
.hero-photo,
.page-hero-photo {
  margin: 0;
  position: relative;
}
.hero-photo img,
.page-hero-photo img {
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px #000;
  filter: grayscale(1) contrast(1.05);
}
.hero-photo img {
  aspect-ratio: 1485 / 536;
  object-fit: cover;
}
.hero-photo figcaption {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d5deee;
  margin-top: 0.8rem;
}
.page-hero {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.page-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.page-hero-photo img {
  max-height: 30rem;
  width: 100%;
  object-fit: cover;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.25fr 1fr;
  }
  .page-hero-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}
@media (min-width: 1500px) {
  .hero-photo img {
    aspect-ratio: 4 / 3;
  }
}

/* ── Cinta ──────────────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  background: var(--navy-deep);
  color: #e4eaf5;
  border-block: 1px solid #ffffff1a;
}
.marquee ul {
  display: flex;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
  animation: marquee 48s linear infinite;
}
.marquee li {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding-inline: 1.6rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3.2rem;
}
.marquee li::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ice);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ── Bloques de contenido ──────────────────────────────────────────────── */
.pains {
  display: grid;
  gap: 1rem;
}
.pain {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 1.8rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 500;
  line-height: 1.4;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.pain .icon {
  color: var(--brand-ink);
  transition: transform 0.4s var(--ease);
}
.pain:hover {
  transform: translateY(-3px);
  border-color: var(--brand-ink);
  box-shadow: var(--shadow);
}
.pain:hover .icon {
  transform: translateX(6px);
}
@media (min-width: 800px) {
  .pains {
    grid-template-columns: 1fr 1fr;
  }
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 1.2rem;
  counter-reset: s;
}
.steps li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1.5px solid var(--line);
  position: relative;
}
.step-n {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-ink);
  margin-bottom: 0.8rem;
}
.steps h3 {
  font-size: 1.3rem;
}
.steps p {
  color: var(--muted);
  margin: 0;
}
.section .steps {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.areas {
  display: grid;
  gap: 1.3rem;
}
.area {
  display: grid;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
  min-width: 0;
}
.area:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.area-photo {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 1.2s var(--ease);
}
.area:hover .area-photo {
  transform: scale(1.05);
}
.area-body {
  padding: 1.8rem;
}
.area-body h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  margin-top: 0.9rem;
}
.area-body p {
  color: var(--muted);
}
@media (min-width: 900px) {
  .areas {
    grid-template-columns: 1.5fr 1fr;
  }
  .area-main .area-photo {
    height: 22rem;
  }
}
.more-areas {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.more-areas li {
  border-top: 2px solid var(--brand-ink);
  padding-top: 1rem;
}
.more-areas h3 {
  font-size: 1.15rem;
}
.more-areas p {
  color: var(--muted);
  font-size: 0.95rem;
}

.band-consult {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.dark .band-consult {
  background: #182052;
}
.band-consult .kicker {
  color: var(--ice);
}
.band-consult .lead {
  color: #e4eaf5;
}
.consult-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .consult-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
.band-consult .call-row {
  background: #ffffff10;
  border-color: #ffffff33;
  color: #fff;
}
.band-consult .call-who small {
  color: #d5deee;
}
.band-consult .call-tag,
.band-consult .call-ico {
  background: #fff;
  color: var(--navy);
}

.guide-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
@media (min-width: 1800px) {
  .guide-grid:not(.guide-grid-2) {
    grid-template-columns: repeat(4, 1fr);
  }
}
.guide-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.guide-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.3s;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-ink);
}
.guide-card h3 {
  font-size: 1.35rem;
}
.guide-card h3 a {
  text-decoration: none;
}
.guide-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.guide-card p {
  color: var(--muted);
}
.guide-card .text-link {
  margin-top: auto;
}
.guide-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.guide-meta-light {
  color: #d5deee;
}

.quotes {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.quote {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
}
.quote blockquote {
  margin: 0 0 1.4rem;
  font-size: 1.15rem;
  line-height: 1.6;
}
.quote blockquote p::before {
  content: "“";
  display: block;
  font-size: 3.6rem;
  line-height: 0.6;
  color: var(--brand-ink);
  margin-top: 0.4rem;
}
.quote figcaption {
  margin-top: auto;
  display: grid;
  font-size: 0.95rem;
}
.quote figcaption span {
  color: var(--muted);
}
.clients {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  align-items: center;
  color: var(--muted);
}
.clients strong {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.faq details {
  border-bottom: 1.5px solid var(--line);
  padding-block: 0.4rem;
}
.faq summary {
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1rem 2.5rem 1rem 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 0.75rem;
  font-size: 1.6rem;
  font-weight: 400;
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq p {
  color: var(--muted);
}
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
  }
  .faq details[open]::details-content {
    block-size: auto;
  }
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split > * {
  min-width: 0;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
.rounded {
  border-radius: var(--radius);
  filter: grayscale(1);
  width: 100%;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 1.08rem;
}
.checklist span {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}
.two-cols,
.three-cols {
  display: grid;
  gap: 1.3rem;
}
@media (min-width: 900px) {
  .two-cols {
    grid-template-columns: 1fr 1fr;
  }
  .three-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service-list {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  min-width: 0;
}
.service-list h3 {
  font-size: 1.35rem;
}
.service-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.service-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.service-list li .icon {
  color: var(--brand-ink);
  margin-top: 0.3em;
}
.service-list p {
  color: var(--muted);
}

.values {
  margin: 0;
  display: grid;
  gap: 1rem;
}
.values div {
  border-left: 3px solid var(--brand-ink);
  padding: 0.3rem 0 0.3rem 1.3rem;
}
.values dt {
  font-weight: 700;
  font-size: 1.15rem;
}
.values dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}
.team {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
}
.person {
  display: flex;
  gap: 1.2rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  min-width: 0;
}
.person > div {
  min-width: 0;
}
.avatar {
  flex: none;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.person h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}
.person-title {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.person-role {
  color: var(--brand-ink);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.person p:not(.person-title):not(.person-role) {
  color: var(--muted);
  font-size: 0.95rem;
}
.cities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.cities li {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  background: var(--surface);
}
.cities li:first-child {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ── Artículos (guías, aviso) ──────────────────────────────────────────── */
.article-head {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.crumbs {
  font-size: 0.9rem;
  color: #d5deee;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.crumbs a {
  color: #fff;
}
.article-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 1000px) {
  .article-grid {
    grid-template-columns: minmax(0, 46rem) minmax(16rem, 22rem);
    justify-content: center;
    align-items: start;
  }
  .article-aside {
    position: sticky;
    top: 6rem;
  }
}
.prose {
  font-size: 1.08rem;
  max-width: 46rem;
}
.prose h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin-top: 2.2rem;
}
.prose ul {
  padding-left: 1.2rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.tip {
  background: var(--surface);
  border-left: 4px solid var(--brand-ink);
  border-radius: 0 14px 14px 0;
  padding: 1.2rem 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
}
.disclaimer {
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 2.5rem;
}
.aside-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: grid;
  gap: 0.8rem;
}
.aside-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}
.aside-card p {
  margin: 0;
  color: var(--muted);
}
.page-404 {
  min-height: 70vh;
  display: grid;
  align-items: center;
}
.page-404 a {
  color: #fff;
}

/* ── Pie ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  color: #e4eaf5;
  padding-block: 4rem 6.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}
.footer-logo {
  width: 9rem;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-title {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  font-size: 0.95rem;
}
.footer-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.footer-list .icon {
  margin-top: 0.3em;
}
.contact-list {
  margin-top: 1.5rem;
}
.footer-cities {
  margin-top: 1.3rem;
  font-size: 0.875rem;
  color: #c6cde0;
}
.footer-legal {
  margin-top: 3rem;
  border-top: 1px solid #ffffff22;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 0.875rem;
}
.footer-legal p {
  margin: 0;
}
.credit {
  font-weight: 600;
  color: #ffffffd9;
}
.credit a {
  font-weight: 800;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #ffffff66;
  text-underline-offset: 3px;
}

.consent {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 26rem;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.consent div {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* ── Palabra gigante decorativa ────────────────────────────────────────── */
.deco-word {
  font-size: clamp(6rem, 22vw, 26rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  user-select: none;
  padding-top: 2rem;
}

/* ── Movimiento (BONES §3.14): solo con html.motion-on, sin opacidad en texto ── */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  [id] {
    scroll-margin-top: 6rem;
  }
  .hero-title .line > span,
  .page-title .line > span {
    animation: line-up 1.1s var(--ease) both;
  }
  .hero-title .line:nth-child(2) > span {
    animation-delay: 0.12s;
  }
  .hero-lead,
  .hero-actions {
    animation: clip-up 1.1s var(--ease) 0.25s both;
  }
}
@keyframes line-up {
  from {
    transform: translateY(108%);
  }
}
@keyframes clip-up {
  from {
    transform: translateY(28px);
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(-20%);
  }
}
.motion-on [data-reveal] {
  clip-path: inset(-30% -30% 100% -30%);
  translate: 0 56px;
  pointer-events: none;
  transition:
    clip-path 1.1s var(--ease),
    translate 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.motion-on [data-reveal].is-in {
  pointer-events: auto;
  clip-path: inset(-30%);
  translate: 0 0;
}
.motion-on [data-parallax] {
  transform: translate3d(0, calc(var(--p, 0) * var(--depth, 40px) * -1), 0);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .site-header,
  .call-dock,
  .marquee,
  .consent,
  .deco-word {
    display: none !important;
  }
}

/* ── WhatsApp (17-nov-2026): verde oscuro para que el blanco pase ≥ 6:1 ─────── */
.btn-wa,
.wa-fab {
  background: #0b6e3c;
  color: #fff;
  border-color: transparent;
}
.btn-wa:hover {
  background: #0a5f34;
}
.wa-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.5rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    0 0 0 2px #ffffff59,
    0 18px 40px -16px #0b2a19cc;
  transition: transform 0.35s var(--ease);
}
.wa-fab:hover {
  transform: translateY(-2px);
}
.call-row-wa .call-tag,
.call-row-wa .call-ico,
.band-consult .call-row-wa .call-tag,
.band-consult .call-row-wa .call-ico {
  background: #0b6e3c;
  color: #fff;
}
@media (max-width: 600px) {
  .call-dock {
    gap: 0.55rem;
  }
  /* En celular, círculos de 56 px: el texto queda para lectores de pantalla y no tapa el contenido. */
  .wa-fab,
  .call-fab {
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    justify-content: center;
  }
  .wa-fab .icon,
  .call-fab .icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  .wa-fab span,
  .call-fab span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
