/* ──────────────────────────────────────────────
   Heynowstudio — Artiaga Elordi
   Theme styles. Importa los tokens base (que viven
   en este mismo archivo, debajo) + clases hnw-* específicas
   de WordPress.
   ────────────────────────────────────────────── */


/* ─────────────────────────────────────────────
   1. Design tokens + base (idénticos al prototipo)
   ───────────────────────────────────────────── */

:root {
  --ae-cream: #faf2e8;
  --ae-cream-deep: #f3e8d7;
  --ae-gray: #96a1a1;
  --ae-gray-soft: #c8cdcd;
  --ae-charcoal: #363640;
  --ae-charcoal-soft: #4a4a55;
  --ae-coral: #ff5f4a;
  --ae-line: rgba(54, 54, 64, 0.14);
  --ae-line-soft: rgba(54, 54, 64, 0.08);

  --t-display: 64px;
  --t-h1: 48px;
  --t-h2: 36px;
  --t-h3: 28px;
  --t-h4: 22px;
  --t-body: 17px;
  --t-small: 14px;
  --t-eyebrow: 13px;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Archivo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ae-charcoal);
  background: var(--ae-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--ae-coral); color: var(--ae-cream); }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hnw-skip {
  position: absolute; left: -9999px; top: 0; padding: 12px 16px;
  background: var(--ae-charcoal); color: var(--ae-cream); z-index: 100;
}
.hnw-skip:focus { left: 12px; top: 12px; }


/* Type utilities */
.ae-display { font-size: var(--t-display); line-height: 1.02; font-weight: 500; letter-spacing: -0.025em; }
.ae-h1 { font-size: var(--t-h1); line-height: 1.08; font-weight: 500; letter-spacing: -0.02em; }
.ae-h2 { font-size: var(--t-h2); line-height: 1.12; font-weight: 500; letter-spacing: -0.015em; }
.ae-h3 { font-size: var(--t-h3); line-height: 1.2;  font-weight: 500; letter-spacing: -0.01em; }
.ae-h4 { font-size: var(--t-h4); line-height: 1.3;  font-weight: 500; letter-spacing: -0.005em; }
.ae-body { font-size: var(--t-body); line-height: 1.6; font-weight: 400; }
.ae-lead { font-size: 20px; line-height: 1.5; font-weight: 400; color: var(--ae-charcoal-soft); }
.ae-small { font-size: var(--t-small); line-height: 1.5; }
.ae-eyebrow {
  font-size: var(--t-eyebrow); letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500;
}
.ae-mono { font-family: 'Archivo', system-ui, sans-serif; }

/* Buttons */
.ae-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 8px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  letter-spacing: 0.005em; border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.ae-btn--primary { background: var(--ae-charcoal); color: var(--ae-cream); }
.ae-btn--primary:hover { background: var(--ae-coral); }
.ae-btn--coral { background: var(--ae-coral); color: var(--ae-cream); }
.ae-btn--coral:hover { background: var(--ae-charcoal); }
.ae-btn--ghost { background: transparent; color: var(--ae-charcoal); border-color: var(--ae-charcoal); }
.ae-btn--ghost:hover { background: var(--ae-charcoal); color: var(--ae-cream); }
.ae-btn--ghost-light { background: transparent; color: var(--ae-cream); border-color: rgba(250,242,232,.4); }
.ae-btn--ghost-light:hover { background: var(--ae-cream); color: var(--ae-charcoal); border-color: var(--ae-cream); }
.ae-btn .arr { transition: transform .25s ease; display: inline-block; }
.ae-btn:hover .arr { transform: translateX(4px); }

/* Form controls */
.ae-input, .ae-textarea {
  width: 100%; padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--ae-line);
  border-radius: 4px;
  font-family: inherit; font-size: 16px; line-height: 1.4;
  color: var(--ae-charcoal);
  transition: border-color .15s ease;
}
.ae-input:focus, .ae-textarea:focus {
  outline: none; border-color: var(--ae-charcoal);
}
.ae-input::placeholder, .ae-textarea::placeholder { color: var(--ae-gray); }
.ae-textarea { resize: vertical; min-height: 120px; }

.ae-label { display:block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ae-gray); margin-bottom: 6px; font-weight: 500; }
.ae-check { display:flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ae-charcoal-soft); }
.ae-check input { margin-top: 3px; accent-color: var(--ae-coral); }
.ae-error { color: var(--ae-coral); font-size: 12px; margin-top: 4px; }

/* Hover lift */
.ae-hover-line { position: relative; }
.ae-hover-line::after {
  content:''; position:absolute; left:0; bottom:-2px; height:1px; width:0;
  background: var(--ae-charcoal); transition: width .3s ease;
}
.ae-hover-line:hover::after { width: 100%; }

/* Reveal on scroll */
.ae-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.ae-reveal.is-in { opacity: 1; transform: translateY(0); }

/* Sections / containers */
:root {
  --section-pad: clamp(80px, 12vw, 160px);
  --section-pad-sm: clamp(56px, 8vw, 96px);
}
.ae-section { padding: var(--section-pad-sm) 0; }
.ae-section--lg { padding: var(--section-pad) 0; }
.ae-container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.ae-container--wide { max-width: 1440px; }
.ae-container--narrow { max-width: 960px; }

.ae-band-charcoal { background: var(--ae-charcoal); color: var(--ae-cream); }
.ae-band-charcoal .ae-lead { color: rgba(250,242,232,.7); }
.ae-band-charcoal .ae-label { color: var(--ae-gray); }

/* Striped placeholder */
.ae-stripe-ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(54,54,64,.08) 0 1px, transparent 1px 14px),
    var(--ae-cream-deep);
  border: 1px solid var(--ae-line);
  border-radius: 8px;
  display: flex; align-items: flex-end; justify-content: flex-start;
  overflow: hidden;
  min-height: 280px;
}
.ae-stripe-ph--charcoal {
  background:
    repeating-linear-gradient(135deg, rgba(250,242,232,.07) 0 1px, transparent 1px 14px),
    #2c2c34;
  border-color: rgba(250,242,232,.1);
  color: var(--ae-cream);
}
.ae-stripe-ph__cap {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 11px; letter-spacing: 0.04em;
  padding: 10px 12px;
  background: rgba(54,54,64,.85);
  color: var(--ae-cream);
  max-width: 80%;
  margin: 14px;
  border-radius: 2px;
}
.ae-stripe-ph--charcoal .ae-stripe-ph__cap {
  background: rgba(250,242,232,.92);
  color: var(--ae-charcoal);
}
.ae-stripe-ph__corner {
  position:absolute; top:12px; right:12px;
  font-family: 'Archivo', system-ui, sans-serif; font-size: 10px; letter-spacing: 0.06em;
  color: var(--ae-gray); text-transform: uppercase;
}

/* Animations */
@keyframes ae-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.ae-hero-breathe { animation: ae-breathe 18s ease-in-out infinite; transform-origin: center 60%; }

@keyframes ae-flourish {
  0% { transform: scaleX(0); transform-origin: left center; }
  60% { transform: scaleX(1); transform-origin: left center; }
  100% { transform: scaleX(1); transform-origin: left center; }
}
.ae-flourish { display: inline-block; position: relative; }
.ae-flourish::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.04em;
  height: 0.08em; background: var(--ae-coral);
  transform: scaleX(0); transform-origin: left center;
  animation: ae-flourish 1.6s 0.4s cubic-bezier(.7,0,.2,1) forwards;
  pointer-events: none;
}
@keyframes ae-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.ae-rise   { animation: ae-rise 0.9s 0.1s cubic-bezier(.2,.7,.2,1) both; }
.ae-rise-2 { animation: ae-rise 0.9s 0.4s cubic-bezier(.2,.7,.2,1) both; }
.ae-rise-3 { animation: ae-rise 0.9s 0.7s cubic-bezier(.2,.7,.2,1) both; }


/* ─────────────────────────────────────────────
   2. Navigation
   ───────────────────────────────────────────── */
.hnw-nav {
  position: sticky; top: 0; z-index: 30;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, backdrop-filter .3s ease, border-bottom-color .3s ease;
}
.hnw-nav__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
  gap: 24px;
}

.hnw-nav__logo { display: inline-flex; align-items: center; line-height: 0; }
.hnw-nav__menu .hnw-nav__list {
  display: flex; gap: 32px; list-style: none; padding: 0; margin: 0;
}
.hnw-nav__list a {
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  position: relative;
}
.hnw-nav__list .current-menu-item > a,
.hnw-nav__list .current_page_item > a {
  font-weight: 600;
}
.hnw-nav__list .current-menu-item > a::before,
.hnw-nav__list .current_page_item > a::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px;
  background: var(--ae-coral);
}
.hnw-nav__right { display: flex; align-items: center; gap: 16px; }
.hnw-lang {
  display: flex; gap: 4px; list-style: none; padding: 0; margin: 0;
  font-size: 13px; color: var(--ae-charcoal);
}
.hnw-lang li { padding: 4px 6px; }
.hnw-lang li.current-lang a,
.hnw-lang--static .is-active {
  font-weight: 500; border-bottom: 1px solid var(--ae-charcoal);
}
.hnw-lang li:not(.current-lang) a,
.hnw-lang--static span:not(.is-active) {
  color: var(--ae-gray);
}
.hnw-nav__cta { white-space: nowrap; flex-shrink: 0; }

.hnw-nav__burger { display: none; background: none; border: 0; padding: 8px; gap: 4px; flex-direction: column; }
.hnw-nav__burger span { display: block; width: 22px; height: 2px; background: var(--ae-charcoal); transition: transform .25s ease, opacity .25s ease; }


/* ─────────────────────────────────────────────
   3. Hero
   ───────────────────────────────────────────── */
.hnw-hero {
  position: relative;
  height: 760px;
  border-bottom: 1px solid var(--ae-line);
  overflow: hidden;
}
.hnw-hero__media { position: absolute; inset: 0; }
.hnw-hero__media img,
.hnw-hero__ph { width: 100%; height: 100%; object-fit: cover; }
.hnw-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(54,54,64,.30) 0%, rgba(54,54,64,.45) 60%, rgba(54,54,64,.60) 100%);
}
.hnw-hero__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; padding-bottom: 96px;
  color: var(--ae-cream);
}
.hnw-hero__eyebrow {
  color: rgba(250,242,232,.7); margin-bottom: 32px;
}
.hnw-hero__claim {
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.96; font-weight: 500; letter-spacing: -0.025em;
  margin: 0 0 48px; max-width: 1080px;
}
.hnw-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }


/* ─────────────────────────────────────────────
   4. Despacho block
   ───────────────────────────────────────────── */
.hnw-despacho {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 96px;
}
.hnw-despacho__title { margin: 0; max-width: 560px; }
.hnw-despacho__body p { margin: 0; }

.hnw-valores {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--ae-line);
}
.hnw-valor {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--ae-line);
  display: flex; flex-direction: column; gap: 12px;
}
.hnw-valor:last-child { border-right: 0; }
.hnw-valor__num {
  font-family: 'Archivo', system-ui, sans-serif; font-size: 11px;
  letter-spacing: 0.08em; color: var(--ae-gray);
}
.hnw-valor__name { font-size: 22px; font-weight: 500; letter-spacing: -0.005em; }


/* ─────────────────────────────────────────────
   5. Services grid (home + archive)
   ───────────────────────────────────────────── */
.hnw-services__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 80px; flex-wrap: wrap;
}
.hnw-services__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(250,242,232,.1);
}
.hnw-service {
  background: var(--ae-charcoal);
  transition: background .25s ease;
}
.hnw-service:hover { background: #2c2c34; }
.hnw-service__link { display: block; padding: 48px; color: inherit; }
.hnw-service__num {
  font-family: 'Archivo', system-ui, sans-serif; font-size: 11px;
  letter-spacing: 0.08em; color: var(--ae-coral);
  display: block; margin-bottom: 24px;
}
.hnw-service__media { margin-bottom: 32px; aspect-ratio: 16/10; }
.hnw-service__media .ae-stripe-ph { min-height: 0; height: 100%; aspect-ratio: 16/10; }
.hnw-service__title { margin: 0 0 16px; }
.hnw-service__desc { color: rgba(250,242,232,.7); margin: 0 0 24px; }
.hnw-service__more { font-size: 14px; color: var(--ae-coral); }
.hnw-service__more .arr { transition: transform .25s ease; display: inline-block; }
.hnw-service__link:hover .hnw-service__more .arr { transform: translateX(4px); }

/* All services list (servicios page) */
.hnw-services-all { list-style: none; padding: 0; margin: 0; }
.hnw-srow { border-top: 1px solid var(--ae-line); }
.hnw-srow:last-child { border-bottom: 1px solid var(--ae-line); }
.hnw-srow__link {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  padding: 80px 0; align-items: center;
}
.hnw-srow.is-flip .hnw-srow__link { direction: rtl; }
.hnw-srow.is-flip .hnw-srow__link > * { direction: ltr; }
.hnw-srow__media { aspect-ratio: 4/3; }
.hnw-srow__media .ae-stripe-ph { min-height: 0; height: 100%; }
.hnw-srow__num {
  font-family: 'Archivo', system-ui, sans-serif; font-size: 11px;
  letter-spacing: 0.08em; color: var(--ae-coral); display: block; margin-bottom: 16px;
}
.hnw-srow__title { margin: 0 0 24px; max-width: 520px; }
.hnw-srow__desc { color: var(--ae-charcoal-soft); margin: 0 0 32px; max-width: 520px; }
.hnw-srow__more { font-size: 14px; color: var(--ae-coral); }
.hnw-srow__more .arr { display: inline-block; transition: transform .25s ease; }
.hnw-srow__link:hover .hnw-srow__more .arr { transform: translateX(4px); }


/* ─────────────────────────────────────────────
   6. Team
   ───────────────────────────────────────────── */
.hnw-team-preview__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 80px; flex-wrap: wrap;
}
.hnw-team-preview__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.hnw-team-card__media { aspect-ratio: 3/4; margin-bottom: 16px; }
.hnw-team-card__media .ae-stripe-ph,
.hnw-team-card__media img { min-height: 0; height: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* Partners (equipo page) */
.hnw-partners { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 96px; }
.hnw-partner {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start;
}
.hnw-partner:nth-child(even) { direction: rtl; }
.hnw-partner:nth-child(even) > * { direction: ltr; }
.hnw-partner__media { aspect-ratio: 3/4; }
.hnw-partner__media .ae-stripe-ph,
.hnw-partner__media img { min-height: 0; height: 100%; aspect-ratio: 3/4; object-fit: cover; }
.hnw-partner__name { margin: 0 0 8px; }
.hnw-partner__email { display: inline-block; margin-top: 16px; color: var(--ae-coral); }
.hnw-partner__bio { list-style: none; padding: 0; margin: 32px 0; }
.hnw-partner__bio li {
  padding: 12px 0; border-top: 1px solid var(--ae-line);
  font-size: 15px; color: var(--ae-charcoal-soft);
}
.hnw-partner__bio li:last-child { border-bottom: 1px solid var(--ae-line); }
.hnw-partner__areas span { display: block; margin-bottom: 12px; }
.hnw-partner__areas ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hnw-partner__areas li {
  padding: 6px 14px; border: 1px solid var(--ae-line); border-radius: 999px;
  font-size: 13px; color: var(--ae-charcoal-soft);
}

/* Staff grid */
.hnw-staff {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 32px;
}
.hnw-staff__media { aspect-ratio: 3/4; }
.hnw-staff__media .ae-stripe-ph,
.hnw-staff__media img { min-height: 0; height: 100%; aspect-ratio: 3/4; object-fit: cover; }
.hnw-staff__email { display: block; font-size: 13px; color: var(--ae-coral); margin-top: 8px; }


/* ─────────────────────────────────────────────
   7. Testimonios
   ───────────────────────────────────────────── */
.hnw-tests__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
.hnw-test {
  background: var(--ae-cream); border: 1px solid var(--ae-line);
  border-radius: 8px; padding: 40px;
}
.hnw-test blockquote {
  margin: 0 0 32px; font-size: 18px; line-height: 1.55;
  color: var(--ae-charcoal); font-style: italic;
}
.hnw-test footer { display: flex; gap: 16px; align-items: center; }
.hnw-test__logo {
  width: 48px; height: 48px; border-radius: 4px;
  background: var(--ae-charcoal); color: var(--ae-cream);
  font-family: 'Archivo', system-ui, sans-serif; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}


/* ─────────────────────────────────────────────
   8. Latest articles (home) + Archive
   ───────────────────────────────────────────── */
.hnw-latest__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 80px; flex-wrap: wrap;
}
.hnw-latest__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px;
}
.hnw-latest__item { border-top: 1px solid var(--ae-line); padding-top: 32px; }
.hnw-latest__item a { display: block; }
.hnw-latest__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.hnw-latest__title { margin: 0 0 16px; transition: color .2s ease; }
.hnw-latest__item:hover .hnw-latest__title { color: var(--ae-coral); }
.hnw-latest__excerpt { color: var(--ae-charcoal-soft); margin: 0 0 24px; }
.hnw-latest__more { font-size: 14px; color: var(--ae-coral); }
.hnw-latest__more .arr { display: inline-block; transition: transform .25s ease; }
.hnw-latest__item:hover .hnw-latest__more .arr { transform: translateX(4px); }

/* Tag/chip */
.hnw-tag {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  font-family: 'Archivo', system-ui, sans-serif;
  padding: 4px 10px; border: 1px solid var(--ae-line); border-radius: 999px;
  color: var(--ae-charcoal);
}
.hnw-chip {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 500;
  padding: 8px 16px; border: 1px solid var(--ae-line); border-radius: 999px;
  color: var(--ae-charcoal); background: transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.hnw-chip:hover { background: var(--ae-charcoal); color: var(--ae-cream); }
.hnw-chip.is-active { background: var(--ae-coral); border-color: var(--ae-coral); color: var(--ae-cream); }

/* Articles archive */
.hnw-articulos__filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 48px; }

.hnw-year-block { margin-bottom: 96px; }
.hnw-year {
  font-family: 'Archivo', system-ui, sans-serif; font-size: 14px;
  letter-spacing: 0.1em; color: var(--ae-gray);
  margin: 0 0 32px; padding-bottom: 16px; border-bottom: 1px solid var(--ae-line);
}
.hnw-articles { list-style: none; padding: 0; margin: 0; }
.hnw-article { border-top: 1px solid var(--ae-line); }
.hnw-article:first-child { border-top: 0; }
.hnw-article__link { display: block; padding: 40px 0; color: inherit; transition: padding .25s ease; }
.hnw-article__link:hover { padding-left: 16px; }
.hnw-article__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.hnw-article__title { margin: 0 0 16px; max-width: 880px; transition: color .2s ease; }
.hnw-article:hover .hnw-article__title { color: var(--ae-coral); }
.hnw-article__excerpt { color: var(--ae-charcoal-soft); margin: 0 0 16px; max-width: 720px; }
.hnw-article__more { font-size: 14px; color: var(--ae-coral); }


/* ─────────────────────────────────────────────
   9. Single article
   ───────────────────────────────────────────── */
.hnw-articulo__head { padding-top: 64px; padding-bottom: 48px; }
.hnw-articulo__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 32px 0 0; }
.hnw-articulo__title { max-width: 880px; }
.hnw-articulo__lede { max-width: 720px; }
.hnw-articulo__byline {
  display: flex; gap: 16px; align-items: center; margin-top: 32px;
  padding-top: 24px; border-top: 1px solid var(--ae-line);
}
.hnw-articulo__avatar { border-radius: 999px; }
.hnw-articulo__hero { margin: 0; }
.hnw-articulo__hero img { width: 100%; height: clamp(320px, 50vw, 640px); object-fit: cover; }
.hnw-articulo__footer { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--ae-line); display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hnw-articulo__tags { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.hnw-articulo__share { display: flex; gap: 16px; align-items: center; }

.hnw-related {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}
.hnw-related li { border-top: 1px solid var(--ae-line); padding-top: 24px; }
.hnw-related__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.hnw-related h3 { margin: 0 0 12px; transition: color .2s ease; }
.hnw-related li:hover h3 { color: var(--ae-coral); }
.hnw-related p { color: var(--ae-charcoal-soft); margin: 0; }


/* ─────────────────────────────────────────────
  10. Prose (the_content output)
   ───────────────────────────────────────────── */
.hnw-prose { font-size: 18px; line-height: 1.7; color: var(--ae-charcoal); }
.hnw-prose > * + * { margin-top: 1.4em; }
.hnw-prose h2 { font-size: var(--t-h2); line-height: 1.15; font-weight: 500; letter-spacing: -0.015em; margin-top: 2em; }
.hnw-prose h3 { font-size: var(--t-h3); line-height: 1.25; font-weight: 500; margin-top: 1.6em; }
.hnw-prose h4 { font-size: var(--t-h4); line-height: 1.3; font-weight: 500; }
.hnw-prose a { color: var(--ae-coral); text-decoration: underline; text-underline-offset: 4px; }
.hnw-prose a:hover { color: var(--ae-charcoal); }
.hnw-prose blockquote {
  margin: 2em 0; padding-left: 24px; border-left: 3px solid var(--ae-coral);
  font-style: italic; color: var(--ae-charcoal-soft);
}
.hnw-prose ul, .hnw-prose ol { padding-left: 24px; }
.hnw-prose li { margin-bottom: 8px; }
.hnw-prose img { border-radius: 8px; margin: 2em 0; }
.hnw-prose code { font-family: 'Archivo', system-ui, sans-serif; font-size: 0.9em; background: var(--ae-cream-deep); padding: 2px 6px; border-radius: 3px; }
.hnw-prose hr { border: 0; border-top: 1px solid var(--ae-line); margin: 3em 0; }


/* ─────────────────────────────────────────────
  11. Page heads (servicios, equipo, articulos)
   ───────────────────────────────────────────── */
.hnw-page-head { padding-top: 64px; padding-bottom: 32px; border-bottom: 1px solid var(--ae-line); margin-bottom: 64px; }


/* ─────────────────────────────────────────────
  12. Contacto
   ───────────────────────────────────────────── */
.hnw-contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start;
}
.hnw-contact__data {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: flex; flex-direction: column; gap: 32px;
}
.hnw-contact__data li {
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 24px; border-bottom: 1px solid rgba(250,242,232,.12);
}
.hnw-contact__data span:first-child { margin-bottom: 4px; }
.hnw-contact__data strong { font-size: 18px; font-weight: 500; }
.hnw-contact__form {
  background: rgba(250,242,232,.04); border: 1px solid rgba(250,242,232,.18);
  border-radius: 4px; padding: 48px;
}
.hnw-contact__placeholder { color: rgba(250,242,232,.7); }
.hnw-contact__plugin-form .wpforms-field-label,
.hnw-contact__plugin-form label { color: rgba(250,242,232,.85) !important; }
.hnw-contact__plugin-form input[type=text],
.hnw-contact__plugin-form input[type=email],
.hnw-contact__plugin-form input[type=tel],
.hnw-contact__plugin-form textarea {
  background: rgba(250,242,232,.04) !important;
  border-color: rgba(250,242,232,.25) !important;
  color: var(--ae-cream) !important;
}
.hnw-contact__plugin-form button[type=submit],
.hnw-contact__plugin-form input[type=submit] {
  background: var(--ae-coral) !important;
  color: var(--ae-cream) !important;
  border: 0 !important;
  padding: 14px 22px !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
}

.hnw-map { width: 100%; aspect-ratio: 16/6; }
.hnw-map iframe { width: 100%; height: 100%; border: 0; display: block; }


/* ─────────────────────────────────────────────
  13. CTA band + Newsletter + Footer
   ───────────────────────────────────────────── */
.hnw-cta-band { padding: 128px 0; }
.hnw-cta-band__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 64px; flex-wrap: wrap;
}
.hnw-cta-band__copy { flex: 1 1 480px; }
.hnw-cta-band__btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hnw-newsletter { background: var(--ae-cream-deep); padding: 96px 0; }
.hnw-newsletter__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hnw-newsletter__static .hnw-newsletter__fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.hnw-newsletter__static .ae-check { grid-column: 1 / -1; }
.hnw-newsletter__static .ae-btn { grid-column: 1 / -1; justify-self: start; }

.hnw-footer { background: var(--ae-charcoal); color: var(--ae-cream); padding: 96px 0 48px; }
.hnw-footer__grid {
  display: grid; grid-template-columns: 1.4fr 2fr 1fr 1fr; gap: 64px; /* col 2 (Servicios) más ancha para 2 columnas de lista */
  margin-bottom: 80px;
}
.hnw-footer__brand svg { color: var(--ae-cream); }
.hnw-footer__addr {
  margin-top: 20px; color: rgba(250,242,232,.65); max-width: 320px; font-size: 15px;
}
.hnw-footer__h { color: var(--ae-gray); margin-bottom: 16px; }
.hnw-footer__list,
.hnw-footer__legal-list {
  list-style: none; padding: 0; margin: 0;
}
.hnw-footer__list li a {
  display: block; padding: 6px 0; color: rgba(250,242,232,.85); font-size: 14px;
}
.hnw-footer__contact { font-style: normal; color: rgba(250,242,232,.85); font-size: 14px; line-height: 1.8; }
.hnw-footer__email { color: var(--ae-coral); }
.hnw-footer__hours { color: rgba(250,242,232,.55); }
.hnw-footer__bottom {
  border-top: 1px solid rgba(250,242,232,.12); padding-top: 32px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.hnw-footer__legal {
  display: flex; gap: 24px; font-size: 12px; color: rgba(250,242,232,.55); flex-wrap: wrap; align-items: center;
}
.hnw-footer__legal-list { display: flex; gap: 24px; }
.hnw-footer__badges { display: flex; gap: 20px; align-items: center; }
.hnw-badge {
  padding: 8px 14px; border: 1px solid rgba(250,242,232,.2); border-radius: 4px;
  font-family: 'Archivo', system-ui, sans-serif; font-size: 10px; letter-spacing: 0.08em;
  color: rgba(250,242,232,.7);
}


/* ─────────────────────────────────────────────
  14. Single servicio
   ───────────────────────────────────────────── */
.hnw-servicio-head__num {
  font-family: 'Archivo', system-ui, sans-serif; font-size: 13px;
  letter-spacing: 0.1em; color: var(--ae-coral);
}
.hnw-servicio-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 64px; align-items: start;
}


/* ─────────────────────────────────────────────
  15. Search results
   ───────────────────────────────────────────── */
.hnw-search-results { list-style: none; padding: 0; margin: 0; }
.hnw-search-result {
  border-top: 1px solid var(--ae-line); padding: 32px 0;
}
.hnw-search-result a { display: block; }
.hnw-search-result h3 { margin: 8px 0; transition: color .2s ease; }
.hnw-search-result:hover h3 { color: var(--ae-coral); }
.hnw-pagination { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--ae-line); }
.hnw-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.hnw-pagination a, .hnw-pagination span {
  padding: 8px 14px; border: 1px solid var(--ae-line); border-radius: 4px;
  font-size: 13px; color: var(--ae-charcoal);
}
.hnw-pagination .current { background: var(--ae-charcoal); color: var(--ae-cream); border-color: var(--ae-charcoal); }


/* ─────────────────────────────────────────────
  16. Responsive
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ae-section { padding: 64px 0; }
  .ae-section--lg { padding: 96px 0; }
  .ae-container { padding: 0 32px; }

  .hnw-hero { height: 600px; }
  .hnw-hero__inner { padding-top: 80px; padding-bottom: 64px; }

  .hnw-despacho { grid-template-columns: 1fr; gap: 32px; }
  .hnw-valores { grid-template-columns: repeat(2, 1fr); }
  .hnw-valor { border-right: 0; border-bottom: 1px solid var(--ae-line); }

  .hnw-services__list { grid-template-columns: 1fr; }
  .hnw-service__link { padding: 32px; }

  .hnw-srow__link { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .hnw-srow.is-flip .hnw-srow__link { direction: ltr; }

  .hnw-team-preview__grid { grid-template-columns: repeat(2, 1fr); }
  .hnw-staff { grid-template-columns: repeat(2, 1fr); }
  .hnw-partner { grid-template-columns: 1fr; gap: 32px; }
  .hnw-partner:nth-child(even) { direction: ltr; }

  .hnw-tests__grid { grid-template-columns: 1fr; }

  .hnw-latest__list { grid-template-columns: 1fr; gap: 48px; }
  .hnw-related { grid-template-columns: 1fr; }

  .hnw-contact { grid-template-columns: 1fr; gap: 48px; }
  .hnw-newsletter__row { grid-template-columns: 1fr; gap: 32px; }
  .hnw-footer__grid { grid-template-columns: 1fr 1fr; gap: 48px; }

  .hnw-servicio-body { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  :root {
    --t-display: 44px;
    --t-h1: 36px;
    --t-h2: 28px;
    --t-h3: 22px;
  }
  .ae-container { padding: 0 24px; }

  .hnw-nav__row { height: 72px; }
  .hnw-nav__menu { display: none; }
  .hnw-nav__cta { display: none; }
  .hnw-lang { display: none; }
  .hnw-nav__burger { display: flex; }

  .hnw-nav.is-open .hnw-nav__menu {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ae-cream); border-bottom: 1px solid var(--ae-line);
    padding: 24px;
  }
  .hnw-nav.is-open .hnw-nav__list { flex-direction: column; gap: 16px; }
  .hnw-nav.is-open .hnw-nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hnw-nav.is-open .hnw-nav__burger span:nth-child(2) { opacity: 0; }
  .hnw-nav.is-open .hnw-nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hnw-team-preview__grid,
  .hnw-staff { grid-template-columns: 1fr 1fr; gap: 24px; }

  .hnw-footer__grid { grid-template-columns: 1fr; }
  .hnw-footer__bottom { flex-direction: column; align-items: flex-start; }

  .hnw-cta-band__row { flex-direction: column; align-items: flex-start; }
  .hnw-articulo__footer { flex-direction: column; }
}


/* ─────────────────────────────────────────────
   17. POLISH — single source of truth for the
       elements that previously had duplicated
       appended rules. Anything below this line
       supersedes earlier declarations.
   ───────────────────────────────────────────── */

/* —— Logo color binding (SVG uses currentColor for .st0; .st1 is always coral) —— */
.hnw-nav__logo,
.hnw-nav__logo svg { color: var(--ae-charcoal); }
.hnw-nav__logo svg .st0 { fill: currentColor; }
.hnw-nav__logo svg .st1 { fill: var(--ae-coral); }

.hnw-footer__brand svg { color: var(--ae-charcoal); }
.hnw-footer__brand svg .st0 { fill: currentColor; }
.hnw-footer__brand svg .st1 { fill: var(--ae-coral); }


/* —— Header: clip-based logo morph (single SVG) ——
   Width 230 → 56 collapses the wordmark; .st0 fades concurrently.
   Height stays 36px throughout: the bar shrinks 88 → 64. */
.hnw-nav__logo { height: 36px; }
.hnw-nav__logo-clip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  width: 230px;
  overflow: hidden;
  transition: width .55s cubic-bezier(.22,.7,.18,1);
  will-change: width;
}
.hnw-nav__logo-clip svg {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  display: block;
  transition: opacity .35s cubic-bezier(.22,.7,.18,1);
}
.hnw-nav__logo-clip svg .st0 {
  transition: opacity .35s cubic-bezier(.22,.7,.18,1);
}
.hnw-nav.is-scrolled .hnw-nav__logo-clip { width: 56px; }
.hnw-nav.is-scrolled .hnw-nav__logo-clip svg .st0 { opacity: 0; }
.hnw-nav.is-scrolled .hnw-nav__row { height: 64px; }

/* Defuse legacy double-image markup if it ever reappears */
.hnw-nav__logo-full,
.hnw-nav__logo-mono { all: unset; display: none; }


/* —— Header: contextual background + colors ——
   Home/front-page  → transparent at top (over dark hero), cream + blur on scroll
   All other pages  → cream + blur always */
body:not(.home):not(.front-page) .hnw-nav {
  background: rgba(250,242,232,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--ae-line-soft);
}
body.home .hnw-nav,
body.front-page .hnw-nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
body.home .hnw-nav.is-scrolled,
body.front-page .hnw-nav.is-scrolled {
  background: rgba(250,242,232,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--ae-line-soft);
}

/* Home transparent state: text + wordmark go cream so they read on charcoal hero */
body.home .hnw-nav:not(.is-scrolled),
body.front-page .hnw-nav:not(.is-scrolled) {
  color: var(--ae-cream);
}
body.home .hnw-nav:not(.is-scrolled) .hnw-nav__logo,
body.front-page .hnw-nav:not(.is-scrolled) .hnw-nav__logo { color: var(--ae-cream); }
body.home .hnw-nav:not(.is-scrolled) .hnw-nav__list a,
body.home .hnw-nav:not(.is-scrolled) .hnw-lang,
body.home .hnw-nav:not(.is-scrolled) .hnw-lang a,
body.front-page .hnw-nav:not(.is-scrolled) .hnw-nav__list a,
body.front-page .hnw-nav:not(.is-scrolled) .hnw-lang,
body.front-page .hnw-nav:not(.is-scrolled) .hnw-lang a { color: var(--ae-cream); }
body.home .hnw-nav:not(.is-scrolled) .hnw-nav__list .current-menu-item > a::before,
body.home .hnw-nav:not(.is-scrolled) .hnw-nav__list .current_page_item > a::before {
  background: var(--ae-coral);
}
body.home .hnw-nav:not(.is-scrolled) .ae-hover-line::after,
body.front-page .hnw-nav:not(.is-scrolled) .ae-hover-line::after { background: var(--ae-cream); }
body.home .hnw-nav:not(.is-scrolled) .hnw-nav__burger span,
body.front-page .hnw-nav:not(.is-scrolled) .hnw-nav__burger span { background: var(--ae-cream); }

/* Header CTA — coral pill, looks good on both states */
.hnw-nav__cta.ae-btn--primary {
  background: var(--ae-coral);
  color: var(--ae-cream);
  border-color: var(--ae-coral);
}
.hnw-nav__cta.ae-btn--primary:hover {
  background: var(--ae-charcoal);
  border-color: var(--ae-charcoal);
  color: var(--ae-cream);
}


/* —— Hero: editorial scale, generous breathing room —— */
.hnw-hero { height: clamp(620px, 86vh, 880px); }
.hnw-hero__claim {
  font-size: clamp(48px, 9vw, 132px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 56px;
  max-width: 1180px;
}
.hnw-hero__inner { padding-top: 160px; padding-bottom: 112px; }

/* Hero accent — italic coral, always */
.hnw-hero__claim em.hnw-hero__accent,
.hnw-hero__accent {
  font-style: italic;
  color: var(--ae-coral);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 0;
}
.hnw-hero__claim em.hnw-hero__accent::after,
.hnw-hero__accent::after { content: none; display: none; }

/* Editorial accent — last-word italic coral on section headings */
.hnw-accent {
  font-style: italic;
  color: var(--ae-coral);
  font-weight: 500;
}
.hnw-accent::after { display: none !important; content: none !important; }


/* —— Footer: cream variant (visually separated from charcoal CTA above) —— */
.hnw-footer {
  background: var(--ae-cream);
  color: var(--ae-charcoal);
  padding: 96px 0 48px;
  border-top: 1px solid rgba(255,95,74,.18);
}
.hnw-footer__addr { color: var(--ae-charcoal-soft); }
.hnw-footer__h { color: var(--ae-gray); }
.hnw-footer__list li a { color: var(--ae-charcoal); }
.hnw-footer__contact { color: var(--ae-charcoal-soft); }
.hnw-footer__email { color: var(--ae-coral); }
.hnw-footer__hours { color: var(--ae-gray); }
.hnw-footer__bottom { border-top: 1px solid var(--ae-line); }
.hnw-footer__legal,
.hnw-footer__legal-list a { color: var(--ae-gray); }
.hnw-footer__badges { color: var(--ae-charcoal-soft); }
.hnw-footer__list li a:hover { color: var(--ae-coral); }


/* —— Articles archive: editorial row with thumbnail —— */
.hnw-article__link {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
  transition: padding .25s cubic-bezier(.2,.7,.2,1);
}
.hnw-article__link:hover { padding-left: 12px; }
.hnw-article__cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ae-cream-deep);
}
.hnw-article__img,
.hnw-article__ph {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hnw-article:hover .hnw-article__img { transform: scale(1.04); }
.hnw-article__body { min-width: 0; }


/* —— Latest preview (home) cards: cover on top —— */
.hnw-latest__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
}
.hnw-latest__cover {
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ae-cream-deep);
}
.hnw-latest__img,
.hnw-latest__ph {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hnw-latest__item:hover .hnw-latest__img { transform: scale(1.04); }


/* —— Services rows (servicios page): coral border-left on hover —— */
.hnw-srow { transition: background .25s ease; }
.hnw-srow__link { transition: padding .25s cubic-bezier(.2,.7,.2,1); border-left: 2px solid transparent; }
.hnw-srow:hover .hnw-srow__link { border-left-color: var(--ae-coral); padding-left: 24px; }


/* —— Forms: editorial inputs (border-bottom only, focus coral) —— */
.hnw-contact__plugin-form input[type=text],
.hnw-contact__plugin-form input[type=email],
.hnw-contact__plugin-form input[type=tel],
.hnw-contact__plugin-form textarea {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(250,242,232,.28) !important;
  border-radius: 0 !important;
  padding: 12px 0 !important;
  color: var(--ae-cream) !important;
  transition: border-color .2s ease !important;
}
.hnw-contact__plugin-form input[type=text]:focus,
.hnw-contact__plugin-form input[type=email]:focus,
.hnw-contact__plugin-form input[type=tel]:focus,
.hnw-contact__plugin-form textarea:focus {
  outline: 0 !important;
  border-bottom: 2px solid var(--ae-coral) !important;
}
.hnw-contact__plugin-form .wpforms-field-label,
.hnw-contact__plugin-form label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px !important;
  color: rgba(250,242,232,.7) !important;
}


/* —— Mobile burger color is contextual (handled in nav block above) —— */
@media (max-width: 1024px) {
  .hnw-hero { height: clamp(560px, 82vh, 720px); }
  .hnw-hero__inner { padding-top: 120px; padding-bottom: 80px; }
  .hnw-article__link { grid-template-columns: 220px 1fr; gap: 32px; padding: 40px 0; }
  .hnw-latest__list { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 720px) {
  .hnw-nav__row { height: 64px; }
  .hnw-nav.is-scrolled .hnw-nav__row { height: 56px; }
  .hnw-hero__inner { padding-top: 96px; padding-bottom: 56px; }
  .hnw-hero__claim { margin-bottom: 32px; }
  .hnw-article__link { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .hnw-article__cover { aspect-ratio: 16 / 10; }
  .hnw-article__link:hover { padding-left: 0; }
  .hnw-latest__list { grid-template-columns: 1fr; gap: 32px; }
  .hnw-srow:hover .hnw-srow__link { padding-left: 0; border-left-color: transparent; }
}

/* ─── HEADER FIX: cream + blur siempre. Sin transparencia en home. ─── */
.hnw-nav {
  background: rgba(250,242,232,.92) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--ae-line-soft) !important;
}
/* Anular reglas previas que ponian texto cream sobre cream en home */
body.home .hnw-nav .hnw-nav__list a,
body.home .hnw-nav .hnw-nav__lang a,
body.home .hnw-nav .hnw-nav__logo {
  color: var(--ae-charcoal) !important;
}
body.home .hnw-nav .hnw-nav__logo svg .st0 {
  fill: var(--ae-charcoal) !important;
}
body.home .hnw-nav .hnw-nav__logo svg .st1 {
  fill: var(--ae-coral) !important;
}

/* ─── Logo height match CTA button ─── */
.hnw-nav__logo,
.hnw-nav__logo-clip {
  height: 48px !important;
}
.hnw-nav__logo-clip {
  width: 296px !important;
}
.hnw-nav__logo-clip svg {
  height: 48px !important;
}
.hnw-nav.is-scrolled .hnw-nav__logo,
.hnw-nav.is-scrolled .hnw-nav__logo-clip {
  height: 44px !important;
}
.hnw-nav.is-scrolled .hnw-nav__logo-clip svg {
  height: 44px !important;
}
.hnw-nav.is-scrolled .hnw-nav__logo-clip {
  width: 70px !important;
}

/* Hero claim — first word coral */
.hnw-hero__lead {
  color: var(--ae-coral);
  font-style: normal;
  font-weight: 500;
}

/* ─── Embed YouTube fallback (shortcode [embedyt]) ─── */
.hnw-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 40px 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ae-charcoal);
}
.hnw-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

/* ─── Latest articles redesign — editorial 1 featured + 3 small ─── */
.hnw-latest__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  margin-top: 56px;
}
.hnw-latest__item.is-featured {
  grid-row: span 3;
  display: flex;
  flex-direction: column;
}
.hnw-latest__item.is-featured .hnw-latest__a {
  display: flex; flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.hnw-latest__item.is-featured .hnw-latest__cover {
  aspect-ratio: 4 / 3;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ae-cream-deep);
}
.hnw-latest__item.is-featured .hnw-latest__title--feat {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 12px 0 16px;
  max-width: 720px;
}
.hnw-latest__item.is-featured .hnw-latest__excerpt {
  color: var(--ae-charcoal-soft);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 640px;
}

/* Secondary (3 stacked cards) */
.hnw-latest__item.is-secondary {
  border-top: 1px solid var(--ae-line-soft);
  padding-top: 24px;
}
.hnw-latest__item.is-secondary:first-of-type { border-top: 0; padding-top: 0; }
.hnw-latest__item.is-secondary .hnw-latest__a {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.hnw-latest__item.is-secondary .hnw-latest__cover {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ae-cream-deep);
  margin: 0;
}
.hnw-latest__item.is-secondary .hnw-latest__title {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 8px 0 0;
}
.hnw-latest__item.is-secondary .hnw-latest__excerpt,
.hnw-latest__item.is-secondary .hnw-latest__more { display: none; }
.hnw-latest__item.is-secondary .hnw-latest__meta { font-size: 12px; }

.hnw-latest__cover { position: relative; }
.hnw-latest__img,
.hnw-latest__ph {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hnw-latest__item:hover .hnw-latest__img { transform: scale(1.04); }
.hnw-latest__item:hover .hnw-latest__title { color: var(--ae-coral); }
.hnw-latest__title { transition: color .25s ease; }

.hnw-latest__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--ae-coral); color: var(--ae-cream);
  padding: 6px 14px; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px;
  font-weight: 500;
}
.hnw-latest__more {
  font-size: 14px; color: var(--ae-coral);
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500;
}

@media (max-width: 960px) {
  .hnw-latest__grid { grid-template-columns: 1fr; gap: 40px; }
  .hnw-latest__item.is-featured { grid-row: auto; }
  .hnw-latest__item.is-secondary .hnw-latest__a { grid-template-columns: 80px 1fr; gap: 16px; }
}

/* ─── FINAL Logo morph (consolidates all previous rules) ─── */
.hnw-nav__logo {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 0;
  height: 48px !important;
  position: relative;
}
.hnw-nav__logo-clip {
  display: inline-flex !important;
  align-items: center !important;
  height: 48px !important;
  width: 296px !important;
  overflow: hidden !important;
  transition: width .55s cubic-bezier(.22,.7,.18,1) !important;
  will-change: width;
}
.hnw-nav__logo-clip svg {
  height: 48px !important;
  width: auto !important;
  flex-shrink: 0 !important;
  display: block !important;
  max-width: none !important;
}
.hnw-nav__logo-clip svg .st0 {
  transition: opacity .35s cubic-bezier(.22,.7,.18,1) !important;
}
.hnw-nav.is-scrolled .hnw-nav__logo,
.hnw-nav.is-scrolled .hnw-nav__logo-clip {
  height: 44px !important;
}
.hnw-nav.is-scrolled .hnw-nav__logo-clip {
  width: 70px !important;
}
.hnw-nav.is-scrolled .hnw-nav__logo-clip svg {
  height: 44px !important;
}
.hnw-nav.is-scrolled .hnw-nav__logo-clip svg .st0 {
  opacity: 0 !important;
}

/* ─── Articulos archive — editorial (handoff) ─── */
.hnw-arch__hero {
  padding: clamp(96px, 12vw, 160px) 0 clamp(64px, 8vw, 112px);
  border-bottom: 1px solid var(--ae-line);
}
.hnw-arch__top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 64px;
}
.hnw-arch__eyebrow { color: var(--ae-coral); }
.hnw-arch__eyebrow::before {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: var(--ae-coral); margin-right: 12px; vertical-align: middle;
}
.hnw-arch__count { color: var(--ae-gray); }
.hnw-arch__title {
  margin: 0;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92; letter-spacing: -0.04em; font-weight: 500;
  max-width: 1280px;
}
.hnw-arch__title .hnw-arch__accent {
  font-style: italic; color: var(--ae-coral); font-weight: 500;
}
.hnw-arch__lead {
  margin-top: 48px; font-size: 22px; line-height: 1.5;
  color: var(--ae-charcoal-soft); max-width: 600px;
}

.hnw-arch__filter {
  position: sticky; top: 88px; z-index: 9;
  background: var(--ae-cream);
  border-bottom: 1px solid var(--ae-line-soft);
  padding: 24px 0;
}
.hnw-nav.is-scrolled ~ * .hnw-arch__filter { top: 64px; }
.hnw-arch__filter-row {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  flex-wrap: wrap;
}
.hnw-arch__filter-l { color: var(--ae-gray); }
.hnw-arch__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hnw-chip {
  background: transparent; color: var(--ae-charcoal);
  border: 1px solid var(--ae-line);
  padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all .2s ease;
  display: inline-flex; align-items: center;
}
.hnw-chip:hover { border-color: var(--ae-charcoal); }
.hnw-chip.is-active { background: var(--ae-charcoal); color: var(--ae-cream); border-color: var(--ae-charcoal); }

.hnw-arch__list { padding: 0 0 clamp(96px, 12vw, 160px); }

.hnw-year {
  display: grid; grid-template-columns: 64px 1fr 200px;
  gap: 32px; align-items: baseline;
  padding: 96px 0 32px;
  border-top: 1px solid var(--ae-line);
}
.hnw-year:first-of-type { padding-top: 80px; }
.hnw-year::before { content: ''; }
.hnw-year__num {
  margin: 0;
  font-size: clamp(64px, 9vw, 120px);
  line-height: 1; letter-spacing: -0.04em; font-weight: 500;
}
.hnw-year__count { color: var(--ae-gray); text-align: right; }

.hnw-row {
  display: grid;
  grid-template-columns: 64px 200px 1fr 200px 180px 60px;
  gap: 32px; align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--ae-line-soft);
  text-decoration: none; color: inherit;
  transition: padding-left .25s ease, background-color .25s ease;
}
.hnw-row:hover { padding-left: 12px; background: rgba(54,54,64,.02); }
.hnw-row:hover .hnw-row__arrow { transform: translateX(6px); color: var(--ae-coral); }
.hnw-row:hover .hnw-row__title { color: var(--ae-coral); }

.hnw-row__idx {
  font-size: 12px; color: var(--ae-gray);
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}
.hnw-row__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background-size: cover; background-position: center;
  background-color: var(--ae-cream-deep);
  border-radius: 6px;
  overflow: hidden;
}
.hnw-row__thumb .ae-stripe-ph {
  position: absolute; inset: 0; display: block;
}
.hnw-row__badge {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(54,54,64,.85);
  color: var(--ae-cream);
  padding: 6px 12px;
  font-size: 10px; letter-spacing: 0.08em; font-weight: 500;
  border-radius: 4px;
}
.hnw-row__body { min-width: 0; }
.hnw-row__meta { display: block; margin-bottom: 12px; color: var(--ae-coral); }
.hnw-row__title {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.15; letter-spacing: -0.02em;
  font-weight: 500;
  transition: color .2s ease;
}
.hnw-row__author {
  font-size: 13px; color: var(--ae-charcoal-soft); line-height: 1.4;
}
.hnw-row__read { color: var(--ae-gray); text-align: right; }
.hnw-row__arrow {
  font-size: 18px; color: var(--ae-coral); text-align: right;
  transition: transform .25s ease;
}

@media (max-width: 1100px) {
  .hnw-row { grid-template-columns: 48px 140px 1fr 60px; }
  .hnw-row__author, .hnw-row__read { display: none; }
}
@media (max-width: 720px) {
  .hnw-row { grid-template-columns: 100px 1fr; gap: 16px; padding: 24px 0; }
  .hnw-row__idx, .hnw-row__author, .hnw-row__read { display: none; }
  .hnw-year { grid-template-columns: 1fr; }
  .hnw-year::before { display: none; }
  .hnw-year__count { text-align: left; margin-top: 8px; }
}

/* ─── Latest preview — 3-col editorial ─── */
.hnw-latest__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 64px; flex-wrap: wrap;
}
.hnw-latest__eyebrow { color: var(--ae-coral); display: block; margin-bottom: 16px; }
.hnw-latest__h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1; letter-spacing: -0.025em; font-weight: 500;
}

.hnw-latest__grid3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.hnw-card { color: inherit; }
.hnw-card__a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.hnw-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  background-color: var(--ae-cream-deep);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
}
.hnw-card__cover .ae-stripe-ph { position: absolute; inset: 0; }
.hnw-card__code {
  position: absolute; top: 14px; right: 16px;
  font-size: 10px; letter-spacing: 0.08em; color: var(--ae-gray);
  text-transform: uppercase; font-weight: 500;
}
.hnw-card__badge {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(54,54,64,.85); color: var(--ae-cream);
  padding: 6px 12px; font-size: 11px; letter-spacing: 0.04em;
  border-radius: 4px; font-weight: 500;
}
.hnw-card__body { display: flex; flex-direction: column; gap: 12px; }
.hnw-card__meta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 4px;
}
.hnw-card__cat { color: var(--ae-coral); }
.hnw-card__date { color: var(--ae-gray); }
.hnw-card__title {
  margin: 0;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.2; letter-spacing: -0.015em; font-weight: 500;
  transition: color .2s ease;
}
.hnw-card:hover .hnw-card__title { color: var(--ae-coral); }
.hnw-card__excerpt {
  margin: 4px 0 12px;
  font-size: 15px; line-height: 1.55;
  color: var(--ae-charcoal-soft);
}
.hnw-card__author {
  display: flex; gap: 12px; align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--ae-line-soft);
  margin-top: auto;
}
.hnw-card__avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--ae-cream-deep);
  flex-shrink: 0;
}
.hnw-card__author-name {
  font-size: 13px; color: var(--ae-charcoal-soft);
}

@media (max-width: 960px) {
  .hnw-latest__grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hnw-latest__grid3 { grid-template-columns: 1fr; }
}

/* ─── HEADER FINAL — alturas fijas, solo morph del logo ─── */
.hnw-nav__row {
  height: 88px !important;
  transition: none !important;
  align-items: center;
}
.hnw-nav.is-scrolled .hnw-nav__row {
  height: 88px !important;
}
.hnw-nav__logo,
.hnw-nav__logo-clip {
  height: 48px !important;
}
.hnw-nav.is-scrolled .hnw-nav__logo,
.hnw-nav.is-scrolled .hnw-nav__logo-clip {
  height: 48px !important;
}
.hnw-nav__logo-clip svg,
.hnw-nav.is-scrolled .hnw-nav__logo-clip svg {
  height: 48px !important;
}
.hnw-nav__logo-clip {
  width: 296px !important;
  transition: width .55s cubic-bezier(.22,.7,.18,1) !important;
}
.hnw-nav.is-scrolled .hnw-nav__logo-clip {
  width: 70px !important;
}
.hnw-nav__logo-clip svg .st0 {
  transition: opacity .35s cubic-bezier(.22,.7,.18,1) !important;
  opacity: 1;
}
.hnw-nav.is-scrolled .hnw-nav__logo-clip svg .st0 {
  opacity: 0 !important;
}

@media (max-width: 720px) {
  .hnw-nav__row,
  .hnw-nav.is-scrolled .hnw-nav__row { height: 64px !important; }
  .hnw-nav__logo,
  .hnw-nav__logo-clip,
  .hnw-nav__logo-clip svg,
  .hnw-nav.is-scrolled .hnw-nav__logo,
  .hnw-nav.is-scrolled .hnw-nav__logo-clip,
  .hnw-nav.is-scrolled .hnw-nav__logo-clip svg { height: 36px !important; }
  .hnw-nav__logo-clip { width: 220px !important; }
  .hnw-nav.is-scrolled .hnw-nav__logo-clip { width: 56px !important; }
}


/* ─────────────────────────────────────────────
   ─── MOBILE AUDIT ─── (single source of truth)
   Auditoría responsive completa: header/burger,
   hero, secciones home, servicios, equipo,
   contacto, articulos archive + single, footer.
   Aplica a ≤1024px / ≤720px / ≤480px.
   ───────────────────────────────────────────── */

/* —— Generales: evita scroll horizontal y zoom de iOS —— */
html, body { overflow-x: clip; }
@media (max-width: 720px) {
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 16px; }
  .ae-input, .ae-textarea,
  input[type=text], input[type=email], input[type=tel],
  input[type=number], input[type=url], input[type=password],
  textarea, select { font-size: 16px !important; } /* iOS no-zoom */

  /* Container y secciones más compactas */
  .ae-container { padding: 0 20px; }
  .ae-container--wide { padding: 0 20px; }
  .ae-section { padding: clamp(56px, 10vw, 96px) 0; }
  .ae-section--lg { padding: clamp(72px, 14vw, 120px) 0; }

  /* Touch targets ≥44px en menús/botones */
  .hnw-nav.is-open .hnw-nav__list a,
  .hnw-footer__list li a,
  .hnw-footer__legal-list li a { min-height: 44px; display: flex; align-items: center; }
  .ae-btn { padding: 14px 22px; min-height: 44px; }
}

/* —— HEADER móvil: burger funcional + CTA dentro del menú —— */
@media (max-width: 720px) {
  .hnw-nav__row { gap: 12px; }
  .hnw-nav__right { gap: 8px; }

  /* Oculta lo que no cabe en mobile */
  .hnw-nav__menu { display: none; }
  .hnw-nav__cta { display: none; }
  .hnw-lang { display: none; }
  .hnw-nav__burger { display: inline-flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; }

  /* Panel mobile abierto */
  .hnw-nav.is-open .hnw-nav__menu {
    display: block;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ae-cream);
    border-bottom: 1px solid var(--ae-line);
    padding: 16px 20px 24px;
    box-shadow: 0 12px 32px rgba(54,54,64,.10);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .hnw-nav.is-open .hnw-nav__list {
    flex-direction: column; gap: 4px;
  }
  .hnw-nav.is-open .hnw-nav__list a {
    font-size: 18px; font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--ae-line-soft);
    color: var(--ae-charcoal) !important;
  }
  /* Mostrar lang + CTA dentro del menú abierto */
  .hnw-nav.is-open .hnw-lang {
    display: flex !important;
    margin-top: 16px; gap: 8px;
  }
  .hnw-nav.is-open .hnw-lang a,
  .hnw-nav.is-open .hnw-lang span { color: var(--ae-charcoal) !important; }
  .hnw-nav.is-open .hnw-nav__cta {
    display: inline-flex !important;
    margin-top: 16px; width: 100%; justify-content: center;
  }

  /* Burger: animación X */
  .hnw-nav.is-open .hnw-nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hnw-nav.is-open .hnw-nav__burger span:nth-child(2) { opacity: 0; }
  .hnw-nav.is-open .hnw-nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Burger color contextual: home transparente -> cream sobre hero oscuro
     pero el header ya tiene cream + blur via "HEADER FIX" anterior, así que charcoal */
  .hnw-nav__burger span { background: var(--ae-charcoal) !important; }
}

/* —— HERO home —— */
@media (max-width: 720px) {
  .hnw-hero { height: clamp(520px, 78vh, 640px); }
  .hnw-hero__inner {
    padding-top: 96px;   /* ≥ 64px header + breathing room */
    padding-bottom: 56px;
  }
  .hnw-hero__claim {
    font-size: clamp(40px, 11vw, 64px);
    line-height: 1.02;
    margin: 0 0 28px;
  }
  .hnw-hero__eyebrow { margin-bottom: 20px; }
  .hnw-hero__cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hnw-hero__cta .ae-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .hnw-hero__claim { font-size: clamp(34px, 12vw, 48px); }
}

/* —— Front-page: Despacho / Manifiesto —— */
@media (max-width: 720px) {
  .hnw-despacho { gap: 24px; margin-bottom: 56px; }
  .hnw-despacho__title { font-size: clamp(28px, 7vw, 40px); }
  .hnw-despacho__body p { font-size: 16px; line-height: 1.6; }
  .hnw-valores { grid-template-columns: 1fr; }
  .hnw-valor { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--ae-line); }
  .hnw-valor:last-child { border-bottom: 0; }
  .hnw-valor__name { font-size: 18px; }
}

/* —— Front-page: Servicios destacados (5) —— */
@media (max-width: 720px) {
  .hnw-services__head { margin-bottom: 40px; gap: 16px; }
  .hnw-services__list { grid-template-columns: 1fr; gap: 1px; }
  .hnw-service__link { padding: 28px 24px; }
  .hnw-service__num { font-size: 10px; margin-bottom: 16px; }
  .hnw-service__media { margin-bottom: 20px; }
  .hnw-service__title { font-size: clamp(22px, 5.4vw, 28px); }
}

/* —— Testimoniales —— */
@media (max-width: 720px) {
  .hnw-tests__grid { grid-template-columns: 1fr; gap: 16px; }
  .hnw-test { padding: 24px; }
  .hnw-test blockquote { font-size: 16px; margin-bottom: 20px; }
}

/* —— Equipo preview (home) + Staff y Partners (página) —— */
@media (max-width: 720px) {
  .hnw-team-preview__head { margin-bottom: 32px; }
  .hnw-team-preview__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hnw-staff { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .hnw-team-card__media,
  .hnw-staff__media,
  .hnw-partner__media { aspect-ratio: 1/1; }
  .hnw-team-card__media .ae-stripe-ph,
  .hnw-team-card__media img,
  .hnw-staff__media .ae-stripe-ph,
  .hnw-staff__media img { aspect-ratio: 1/1; }

  .hnw-partners { gap: 56px; }
  .hnw-partner { grid-template-columns: 1fr; gap: 20px; }
  .hnw-partner:nth-child(even) { direction: ltr; }
  .hnw-partner__media { aspect-ratio: 4/3; max-width: 320px; }
  .hnw-partner__name { font-size: clamp(24px, 6vw, 32px); }
  .hnw-partner__bio { margin: 20px 0; }
}

/* —— Latest preview (home) —— */
@media (max-width: 720px) {
  .hnw-latest__grid3 { grid-template-columns: 1fr; gap: 28px; }
  .hnw-latest__head { margin-bottom: 32px; }
  .hnw-latest__h2 { font-size: clamp(34px, 9vw, 56px); }
  .hnw-card__cover { margin-bottom: 16px; }
  .hnw-card__title { font-size: clamp(18px, 5vw, 22px); }
}

/* —— CTA-band charcoal —— */
@media (max-width: 720px) {
  .hnw-cta-band { padding: 72px 0; }
  .hnw-cta-band__row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hnw-cta-band__copy { flex-basis: auto; }
  .hnw-cta-band__copy h2 { font-size: clamp(28px, 7.5vw, 40px); line-height: 1.1; }
  .hnw-cta-band__btns { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; }
  .hnw-cta-band__btns .ae-btn { width: 100%; justify-content: center; }
}

/* —— Newsletter —— */
@media (max-width: 720px) {
  .hnw-newsletter { padding: 64px 0; }
  .hnw-newsletter__row { grid-template-columns: 1fr; gap: 24px; }
  .hnw-newsletter__static .hnw-newsletter__fields { grid-template-columns: 1fr; gap: 12px; }
  .hnw-newsletter__static .ae-btn { justify-self: stretch; width: 100%; justify-content: center; }
}

/* —— Página /servicios/ — filas editorial —— */
@media (max-width: 720px) {
  .hnw-srow__link { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; direction: ltr !important; }
  .hnw-srow.is-flip .hnw-srow__link { direction: ltr; }
  .hnw-srow:hover .hnw-srow__link { padding-left: 0; border-left-color: transparent; }
  .hnw-srow__num { font-size: 10px; margin-bottom: 8px; }
  .hnw-srow__title { font-size: clamp(26px, 7vw, 36px); margin: 0 0 16px; }
  .hnw-srow__desc { font-size: 16px; margin: 0 0 20px; }
  .hnw-srow__media { aspect-ratio: 4/3; }
}

/* —— Página /contacto/ —— */
@media (max-width: 720px) {
  .hnw-contact { grid-template-columns: 1fr; gap: 32px; }
  .hnw-contact__form { padding: 24px; }
  .hnw-contact__data { margin: 24px 0 0; gap: 20px; }
  .hnw-contact__data li { padding-bottom: 16px; }
  .hnw-map { aspect-ratio: 4/3; }

  /* Fluentform inputs full-width */
  .ae-input, .ae-textarea,
  .hnw-contact__plugin-form input,
  .hnw-contact__plugin-form textarea,
  .hnw-contact__plugin-form select { width: 100% !important; max-width: 100% !important; }
  .ae-check { font-size: 14px; }
}

/* —— Página /articulos/ archive —— */
@media (max-width: 720px) {
  .hnw-arch__hero { padding: 64px 0 40px; }
  .hnw-arch__top { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 32px; }
  .hnw-arch__title {
    font-size: clamp(48px, 14vw, 80px);
    line-height: 0.95;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .hnw-arch__lead { font-size: 17px; margin-top: 24px; }

  /* Filter sticky con chips wrap (no scroll horizontal) */
  .hnw-arch__filter { position: static; padding: 16px 0; }
  .hnw-arch__filter-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hnw-arch__chips { flex-wrap: wrap; gap: 8px; width: 100%; }
  .hnw-chip { padding: 8px 14px; font-size: 12px; min-height: 36px; }

  /* Year header colapsa */
  .hnw-year { grid-template-columns: 1fr; gap: 8px; padding: 56px 0 16px; }
  .hnw-year__num { font-size: clamp(48px, 14vw, 80px); }
  .hnw-year__count { text-align: left; }

  /* Filas: thumb + título */
  .hnw-row { grid-template-columns: 88px 1fr; gap: 14px; padding: 20px 0; }
  .hnw-row__idx, .hnw-row__author, .hnw-row__read, .hnw-row__arrow { display: none; }
  .hnw-row:hover { padding-left: 0; }
  .hnw-row__thumb { aspect-ratio: 1/1; }
  .hnw-row__title { font-size: clamp(15px, 4.4vw, 18px); line-height: 1.25; }
  .hnw-row__meta { margin-bottom: 6px; font-size: 11px; }
}
@media (max-width: 480px) {
  .hnw-arch__title { font-size: clamp(40px, 13vw, 64px); }
}

/* —— Single post —— */
@media (max-width: 720px) {
  .hnw-articulo__head { padding-top: 40px; padding-bottom: 24px; }
  .hnw-articulo__title {
    font-size: clamp(32px, 8vw, 56px) !important;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 16px 0 !important;
  }
  .hnw-articulo__lede { font-size: 17px; line-height: 1.5; }
  .hnw-articulo__byline { gap: 12px; padding-top: 16px; margin-top: 20px; flex-wrap: wrap; }
  .hnw-articulo__hero img { height: clamp(220px, 56vw, 360px); }

  .hnw-prose { font-size: 17px; line-height: 1.65; max-width: 100%; }
  .hnw-prose h2 { font-size: clamp(24px, 6.5vw, 32px); }
  .hnw-prose h3 { font-size: clamp(20px, 5.5vw, 26px); }
  .hnw-prose blockquote { padding-left: 16px; }
  .hnw-prose img { margin: 1.4em 0; }

  .hnw-articulo__footer { flex-direction: column; gap: 20px; padding-top: 24px; margin-top: 40px; }
  .hnw-articulo__share { flex-wrap: wrap; }

  .hnw-related { grid-template-columns: 1fr; gap: 24px; }
  .hnw-related li { padding-top: 16px; }

  .hnw-embed { margin: 24px 0; }
}

/* —— Footer —— */
@media (max-width: 720px) {
  .hnw-footer { padding: 64px 0 32px; }
  .hnw-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }
  .hnw-footer__col {
    padding-top: 24px;
    border-top: 1px solid var(--ae-line-soft);
  }
  .hnw-footer__brand svg { height: 44px !important; width: auto !important; }
  .hnw-footer__addr { max-width: 100%; }
  .hnw-footer__bottom {
    flex-direction: column; align-items: flex-start; gap: 16px;
    padding-top: 24px;
  }
  .hnw-footer__legal { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hnw-footer__legal-list { flex-wrap: wrap; gap: 12px 16px; }
  .hnw-footer__badges { flex-wrap: wrap; gap: 8px; }
}

/* —— Página head genérico —— */
@media (max-width: 720px) {
  .hnw-page-head { padding-top: 40px; padding-bottom: 24px; margin-bottom: 40px; }
}

/* —— Single servicio (si aplica) —— */
@media (max-width: 720px) {
  .hnw-servicio-body { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
}

/* —— Search / pagination —— */
@media (max-width: 720px) {
  .hnw-search-result { padding: 20px 0; }
  .hnw-pagination { margin-top: 40px; padding-top: 24px; }
}
/* ─── /MOBILE AUDIT ─── */

/* ─── BURGER FIX — mostrar siempre en <960px (incluye iPad portrait) ─── */
@media (max-width: 960px) {
  .hnw-nav__menu { display: none !important; }
  .hnw-nav__cta { display: none !important; }
  .hnw-lang { display: none !important; }
  .hnw-nav__burger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
  }
  .hnw-nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ae-charcoal);
    transition: transform .25s ease, opacity .25s ease;
    border-radius: 1px;
  }
  .hnw-nav.is-open .hnw-nav__menu {
    display: block !important;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--ae-cream);
    border-bottom: 1px solid var(--ae-line);
    padding: 16px 20px 24px;
    box-shadow: 0 12px 32px rgba(54,54,64,.10);
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    z-index: 50;
  }
  .hnw-nav.is-open .hnw-nav__list {
    flex-direction: column !important;
    gap: 4px !important;
  }
  .hnw-nav.is-open .hnw-nav__list a {
    font-size: 18px; font-weight: 500;
    padding: 14px 0;
    border-bottom: 1px solid var(--ae-line-soft);
    color: var(--ae-charcoal) !important;
    display: block;
  }
  .hnw-nav.is-open .hnw-lang {
    display: flex !important;
    margin-top: 16px; gap: 8px;
  }
  .hnw-nav.is-open .hnw-lang a,
  .hnw-nav.is-open .hnw-lang span,
  .hnw-nav.is-open .hnw-lang button { color: var(--ae-charcoal) !important; }
  .hnw-nav.is-open .hnw-nav__cta {
    display: inline-flex !important;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
  }
  .hnw-nav.is-open .hnw-nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hnw-nav.is-open .hnw-nav__burger span:nth-child(2) { opacity: 0; }
  .hnw-nav.is-open .hnw-nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* Burger naranja */
.hnw-nav__burger span,
.hnw-nav.is-open .hnw-nav__burger span,
body.home .hnw-nav__burger span,
body.front-page .hnw-nav__burger span {
  background: var(--ae-coral) !important;
}

/* ─── Eyebrows en coral (por defecto). Las metadata mantienen su gris inline. ─── */
.ae-eyebrow { color: var(--ae-coral); }

/* Logo del footer: wordmark gris claro, AE coral siempre */
.hnw-footer .hnw-footer__brand svg,
.hnw-footer .hnw-footer__brand svg .st0 {
  color: var(--ae-gray-soft) !important;
  fill: var(--ae-gray-soft) !important;
}
.hnw-footer .hnw-footer__brand svg .st1 {
  fill: var(--ae-coral) !important;
}

/* Lang switcher visible siempre (charcoal). Anula reglas previas que pintaban cream sobre cream. */
.hnw-lang { display: flex; gap: 4px; align-items: center; list-style: none; padding: 0; margin: 0; }
.hnw-lang li { display: inline-flex; }
.hnw-lang a {
  color: var(--ae-charcoal) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 8px;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.hnw-lang li.current-lang a,
.hnw-lang a[aria-current=true] {
  color: var(--ae-charcoal) !important;
  border-bottom-color: var(--ae-coral);
}
.hnw-lang li:not(.current-lang) a {
  color: var(--ae-gray) !important;
}
.hnw-lang a:hover { color: var(--ae-coral) !important; }

/* Ocultar caption y código corner de los placeholders rayados */
.ae-stripe-ph__cap,
.ae-stripe-ph__corner,
.hnw-card__code,
.hnw-card__badge,
.hnw-row__badge {
  display: none !important;
}

/* Revert: 'Anticipándonos' en color por defecto del hero (solo 'desafíos' va coral) */
.hnw-hero__claim .hnw-hero__lead {
  color: inherit !important;
  font-style: inherit !important;
  font-weight: inherit !important;
}

/* ─── Despacho / manifesto — editorial 2-col ─── */
.hnw-manif { background: var(--ae-cream); }
.hnw-manif__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.hnw-manif__aside {
  position: sticky;
  top: 120px;
}
.hnw-manif__eyebrow {
  color: var(--ae-coral);
  display: block;
  margin-bottom: 32px;
}
.hnw-manif__eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--ae-coral);
  margin-right: 12px;
  vertical-align: middle;
}
.hnw-manif__pull {
  margin: 0;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--ae-charcoal);
}
.hnw-manif__pull em {
  font-style: italic;
  color: var(--ae-coral);
  font-weight: 500;
}
.hnw-manif__rule {
  display: block;
  width: 80px; height: 2px;
  background: var(--ae-coral);
  margin: 40px 0 24px;
}
.hnw-manif__meta {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ae-gray);
}
.hnw-manif__body { padding-top: 12px; }
.hnw-manif__text {
  margin: 0;
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.45;
  color: var(--ae-charcoal-soft);
  letter-spacing: -0.005em;
  max-width: 720px;
}
.hnw-manif__text::first-letter {
  font-size: 1.6em;
  font-weight: 500;
  color: var(--ae-charcoal);
  float: left;
  line-height: 1;
  padding: 6px 12px 0 0;
}

@media (max-width: 960px) {
  .hnw-manif__grid { grid-template-columns: 1fr; gap: 48px; }
  .hnw-manif__aside { position: static; }
  .hnw-manif__pull { font-size: clamp(40px, 10vw, 72px); }
  .hnw-manif__text { font-size: 18px; }
}

/* Manifesto refine */
.hnw-manif__grid {
  align-items: center !important;
}
.hnw-manif__rule {
  margin: 32px 0 16px !important;
}
.hnw-manif__body { padding-top: 0 !important; }
.hnw-manif__text {
  font-size: clamp(18px, 1.4vw, 22px) !important;
  line-height: 1.65 !important;
  color: var(--ae-charcoal) !important;
  max-width: 580px !important;
  font-weight: 400;
}
.hnw-manif__text::first-letter {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  float: none !important;
  line-height: inherit !important;
  padding: 0 !important;
}
.hnw-manif__pull {
  font-size: clamp(48px, 6.5vw, 96px) !important;
  line-height: 0.98 !important;
}

/* Services 6th card — "Más áreas" promo */
.hnw-service--more {
  background: transparent !important;
  border: 1px solid rgba(250,242,232,.12);
}
.hnw-service--more:hover { background: rgba(250,242,232,.04) !important; }
.hnw-service--more .hnw-service__link { display: flex; flex-direction: column; justify-content: center; min-height: 100%; }
.hnw-service--more .hnw-service__title em { font-style: italic; color: var(--ae-coral); }

/* Footer logo: icono y texto del MISMO color (gris claro), AE deja de ser coral en footer */
.hnw-footer .hnw-footer__brand svg .st0,
.hnw-footer .hnw-footer__brand svg .st1 {
  fill: var(--ae-gray-soft) !important;
}
.hnw-footer .hnw-footer__brand svg { color: var(--ae-gray-soft) !important; }

/* Footer brand alineación: logo, dirección y bloques al mismo eje */
.hnw-footer__brand {
  display: flex; flex-direction: column; gap: 24px;
  align-items: flex-start;
}
.hnw-footer__brand svg { margin: 0 0 0 -2px; height: 56px !important; width: auto !important; }
.hnw-footer__addr {
  margin: 0; padding: 0;
  font-size: 15px; line-height: 1.65;
  color: var(--ae-charcoal-soft) !important;
  max-width: 320px;
}

/* ─── Warm filter en fotos de artículos ─── */
.hnw-article__img,
.hnw-card__cover,
.hnw-row__thumb,
.hnw-latest__img,
.hnw-articulo__cover img,
.hnw-related__cover {
  filter: sepia(0.18) saturate(1.08) hue-rotate(-8deg) brightness(0.98);
  transition: filter .35s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.hnw-article:hover .hnw-article__img,
.hnw-card:hover .hnw-card__cover,
.hnw-row:hover .hnw-row__thumb,
.hnw-latest__item:hover .hnw-latest__img {
  filter: sepia(0.10) saturate(1.12) hue-rotate(-6deg) brightness(1);
}

/* ─── Footer logo: alineado al texto, más pequeño, AE en gris ─── */
.hnw-footer .hnw-footer__brand svg {
  height: 36px !important;
  width: auto !important;
  display: block;
  margin-left: -6px; /* alinea con el padding óptico del wordmark al texto debajo */
  margin-bottom: 20px;
}
.hnw-footer .hnw-footer__brand svg .st1 {
  fill: var(--ae-gray-soft) !important;
}
.hnw-footer__addr {
  margin-left: 0 !important;
}

/* Footer logo: gris medio (un punto más oscuro que gray-soft) */
.hnw-footer .hnw-footer__brand svg,
.hnw-footer .hnw-footer__brand svg .st0,
.hnw-footer .hnw-footer__brand svg .st1 {
  color: var(--ae-gray) !important;
  fill: var(--ae-gray) !important;
}

/* Servicios — hero con imagen */
.hnw-srv-hero { padding: clamp(96px, 12vw, 160px) 0 clamp(64px, 8vw, 96px); }
.hnw-srv-hero__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.hnw-srv-hero__eyebrow { color: var(--ae-coral); display: block; margin-bottom: 24px; }
.hnw-srv-hero__eyebrow::before {
  content:''; display:inline-block; width:28px; height:1px; background:var(--ae-coral); margin-right:12px; vertical-align:middle;
}
.hnw-srv-hero__title {
  margin: 0 0 28px;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.98; letter-spacing: -0.03em; font-weight: 500;
}
.hnw-srv-hero__lead {
  margin: 0;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--ae-charcoal-soft);
  max-width: 560px;
}
.hnw-srv-hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ae-cream-deep);
}
.hnw-srv-hero__img,
.hnw-srv-hero__ph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: sepia(0.18) saturate(1.08) hue-rotate(-8deg) brightness(0.98);
}

@media (max-width: 960px) {
  .hnw-srv-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hnw-srv-hero__media { aspect-ratio: 16/10; }
  .hnw-srv-hero__title { font-size: clamp(40px, 10vw, 64px); }
}

/* ─── Despacho v3 — editorial con imagen sticky ─── */
.hnw-manif {
  background: var(--ae-cream);
  padding: clamp(96px, 13vw, 160px) 0;
}
.hnw-manif__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(56px, 8vw, 120px);
  align-items: start;
}
.hnw-manif__media {
  position: sticky;
  top: 120px;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ae-cream-deep);
  display: block;
  align-self: start;
}
.hnw-manif__img,
.hnw-manif__ph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: sepia(0.18) saturate(1.08) hue-rotate(-8deg) brightness(0.96);
}
.hnw-manif__caption {
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 18px;
  background: rgba(54,54,64,.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 4px;
  color: var(--ae-cream);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
}
.hnw-manif__caption-l { color: var(--ae-coral); font-weight: 500; }
.hnw-manif__caption-r { color: rgba(250,242,232,.85); }

.hnw-manif__copy {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}
.hnw-manif__eyebrow {
  color: var(--ae-coral) !important;
  display: block;
  margin-bottom: 32px;
}
.hnw-manif__eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--ae-coral);
  margin-right: 12px;
  vertical-align: middle;
}
.hnw-manif__pull {
  margin: 0 0 32px;
  font-size: clamp(48px, 7vw, 104px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--ae-charcoal);
}
.hnw-manif__pull .hnw-accent {
  font-style: italic;
  color: var(--ae-coral);
  font-weight: 500;
}
.hnw-manif__rule {
  display: block;
  width: 64px; height: 2px;
  background: var(--ae-coral);
  margin: 0 0 32px;
}
.hnw-manif__text {
  margin: 0 0 40px !important;
  font-size: clamp(17px, 1.3vw, 20px) !important;
  line-height: 1.7 !important;
  color: var(--ae-charcoal) !important;
  max-width: 540px !important;
  font-weight: 400;
}
.hnw-manif__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  color: var(--ae-coral);
  text-decoration: none;
  border-bottom: 1px solid var(--ae-coral);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: gap .25s ease;
}
.hnw-manif__cta:hover { gap: 14px; }

@media (max-width: 960px) {
  .hnw-manif__grid { grid-template-columns: 1fr; gap: 48px; }
  .hnw-manif__media { position: static; aspect-ratio: 16/10; }
  .hnw-manif__copy { padding-top: 0; }
  .hnw-manif__pull { font-size: clamp(40px, 10vw, 64px) !important; }
}

/* ─── /manual/ — 2 columnas con TOC sticky ─── */
.hnw-manual {
  padding: clamp(96px, 12vw, 160px) 0;
}
.hnw-manual__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.hnw-manual__toc {
  position: sticky;
  top: 112px;
  align-self: start;
  border-right: 1px solid var(--ae-line-soft);
  padding-right: 32px;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
}
.hnw-manual__toc-eyebrow {
  color: var(--ae-coral);
  display: block;
  margin-bottom: 16px;
}
.hnw-manual__toc-title {
  margin: 0 0 32px;
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ae-charcoal);
}
.hnw-manual__toc-nav ol {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  counter-reset: toc;
}
.hnw-manual__toc-nav li {
  counter-increment: toc;
  border-top: 1px solid var(--ae-line-soft);
}
.hnw-manual__toc-nav li:last-child {
  border-bottom: 1px solid var(--ae-line-soft);
}
.hnw-manual__toc-nav a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ae-charcoal-soft);
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}
.hnw-manual__toc-nav a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ae-gray);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.hnw-manual__toc-nav a:hover,
.hnw-manual__toc-nav a.is-active {
  color: var(--ae-coral);
  padding-left: 6px;
}
.hnw-manual__toc-nav a.is-active::before {
  color: var(--ae-coral);
}
.hnw-manual__toc-help {
  font-size: 13px;
  color: var(--ae-gray);
  line-height: 1.5;
  margin: 0;
}
.hnw-manual__toc-help a {
  color: var(--ae-coral);
  text-decoration: none;
  border-bottom: 1px solid var(--ae-coral);
}

/* Body manual — tipografía editorial */
.hnw-manual__body {
  max-width: 720px;
  scroll-margin-top: 100px;
}
.hnw-manual__body > * + * { margin-top: 0; }
.hnw-manual__body h2 {
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ae-charcoal);
  margin: 64px 0 24px;
  scroll-margin-top: 100px;
}
.hnw-manual__body h2:first-child { margin-top: 0; }
.hnw-manual__body h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ae-charcoal);
  margin: 32px 0 12px;
}
.hnw-manual__body p {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ae-charcoal);
}
.hnw-manual__body ul,
.hnw-manual__body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.hnw-manual__body li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ae-charcoal);
  margin-bottom: 10px;
}
.hnw-manual__body li > ul,
.hnw-manual__body li > ol {
  margin-top: 10px;
  margin-bottom: 4px;
}
.hnw-manual__body a {
  color: var(--ae-coral);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.hnw-manual__body a:hover { color: var(--ae-charcoal); }
.hnw-manual__body strong { color: var(--ae-charcoal); font-weight: 500; }
.hnw-manual__body code {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.92em;
  background: var(--ae-cream-deep);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--ae-charcoal);
}
.hnw-manual__body hr {
  border: 0;
  height: 1px;
  background: var(--ae-line);
  margin: 56px 0;
}

/* Lock screen (password) */
.hnw-manual__lock-title { color: var(--ae-charcoal); }
.post-password-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.post-password-form label { display: block; font-size: 13px; color: var(--ae-gray); margin-bottom: 6px; width: 100%; }
.post-password-form input[type="password"] {
  flex: 1 1 240px;
  padding: 14px 16px;
  border: 1px solid var(--ae-line);
  border-radius: 4px;
  background: transparent;
  font-family: inherit; font-size: 16px;
  color: var(--ae-charcoal);
}
.post-password-form input[type="password"]:focus {
  outline: none; border-color: var(--ae-coral);
}
.post-password-form input[type="submit"] {
  background: var(--ae-coral);
  color: var(--ae-cream);
  border: 0;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s ease;
}
.post-password-form input[type="submit"]:hover { background: var(--ae-charcoal); }

@media (max-width: 960px) {
  .hnw-manual__grid { grid-template-columns: 1fr; gap: 40px; }
  .hnw-manual__toc {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--ae-line-soft);
    padding-right: 0;
    padding-bottom: 24px;
    max-height: none;
  }
  .hnw-manual__body { max-width: none; }
}

/* ─── Movimiento ligero — animaciones ambientales ─── */

/* Smooth scroll global */
html { scroll-behavior: smooth; }

/* Breathe — zoom muy lento en covers grandes (hero, manifiesto, servicios hero) */
@keyframes hnw-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
.hnw-srv-hero__img,
.hnw-srv-hero__ph,
.hnw-art-featured__cover,
.hnw-articulo__cover img {
  animation: hnw-breathe 22s ease-in-out infinite;
  transform-origin: center 55%;
}
/* Despacho (slider) FUERA del breathe: el cliente pidió quitar el zoom (sin Ken Burns). */

/* Stagger reveal — cuando entran cards, cascada suave */
.hnw-services__list .hnw-service { transition-delay: calc(var(--stagger, 0) * 80ms); }
.hnw-services__list .hnw-service:nth-child(1) { --stagger: 0; }
.hnw-services__list .hnw-service:nth-child(2) { --stagger: 1; }
.hnw-services__list .hnw-service:nth-child(3) { --stagger: 2; }
.hnw-services__list .hnw-service:nth-child(4) { --stagger: 3; }
.hnw-services__list .hnw-service:nth-child(5) { --stagger: 4; }
.hnw-services__list .hnw-service:nth-child(6) { --stagger: 5; }

.hnw-team-preview__grid .hnw-partner-mini:nth-child(1) { transition-delay: 0ms; }
.hnw-team-preview__grid .hnw-partner-mini:nth-child(2) { transition-delay: 80ms; }
.hnw-team-preview__grid .hnw-partner-mini:nth-child(3) { transition-delay: 160ms; }
.hnw-team-preview__grid .hnw-partner-mini:nth-child(4) { transition-delay: 240ms; }

.hnw-latest__grid3 .hnw-card:nth-child(1) { transition-delay: 0ms; }
.hnw-latest__grid3 .hnw-card:nth-child(2) { transition-delay: 100ms; }
.hnw-latest__grid3 .hnw-card:nth-child(3) { transition-delay: 200ms; }

/* Hover lift premium en cards */
.hnw-card,
.hnw-partner-mini {
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.hnw-card:hover,
.hnw-partner-mini:hover {
  transform: translateY(-4px);
}

/* Eyebrow rule — la línea coral antes del eyebrow crece cuando entra en viewport */
@keyframes hnw-rule-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.ae-eyebrow::before,
.hnw-arch__eyebrow::before,
.hnw-srv-hero__eyebrow::before,
.hnw-manif__eyebrow::before {
  display: inline-block;
  transform-origin: left center;
  animation: hnw-rule-grow 1s cubic-bezier(.2,.7,.2,1) .2s both;
}

/* Coral underline animado en links del cuerpo */
.hnw-prose a:not(.ae-btn),
.hnw-articulo__body a:not(.ae-btn),
.hnw-manif__text a {
  position: relative;
  text-decoration: none;
  background-image: linear-gradient(var(--ae-coral), var(--ae-coral));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s cubic-bezier(.2,.7,.2,1);
  padding-bottom: 2px;
}
.hnw-prose a:hover,
.hnw-articulo__body a:hover {
  background-size: 100% 2px;
}

/* Float gentle en pull-quotes destacadas */
@keyframes hnw-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.hnw-hero__accent,
.hnw-arch__accent {
  display: inline-block;
  animation: hnw-float 6s ease-in-out infinite;
}

/* Marquee discreto de valores (si añadimos) — pendiente */

/* Arrow nudge — flechas de CTAs y enlaces leer más tienen un movimiento idle muy sutil cada 4s */
@keyframes hnw-arrow-nudge {
  0%, 88%, 100% { transform: translateX(0); }
  92% { transform: translateX(3px); }
  96% { transform: translateX(0); }
}
.hnw-card:hover .arr,
.hnw-row:hover .hnw-row__arrow,
.hnw-article:hover .arr {
  animation: none;
}

/* Reduce motion — accesibilidad */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Hero video — warm brand filter */
.hnw-hero__media {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
  background: var(--ae-charcoal);
}
.hnw-hero__video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  min-width: 100%; min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: sepia(0.22) saturate(1.1) hue-rotate(-10deg) brightness(0.85) contrast(1.05);
  animation: hnw-breathe 22s ease-in-out infinite;
}
.hnw-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(54,54,64,.45) 0%, rgba(54,54,64,.65) 100%);
  z-index: 1;
}
.hnw-hero__inner { position: relative; z-index: 2; }

/* Equipo: reducir gap entre 'Equipo' (h1) y 'Socios' */
body.page-template-page-equipo .ae-section:first-of-type,
.page-template .ae-section:has(> .ae-container > .hnw-page-head),
.page-id-167 main > .ae-section:first-of-type {
  padding-bottom: 24px;
}
.page-id-167 main > .ae-section:nth-of-type(2),
.page-id-167 main > .ae-section.ae-section--lg:first-of-type + .ae-section,
body.page-template-page-equipo .ae-section--lg:first-of-type {
  padding-top: clamp(40px, 5vw, 64px) !important;
}

/* Hero video — crossfade dual + centrado */
.hnw-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none !important;
  top: 0 !important;
  left: 0 !important;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  filter: sepia(0.22) saturate(1.1) hue-rotate(-10deg) brightness(0.85) contrast(1.05);
}
.hnw-hero__video.is-active { opacity: 1; }
.hnw-hero__video.ae-hero-breathe,
.hnw-hero__media .hnw-hero__video {
  animation: hnw-breathe 28s ease-in-out infinite;
}

/* ─── Animaciones softer · elegantes ─── */

/* Reveal on scroll — más lento y sutil */
.ae-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ae-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Rise (hero text cascade) — softer */
@keyframes hnw-rise-soft {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.ae-rise,
.ae-rise-1 {
  animation: hnw-rise-soft 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both !important;
}
.ae-rise-2 {
  animation: hnw-rise-soft 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both !important;
}
.ae-rise-3 {
  animation: hnw-rise-soft 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both !important;
}

/* Float — más calmado y amplio */
@keyframes hnw-float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.hnw-hero__accent,
.hnw-arch__accent,
.hnw-manif__pull em,
.hnw-srv-hero__title em {
  display: inline-block;
  animation: hnw-float-soft 9s ease-in-out infinite !important;
}

/* Eyebrow rule grow — más lento */
@keyframes hnw-rule-grow-soft {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
.ae-eyebrow::before,
.hnw-arch__eyebrow::before,
.hnw-srv-hero__eyebrow::before,
.hnw-manif__eyebrow::before {
  animation: hnw-rule-grow-soft 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both !important;
}

/* Stagger reveal — espacios más amplios entre items */
.hnw-services__list .hnw-service:nth-child(1) { transition-delay: 0ms !important; }
.hnw-services__list .hnw-service:nth-child(2) { transition-delay: 140ms !important; }
.hnw-services__list .hnw-service:nth-child(3) { transition-delay: 280ms !important; }
.hnw-services__list .hnw-service:nth-child(4) { transition-delay: 420ms !important; }
.hnw-services__list .hnw-service:nth-child(5) { transition-delay: 560ms !important; }

.hnw-team-preview__grid > *:nth-child(1) { transition-delay: 0ms !important; }
.hnw-team-preview__grid > *:nth-child(2) { transition-delay: 140ms !important; }
.hnw-team-preview__grid > *:nth-child(3) { transition-delay: 280ms !important; }
.hnw-team-preview__grid > *:nth-child(4) { transition-delay: 420ms !important; }

.hnw-latest__grid3 > *:nth-child(1) { transition-delay: 0ms !important; }
.hnw-latest__grid3 > *:nth-child(2) { transition-delay: 160ms !important; }
.hnw-latest__grid3 > *:nth-child(3) { transition-delay: 320ms !important; }

.hnw-partners > *:nth-child(odd) { transition-delay: 0ms !important; }
.hnw-partners > *:nth-child(even) { transition-delay: 140ms !important; }

.hnw-staff > *:nth-child(1) { transition-delay: 0ms !important; }
.hnw-staff > *:nth-child(2) { transition-delay: 80ms !important; }
.hnw-staff > *:nth-child(3) { transition-delay: 160ms !important; }
.hnw-staff > *:nth-child(4) { transition-delay: 240ms !important; }
.hnw-staff > *:nth-child(5) { transition-delay: 320ms !important; }
.hnw-staff > *:nth-child(6) { transition-delay: 400ms !important; }
.hnw-staff > *:nth-child(7) { transition-delay: 480ms !important; }

/* Hover lift — más elegante */
.hnw-card,
.hnw-partner-mini,
.hnw-latest__item {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.55s ease !important;
}
.hnw-card:hover,
.hnw-partner-mini:hover,
.hnw-latest__item:hover {
  transform: translateY(-3px) !important;
}

/* Arrows en CTAs — más fluidas */
.ae-btn .arr,
.arr {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Article rows — slide more elegant */
.hnw-row,
.hnw-article__link {
  transition:
    padding-left 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.5s ease,
    color 0.5s ease !important;
}

/* ─── Anti-huérfanas: text-wrap pretty/balance global ─── */

/* Titulares grandes: balanceados */
h1, h2, h3, h4,
.ae-display, .ae-h1, .ae-h2, .ae-h3, .ae-h4,
.hnw-hero__claim,
.hnw-arch__title,
.hnw-srv-hero__title,
.hnw-manif__pull,
.hnw-card__title,
.hnw-row__title,
.hnw-article__title,
.hnw-latest__h2 {
  text-wrap: balance;
  -webkit-text-wrap: balance;
}

/* Párrafos y leads: pretty (evita la última línea con una palabra sola) */
p,
.ae-lead,
.ae-body,
.hnw-srv-hero__lead,
.hnw-manif__text,
.hnw-card__excerpt,
.hnw-article__excerpt,
.hnw-latest__excerpt,
li {
  text-wrap: pretty;
  -webkit-text-wrap: pretty;
}

/* Categoría como pill redondeado en cards y filas */
.hnw-card__cat,
.hnw-row__cat,
.hnw-art-row__cat {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--ae-coral);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ae-coral);
  background: transparent;
  margin-right: 4px;
  line-height: 1.6;
}
/* En las filas del archivo, separar visualmente del resto del meta */
.hnw-row__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px !important; }

/* hnw-tag (single post + relacionados) en coral pill consistente */
.hnw-tag {
  color: var(--ae-coral) !important;
  border-color: var(--ae-coral) !important;
  background: transparent !important;
}

/* Contador en chips de filtros */
.hnw-chip__n {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  background: rgba(54,54,64,.08);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ae-gray);
  font-variant-numeric: tabular-nums;
  transition: background .2s ease, color .2s ease;
}
.hnw-chip.is-active .hnw-chip__n {
  background: rgba(250,242,232,.18);
  color: var(--ae-cream);
}
.hnw-chip:hover .hnw-chip__n {
  background: rgba(255,95,74,.14);
  color: var(--ae-coral);
}
.hnw-chip.is-active:hover .hnw-chip__n {
  background: rgba(250,242,232,.18);
  color: var(--ae-cream);
}

/* ─── Home: header transparente sobre el hero video, aparece al scroll ─── */
body.home .hnw-nav,
body.front-page .hnw-nav {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 30;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid transparent !important;
  transition:
    background .55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color .55s ease,
    backdrop-filter .55s ease;
}
body.home .hnw-nav.is-scrolled,
body.front-page .hnw-nav.is-scrolled {
  background: rgba(250,242,232,.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom-color: var(--ae-line-soft) !important;
}

/* En home transparente: textos en crema sobre el video oscuro */
body.home .hnw-nav:not(.is-scrolled) .hnw-nav__list a,
body.front-page .hnw-nav:not(.is-scrolled) .hnw-nav__list a {
  color: var(--ae-cream) !important;
}
body.home .hnw-nav:not(.is-scrolled) .hnw-lang a,
body.front-page .hnw-nav:not(.is-scrolled) .hnw-lang a {
  color: rgba(250,242,232,.65) !important;
}
body.home .hnw-nav:not(.is-scrolled) .hnw-lang li.current-lang a,
body.home .hnw-nav:not(.is-scrolled) .hnw-lang a[aria-current="true"],
body.front-page .hnw-nav:not(.is-scrolled) .hnw-lang li.current-lang a,
body.front-page .hnw-nav:not(.is-scrolled) .hnw-lang a[aria-current="true"] {
  color: var(--ae-cream) !important;
  border-bottom-color: var(--ae-coral) !important;
}
/* Logo wordmark en crema sobre video; AE coral siempre */
body.home .hnw-nav:not(.is-scrolled) .hnw-nav__logo svg .st0,
body.front-page .hnw-nav:not(.is-scrolled) .hnw-nav__logo svg .st0 {
  fill: var(--ae-cream) !important;
}
/* Burger naranja siempre OK */
body.home .hnw-nav:not(.is-scrolled) .hnw-nav__burger span,
body.front-page .hnw-nav:not(.is-scrolled) .hnw-nav__burger span {
  background: var(--ae-coral) !important;
}

/* Hero arranca pegado arriba (header overlaying) */
body.home .hnw-hero,
body.front-page .hnw-hero {
  margin-top: 0;
  padding-top: 0;
}

/* Una vez scrolled vuelve al esquema cream + texto charcoal (ya cubierto en reglas previas) */
body.home .hnw-nav.is-scrolled .hnw-nav__list a,
body.home .hnw-nav.is-scrolled .hnw-lang a,
body.home .hnw-nav.is-scrolled .hnw-nav__logo svg .st0,
body.front-page .hnw-nav.is-scrolled .hnw-nav__list a,
body.front-page .hnw-nav.is-scrolled .hnw-lang a,
body.front-page .hnw-nav.is-scrolled .hnw-nav__logo svg .st0 {
  color: var(--ae-charcoal) !important;
  fill: var(--ae-charcoal) !important;
}
body.home .hnw-nav.is-scrolled .hnw-lang li:not(.current-lang) a,
body.front-page .hnw-nav.is-scrolled .hnw-lang li:not(.current-lang) a {
  color: var(--ae-gray) !important;
}

/* Filtros de artículos en la home */
.hnw-latest__filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ae-line-soft);
}
.hnw-latest__filters .hnw-chip {
  font-size: 12px;
  padding: 6px 14px;
}
@media (max-width: 720px) {
  .hnw-latest__filters { margin-bottom: 32px; padding-bottom: 24px; }
}

/* ─────────────────────────────────────────────
   ─── MOBILE AUDIT v1.6.4 ───
   Fixes específicos detectados en revisión mobile:
   - Fluentform inputs sin font-size 16px (zoom iOS)
   - post-password-form (manual lock) sin 16px
   - Container --wide gana mismo padding compacto
   - Footer LABORA legible
   - Hero claim acota más en pantallas <360px
   - hnw-prose: figure/iframe nunca sobresalen
   - Footer brand: el primer borde superior puede sobrar visual
   ───────────────────────────────────────────── */

@media (max-width: 720px) {
  /* Fluentform: cualquier input/select/textarea ≥ 16px para evitar zoom iOS */
  .fluentform input,
  .fluentform select,
  .fluentform textarea,
  .fluentform .ff-el-form-control,
  .ff-el-input--content input,
  .ff-el-input--content textarea,
  .ff-el-input--content select {
    font-size: 16px !important;
  }
  /* Manual lock + cualquier post-password */
  .post-password-form input[type="password"],
  .post-password-form input[type="text"],
  .post-password-form input[type="submit"] {
    font-size: 16px !important;
  }
  .post-password-form input[type="submit"] { min-height: 44px; }
  .post-password-form { gap: 12px; }
  .post-password-form input[type="password"] { width: 100%; }

  /* Footer: el primer .hnw-footer__col tras .hnw-footer__brand
     no necesita doble separador visual (brand ya está arriba sin borde) */
  .hnw-footer__brand { padding-bottom: 8px; }

  /* LABORA leve up para legibilidad */
  .hnw-footer__grant { font-size: 13px; line-height: 1.55; }
  .hnw-footer__legal { font-size: 13px; }

  /* Anti-overflow blindaje: cualquier img/iframe/video/svg dentro de prose o body */
  .hnw-prose img,
  .hnw-prose iframe,
  .hnw-prose video,
  .hnw-prose figure,
  .hnw-prose table,
  .hnw-articulo__body img,
  .hnw-articulo__body iframe { max-width: 100% !important; height: auto; }
  .hnw-prose table { display: block; overflow-x: auto; }

  /* Container wide: ya 20px, alineamos con narrow para que home y servicios
     compartan margen lateral exacto */
  .ae-container--wide { padding-left: 20px !important; padding-right: 20px !important; }

  /* Servicios página: srow:hover desactivado en touch (no padding shift) */
  .hnw-srow:hover { padding-left: 0; }

  /* hnw-articulo__share botones tap-target */
  .hnw-articulo__share a { min-height: 40px; display: inline-flex; align-items: center; }

  /* Newsletter: el input full-width también vía Fluent si llega ahí */
  .hnw-newsletter input,
  .hnw-newsletter textarea { width: 100% !important; max-width: 100% !important; }

  /* Hero más compacto en <360px (tipo iPhone SE 1ª gen) */
}

@media (max-width: 380px) {
  .hnw-hero__claim { font-size: clamp(30px, 11vw, 40px); }
  .hnw-hero__inner { padding-top: 84px; padding-bottom: 48px; }
  .ae-container,
  .ae-container--wide { padding-left: 16px !important; padding-right: 16px !important; }
  .hnw-cta-band__copy h2 { font-size: clamp(26px, 8.5vw, 34px) !important; }
  .hnw-arch__title { font-size: clamp(36px, 13vw, 56px); }
}

/* Safari fallback: overflow-x: clip no soportado <Safari 15.4 → caer en hidden */
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

/* prefers-reduced-motion: extra refuerzo sobre las breathe/float */
@media (prefers-reduced-motion: reduce) {
  .hnw-hero__video,
  .hnw-srv-hero__img, .hnw-srv-hero__ph,
  .hnw-manif__img, .hnw-manif__ph,
  .hnw-art-featured__cover,
  .hnw-articulo__cover img,
  .hnw-hero__accent, .hnw-arch__accent,
  .hnw-manif__pull em, .hnw-srv-hero__title em {
    animation: none !important;
  }
}

/* Asegurar que en móvil, el header fixed home no produzca jump al abrir el menú
   (al añadir is-open el panel se posiciona absolute y el body sigue scrollable). */
body.home.menu-open,
body.front-page.menu-open { overflow: hidden; }

/* Touch: hover de cards revertido en touch para evitar estados pegados */
@media (hover: none) {
  .hnw-card:hover,
  .hnw-partner-mini:hover,
  .hnw-latest__item:hover,
  .hnw-row:hover,
  .hnw-article:hover {
    transform: none !important;
    background-color: transparent !important;
    padding-left: 0 !important;
  }
  .hnw-team-card__media img,
  .hnw-staff__media img { filter: sepia(0.16) saturate(1.05) brightness(.99); }
}

/* Single post: tags deben envolver, no scroll horizontal */
@media (max-width: 720px) {
  .hnw-articulo__tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
  .hnw-articulo__tags li { margin: 0; }
}
/* ─── /MOBILE AUDIT v1.6.4 ─── */

/* ─── Testimonios slider (scroll-snap horizontal) ─── */
.hnw-tests {
  background: var(--ae-charcoal);
  color: var(--ae-cream);
  overflow: hidden;
}
.hnw-tests__head {
  display: flex; flex-direction: column; align-items: flex-start;
  margin-bottom: 64px;
  max-width: 760px;
}
.hnw-tests__eyebrow { color: var(--ae-coral) !important; display: block; margin-bottom: 24px; }
.hnw-tests__h2 {
  margin: 0;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ae-cream);
}
.hnw-tests__h2 .hnw-accent {
  color: var(--ae-coral) !important;
  font-style: italic;
}

.hnw-tests__viewport {
  position: relative;
  margin: 0 -24px;
  padding: 0 24px;
  scrollbar-width: none;
}
.hnw-tests__viewport::-webkit-scrollbar { display: none; }
.hnw-tests__track {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 100%);
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hnw-tests__track::-webkit-scrollbar { display: none; }
.hnw-tests__item {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 0;
}
.hnw-tests__card {
  display: flex; flex-direction: column;
  height: 100%;
  padding: clamp(40px, 5vw, 72px);
  background: rgba(250,242,232,.04);
  border: 1px solid rgba(250,242,232,.12);
  border-radius: 12px;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.hnw-tests__logo {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--ae-coral);
  color: var(--ae-cream);
  font-size: 16px; font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.hnw-tests__quote {
  margin: 0 0 32px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ae-cream);
  font-weight: 400;
  position: relative;
}
.hnw-tests__mark {
  display: inline-block;
  margin-right: 6px;
  font-size: 1.6em;
  line-height: 0;
  color: var(--ae-coral);
  vertical-align: -0.4em;
  font-family: serif;
}
.hnw-tests__meta {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(250,242,232,.16);
}
.hnw-tests__name {
  font-size: 16px;
  font-weight: 500;
  color: var(--ae-cream);
}
.hnw-tests__role {
  font-size: 13px;
  color: rgba(250,242,232,.6);
  letter-spacing: 0.02em;
}

.hnw-tests__controls {
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  margin-top: 48px;
}
.hnw-tests__btn {
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(250,242,232,.25);
  background: transparent;
  color: var(--ae-cream);
  font-size: 18px;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.hnw-tests__btn:hover {
  background: var(--ae-coral);
  border-color: var(--ae-coral);
}
.hnw-tests__btn:disabled {
  opacity: .35;
  cursor: default;
}
.hnw-tests__dots {
  display: flex; gap: 10px; align-items: center;
  list-style: none; padding: 0; margin: 0;
}
.hnw-tests__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(250,242,232,.25);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, width .35s ease;
  padding: 0;
}
.hnw-tests__dot.is-active {
  background: var(--ae-coral);
  width: 24px;
}

@media (max-width: 720px) {
  .hnw-tests__head { margin-bottom: 40px; }
  .hnw-tests__card { padding: 32px 24px; border-radius: 8px; }
  .hnw-tests__logo { width: 44px; height: 44px; margin-bottom: 24px; }
  .hnw-tests__btn { width: 40px; height: 40px; }
  .hnw-tests__controls { gap: 16px; margin-top: 32px; }
}

/* ─── Testimonials slider — refinado v2 ─── */
.hnw-tests { padding: clamp(96px, 13vw, 160px) 0 !important; overflow: hidden !important; }
.hnw-tests__head {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 32px;
  margin-bottom: 64px !important;
  max-width: none !important;
  flex-wrap: wrap;
}
.hnw-tests__head > div {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}
.hnw-tests__head .hnw-tests__eyebrow { display: block; margin-bottom: 24px; color: var(--ae-coral) !important; }
.hnw-tests__h2 {
  font-size: clamp(36px, 4.5vw, 64px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

/* Viewport: ya no extiende fuera del contenedor */
.hnw-tests__viewport {
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Track scroll-snap real */
.hnw-tests__track {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  gap: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  scroll-behavior: smooth;
}
.hnw-tests__track::-webkit-scrollbar { display: none !important; }

.hnw-tests__item {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
  padding: 0 !important;
}

/* Card centrada con max-width legible */
.hnw-tests__card {
  display: flex !important;
  flex-direction: column !important;
  padding: clamp(40px, 5vw, 64px) !important;
  background: rgba(250,242,232,.05) !important;
  border: 1px solid rgba(250,242,232,.12) !important;
  border-radius: 12px !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  min-height: 340px;
}
.hnw-tests__logo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-bottom: 28px !important;
  background: var(--ae-coral) !important;
  color: var(--ae-cream) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.hnw-tests__quote {
  font-size: clamp(18px, 1.5vw, 22px) !important;
  line-height: 1.55 !important;
  letter-spacing: -0.005em !important;
  color: var(--ae-cream) !important;
  font-weight: 400 !important;
  margin: 0 0 32px !important;
  text-wrap: pretty;
}
.hnw-tests__mark {
  display: inline-block;
  font-size: 1.4em;
  line-height: 0;
  color: var(--ae-coral) !important;
  vertical-align: -0.35em;
  margin-right: 4px;
  font-family: serif;
}
.hnw-tests__meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin-top: auto !important;
  padding-top: 24px !important;
  border-top: 1px solid rgba(250,242,232,.16) !important;
}
.hnw-tests__name {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--ae-cream) !important;
}
.hnw-tests__role {
  font-size: 13px !important;
  color: rgba(250,242,232,.6) !important;
}

/* Controls — más limpios */
.hnw-tests__controls {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px !important;
  margin-top: 40px !important;
}
.hnw-tests__btn {
  width: 44px !important;
  height: 44px !important;
  background: transparent !important;
  border: 1px solid rgba(250,242,232,.25) !important;
  border-radius: 999px !important;
  color: var(--ae-cream) !important;
  font-size: 16px !important;
  cursor: pointer;
  transition: all .25s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.hnw-tests__btn:hover {
  background: var(--ae-coral) !important;
  border-color: var(--ae-coral) !important;
}
.hnw-tests__dots {
  display: flex !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  align-items: center;
}
.hnw-tests__dot {
  width: 8px !important;
  height: 8px !important;
  background: rgba(250,242,232,.25) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 !important;
  cursor: pointer;
  transition: all .35s ease;
}
.hnw-tests__dot.is-active {
  background: var(--ae-coral) !important;
  width: 24px !important;
}

@media (max-width: 720px) {
  .hnw-tests__head { flex-direction: column; align-items: flex-start; }
  .hnw-tests__card { padding: 28px 24px !important; min-height: 280px; }
  .hnw-tests__quote { font-size: 16px !important; }
}

/* ─── Testimonials slider — fondo cream-deep + titulo centrado ─── */
.hnw-tests {
  background: var(--ae-cream-deep) !important;
  color: var(--ae-charcoal) !important;
}

/* Header centrado */
.hnw-tests__head {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  margin-bottom: 56px !important;
}
.hnw-tests__head > div {
  align-items: center;
  max-width: 720px;
}
.hnw-tests__h2 { color: var(--ae-charcoal) !important; }
.hnw-tests__h2 .hnw-accent { color: var(--ae-coral) !important; font-style: italic; }

/* Card sobre cream-deep — fondo crema sólido + borde sutil */
.hnw-tests__card {
  background: var(--ae-cream) !important;
  border: 1px solid var(--ae-line) !important;
  color: var(--ae-charcoal) !important;
}
.hnw-tests__quote { color: var(--ae-charcoal) !important; }
.hnw-tests__name { color: var(--ae-charcoal) !important; }
.hnw-tests__role { color: var(--ae-charcoal-soft) !important; }
.hnw-tests__meta { border-top-color: var(--ae-line) !important; }

/* Controles en charcoal sobre cream */
.hnw-tests__btn {
  border-color: var(--ae-line) !important;
  color: var(--ae-charcoal) !important;
}
.hnw-tests__btn:hover {
  background: var(--ae-coral) !important;
  border-color: var(--ae-coral) !important;
  color: var(--ae-cream) !important;
}
.hnw-tests__dot {
  background: rgba(54,54,64,.18) !important;
}
.hnw-tests__dot.is-active {
  background: var(--ae-coral) !important;
}

/* Mobile: en sección Despacho mostrar primero el texto y luego la foto */
@media (max-width: 960px) {
  .hnw-manif__grid { display: flex !important; flex-direction: column !important; gap: 40px !important; }
  .hnw-manif__copy { order: 1 !important; }
  .hnw-manif__media { order: 2 !important; position: static !important; }
}

/* Newsletter — mobile refinement */
@media (max-width: 720px) {
  .hnw-newsletter { padding: 56px 0 !important; }
  .hnw-newsletter__row { gap: 28px !important; }
  .hnw-newsletter__copy h2.ae-h2 {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.15 !important;
    margin: 0 0 16px !important;
  }
  .hnw-newsletter__copy p.ae-body {
    font-size: 15px !important;
    line-height: 1.55 !important;
    margin: 0 0 12px !important;
    max-width: none !important;
  }
  .hnw-newsletter__copy p.ae-body:last-child { margin: 0 !important; }
  .hnw-newsletter__form .ae-input {
    padding: 12px 14px !important;
    font-size: 16px !important;
  }
  .hnw-newsletter__form .ae-check {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
  .hnw-newsletter__form .ae-btn {
    padding: 14px 20px !important;
    font-size: 15px !important;
  }
  .hnw-newsletter__static .hnw-newsletter__fields {
    gap: 10px !important;
  }
}
@media (max-width: 380px) {
  .hnw-newsletter__copy p.ae-body:nth-of-type(2) { display: none; }
}

/* ─── Hero scroll indicator — flecha elegante con dot animado ─── */
.hnw-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ae-cream);
  opacity: 0;
  animation: hnw-scroll-fadein 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}
.hnw-hero__scroll-text {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(250,242,232,.7);
  transition: color .3s ease;
}
.hnw-hero__scroll:hover .hnw-hero__scroll-text { color: var(--ae-coral); }
.hnw-hero__scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(250,242,232,.25);
  overflow: hidden;
  border-radius: 999px;
}
.hnw-hero__scroll-line::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  width: 5px;
  height: 14px;
  background: var(--ae-coral);
  border-radius: 999px;
  animation: hnw-scroll-drop 2.2s cubic-bezier(.7,0,.3,1) infinite;
  box-shadow: 0 0 8px rgba(255,95,74,.5);
}
@keyframes hnw-scroll-fadein {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes hnw-scroll-drop {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(48px); opacity: 0; }
}

@media (max-width: 720px) {
  .hnw-hero__scroll { bottom: 20px; gap: 8px; }
  .hnw-hero__scroll-line { height: 36px; }
  .hnw-hero__scroll-text { font-size: 10px; }
}

/* ─── Scroll-padding global para anchors con fixed header ─── */
html { scroll-padding-top: 100px !important; }
@media (max-width: 720px) {
  html { scroll-padding-top: 80px !important; }
}
[id], section[id] { scroll-margin-top: 100px; }

/* Hero scroll indicator — prominente y siempre visible */
.hnw-hero__scroll {
  bottom: 36px !important;
  z-index: 10 !important;
  pointer-events: auto;
}
.hnw-hero__scroll-line { height: 56px !important; background: rgba(250,242,232,.35) !important; }
.hnw-hero__scroll-line::after { height: 18px !important; }
.hnw-hero__scroll-text { color: rgba(250,242,232,.85) !important; }

/* Hero más alto */
.hnw-hero {
  height: clamp(720px, 95vh, 1000px) !important;
  min-height: 720px !important;
}
@media (max-width: 960px) {
  .hnw-hero {
    height: clamp(640px, 88vh, 820px) !important;
    min-height: 640px !important;
  }
}
@media (max-width: 720px) {
  .hnw-hero {
    height: clamp(580px, 85vh, 720px) !important;
    min-height: 580px !important;
  }
}

/* Scroll indicator: ocultar en mobile (gesto natural), refinado en desktop */
@media (max-width: 960px) {
  .hnw-hero__scroll { display: none !important; }
}

/* Scroll indicator — sin texto, más visible */
.hnw-hero__scroll-text { display: none !important; }
.hnw-hero__scroll-line {
  height: 72px !important;
  width: 2px !important;
  background: rgba(250,242,232,.45) !important;
}
.hnw-hero__scroll-line::after {
  width: 6px !important;
  left: -2px !important;
  height: 22px !important;
  background: var(--ae-coral) !important;
  box-shadow: 0 0 14px rgba(255,95,74,.6), 0 0 4px rgba(255,95,74,.8) !important;
}
.hnw-hero__scroll {
  bottom: 40px !important;
  padding: 10px 8px;
}
.hnw-hero__scroll::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--ae-coral);
  border-bottom: 2px solid var(--ae-coral);
  rotate: 45deg;
  margin-bottom: -8px;
  opacity: .85;
  animation: hnw-scroll-chevron 2.2s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes hnw-scroll-chevron {
  0%, 100% { transform: translateX(-50%) rotate(45deg) translateY(0); opacity: .85; }
  50% { transform: translateX(-50%) rotate(45deg) translateY(3px); opacity: 1; }
}

/* ─── Scroll indicator — mouse icon clásico ─── */
.hnw-hero__scroll-line { display: none !important; }
.hnw-hero__scroll::after { display: none !important; }

.hnw-hero__scroll {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(250,242,232,.6);
  border-radius: 14px;
  bottom: 40px !important;
  padding: 0 !important;
  background: transparent;
  box-shadow: 0 0 24px rgba(0,0,0,.18);
  transition: border-color .25s ease;
}
.hnw-hero__scroll:hover {
  border-color: var(--ae-coral);
}
.hnw-hero__scroll::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  background: var(--ae-coral);
  border-radius: 999px;
  transform: translateX(-50%);
  animation: hnw-mouse-dot 2s cubic-bezier(.7,0,.3,1) infinite;
  box-shadow: 0 0 8px rgba(255,95,74,.6);
}
@keyframes hnw-mouse-dot {
  0%   { transform: translateX(-50%) translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  60%  { transform: translateX(-50%) translateY(16px); opacity: 1; }
  100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

/* Home: 11 servicios. Si el último queda solo, span 2 columnas */
.hnw-services__list .hnw-service:nth-last-child(1):nth-child(odd) {
  grid-column: 1 / -1;
}

/* CTA tile en grid de servicios — coral, destaca */
.hnw-service.hnw-service--cta {
  background: var(--ae-coral) !important;
  position: relative;
  overflow: hidden;
}
.hnw-service.hnw-service--cta:hover {
  background: var(--ae-charcoal) !important;
}
.hnw-service.hnw-service--cta .hnw-service__link {
  color: var(--ae-cream) !important;
  position: relative;
  z-index: 2;
}
.hnw-service__num--cta {
  color: rgba(250,242,232,.5) !important;
  font-size: 11px !important;
}
.hnw-service__cta-eyebrow {
  color: rgba(250,242,232,.85) !important;
  display: block;
  margin-bottom: 16px;
  font-weight: 500;
}
.hnw-service__title--cta {
  color: var(--ae-cream) !important;
  font-size: clamp(28px, 3vw, 40px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  font-weight: 500 !important;
  margin: 0 0 16px !important;
}
.hnw-service__title--cta em {
  font-style: italic;
  color: var(--ae-cream);
  text-decoration: underline;
  text-decoration-color: rgba(250,242,232,.4);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.hnw-service__desc--cta {
  color: rgba(250,242,232,.85) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  margin: 0 0 24px !important;
}
.hnw-service__more--cta {
  color: var(--ae-cream) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(250,242,232,.4);
  padding-bottom: 4px;
}

/* Decoración: punto coral grande de fondo */
.hnw-service.hnw-service--cta::before {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(250,242,232,.18) 0%, transparent 60%);
  z-index: 1;
  transition: transform .8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hnw-service.hnw-service--cta:hover::before {
  transform: scale(1.3);
}

/* Si está sola en la última fila, span 2 cols → centra el contenido */
.hnw-service.hnw-service--cta:nth-last-child(1):nth-child(odd) {
  grid-column: 1 / -1;
}
.hnw-service.hnw-service--cta:nth-last-child(1):nth-child(odd) .hnw-service__copy {
  max-width: 720px;
}

/* ─── Servicios grid: 3 cols en desktop (12 tiles encajan en 4 filas) ─── */
.hnw-services__list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* minmax(0,..) -> columnas EXACTAS iguales (si no, palabras largas como "Reestructuraciones" ensanchan una columna) */
}
.hnw-service__link {
  padding: 36px !important;
}
.hnw-service__media {
  aspect-ratio: 4/3 !important;
  margin-bottom: 24px !important;
}
.hnw-service__title {
  font-size: clamp(20px, 1.8vw, 26px) !important;
  line-height: 1.2 !important;
  margin: 0 0 12px !important;
}
.hnw-service__desc {
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin: 0 0 20px !important;
}

/* CTA tile: ajusta su tamaño para encajar en la nueva grid */
.hnw-service__title--cta {
  font-size: clamp(22px, 1.9vw, 28px) !important;
}
.hnw-service__desc--cta {
  font-size: 14px !important;
}
.hnw-service.hnw-service--cta::before {
  width: 200px !important;
  height: 200px !important;
  right: -80px !important;
  bottom: -80px !important;
}

/* Si el último item (12) queda solo, span las 3 cols */
.hnw-service:last-child:nth-child(3n - 2) {
  grid-column: 1 / -1;
}
.hnw-service:last-child:nth-child(3n - 1) {
  grid-column: 2 / -1;
}

/* Tablet: 2 cols */
@media (max-width: 1100px) {
  .hnw-services__list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .hnw-service:last-child:nth-child(3n - 2),
  .hnw-service:last-child:nth-child(3n - 1) { grid-column: auto; }
  .hnw-service:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Mobile: 1 col */
@media (max-width: 720px) {
  .hnw-services__list { grid-template-columns: 1fr !important; }
  .hnw-service:last-child:nth-child(odd) { grid-column: auto; }
  .hnw-service__link { padding: 32px 24px !important; }
}

/* ─────────── Equipo v2 — fotos reales + LinkedIn ─────────── */

/* Hero equipo */
.hnw-eq-hero__eyebrow { color: var(--ae-coral); display: block; margin-bottom: 24px; }
.hnw-eq-hero__title {
  margin: 0;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.0; letter-spacing: -0.03em; font-weight: 500;
}
.hnw-eq-hero__title .hnw-accent { font-style: italic; color: var(--ae-coral); font-weight: 500; }

/* Foto socios — warm filter + radius */
.hnw-partner__media { border-radius: 8px; overflow: hidden; }
.hnw-partner__img { filter: sepia(0.16) saturate(1.06) hue-rotate(-8deg) brightness(0.99); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hnw-partner:hover .hnw-partner__img { transform: scale(1.03); }

/* Cabecera tarjeta socio: nombre + LinkedIn */
.hnw-partner__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.hnw-partner__role { color: var(--ae-gray); display: block; margin-top: 4px; }
.hnw-partner__areas { margin-top: 32px; }

/* Icono LinkedIn (socios) */
.hnw-member__linkedin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--ae-line); border-radius: 999px;
  color: var(--ae-charcoal);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.hnw-member__linkedin:hover { background: var(--ae-coral); color: var(--ae-cream); border-color: var(--ae-coral); }

/* Staff: foto + LinkedIn overlay */
.hnw-staff__media { position: relative; border-radius: 6px; overflow: hidden; }
.hnw-staff__img { filter: sepia(0.16) saturate(1.06) hue-rotate(-8deg) brightness(0.99); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hnw-staff__item:hover .hnw-staff__img { transform: scale(1.04); }
.hnw-staff__name { margin: 16px 0 4px; }
.hnw-staff__role { color: var(--ae-gray); display: block; }
.hnw-staff__linkedin {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(54,54,64,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border-radius: 999px; color: var(--ae-cream);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .3s ease, transform .3s ease, background .25s ease;
}
.hnw-staff__item:hover .hnw-staff__linkedin { opacity: 1; transform: translateY(0); }
.hnw-staff__linkedin:hover { background: var(--ae-coral); }

/* Estrategia. Visión. Rigor. (explanada) */
.hnw-eq-explanada__grid {
  display: grid; grid-template-columns: 6fr 5fr; gap: clamp(48px, 7vw, 96px); align-items: center;
}
.hnw-eq-explanada__media {
  margin: 0; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--ae-cream-deep);
}
.hnw-eq-explanada__ph { position: relative; inset: 0; display: block; width: 100%; height: 100%; }
.hnw-eq-explanada__title {
  margin: 0 0 28px;
  font-size: clamp(36px, 5vw, 72px); line-height: 1.0; letter-spacing: -0.03em; font-weight: 500;
}
.hnw-eq-explanada__title .hnw-accent { font-style: italic; color: var(--ae-coral); font-weight: 500; }

@media (max-width: 960px) {
  .hnw-eq-explanada__grid { grid-template-columns: 1fr; gap: 40px; }
  .hnw-staff__linkedin { opacity: 1; transform: none; }
}

/* Imagen explanada (equipo) — cover + warm filter */
.hnw-eq-explanada__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: sepia(0.16) saturate(1.06) hue-rotate(-8deg) brightness(0.99);
}
.hnw-eq-explanada__media { position: relative; }

/* Foto en filas de servicios — cover + warm filter */
.hnw-srow__media { border-radius: 8px; overflow: hidden; }
.hnw-srow__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  aspect-ratio: 4/3;
  filter: sepia(0.16) saturate(1.06) hue-rotate(-8deg) brightness(0.99);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hnw-srow:hover .hnw-srow__img { transform: scale(1.03); }

/* ─── Testimonios: 3 en pantalla (carrusel) ─── */
.hnw-tests__track { gap: 24px !important; }
.hnw-tests__item {
  flex: 0 0 calc((100% - 48px) / 3) !important;
  width: calc((100% - 48px) / 3) !important;
  min-width: 0 !important;
  scroll-snap-align: start !important;
}
.hnw-tests__card {
  max-width: none !important;
  margin: 0 !important;
  height: 100%;
  min-height: 0 !important;
}
.hnw-tests__quote {
  font-size: clamp(15px, 1.05vw, 17px) !important;
  line-height: 1.55 !important;
}

@media (max-width: 1100px) {
  .hnw-tests__item {
    flex: 0 0 calc((100% - 24px) / 2) !important;
    width: calc((100% - 24px) / 2) !important;
  }
}
@media (max-width: 720px) {
  .hnw-tests__item {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
}

/* Logos de clientes en testimonios — monocromo, color al hover */
.hnw-tests__logo--img {
  display: inline-flex; align-items: center;
  height: 36px; width: auto; margin-bottom: 28px;
  background: none !important;
}
.hnw-tests__logo--img img {
  max-height: 36px; max-width: 150px; width: auto; height: auto;
  object-fit: contain;
  /* Los logos van en el color corporativo de cada cliente (peticion del cliente, jul 2026). */
}

/* Staff grid: flexbox con última fila centrada (sin celda vacía) */
.hnw-staff {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 32px;
}
.hnw-staff__item {
  flex: 0 0 calc((100% - 3 * 32px) / 4);
  max-width: calc((100% - 3 * 32px) / 4);
}
@media (max-width: 1100px) {
  .hnw-staff__item { flex: 0 0 calc((100% - 2 * 32px) / 3); max-width: calc((100% - 2 * 32px) / 3); }
}
@media (max-width: 720px) {
  .hnw-staff { gap: 24px; }
  .hnw-staff__item { flex: 0 0 calc((100% - 24px) / 2); max-width: calc((100% - 24px) / 2); }
  /* A 2 columnas los nombres largos parten en dos lineas y desalinean el cargo del compañero de fila. */
  .hnw-staff__name { min-height: 2.6em; }
}

/* Home preview socios — foto real + warm + LinkedIn overlay */
.hnw-team-card__media { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 3/4; }
.hnw-team-card__media .ae-stripe-ph { position:absolute; inset:0; }
.hnw-team-card__imglink { display: block; width: 100%; height: 100%; }
.hnw-team-card__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: sepia(0.16) saturate(1.06) hue-rotate(-8deg) brightness(0.99);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hnw-team-card:hover .hnw-team-card__img { transform: scale(1.04); }
.hnw-team-card__linkedin {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(54,54,64,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border-radius: 999px; color: var(--ae-cream);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .3s ease, transform .3s ease, background .25s ease;
}
.hnw-team-card:hover .hnw-team-card__linkedin { opacity: 1; transform: translateY(0); }
.hnw-team-card__linkedin:hover { background: var(--ae-coral); }
@media (max-width: 720px) { .hnw-team-card__linkedin { opacity: 1; transform: none; } }

/* Logos testimonios más grandes */
.hnw-tests__logo--img { height: 56px !important; margin-bottom: 32px !important; }
.hnw-tests__logo--img img {
  max-height: 56px !important;
  max-width: 200px !important;
}

/* Home servicios band: foto real cover + warm filter */
.hnw-service__media { overflow: hidden; border-radius: 6px; }
.hnw-service__img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; aspect-ratio: 16/10;
  filter: sepia(0.16) saturate(1.06) hue-rotate(-8deg) brightness(0.95);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hnw-service:hover .hnw-service__img { transform: scale(1.05); }

/* Despacho media: ratio más horizontal para foto editorial con persona */
.hnw-manif__media { aspect-ratio: 4 / 3 !important; }

/* Logos testimonios — tamaño óptico por logo (proporciones distintas) */
.hnw-tests__logo--img { height: auto !important; margin-bottom: 28px !important; }
.hnw-tests__logo--img img {
  width: auto !important;
  max-width: 210px !important;
  max-height: none !important;
  height: 38px;            /* default */
}
.hnw-tests__logo--img img[src*=extrusax]    { height: 42px; }
.hnw-tests__logo--img img[src*=saxun]       { height: 30px; }
.hnw-tests__logo--img img[src*=alljuicemed] { height: 40px; }
.hnw-tests__logo--img img[src*=facephi]     { height: 30px; }
.hnw-tests__logo--img img[src*=aap]         { height: 60px; }

/* Consejo asesor: encuadrar a la derecha para ver la escultura */
.hnw-service__img[src*="consejo-asesor"],
.hnw-srow__img[src*="consejo-asesor"] {
  object-position: right center !important;
}

/* Despacho: imagen vertical que llena la altura del párrafo */
.hnw-manif__grid { align-items: stretch !important; }
.hnw-manif__media {
  aspect-ratio: auto !important;
  position: relative !important;
  top: auto !important;
  height: 100% !important;
  min-height: 520px;
  align-self: stretch !important;
}
.hnw-manif__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (max-width: 960px) {
  .hnw-manif__media { min-height: 0; aspect-ratio: 4/3 !important; }
}

/* Archivo artículos: sin columna de autor (5 columnas) */
.hnw-arch__list .hnw-row { grid-template-columns: 64px 200px 1fr 180px 60px !important; }
.hnw-row__author { display: none !important; }
@media (max-width: 1100px) { .hnw-arch__list .hnw-row { grid-template-columns: 48px 140px 1fr 60px !important; } }
@media (max-width: 720px)  { .hnw-arch__list .hnw-row { grid-template-columns: 100px 1fr !important; } }

/* Ocultar categorías en artículos (etiquetas por item + filtro) */
.hnw-arch__filter { display: none !important; }
.hnw-row__meta, .hnw-row__cat { display: none !important; }
.hnw-card__cat { display: none !important; }
.hnw-articulo__meta .hnw-tag,
.hnw-related .hnw-tag { display: none !important; }

/* Archivo artículos: gap mayor entre filas de cards */
.hnw-arch__list .hnw-latest__grid3 { row-gap: 56px; }

/* Centrar logos en las fichas de testimonios */
.hnw-tests__logo--img {
  align-self: center !important;
  justify-content: center !important;
}

/* Preview artículos en home con fondo oscuro (solo esta sección, no el archivo) */
.hnw-latest--dark .hnw-latest__h2 { color: var(--ae-cream); }
.hnw-latest--dark .hnw-card__title { color: var(--ae-cream); }
.hnw-latest--dark .hnw-card:hover .hnw-card__title { color: var(--ae-coral); }
.hnw-latest--dark .hnw-card__excerpt { color: rgba(250,242,232,.7); }
.hnw-latest--dark .hnw-card__date,
.hnw-latest--dark .hnw-card__meta { color: rgba(250,242,232,.55); }
.hnw-latest--dark .hnw-card__cover { background-color: #2c2c34; } /* NO usar atajo 'background:' — reseteaba background-size:cover y dejaba la foto a tamaño natural anclada arriba-izq */

/* ─── Paginación artículos — chips estilo marca ─── */
.hnw-pagination { margin-top: 64px; display: flex; justify-content: center; }
.hnw-pagination .page-numbers {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.hnw-pagination .page-numbers li { display: inline-flex; }
.hnw-pagination a.page-numbers,
.hnw-pagination span.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid var(--ae-line); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ae-charcoal);
  text-decoration: none;
  transition: all .2s ease;
  font-variant-numeric: tabular-nums;
}
.hnw-pagination a.page-numbers:hover { border-color: var(--ae-coral); color: var(--ae-coral); }
.hnw-pagination span.page-numbers.current {
  background: var(--ae-charcoal); color: var(--ae-cream); border-color: var(--ae-charcoal);
}
.hnw-pagination span.page-numbers.dots { border: 0; min-width: 24px; color: var(--ae-gray); }
@media (max-width: 480px) {
  .hnw-pagination a.page-numbers, .hnw-pagination span.page-numbers { min-width: 40px; height: 40px; padding: 0 10px; }
}

/* Covers de artículos: ratio 3:2 (acorde a las fotos ~16:9) para reducir el zoom del recorte */
.hnw-card__cover { aspect-ratio: 16 / 10 !important; }

/* ─── FIX menú móvil abierto ─── */
@media (max-width: 960px) {
  /* Enlaces del panel SIEMPRE carbón (gana a la regla cream del home transparente) */
  body.home .hnw-nav:not(.is-scrolled).is-open .hnw-nav__list a,
  body.front-page .hnw-nav:not(.is-scrolled).is-open .hnw-nav__list a,
  .hnw-nav.is-open .hnw-nav__list a {
    color: var(--ae-charcoal) !important;
  }
  /* El contenedor derecho de la fila no debe reflowear al abrir */
  .hnw-nav__right { gap: 0 !important; }
  /* Lang dentro del panel: estilos */
  .hnw-nav__menu .hnw-lang { display: none; }
  .hnw-nav.is-open .hnw-nav__menu .hnw-lang {
    display: flex !important;
    margin-top: 16px;
    gap: 8px;
  }
  .hnw-nav.is-open .hnw-nav__menu .hnw-lang a { color: var(--ae-charcoal) !important; }
  .hnw-nav__menu .hnw-nav__cta { display: none; }
  .hnw-nav.is-open .hnw-nav__menu .hnw-nav__cta {
    display: inline-flex !important;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
  }
}

/* Lang dentro del panel: carbón también en home transparente */
@media (max-width: 960px) {
  body.home .hnw-nav:not(.is-scrolled).is-open .hnw-nav__menu .hnw-lang a,
  body.front-page .hnw-nav:not(.is-scrolled).is-open .hnw-nav__menu .hnw-lang a {
    color: var(--ae-charcoal) !important;
  }
  body.home .hnw-nav:not(.is-scrolled).is-open .hnw-nav__menu .hnw-lang li:not(.current-lang) a,
  .hnw-nav.is-open .hnw-nav__menu .hnw-lang li:not(.current-lang) a {
    color: var(--ae-gray) !important;
  }
}

/* Caption foto despacho: apilado en móvil (evita texto pegado) */
@media (max-width: 720px) {
  .hnw-manif__caption {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    left: 16px !important; right: 16px !important; bottom: 16px !important;
    padding: 12px 14px !important;
  }
  .hnw-manif__caption-r { text-align: left; }
}

/* Checkboxes FluentForms: inline, texto sentence-case */
.fluentform .ff-el-form-check { display: flex !important; align-items: flex-start; gap: 10px; }
.fluentform .ff-el-form-check-label,
.fluentform .ff-el-form-check label {
  display: flex !important; align-items: flex-start; gap: 10px;
  text-transform: none !important; letter-spacing: 0 !important;
  font-size: 13px !important; line-height: 1.5 !important;
  cursor: pointer; text-align: left;
}
.fluentform .ff-el-form-check input[type=checkbox] {
  flex-shrink: 0; margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--ae-coral);
}
.fluentform .ff-el-form-check a { color: var(--ae-coral); text-decoration: underline; text-underline-offset: 2px; }

/* ─── Despacho: slider crossfade lento (5 fotos, 30s ciclo, SIN zoom) ─── */
.hnw-manif__slide {
  opacity: 0;
  animation: hnw-manif-fade 30s infinite;
  will-change: opacity;
  transform: none !important;
}
.hnw-manif__slide--1 { animation-delay: 0s; }
.hnw-manif__slide--2 { animation-delay: 6s; }
.hnw-manif__slide--3 { animation-delay: 12s; }
.hnw-manif__slide--4 { animation-delay: 18s; }
.hnw-manif__slide--5 { animation-delay: 24s; }

@keyframes hnw-manif-fade {
  0%      { opacity: 0; }
  4%      { opacity: 1; }
  20%     { opacity: 1; }
  26%     { opacity: 0; }
  100%    { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hnw-manif__slide { animation: none !important; opacity: 0 !important; }
  .hnw-manif__slide--1 { opacity: 1 !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   MODIFICACIONES DOC CLIENTE (jun 2026) — v2.4.0
   ═══════════════════════════════════════════════════════════════════ */

/* ── 2. Sin cursiva en acentos — el color basta para destacar ── */
.hnw-accent,
.hnw-hero__accent,
.hnw-hero__claim em.hnw-hero__accent,
.hnw-arch__title .hnw-arch__accent,
.hnw-manif__pull em,
.hnw-manif__pull .hnw-accent,
.hnw-tests__h2 .hnw-accent,
.hnw-eq-hero__title .hnw-accent,
.hnw-eq-explanada__title .hnw-accent,
.hnw-srv-hero__lead .hnw-accent,
.hnw-service--more .hnw-service__title em {
  font-style: normal !important;
}
/* CTA servicios (titular de un solo color): destacar por PESO (Regular + Bold), sin cursiva ni subrayado */
.hnw-service__title--cta { font-weight: 400 !important; }
.hnw-service__title--cta em {
  font-style: normal !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  color: var(--ae-cream) !important;
}

/* ── 3. Números de servicios más grandes, manteniendo Archivo Light ── */
/* OJO: NO incluir .hnw-service__num--cta — el "12" de la tarjeta CTA mantiene su tamaño tenue (11px). */
.hnw-service__num,
.hnw-srow__num {
  font-weight: 300 !important;                  /* Archivo Light */
  font-size: clamp(22px, 2.4vw, 34px) !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
}
.hnw-service__num { margin-bottom: 20px !important; }
.hnw-srow__num   { margin-bottom: 12px !important; }

/* ── 4. Líneas coral: misma longitud y grosor en toda la home ── */
.hnw-arch__eyebrow::before,
.hnw-manif__eyebrow::before,
.hnw-srv-hero__eyebrow::before {
  width: 40px !important;
  height: 2px !important;
}
.hnw-manif__rule {
  width: 40px !important;
  height: 2px !important;
}

/* ── 6. Socios: rejilla uniforme de 4 (los cuatro al mismo nivel, sin huecos) ── */
.hnw-partners {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 48px 32px !important;
}
.hnw-partner {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}
.hnw-partner:nth-child(even),
.hnw-partner:nth-child(even) > * { direction: ltr !important; }
.hnw-partner__media {
  aspect-ratio: 3/4;
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
}
.hnw-partner__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.hnw-partner__name { font-size: clamp(20px, 1.5vw, 24px) !important; margin: 0 0 6px !important; }
.hnw-partner__role { display: block; }
.hnw-partner__areas ul { gap: 6px !important; }
.hnw-partner__areas li { padding: 5px 12px !important; font-size: 12px !important; }
@media (max-width: 960px) {
  .hnw-partners { grid-template-columns: repeat(2, 1fr) !important; gap: 40px 24px !important; }
}
@media (max-width: 560px) {
  .hnw-partners { grid-template-columns: 1fr !important; gap: 32px !important; max-width: 360px; margin-inline: auto; }
}

/* Encuadre del equipo: las fotos se sirven YA normalizadas (cara al mismo tamaño y altura, recortadas en origen por detección facial). Sin zoom CSS por persona. */

/* ═══ Correcciones tras auditoría QA (v2.4.1) ═══ */

/* (hover por persona eliminado — el hover genérico scale(1.04) aplica uniforme sobre las fotos ya normalizadas) */

/* #2 — Chips de áreas: que envuelvan limpio (rectángulo redondeado) en la columna estrecha del grid 4-up de socios, en vez de píldora-globo de 2 líneas. */
.hnw-partner__areas li { border-radius: 10px !important; line-height: 1.4 !important; }

/* El número "14" de la tarjeta CTA al MISMO tamaño que el resto de servicios (34px, Archivo Light),
   en crema para que se vea sobre el fondo coral. Selector compuesto = mayor especificidad. */
.hnw-service__num.hnw-service__num--cta { font-size: clamp(22px, 2.4vw, 34px) !important; font-weight: 300 !important; letter-spacing: 0.02em !important; color: var(--ae-cream) !important; }

/* (guard móvil de zoom por persona ya no necesario — fotos normalizadas) */

/* Home · servicios: el título reserva 2 líneas de alto para que TODAS las tarjetas alineen la descripción a la misma altura */
.hnw-service:not(.hnw-service--cta) .hnw-service__title { min-height: 2.4em; }
@media (max-width: 720px) {
  .hnw-service:not(.hnw-service--cta) .hnw-service__title { min-height: 0; }
}

/* Footer · Servicios: lista en 2 columnas (la columna 2 del grid se ensancha arriba). 1 columna en móvil. */
.hnw-footer__list--2col { columns: 2; column-gap: 40px; }
.hnw-footer__list--2col li { break-inside: avoid; }
@media (max-width: 720px) {
  .hnw-footer__list--2col { columns: 1; }
}


/* ─────────────────────────────────────────────
   Opiniones — carrusel en bucle (jul 2026)
   Sustituye a la rejilla: ocupaba 3,4 pantallas. Aqui 1,3 sin perder ninguna
   marca (los 9 logos viven en el muro de abajo, que ademas es la navegacion).
   NO hay autoplay: una opinion tarda 16s de media en leerse y el carrusel viejo
   daba 6. Solo una entrada de 2,4s al aparecer, que muere al primer gesto.
   Prefijo propio (hnw-t*): el CSS del carrusel original tiene 19 !important
   en __quote y 22 en __logo; reutilizar esas clases era pelearse con todo eso.
   ───────────────────────────────────────────── */
.hnw-tests__head { text-align: center; }

/* La pista nace invisible: se coloca en la tanda central y solo entonces aparece.
   Sin esto se pintaba en scrollLeft:0 y saltaba (parpadeo al cargar). */
.hnw-tvia {
  list-style: none; margin: 0; padding: 4px calc(50% - 220px) 8px;
  display: flex; gap: 24px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab;
  opacity: 0;
}
.hnw-tvia::-webkit-scrollbar { display: none; }
.hnw-tvia.is-lista { opacity: 1; transition: opacity .5s ease; }
.hnw-tvia.is-arrastrando, .hnw-tvia.is-saltando { scroll-snap-type: none; }
.hnw-tvia.is-arrastrando { cursor: grabbing; }

.hnw-tcard {
  flex: 0 0 440px; scroll-snap-align: center;
  background: var(--ae-cream); border-radius: 16px;
  padding: 36px 34px 28px;
  display: flex; flex-direction: column;
  opacity: .55; transition: opacity .35s ease;
}
.hnw-tcard.is-centro { opacity: 1; }
.hnw-tcard__logo { height: 54px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.hnw-tcard__logo img { max-width: 180px; width: auto; object-fit: contain; }
/* Altura optica por logo: igualar la altura los haria pesar distinto (Geopol es 9:1, AAP 0.72:1). */
.hnw-tcard--facephi .hnw-tcard__logo img { height: 36px; }
.hnw-tcard--extrusax .hnw-tcard__logo img { height: 43px; }
.hnw-tcard--gimenez-ganga .hnw-tcard__logo img { height: 41px; }
.hnw-tcard--alljuicemed .hnw-tcard__logo img { height: 54px; }
.hnw-tcard--hansa-urbana .hnw-tcard__logo img { height: 39px; }
.hnw-tcard--geopol .hnw-tcard__logo img { height: 19px; }
.hnw-tcard--simbad-yachts-v2 .hnw-tcard__logo img { height: 54px; }
.hnw-tcard--aap .hnw-tcard__logo img { height: 54px; }
.hnw-tcard--montemar .hnw-tcard__logo img { height: 40px; }
.hnw-tcard__mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--ae-coral); color: var(--ae-cream); font-size: 13px; font-weight: 600;
}
.hnw-tcard__quote {
  margin: 0 0 22px; flex: 1; position: relative; padding-left: 24px;
  font-size: 16px; line-height: 1.7; font-weight: 400; color: var(--ae-charcoal-soft);
}
.hnw-tcard__mark {
  position: absolute; left: -4px; top: -16px;
  font-size: 48px; line-height: 1; font-weight: 600;
  color: var(--ae-coral); opacity: .45;
}
.hnw-tcard__meta { padding-top: 16px; border-top: 1px solid var(--ae-line); text-align: center; }
.hnw-tcard__name { display: block; font-size: 15px; font-weight: 500; color: var(--ae-charcoal); }
.hnw-tcard__role { display: block; font-size: 12px; color: var(--ae-gray); margin-top: 3px; }

/* Muro: los 9 logos siempre visibles. Credencial + navegacion. */
.hnw-tmuro {
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--ae-line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
/* Mismo patron que .ae-btn: borde 1px transparente que reserva el hueco + radio 8px.
   Asi la fila no tiembla al cambiar de seleccion y la linea coincide con los CTA. */
.hnw-tchapa {
  background: none; border: 1px solid transparent; border-radius: 8px;
  padding: 10px 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; min-width: 70px;
  transition: background-color .2s ease, border-color .2s ease;
}
.hnw-tchapa img { max-width: 86px; width: auto; object-fit: contain; }
.hnw-tchapa[data-i='0'] img { height: 15px; }
.hnw-tchapa[data-i='1'] img { height: 18px; }
.hnw-tchapa[data-i='2'] img { height: 17px; }
.hnw-tchapa[data-i='3'] img { height: 26px; }
.hnw-tchapa[data-i='4'] img { height: 17px; }
.hnw-tchapa[data-i='5'] img { height: 9px; }
.hnw-tchapa[data-i='6'] img { height: 23px; }
.hnw-tchapa[data-i='7'] img { height: 26px; }
.hnw-tchapa[data-i='8'] img { height: 17px; }
.hnw-tchapa:hover { background: rgba(54, 54, 64, .05); }
.hnw-tchapa.is-on { background: var(--ae-cream); border-color: var(--ae-coral); }
.hnw-tchapa:focus-visible { outline: 2px solid var(--ae-coral); outline-offset: 2px; }

@media (max-width: 760px) {
  .hnw-tvia { padding-left: 9vw; padding-right: 9vw; }
  .hnw-tcard { flex-basis: 82vw; padding: 30px 24px 24px; }
  .hnw-tmuro { justify-content: center; }
}
