/* Gonzalo Assessors — misma identidad que la web actual: azul índigo #231A5D, Inria Sans en títulos y Roboto Condensed en el texto.
   Diseño de una sola apariencia (claro), como la web original. */
@font-face { font-family: "Inria Sans"; src: url("fonts/inria-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inria Sans"; src: url("fonts/inria-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inria Sans"; src: url("fonts/inria-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inria Sans"; src: url("fonts/inria-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/roboto-condensed-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/roboto-condensed-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --brand: #231a5d;
  --brand-dark: #160f40;
  --brand-mid: #3b2f86;
  --brand-soft: #ecebf5;
  --ink: #2a2a2a;
  --muted: #646470;
  --line: #e3e3e8;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --white: #ffffff;
  --overlay: rgba(35, 26, 93, 0.82);
  --head: "Inria Sans", "Segoe UI", Arial, sans-serif;
  --body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-mid); }
:focus-visible { outline: 3px solid #8f86d6; outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
}
.icon { width: 1em; height: 1em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--white); padding: 8px 12px; }

/* ---------- Cabecera ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--white); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--white); box-shadow: 0 2px 14px rgba(22, 15, 64, .08); }
.header-inner { display: flex; align-items: center; gap: 12px 18px; min-height: 84px; }
.brand { margin-right: auto; }
.brand img { height: 42px; width: auto; }
@media (min-width: 1000px) { .brand img { height: 50px; } }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; font-size: 13px; letter-spacing: .05em; font-weight: 700; }
.lang-switch a, .lang-switch span { padding: 5px 9px; text-decoration: none; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--brand); background: var(--brand-soft); }
.lang-switch span { background: var(--brand); color: var(--white); }
@media (max-width: 480px) {
  .brand img { height: 34px; }
  .header-inner { gap: 8px 10px; }
  .lang-switch a, .lang-switch span { padding: 4px 7px; }
  .menu-toggle { padding: 9px 11px !important; gap: 8px !important; }
}
@media (max-width: 359px) { .menu-toggle { font-size: 0 !important; gap: 0 !important; padding: 12px !important; } }

.menu { list-style: none; padding: 0; display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; letter-spacing: .01em; }
.menu > li > a { border-bottom: 3px solid transparent; }
.menu > li > a:hover, .menu > li > a[aria-current="page"], .menu > li.current > a { color: var(--brand); border-bottom-color: var(--brand); }
.has-sub { display: flex; align-items: center; }
.sub-toggle { display: none; }
.sub { list-style: none; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--white); box-shadow: 0 12px 30px rgba(22,15,64,.14); border-top: 3px solid var(--brand); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 9px 18px; font-size: 15.5px; white-space: nowrap; }
.menu-cta { margin-left: 8px; }
.menu > li.menu-cta > a { background: var(--brand); color: var(--white); border: 0; border-radius: 3px; padding: 10px 18px; font-weight: 700; }
.menu > li.menu-cta > a:hover, .menu > li.menu-cta > a[aria-current="page"] { background: var(--brand-mid); color: var(--white); }
.sub a:hover, .sub a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }

.menu-toggle { display: none; align-items: center; gap: 10px; background: var(--brand); color: var(--white); border: 0; border-radius: 3px; padding: 10px 14px; font: inherit; font-size: 15px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: ""; }
.bars::before { position: absolute; top: -6px; }
.bars::after { position: absolute; top: 6px; }

@media (max-width: 999px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; padding-bottom: 14px; order: 5; }
  .site-header.open .site-nav { display: block; }
  .header-inner { flex-wrap: wrap; min-height: 72px; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li { border-top: 1px solid var(--line); }
  .menu > li > a { border-bottom: 0; padding: 13px 4px; flex: 1 1 auto; }
  .menu-cta { margin: 10px 0 0; border-top: 0 !important; }
  .menu > li.menu-cta > a { text-align: center; padding: 13px 18px; }
  .has-sub { flex-wrap: wrap; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; color: var(--brand); }
  .sub-toggle::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
  .sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg) translate(-2px, -2px); }
  .sub { position: static; width: 100%; box-shadow: none; border-top: 0; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 8px 14px; min-width: 0; }
  .has-sub.sub-open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.sub-open:hover .sub { display: block; }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 3px; font-family: var(--body); font-weight: 700; font-size: 16px; letter-spacing: .03em; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-brand { background: var(--brand); color: var(--white); }
.btn-brand:hover { background: var(--brand-mid); color: var(--white); }
.btn-white { background: var(--white); color: var(--brand); }
.btn-white:hover { background: var(--brand-soft); color: var(--brand); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: var(--white); }
.btn-outline-white { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: var(--white); color: var(--brand); }

/* ---------- Portada ---------- */
.home-hero { background: var(--white); }
.home-hero-grid { display: grid; gap: 36px 64px; grid-template-columns: minmax(0, 1fr); align-items: center; padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 104px); }
@media (min-width: 900px) { .home-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.hh-text { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hh-kicker { font-family: var(--body); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); font-weight: 700; line-height: 1.4; }
.hh-slogan { font-family: var(--head); font-size: clamp(34px, 3.7vw, 50px); font-weight: 400; line-height: 1.14; color: var(--ink); letter-spacing: -.01em; }
.hh-slogan em { color: var(--brand); display: block; }
.hh-text .lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 40ch; }
.hh-text .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hh-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 16px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); width: 100%; }
.hh-meta a, .hh-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hh-meta a { color: var(--ink); font-weight: 700; text-decoration: none; }
.hh-meta a:hover { color: var(--brand); }
.hh-meta .icon { color: var(--brand); }
.hh-photo { margin: 0; position: relative; min-width: 0; }
.hh-photo::before { content: ""; position: absolute; right: -14px; bottom: -14px; width: 62%; height: 62%; border-radius: 6px; background: var(--brand-soft); }
.hh-photo img { position: relative; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 60% center; border-radius: 6px; }
@media (max-width: 899px) { .hh-photo::before { right: -8px; bottom: -8px; } .hh-photo img { aspect-ratio: 4 / 3; } }

.home-head { display: grid; gap: 10px; margin-bottom: 36px; }
.home-head h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 400; }
.hs-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .hs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hs-item { display: grid; gap: 12px; align-content: start; background: var(--white); border-radius: 6px; padding: 30px 28px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.hs-item:hover { color: var(--ink); border-color: var(--brand); box-shadow: 0 14px 32px rgba(22,15,64,.08); }
.hs-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.hs-ico .icon { width: 26px; height: 26px; stroke-width: 1.7; }
.hs-item h3 { font-size: 23px; }
.hs-item p { color: var(--muted); font-size: 16.5px; }
.hs-item .more { color: var(--brand); margin-top: 4px; }

.home-about { display: grid; gap: 40px 72px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .home-about { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.ha-text { display: grid; gap: 16px; min-width: 0; }
.ha-text h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 400; }
.ha-text p { color: #45454d; font-size: 18px; max-width: 54ch; }
.ha-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 4px; }
.ha-list { min-width: 0; }
.ha-list h3 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--body); font-weight: 700; margin-bottom: 8px; }
.ha-list ul { list-style: none; padding: 0; }
.ha-list li { border-top: 1px solid var(--line); }
.ha-list li:last-child { border-bottom: 1px solid var(--line); }
.ha-list a { display: flex; gap: 16px; align-items: center; padding: 16px 4px; text-decoration: none; color: var(--ink); }
.ha-list a::after { content: "›"; margin-left: auto; color: var(--brand); font-size: 22px; line-height: 1; transition: transform .15s; }
.ha-list a:hover::after { transform: translateX(3px); }
.ha-list .icon { width: 26px; height: 26px; color: var(--brand); stroke-width: 1.6; }
.ha-list strong { display: block; font-family: var(--head); font-size: 19px; }
.ha-list small { display: block; color: var(--muted); font-size: 15px; }

.home-contact { padding-block: clamp(48px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.hc-box { background: var(--brand); color: var(--white); border-radius: 8px; padding: clamp(28px, 4vw, 48px); display: grid; gap: 24px 48px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 980px) { .hc-box { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto; } }
.hc-intro { display: grid; gap: 8px; }
.hc-intro h2 { color: var(--white); font-size: clamp(28px, 3vw, 38px); font-weight: 400; }
.hc-intro p { color: #d9d5f5; }
.hc-data { display: grid; gap: 8px; font-size: 16px; color: #e4e1f8; min-width: 0; }
.hc-data a, .hc-data span { display: inline-flex; align-items: flex-start; gap: 10px; color: #e4e1f8; text-decoration: none; overflow-wrap: anywhere; }
.hc-data a:hover { color: var(--white); text-decoration: underline; }
.hc-data .icon { margin-top: 5px; color: #a9a1e6; }
.hc-data .hc-phone { font-family: var(--head); font-size: 28px; font-weight: 700; color: var(--white); align-items: center; }
.hc-data .hc-phone .icon { margin-top: 0; width: 22px; height: 22px; }

/* Portada: ¿qué necesita? */
.home-needs { background: var(--bg-alt); padding-block: clamp(36px, 4.5vw, 56px); }
.home-needs h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 400; margin-bottom: 18px; }
.needs-grid { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .needs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .needs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.need { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.35; transition: border-color .2s, color .2s; }
.need::after { content: "→"; color: var(--brand); flex: 0 0 auto; transition: transform .15s; }
.need:hover { border-color: var(--brand); color: var(--brand); }
.need:hover::after { transform: translateX(3px); }

/* Portada: sectores */
.home-sectors { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .home-sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .home-sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-sectors a { background: var(--white); display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.home-sectors a:hover { border-color: var(--brand); box-shadow: 0 10px 24px rgba(22,15,64,.07); color: var(--ink); }
.home-sectors .icon { width: 26px; height: 26px; color: var(--brand); stroke-width: 1.6; margin-top: 2px; }
.home-sectors strong { display: block; font-family: var(--head); font-size: 18px; }
.home-sectors small { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 2px; }
.home-about { align-items: center; }

/* Página de sectores: tarjetas */
.sector-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .sector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sector-card { display: grid; gap: 14px; align-content: start; padding: 26px 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.sector-card:hover { border-color: var(--brand); box-shadow: 0 14px 30px rgba(22,15,64,.08); transform: translateY(-2px); color: var(--ink); }
.sc-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.sc-ico .icon { width: 26px; height: 26px; stroke-width: 1.7; }
.sc-body strong { display: block; font-family: var(--head); font-size: 21px; line-height: 1.25; }
.sc-body small { display: block; color: var(--muted); font-size: 15.5px; line-height: 1.5; margin-top: 6px; }

/* Servicio: sectores relacionados */
.related { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.prose .related h2 { margin-top: 0; font-size: 22px; }
.prose ul.related-list { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .prose ul.related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose ul.related-list li { padding: 0; }
.prose ul.related-list li::before, .prose ul.related-list li::after { display: none; }
.related-list a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 600; }
.related-list a:hover { border-color: var(--brand); color: var(--brand); }
.related-list .icon { width: 20px; height: 20px; color: var(--brand); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section.alt { background: var(--bg-alt); }
.eyebrow { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); font-weight: 700; }

/* Cajas de servicios */
.boxes { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.box { background: var(--white); border: 1px solid var(--line); border-top: 4px solid transparent; border-radius: 4px; padding: 34px 30px 30px; display: grid; gap: 14px; align-content: start; text-align: center; justify-items: center; transition: border-color .2s, box-shadow .2s, transform .2s; }
.box:hover { border-top-color: var(--brand); box-shadow: 0 16px 36px rgba(22,15,64,.10); transform: translateY(-3px); }
.box-icon { width: 92px; height: 92px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.box-icon svg { width: 46px; height: 46px; stroke-width: 1.6; }
.box h3 { font-size: 24px; }
.box h3 a { color: var(--ink); text-decoration: none; }
.box h3 a:hover { color: var(--brand); }
.box p { color: var(--muted); }
.more { font-weight: 700; letter-spacing: .08em; font-size: 14px; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.more::after { content: "→"; transition: transform .15s; }
.more:hover::after { transform: translateX(3px); }

/* Blog */
.cards { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 14px 30px rgba(22,15,64,.10); }
.card-img { aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.card-body { padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; }
.card-meta { font-size: 14px; color: var(--muted); }
.card h3 { font-size: 22px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card p { color: var(--muted); font-size: 16px; }

/* Bloque de contacto */
.contact-block { display: grid; gap: 36px 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 940px) { .contact-block { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.contact-info { display: grid; gap: 20px; align-content: start; min-width: 0; }
.contact-info h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 400; }
.ci { display: flex; gap: 14px; align-items: flex-start; }
.ci .ci-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; flex: 0 0 auto; }
.ci .ci-ico .icon { width: 20px; height: 20px; }
.ci strong { display: block; font-family: var(--head); font-size: 18px; }
.ci a { text-decoration: none; }
.hours { margin: 4px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; font-size: 16px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; box-shadow: 0 14px 34px rgba(22,15,64,.07); min-width: 0; }
.form h3 { font-size: 26px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field label { font-weight: 600; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg-alt); border: 1px solid #d6d6de; border-radius: 3px; padding: 11px 13px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; background: var(--white); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: 0 0 auto; }
.legal-small { font-size: 13px; line-height: 1.5; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 12px 14px; border-radius: 3px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ---------- Páginas interiores ---------- */
.banner { position: relative; background-size: cover; background-position: center; color: var(--white); }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35,26,93,.90) 0%, rgba(35,26,93,.62) 50%, rgba(35,26,93,.15) 100%); }
.banner .wrap { position: relative; padding-block: clamp(56px, 8vw, 104px); display: grid; gap: 14px; }
.banner h1 { color: var(--white); font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; max-width: 22ch; }
.banner .lead { color: #e4e1f8; font-size: 19px; max-width: 60ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: #cdc8f1; }
.crumbs a { color: var(--white); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--white); }

.content { padding-block: clamp(48px, 6vw, 84px); }
.layout { display: grid; gap: 40px 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) {
  .layout.with-aside { grid-template-columns: minmax(0, 1fr) 320px; }
  .layout.with-figure { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
}
.prose { display: grid; gap: 16px; align-content: start; min-width: 0; max-width: 72ch; }
.prose h2 { font-size: 28px; color: var(--brand); margin-top: 18px; font-weight: 700; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin-top: 6px; }
.prose p { color: #3c3c44; }
.prose ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.prose ul li { position: relative; padding-left: 30px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); }
.prose ul li::after { content: ""; position: absolute; left: 6px; top: .52em; width: 5px; height: 9px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); }
.prose ul.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose .note { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.table-scroll { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th { background: var(--brand); color: var(--white); text-align: left; padding: 10px 12px; font-weight: 600; }
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--bg-alt); }

.page-figure { position: relative; padding: 0 0 18px 18px; align-self: start; min-width: 0; }
.page-figure::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; background: var(--brand); border-radius: 4px; }
.page-figure img { position: relative; border-radius: 4px; width: 100%; box-shadow: 0 16px 36px rgba(22,15,64,.16); }
@media (min-width: 980px) { .page-figure { position: sticky; top: 120px; } }

.aside { display: grid; gap: 24px; align-content: start; min-width: 0; }
.aside-box { background: var(--bg-alt); border-radius: 4px; padding: 24px; display: grid; gap: 12px; }
.aside-box h3 { font-size: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--brand); }
.aside-box ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.aside-box ul a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 3px; text-decoration: none; color: var(--ink); background: var(--white); }
.aside-box ul a::after { content: "›"; color: var(--brand); font-size: 20px; line-height: 1; }
.aside-box ul a:hover, .aside-box ul a[aria-current="page"] { background: var(--brand); color: var(--white); }
.aside-box ul a:hover::after, .aside-box ul a[aria-current="page"]::after { color: var(--white); }
.aside-cta { background: var(--brand); color: var(--white); border-radius: 4px; padding: 26px 24px; display: grid; gap: 10px; }
.aside-cta h3 { color: var(--white); font-size: 22px; }
.aside-cta p { color: #d9d5f5; }
.aside-cta .big { font-family: var(--head); font-size: 28px; font-weight: 700; color: var(--white); text-decoration: none; }
.aside-photo img { border-radius: 4px; }

/* Equipo: tarjetas verticales en 3 columnas (2 en tableta), horizontales en el móvil */
.team { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.member { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 16px; align-items: start; }
.member-photo img { width: 100%; aspect-ratio: 4 / 7; object-fit: cover; border-radius: 3px; }
@media (min-width: 620px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0; padding: 0; overflow: hidden; }
  .member-photo { background: var(--bg-alt); height: 290px; display: flex; justify-content: center; align-items: flex-end; padding-top: 18px; }
  .member-photo img { width: 156px; height: 272px; aspect-ratio: auto; border-radius: 3px 3px 0 0; }
  .member-info { padding: 22px 24px 26px; }
}
@media (min-width: 980px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.member-info { display: grid; gap: 6px; align-content: start; min-width: 0; }
.member h2 { font-size: 21px; }
.role { display: inline-block; justify-self: start; background: var(--brand); color: var(--white); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 2px; }
.area { color: var(--brand); font-weight: 600; font-size: 15px; }
.member ul { list-style: none; padding: 0; display: grid; gap: 5px; font-size: 15px; color: #4a4a52; margin-top: 4px; }
.member ul li { padding-left: 14px; position: relative; }
.member ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* Contacto (página) */
.map-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; }

/* CTA final */
.cta { background-size: cover; background-position: center; position: relative; color: var(--white); }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(35,26,93,.88); }
.cta .wrap { position: relative; padding-block: clamp(48px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta h2 { color: var(--white); font-size: clamp(26px, 3vw, 38px); font-weight: 400; max-width: 26ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--brand-dark); color: #c9c5e6; font-size: 16px; }
.footer-grid { display: grid; gap: 34px 40px; grid-template-columns: minmax(0, 1fr); padding-block: 60px 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid > div { display: grid; gap: 10px; align-content: start; min-width: 0; }
.footer-grid h3 { color: var(--white); font-size: 19px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-grid a { color: #e6e3f7; text-decoration: none; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.footer-logo { height: 110px; width: auto; }
.footer-grid address { font-style: normal; }
.fi { display: flex; gap: 10px; align-items: flex-start; }
.fi .icon { margin-top: 5px; color: #9f97e0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; font-size: 14px; }
.footer-bottom a { color: #e6e3f7; }

.to-top { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; text-decoration: none; box-shadow: 0 8px 20px rgba(22,15,64,.3); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; font-size: 20px; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--white); background: var(--brand-mid); }

.preview-note { background: #fff6d6; color: #5b4a00; font-size: 14px; text-align: center; }
.preview-note .wrap { padding-block: 6px; }

[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* ================= v3 =================
   Same identity as the draft. Added: reply commitment, "how we work", team faces,
   and styles for the 2027 notice and the foundations check. No scroll motion. */

/* reply commitment */
.hh-promise { display: flex; align-items: center; gap: 9px; font-size: 16px; color: var(--muted); }
.hh-promise .icon { color: var(--brand); width: 18px; height: 18px; }
.hc-promise { color: var(--white) !important; font-weight: 700; margin-top: 4px; }

/* how we work */
.section.how { background: var(--brand); color: var(--white); }
.how .eyebrow { color: #b9b2ee; }
.how .home-head h2 { color: var(--white); }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px 28px; grid-template-columns: minmax(0, 1fr); counter-reset: none; }
@media (min-width: 760px) { .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; } }
.how-steps li { display: grid; gap: 10px; align-content: start; min-width: 0; }
.how-n { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); display: grid; place-items: center;
  font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--white); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.how-steps h3 { color: var(--white); font-size: 21px; line-height: 1.25; }
.how-steps p { color: #d9d5f5; font-size: 16.5px; }

/* the team's faces under "El despacho" */
.faces { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 900px) { .faces { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; } }
.faces a { display: block; border-radius: 6px; overflow: hidden; background: var(--bg-alt); }
.faces img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 18%; transition: opacity .2s ease; }
.faces a:hover img { opacity: .88; }

/* the 2027 notice inside the foundations page */
.highlight { background: var(--brand-soft); border-radius: 6px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 14px; margin-block: 8px; }
.highlight .eyebrow { margin: 0; }
.prose .highlight h2 { margin-top: 0; }
.highlight .btn { justify-self: start; }

/* foundations 2027 check */
.diag { display: grid; gap: 24px; margin-top: 8px; }
.diag-form { display: grid; gap: 26px; }
.diag-q { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.diag-q legend { display: flex; gap: 12px; align-items: flex-start; padding: 0; margin-bottom: 12px; font-family: var(--head); font-size: 20px; line-height: 1.3; color: var(--ink); }
.diag-n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font: 700 14px/1 var(--body); }
.diag-hint { color: var(--muted); font-size: 15.5px; margin-top: -6px; }
.diag-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.diag-opts label { position: relative; cursor: pointer; }
.diag-opts input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.diag-opts span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 18px; border: 1px solid #d6d6de; border-radius: 3px; background: var(--white); color: var(--ink); font-weight: 600; font-size: 16px; transition: background .15s, color .15s, border-color .15s; }
.diag-opts label:hover span { border-color: var(--brand); }
.diag-opts input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--white); }
.diag-opts input:focus-visible + span { outline: 3px solid #8f86d6; outline-offset: 2px; }
.diag-error { color: #9b1c3a; font-weight: 700; }
.diag-note { font-size: 14.5px; color: var(--muted); }
.diag-result { display: grid; gap: 16px; background: var(--bg-alt); border-radius: 6px; padding: clamp(22px, 3vw, 36px); outline: none; }
.diag-main, .diag-stop { display: grid; gap: 14px; }
.diag-cta { display: grid; gap: 12px; }
.diag-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.diag-again { justify-self: start; font: inherit; font-weight: 700; color: var(--brand); background: none; border: 0; padding: 4px 0; text-decoration: underline; cursor: pointer; }

/* language switch: one label per language, the current one filled */
.lang-switch > a, .lang-switch > span { padding: 5px 9px; }
.lang-switch .lf, .lang-switch .ls { background: none !important; padding: 0 !important; color: inherit !important; }
.lang-switch .ls { display: none; }
.lang-switch > a { background: transparent; color: var(--muted); }
.lang-switch > span.is-current { background: var(--brand); color: var(--white); }
@media (max-width: 520px) {
  .lang-switch .lf { display: none; }
  .lang-switch .ls { display: inline; }
}

/* compact first screen: the next section's heading shows above the fold */
.home-hero-grid { padding-block: clamp(28px, 3.4vw, 52px) clamp(32px, 3.8vw, 56px); gap: 28px 56px; }
.hh-text { gap: 16px; }
.hh-slogan { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.12; }
.hh-text .lead { font-size: clamp(17px, 1.4vw, 19px); }
.hh-text .actions { margin-top: 2px; }
.hh-meta { padding-top: 14px; }
.hh-photo img { aspect-ratio: 4 / 3; }
.home-needs { padding-block: clamp(30px, 3.4vw, 44px) clamp(36px, 4vw, 52px); }
.home-needs h2 { margin-bottom: 14px; }
.home-hero-grid { padding-block: clamp(24px, 3vw, 44px) clamp(28px, 3.2vw, 48px); }
.hh-text .lead { max-width: 54ch; }
.hh-text .actions { align-items: center; row-gap: 14px; }
.hh-text .actions .hh-promise { margin-left: 0; }
@media (max-width: 560px) { .hh-text .actions .hh-promise { margin-left: 0; flex-basis: 100%; } }
.home-hero-grid { padding-bottom: clamp(24px, 2.6vw, 36px); }
.hh-meta { padding-top: 12px; }

/* figures under "El despacho" */
.figures { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 22px 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.figures li { display: grid; gap: 6px; align-content: start; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); }
.figures strong { font-family: var(--head); font-weight: 700; font-size: clamp(40px, 4vw, 56px); line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.figures span { color: var(--muted); font-size: 16.5px; max-width: 30ch; }

/* buttons: rounded, soft shadow, they light up on hover */
.btn, .menu > li.menu-cta > a { border-radius: 999px; }
.btn { padding: 13px 28px; transition: background-color .25s cubic-bezier(.22,.61,.36,1), color .25s cubic-bezier(.22,.61,.36,1), border-color .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s cubic-bezier(.22,.61,.36,1), transform .25s cubic-bezier(.22,.61,.36,1); }
.menu > li.menu-cta > a { transition: background-color .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s cubic-bezier(.22,.61,.36,1); }
.btn-brand, .menu > li.menu-cta > a { box-shadow: 0 6px 18px rgba(35, 26, 93, .20); }
.btn-white { box-shadow: 0 6px 18px rgba(10, 6, 40, .25); }
.btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .btn-brand:hover, .menu > li.menu-cta > a:hover { background: #3b2f86; color: var(--white); box-shadow: 0 10px 26px rgba(59, 47, 134, .38); }
  .btn-brand:hover, .btn-white:hover, .btn-outline:hover, .btn-outline-white:hover { transform: translateY(-1px); }
  .btn-outline:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
  .btn-white:hover { background: var(--white); color: var(--brand); box-shadow: 0 10px 28px rgba(255, 255, 255, .22); }
  .btn-outline-white:hover { background: rgba(255, 255, 255, .12); color: var(--white); border-color: var(--white); }
}
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active { transform: none !important; } }

/* pearl grey: a cool off-white instead of pure white */
:root { --bg-alt: #e7eaf0; --hero-bg: #eff1f5; }
.home-hero { background: var(--hero-bg); }
.hh-photo::before { background: #dde1ea; }

/* cards on the grey bands: off-white instead of pure white; they turn white on hover */
.need, .home-sectors a { background: #f7f8fb; border-color: #dfe3ea; }
.need:hover, .home-sectors a:hover { background: var(--white); }

/* news on the home page */
.section.news { background: var(--bg-alt); }
.news-cards { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.news .card { background: #f7f8fb; border-color: #dfe3ea; }
.news-more { margin-top: 26px; }

/* the "new" label: static, no blinking */
.new-badge { display: inline-flex; align-items: center; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--brand); color: var(--white);
  font: 700 11.5px/1.5 var(--body); letter-spacing: .03em; vertical-align: 2px; white-space: nowrap; }
.card-meta .new-badge { vertical-align: 1px; }
.menu a .new-badge { margin-left: 6px; font-size: 11px; padding: 0 7px; }

/* button text always centred, also when the button stretches to the full width of its box */
.btn { justify-content: center; text-align: center; }

/* tighter first screen: hero + "¿Qué necesita?" + the start of "Servicios" */
.home-hero-grid { padding-block: clamp(18px, 2.2vw, 32px) clamp(20px, 2.4vw, 32px); }
.hh-text { gap: 12px; }
.hh-kicker { font-size: 13px; }
.hh-slogan { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; }
.hh-text .lead { font-size: 17px; line-height: 1.55; max-width: 62ch; }
.hh-meta { padding-top: 10px; }
.hh-photo img { aspect-ratio: 16 / 10; }
.home-needs { padding-block: clamp(20px, 2.2vw, 30px) clamp(24px, 2.4vw, 32px); }
.home-needs h2 { font-size: clamp(22px, 2.1vw, 27px); margin-bottom: 12px; }
.needs-grid { gap: 8px; }
.need { padding: 11px 14px; font-size: 15.5px; }
.home-needs + .section { padding-top: clamp(36px, 3.4vw, 52px); }
@media (min-width: 900px) { .home-hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 24px 48px; } }
.hh-text .actions { flex-wrap: wrap; column-gap: 12px; }
.hh-text .actions .hh-promise { font-size: 15px; }
.need { padding: 10px 13px; font-size: 15px; gap: 8px; }
.home-needs + .section .home-head { margin-bottom: 28px; }

/* lighter hero buttons */
.hh-text .actions .btn { padding: 9px 20px; font-size: 15px; letter-spacing: .02em; border-width: 1.5px; }
.hh-text .actions .btn-brand { box-shadow: 0 4px 12px rgba(35, 26, 93, .16); }

/* hero without the descriptive paragraph: slogan, actions and contact, centred against the photo */
.home-hero-grid { align-items: center; }
.hh-text { gap: 18px; }
.hh-slogan { margin-bottom: 4px; }
.hh-slogan { font-size: clamp(30px, 3vw, 46px); }
.hh-slogan { text-wrap: balance; }

/* compact home sections below the fold: there is always a heading in view as you scroll */
.section { padding-block: clamp(40px, 4.2vw, 60px); }
.home-needs + .section { padding-top: clamp(32px, 3vw, 44px); }
.home-head { gap: 6px; margin-bottom: 22px; }
.home-head h2 { font-size: clamp(26px, 2.6vw, 36px); }
.hs-grid { gap: 16px; }
.hs-item { padding: 20px 22px 22px; gap: 8px; }
.hs-ico { width: 42px; height: 42px; }
.hs-ico .icon { width: 21px; height: 21px; }
.hs-item h3 { font-size: 21px; }
.hs-item p { font-size: 15.5px; line-height: 1.55; }
.how-steps { gap: 22px 40px; }
.how-n { width: 38px; height: 38px; font-size: 16px; margin-bottom: 2px; }
.how-steps h3 { font-size: 19px; }
.how-steps p { font-size: 15.5px; line-height: 1.55; }
.home-sectors { gap: 10px; }
.home-sectors a { padding: 13px 15px; gap: 12px; }
.home-sectors .icon { width: 22px; height: 22px; }
.home-sectors strong { font-size: 17px; }
.home-sectors small { font-size: 14.5px; }
.home-about { gap: 24px 64px; }
.ha-text { gap: 12px; }
.ha-text h2 { font-size: clamp(26px, 2.6vw, 36px); }
.ha-text p { font-size: 17px; }
.figures { margin-top: 30px; }
.figures strong { font-size: clamp(34px, 3.2vw, 46px); }
.news .card-img { aspect-ratio: 21 / 8; }
.news .card-body { padding: 16px 20px 18px; gap: 8px; }
.news .card h3 { font-size: 20px; }
.news .card p { font-size: 15.5px; }
.news-more { margin-top: 18px; }
.home-contact { padding-block: clamp(32px, 3.6vw, 52px) clamp(40px, 4.2vw, 60px); }
.hc-box { padding: clamp(22px, 2.8vw, 36px); }

/* the slogan band gets more room: bigger slogan and photo, more air; "Què necessita?" moves down */
.home-hero-grid { padding-block: clamp(36px, 4.6vw, 72px) clamp(40px, 4.8vw, 76px); gap: 28px 64px; }
@media (min-width: 900px) { .home-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.hh-text { gap: 24px; }
.hh-slogan { font-size: clamp(32px, 3.7vw, 56px); line-height: 1.08; margin-bottom: 6px; }
.hh-photo img { aspect-ratio: 4 / 3; }
.hh-slogan { font-size: clamp(32px, 3.3vw, 48px); }

/* addresses that open Google Maps */
a.map-addr { color: inherit; text-decoration: none; }
a.map-addr address { font-style: normal; }
a.map-addr:hover { text-decoration: underline; text-underline-offset: 3px; }
.ci a.map-addr { color: var(--ink); font-weight: 400; }
.ci a.map-addr:hover { color: var(--brand); }
.prose a.map-addr { color: var(--brand); }

/* colleges line in the footer */
.footer-cols { font-size: 14.5px; line-height: 1.55; color: #b9b4dc; padding-top: 12px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .12); max-width: 36ch; }
.footer-grid .footer-cols a { color: #e6e3f7; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(230, 227, 247, .45); }
.footer-grid .footer-cols a:hover { text-decoration-color: currentColor; }

/* labour panel: example pages */
.panel-intro { max-width: 80ch; }
.panel-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.panel-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid #d6d9e2; background: #f7f8fb; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: background-color .2s, border-color .2s, color .2s; }
.panel-tabs a:hover { border-color: var(--brand); color: var(--brand); }
.panel-tabs a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.panel-wrap { border-radius: 10px; overflow: hidden; border: 1px solid #dfe3ea; background: #f4f5f8; }
.panel-frame { display: block; width: 100%; height: 1040px; border: 0; }
.panel-note { margin-top: 14px; font-size: 14.5px; color: var(--muted); max-width: 80ch; }
.prose .panel-box h2 { margin-top: 0; }
/* labour panel: home band */
.ph-grid { display: grid; gap: 26px 56px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .ph-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.ph-text { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.ph-text h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 400; }
.ph-text p { color: var(--muted); font-size: 17px; max-width: 48ch; }
.ph-text .btn { margin-top: 4px; }
.ph-img { display: block; border-radius: 10px; overflow: hidden; border: 1px solid #dfe3ea; box-shadow: 0 14px 34px rgba(22, 15, 64, .10); transition: box-shadow .25s ease, transform .25s ease; }
.ph-img img { width: 100%; height: auto; }
@media (hover: hover) and (pointer: fine) { .ph-img:hover { box-shadow: 0 18px 40px rgba(22, 15, 64, .16); transform: translateY(-2px); } }


/* ================= v5 · hybrid =================
   v3 exactly as it is (structure, text, inner-page banners with the full-width photo and the
   indigo filter, closing bands), with the warm neutrals and the ochre detail of v4. */
:root {
  --bg: #fcfbf8;
  --bg-alt: #efe9df;      /* sand */
  --hero-bg: #f5f1ea;     /* stone */
  --brand-soft: #efe7d8;
  --line: #e4ddd0;
  --ink: #2a2622;
  --muted: #6b6259;
  --ochre: #b8862b;       /* decoration */
  --ochre-text: #84600f;  /* text-size ochre, readable on stone and sand */
  --card: #fffdf9;
}
body { background: var(--bg); color: var(--ink); }
.site-header { background: #fffdf9; }
body::before { background: #fffdf9; }
.preview-note { background: #f3ead6; color: #6a5520; }

/* accents */
.eyebrow, .hh-kicker { color: var(--ochre-text); }
.how .eyebrow { color: #e4c27a; }
.how-n { border-color: var(--ochre); color: #f3dfb0; }
.figures li { border-left-color: var(--ochre); }
.hh-promise .icon, .hh-meta .icon { color: var(--ochre-text); }
.prose ul li::before { background: #f1e6cf; }
.prose ul li::after { border-color: var(--ochre-text); }
.member ul li::before { background: var(--ochre); }
.new-badge { background: var(--ochre-text); }

/* cards on warm grounds */
.need, .home-sectors a, .hs-item, .news .card, .card, .sector-card, .box, .member, .form, .related-list a { background: var(--card); border-color: #e6dfd2; }
.need:hover, .home-sectors a:hover { background: #fff; }
.hs-ico, .sc-ico, .box-icon { background: #f1e8d6; }
.panel-tabs a { background: var(--card); border-color: #e2dacb; }
.panel-wrap, .ph-img { border-color: #e6dfd2; }
.aside-box { background: var(--bg-alt); }
.aside-box ul a { background: var(--card); }
.hh-photo::before { background: #e6dccb; }
.highlight { background: #f3ecdf; }
.field input, .field select, .field textarea { background: #fbf8f2; border-color: #d9d0bf; }

.ha-text .eyebrow, .ph-text .eyebrow { color: var(--ochre-text); }
.ha-text p:not(.eyebrow) { color: #4a443e; }
.prose .eyebrow { color: var(--ochre-text); }
.prose p:not(.eyebrow) { color: #3d3833; }

/* v6: keep faces in frame on the new photos */
[data-page="es-areas-de-actuacion-residencias"] .banner, [data-page="arees-dactuacio-residencies"] .banner { background-position: center 28%; }
[data-page="es-areas-de-actuacion-particulares"] .banner, [data-page="arees-dactuacio-particulars"] .banner { background-position: center 28%; }
[data-page="es-areas-de-actuacion-empresas-y-pymes"] .banner, [data-page="arees-dactuacio-empreses-i-pimes"] .banner { background-position: center 12%; }
[data-page="es-areas-de-actuacion-inmobiliario"] .banner, [data-page="arees-dactuacio-immobiliari"] .banner { background-position: center 12%; }
[data-page="es-areas-de-actuacion-startups"] .banner, [data-page="arees-dactuacio-startups"] .banner { background-position: center 10%; }
[data-page="es-areas-de-actuacion-comercio-alimentacion"] .banner, [data-page="arees-dactuacio-comerc-alimentacio"] .banner { background-position: center 10%; }
[data-page="es-panel-laboral-residencias"] .banner, [data-page="panell-laboral-residencies"] .banner { background-position: center 28%; }

/* v6: four more sectors; a closing tile keeps the sector grids even (14 items on two columns, 13 + 2 on three) */
.home-sectors li.hs-more a, .sector-card.sc-more { background: var(--brand-soft); border-style: dashed; }
@media (min-width: 960px) { .home-sectors li.hs-more, .sector-grid .sc-more { grid-column: span 2; } }

@media (max-width: 999px) {
  .lang-switch > a, .lang-switch > span { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 40px; }
  .menu-toggle { min-height: 40px; min-width: 44px; justify-content: center; }
}
@media (max-width: 640px) {
  .footer-bottom a, .site-footer a[href*="google.com/maps"]:not(.map-addr) { display: inline-block; padding-block: 9px; }
}

.banner::before { background: linear-gradient(90deg, rgba(35,26,93,.88) 0%, rgba(35,26,93,.78) calc(50% - 120px), rgba(35,26,93,.22) calc(50% + 110px), rgba(35,26,93,0) calc(50% + 320px)); }
.banner h1, .banner .lead { text-shadow: 0 1px 14px rgba(20,14,60,.35); }
@media (max-width: 699px) { .banner::before { background: linear-gradient(90deg, rgba(35,26,93,.86) 0%, rgba(35,26,93,.52) 100%); } }

/* ===================== v7: portada ancha compacta (2/11/2026) ===================== */
/* solo en ordenador; en el móvil y la tablet la web es la misma que la v6 */
@media (min-width: 1100px) {
  :root { --wrap: min(1320px, 94vw); }
  .header-inner { min-height: 98px; gap: 12px 28px; }
  .brand { margin-right: 0; }
  .brand img { height: 60px; }
  .site-nav { flex: 1 1 auto; display: flex; justify-content: center; }
  .menu { gap: 10px; }
  .menu > li > a { font-size: 18.5px; padding: 12px 14px; }
  .menu > li.menu-cta > a { padding: 12px 24px; }
  .hh-kicker { font-size: 14px; }
  /* páginas interiores: con el contenedor más ancho, la columna lateral crece para no dejar un hueco en medio */
  .layout.with-aside { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px 72px; }
  .prose { max-width: 76ch; }

  /* portada: misma composición que la v6, más ancha y compacta */
  .home-hero-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 32px 80px;
    /* la altura se adapta al alto de la pantalla: así debajo de «¿Qué necesita?» asoma siempre «Servicios» */
    padding-block: clamp(20px, calc(50vh - 430px), 44px) clamp(20px, calc(50vh - 430px), 40px); }
  .hh-slogan { font-size: clamp(38px, min(3.9vw, 6.4vh), 60px); text-wrap: balance; }
  .hh-text { gap: clamp(10px, 2vh, 18px); }
  .hh-photo img { aspect-ratio: auto; height: clamp(250px, calc(100vh - 500px), 390px); }
  .home-needs { padding-block: 22px 24px; }
  .home-needs h2 { margin-bottom: 10px; }
  .home-needs + .section { padding-top: 30px; }
  .home-needs + .section .home-head { margin-bottom: 22px; }
}
/* entre 1100 y 1239 px el menú grande no cabe en una línea: un punto menos */
@media (min-width: 1100px) and (max-width: 1239px) {
  .brand img { height: 54px; }
  .menu { gap: 2px; }
  .menu > li > a { font-size: 17px; padding: 12px 10px; }
  .menu > li.menu-cta > a { padding: 12px 18px; }
}
/* pantallas muy bajas (portátil pequeño): no cabe todo, y es mejor que el corte caiga en mitad de
   «¿Qué necesita?», que también invita a bajar, que en el hueco vacío entre secciones */
@media (min-width: 1100px) and (max-height: 699px) {
  .home-hero-grid { padding-block: 44px 40px; }
  .hh-photo img { height: 390px; }
  .hh-slogan { font-size: clamp(46px, 3.9vw, 60px); }
  .hh-text { gap: 18px; }
}
/* foto de la portada: la entrada con el rótulo; el encuadre deja el logo en el centro */
.hh-photo img { object-position: 47% center; }

/* ===================== v7: preguntas frecuentes (enfoque Llamazares, 20/11/2026) ===================== */
/* desplegables sin animación: solo cambia el signo + / − */
.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 2px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.faq-list summary:hover h3 { color: var(--brand); }
.faq-list summary::after { content: "+"; flex: 0 0 auto; font-size: 24px; line-height: 1; color: var(--brand); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.faq-list details > p { margin: 0 0 18px; max-width: 68ch; }
.prose .faq { display: grid; gap: 14px; margin-top: 18px; }
.prose .faq h2 { margin-top: 0; }
.updated { margin: 0; font-size: 14px; color: var(--muted); }
.prose .updated { margin-top: 4px; }
.faq-home .faq-list, .faq-home .updated { max-width: 920px; }
.faq-home .updated { margin-top: 18px; }
