/* =========================================================================
   Ximénez Legal · hoja de estilos pública
   Tokens del sistema de diseño (Figma “Ximenez_v4 / 2. Design System”).
   Móvil 320–767 · Tableta 768–1023 · Escritorio ≥1024 (referencia 1440)
   ========================================================================= */

@font-face { font-family: "Work Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/work-sans-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/work-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/work-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/work-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 200; font-style: normal; font-display: swap; src: url(../fonts/montserrat-latin-200-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/montserrat-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/poppins-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/poppins-latin-700-normal.woff2) format("woff2"); }

:root {
  /* Color · primitivas y semánticos */
  --c-primary: #2d393c;          /* Primary/500 · Slate/800 */
  --c-accent: #92aebb;           /* Primary/300 · Slate/300 */
  --c-bg: #fff;
  --c-bg-subtle: #f7f7f7;
  --c-heading: #000;
  --c-text: #4e4e4e;
  --c-text-2: #707070;
  --c-inverse: #fff;
  --c-border-strong: #464646;
  --c-border-input: rgba(70, 70, 70, .1);
  --c-border-button: rgba(0, 0, 0, .3);
  --c-focus: #5897fb;
  --c-error: #b42318;
  --c-ok: #1e6b45;
  --overlay-card: rgba(0, 0, 0, .6);

  --f-head: "Work Sans", system-ui, sans-serif;
  --f-body: "Montserrat", system-ui, sans-serif;
  --f-alt: "Poppins", var(--f-body);

  --gutter: 24px;
  --section-y: 64px;
  --small-max: 570px;
  --t-fast: 160ms ease-out;
  --t-nav: 180ms ease-out;
  --t-card: 200ms ease-out;

  /* Unidad de escritorio: 1px del diseño a 1440, congelada a partir de 1600 */
  --u: min(calc(100vw / 1440), 1.111px);
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1024px) { :root { --gutter: calc(80 * var(--u)); --section-y: calc(67 * var(--u)); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: 400 15px/24px var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg { display: block; max-width: 100%; }
picture { width: 100%; height: 100%; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: var(--c-primary); padding: 12px 16px; font-weight: 600; transition: top var(--t-fast); }
.skip-link:focus { top: 16px; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }

/* Tipografía de sistema */
.h2 { font: 400 28px/34px var(--f-head); color: var(--c-heading); }
.h3 { font: 400 20px/28px var(--f-head); color: var(--c-heading); }
.lead { font: 400 20px/28px var(--f-head); color: var(--c-text); }
.prose { font: 400 15px/24px var(--f-body); color: var(--c-text); }
.prose > * + * { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--c-primary); text-underline-offset: 2px; }
.prose h3, .prose h4 { font: 400 18px/1.3 var(--f-head); color: var(--c-heading); }
.prose--note { font-size: 13px; line-height: 20px; }
@media (min-width: 1024px) {
  .h2 { font-size: calc(52.5 * var(--u)); line-height: 1.1; text-transform: uppercase; }
  .h3 { font-size: calc(28.5 * var(--u)); line-height: 1.25; text-transform: uppercase; }
  .lead { font-size: max(20px, calc(28 * var(--u))); line-height: 1.43; }
  .prose--small { font-size: 12px; line-height: 28px; }
  .prose--small > * + * { margin-top: 28px; }
  .prose--note { font: 500 12px/1.25 var(--f-body); }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; width: min(100%, 315px); padding: 14px; border: 0; border-top: 1px solid var(--c-border-button); border-bottom: 1px solid var(--c-border-button); background: transparent; color: var(--c-text); font: 700 12px/1.5 var(--f-body); text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast); }
.btn img { width: 8px; height: 13px; flex: none; }
.btn:hover { background: rgba(45, 57, 60, .05); border-color: var(--c-primary); }
.btn:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.btn--block { width: 100%; }
.btn--small { min-height: 44px; width: auto; }
.btn--light { width: 240px; min-height: 48px; padding: 6px 14px; color: #fff; font-weight: 300; border-color: #fff; }
.btn--light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn[disabled] { opacity: .5; cursor: progress; }

/* ---------- Cabecera ---------- */
.site-header { background: var(--c-primary); color: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 104px; padding: 16px var(--gutter); }
.nav { display: flex; align-items: center; }
.nav__logo { display: block; flex: none; }
.nav__logo img { width: 34px; height: 48px; }
.nav__list, .nav__contact { display: none; }
.nav__link { color: #fff; text-decoration: none; font: 500 16px/1.25 var(--f-body); transition: opacity var(--t-fast); }
.burger { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
@media (min-width: 1024px) {
  .site-header__inner { height: auto; padding: calc(64 * var(--u)) var(--gutter) calc(40 * var(--u)); }
  .nav { gap: calc(80 * var(--u)); }
  .nav__logo img { width: 48px; height: 68px; }
  .nav__list { display: flex; gap: calc(80 * var(--u)); list-style: none; margin: 0; padding: 0; }
  .nav__contact { display: inline-block; }
  .nav__link { font-size: max(15px, calc(16 * var(--u))); }
  .nav__list:hover .nav__link:not(:hover), .nav__list:focus-within .nav__link:not(:focus) { opacity: .6; }
  .nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
  .burger { display: none; }
}

/* Menú móvil a pantalla completa */
.mobile-menu { position: fixed; inset: 0; z-index: 50; background: var(--c-primary); color: #fff; padding: 0 var(--gutter) 48px; overflow-y: auto; opacity: 0; transition: opacity var(--t-nav); }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 104px; }
.mobile-menu__close { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -14px; background: none; border: 0; color: var(--c-accent); cursor: pointer; }
.mobile-menu__list { list-style: none; margin: 56px 0 32px; padding: 0; }
.mobile-menu__list a { display: flex; align-items: center; min-height: 72px; color: #fff; text-decoration: none; font: 400 28px/40px var(--f-head); }
.mobile-menu__list a[aria-current="page"] { color: var(--c-accent); }
.mobile-menu__meta { color: var(--c-accent); font-size: 13px; line-height: 20px; }
.mobile-menu__mail { display: inline-block; margin-top: 24px; color: #fff; font-size: 13px; text-decoration: none; }
body.menu-open { overflow: hidden; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------- Héroes ---------- */
.hero { background: var(--c-primary); color: var(--c-accent); padding: 24px var(--gutter) 48px; }
.hero__title { font: 300 40px/44px var(--f-head); }
.hero__line { display: block; }
.hl { color: #fff; }
@media (max-width: 1023px) {
  .hero--home .hero__line--tail { display: inline; color: #fff; }
  .hero--home .hero__line--tail-first::before { content: ""; display: block; height: 24px; }
  .hero--home .hero__line--tail + .hero__line--tail::before { content: " "; }
}
.rotator { display: inline-grid; color: #fff; vertical-align: top; }
.rotator__word { grid-area: 1 / 1; opacity: 0; transform: translateY(.18em); transition: opacity 400ms ease-out, transform 400ms ease-out; white-space: nowrap; }
.rotator__word.is-active { opacity: 1; transform: none; }
@media (min-width: 768px) {
  .hero { padding: 48px var(--gutter) 72px; }
  .hero__title { font-size: 54px; line-height: 60px; }
}
@media (min-width: 1024px) {
  .hero { padding: calc(60 * var(--u)) calc(75 * var(--u)) calc(80 * var(--u)); }
  .hero__title { font-size: calc(102 * var(--u)); line-height: 1.4; letter-spacing: -.03em; }
  .hero__line + .hero__line { margin-top: calc(16 * var(--u)); }
  .hero--home { padding-bottom: calc(107 * var(--u)); }
  .tpl-contacto .hero--page { padding-left: calc(90 * var(--u)); }
}

/* Héroe con retrato o imagen (perfiles y áreas) */
.hero--media { position: relative; display: flex; flex-direction: column-reverse; gap: 24px; padding-bottom: 48px; }
.hero-media__title { font: 300 40px/60px var(--f-head); }
.hero-media__l1, .hero-media__l2 { display: block; }
.hero-media__l1 { color: var(--c-accent); }
.hero-media__l2 { color: #fff; }
.hero-media__image { aspect-ratio: 342 / 264; overflow: hidden; background: #3a474a; }
.tpl-lawyer .hero-media__image { aspect-ratio: 285 / 380; max-width: 420px; }
@media (min-width: 1024px) {
  .hero--media { display: block; height: calc(507 * var(--u)); padding: 0; overflow: hidden; }
  .hero-media__image, .tpl-lawyer .hero-media__image { position: absolute; left: 50%; top: 0; width: calc(285 * var(--u)); height: calc(427 * var(--u)); max-width: none; aspect-ratio: auto; transform: translateX(-50%); }
  .hero-media__title { position: absolute; inset: 0; font-size: calc(102 * var(--u)); line-height: 1.4; letter-spacing: -.03em; pointer-events: none; }
  .hero-media__l1, .hero-media__l2 { position: absolute; white-space: nowrap; }
  .hero-media__l1 { left: calc(427 * var(--u)); top: calc(58 * var(--u)); }
  .hero-media__l2 { left: calc(726 * var(--u)); top: calc(227 * var(--u)); }
  .tpl-area .hero-media__l1 { top: calc(36 * var(--u)); }
  .tpl-area .hero-media__l2 { top: calc(205 * var(--u)); }
  .hero--long .hero-media__l2 { left: calc(468 * var(--u)); }
}

/* ---------- Visión ---------- */
.vision { padding: var(--section-y) var(--gutter); background: var(--c-bg-subtle); }
.vision--default { background: var(--c-bg); }
.vision--brand { background: var(--c-primary); }
.vision--brand .h2, .vision--brand .prose { color: #fff; }
.vision__content { display: flex; flex-direction: column; gap: 24px; }
.vision__images { display: flex; gap: 16px; }
.vision__img { flex: 1; height: 220px; overflow: hidden; }
.vision__cols { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 768px) {
  .vision__img { height: 320px; }
  .vision__cols { flex-direction: row; gap: 30px; }
  .vision__cols > * { flex: 1; }
}
@media (min-width: 1024px) {
  .vision { position: relative; min-height: calc(1081 * var(--u)); padding: calc(202 * var(--u)) 0 calc(160 * var(--u)); overflow: hidden; }
  .vision__content { width: calc(690 * var(--u)); margin-left: calc(375 * var(--u)); gap: 30px; }
  .vision__images { display: contents; }
  .vision__img { position: absolute; width: calc(255 * var(--u)); height: calc(383 * var(--u)); }
  .vision__img--left { left: 0; top: calc(537 * var(--u)); }
  .vision__img--right { right: 0; top: calc(75 * var(--u)); }
  .vision__cols { gap: 30px; }
  .vision .prose--small { color: #000; }
  .vision__title, .competences__title, .ti .h2, .experts__title { white-space: nowrap; }
}

/* ---------- Competencias / accesos ---------- */
.competences { display: flex; flex-direction: column; gap: 24px; padding: var(--section-y) var(--gutter); }
.competences__intro { max-width: 787px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 56px 16px; list-style: none; margin: 0; padding: 0; }
.card__link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--c-heading); }
.card__image { display: block; height: 196px; overflow: hidden; background: #ddd; }
.card__image img { transition: transform var(--t-card); }
.card__body { display: flex; flex-direction: column; gap: 4px; }
.card__title { font: 400 20px/28px var(--f-head); }
.card__desc { font-size: 13px; line-height: 20px; color: var(--c-text); }
@media (min-width: 480px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; } .card__image { height: auto; aspect-ratio: 163 / 196; } }
@media (min-width: 768px) { .card__image { aspect-ratio: 354 / 257; } .competences { gap: 32px; } }
@media (min-width: 1024px) {
  .competences { align-items: center; gap: calc(67 * var(--u)); padding: calc(67 * var(--u)) var(--gutter); }
  .competences__title { width: calc(690 * var(--u)); }
  .competences__intro { width: calc(787 * var(--u)); max-width: none; text-align: center; color: var(--c-text); }
  .cards { grid-template-columns: repeat(2, calc(354 * var(--u))); justify-content: center; gap: 16px; }
  .card__link { position: relative; display: block; overflow: hidden; color: #fff; }
  .card__image { height: calc(257 * var(--u)); aspect-ratio: auto; }
  .card__image::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .18); }
  .card__body { position: absolute; inset: 0; justify-content: center; align-items: center; padding: 16px; text-align: center; }
  .card__title { font: 600 max(16px, calc(18.5 * var(--u)))/1.25 var(--f-head); text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
  .card__desc { color: #fff; font-size: 12px; max-width: 28ch; }
  .card__link:hover img { transform: scale(1.02); }
  .card__link:focus-visible { outline-offset: 4px; }
}

/* ---------- Texto + imagen (Bufete) ---------- */
.ti { display: flex; flex-direction: column; gap: 24px; padding: var(--section-y) var(--gutter) 0; }
.ti:last-of-type { padding-bottom: var(--section-y); }
.ti__image { height: 264px; overflow: hidden; }
.ti__content { display: flex; flex-direction: column; gap: 16px; }
.ti__content .btn { margin-top: 8px; }
@media (min-width: 768px) { .ti__image { height: 420px; } }
@media (min-width: 1024px) {
  .ti { position: relative; display: block; padding: 0; }
  .ti__content { position: relative; z-index: 1; gap: 0; }
  .ti__text { padding-top: 15px; columns: 2 calc(322 * var(--u)); column-gap: 45px; width: calc(690 * var(--u)); }
  .ti__content .btn { margin-top: 30px; }
  .ti--img-left-tall { min-height: calc(562 * var(--u)); }
  .ti--img-left-tall .ti__image { position: absolute; left: 0; top: calc(52 * var(--u)); width: calc(315 * var(--u)); height: calc(510 * var(--u)); }
  .ti--img-left-tall .ti__content { margin-left: calc(450 * var(--u)); padding-top: calc(82 * var(--u)); }
  .ti--img-right { min-height: calc(424 * var(--u)); }
  .ti--img-right .ti__image { position: absolute; left: calc(821 * var(--u)); top: 0; width: calc(268 * var(--u)); height: calc(393 * var(--u)); }
  .ti--img-right .ti__content { margin-left: calc(83 * var(--u)); padding-top: calc(75 * var(--u)); }
  .ti--img-left-wide { min-height: calc(667 * var(--u)); }
  .ti--img-left-wide .ti__image { position: absolute; left: calc(165 * var(--u)); top: calc(82 * var(--u)); width: calc(510 * var(--u)); height: calc(420 * var(--u)); }
  .ti--img-left-wide .ti__content { margin-left: calc(817 * var(--u)); padding-top: calc(52 * var(--u)); padding-bottom: calc(80 * var(--u)); }
  .ti--img-left-wide .ti__text { columns: 1; width: calc(330 * var(--u)); }
  .ti:last-of-type { padding-bottom: 0; }
}

/* ---------- Abogados ---------- */
.experts { padding: var(--section-y) var(--gutter); }
.experts__title { margin-bottom: 32px; }
.experts__list { display: grid; grid-template-columns: 1fr; gap: 48px 16px; list-style: none; margin: 0; padding: 0; }
.expert { display: flex; flex-direction: column; gap: 16px; }
.expert__card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.expert__photo { display: block; aspect-ratio: 186 / 279; overflow: hidden; background: #e6e6e6; }
.expert__photo img { transition: transform var(--t-card); object-position: 50% 20%; }
.expert__card:hover img { transform: scale(1.02); }
.expert__name { font: 600 15px/1.5 var(--f-body); color: var(--c-heading); }
.expert__role { font: 500 13px/1.25 var(--f-body); color: var(--c-text); }
@media (min-width: 768px) { .experts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .experts { padding: calc(67 * var(--u)) var(--gutter); }
  .experts__title { padding-top: 40px; margin-bottom: 30px; }
  .experts__list { grid-template-columns: repeat(auto-fill, max(186px, calc(186 * var(--u)))); padding-bottom: 48px; }
  .expert__name, .expert__role { font-size: 12px; }
}

/* ---------- Perfil ---------- */
.expert-profile { background: var(--c-bg-subtle); padding: var(--section-y) var(--gutter); }
.container-small { max-width: var(--small-max); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.expert-profile__links { display: flex; gap: 24px; list-style: none; padding: 16px 0 0; margin: 0; font: 500 13px/1.5 var(--f-body); }
@media (min-width: 1024px) {
  .expert-profile { padding: calc(64 * var(--u)) var(--gutter) calc(96 * var(--u)); }
  .container-small { width: calc(570 * var(--u)); max-width: none; min-width: 520px; }
}

/* ---------- Área de práctica ---------- */
.area { padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; gap: 56px; }
.area .container-small { width: 100%; }
.accordions { margin-top: 8px; }
.accordion { border-bottom: 1px solid var(--c-border-strong); }
.accordion__trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0 20px; background: none; border: 0; text-align: left; cursor: pointer; font: 400 20px/28px var(--f-head); color: var(--c-heading); min-height: 48px; }
.accordion__icon { width: 8px; height: 13px; flex: none; transform: rotate(90deg); transition: transform 200ms ease-out; }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(-90deg); }
.accordion__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 200ms ease-out, opacity 200ms ease-out; }
.accordion__panel.is-collapsed { grid-template-rows: 0fr; opacity: 0; }
.accordion__panel[hidden] { display: none; }
.accordion__inner { overflow: hidden; }
.accordion__inner > :last-child { margin-bottom: 24px; }
.area__cta { margin-top: 32px; }
@media (min-width: 1024px) {
  .area { align-items: center; gap: 48px; padding: calc(67 * var(--u)) var(--gutter); }
  .area .container-small { width: calc(570 * var(--u)); }
  .accordion__trigger { padding: 13px 0 27px; font-size: 18px; line-height: 1.25; color: var(--c-text); }
  .area__funnels { width: 100%; }
}

/* ---------- Contenido legal / genérico ---------- */
.content-small { padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; gap: 32px; }
.content-small__section { max-width: var(--small-max); width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) {
  .content-small { padding: calc(48 * var(--u)) var(--gutter) calc(96 * var(--u)); gap: calc(40 * var(--u)); }
  .content-small__section { width: calc(570 * var(--u)); min-width: 520px; max-width: none; gap: 12px; }
  .content-small .h3 { text-transform: uppercase; }
}

/* ---------- Contacto ---------- */
.contact { padding: var(--section-y) var(--gutter); }
.contact__title { margin-bottom: 24px; }
.contact__intro { margin-bottom: 24px; }
.form { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.field { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; }
.field__label { font: 400 13px/20px var(--f-body); color: var(--c-text); }
.field__input { width: 100%; min-height: 48px; padding: 9px 8px; border: 0; border-bottom: 1px solid var(--c-border-input); border-radius: 0; background: transparent; color: var(--c-heading); font: 400 18px/1.25 var(--f-head); transition: border-color var(--t-fast); -webkit-appearance: none; appearance: none; }
.field__input:hover { border-bottom-color: rgba(70, 70, 70, .5); }
.field__input:focus { outline: none; border-bottom: 1px solid var(--c-focus); box-shadow: 0 1px 0 var(--c-focus); }
.field__input[aria-invalid="true"] { border-bottom-color: var(--c-error); }
.field__textarea { min-height: 128px; resize: vertical; }
.field__select { position: relative; }
.field__select::after { content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--c-text); border-bottom: 1.5px solid var(--c-text); transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.field__select select { padding-right: 36px; cursor: pointer; }
.field__error { color: var(--c-error); font: 500 13px/1.35 var(--f-body); }
.check { display: flex; gap: 12px; align-items: flex-start; font: 400 13px/20px var(--f-body); color: var(--c-text); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--c-primary); }
.check a, .field__hint a { color: var(--c-primary); }
.field__hint { margin-left: 32px; font: 400 13px/20px var(--f-body); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__footer { flex: 1 1 100%; display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.form__note { font: 400 13px/20px var(--f-body); color: var(--c-heading); }
.form__privacy { color: var(--c-heading); }
.notice { padding: 16px 20px; margin-bottom: 24px; font: 500 14px/1.5 var(--f-body); border-left: 3px solid; }
.notice--ok { background: #eef6f1; border-color: var(--c-ok); color: var(--c-ok); }
.notice--error { background: #fdf0ef; border-color: var(--c-error); color: var(--c-error); }
.form-status:focus { outline: none; }
@media (min-width: 768px) { .field--half { flex: 1 1 calc(50% - 16px); } }
@media (min-width: 1024px) {
  .contact { padding: calc(67 * var(--u)) var(--gutter); }
  .contact__title { margin-bottom: calc(67 * var(--u)); }
  .contact__wrap { width: min(100%, calc(921 * var(--u))); min-width: 760px; margin: 0 auto; }
  .form__note { font: 500 12px/1.25 var(--f-body); }
}

/* ---------- Banner de oficinas ---------- */
.offices { position: relative; overflow: hidden; background: var(--offices-bg, var(--c-primary)); color: #fff; padding: 64px var(--gutter); display: flex; flex-direction: column; gap: 32px; }
.offices__bg { position: absolute; inset: 0; opacity: .15; }
.offices__bg img { transform: scale(1.05); }
.offices__title { position: relative; font: 400 28px/34px var(--f-head); color: var(--c-accent); }
.offices__intro { position: relative; max-width: 560px; font-size: 15px; color: #fff; }
.offices__list { position: relative; display: flex; flex-direction: column; gap: 32px; }
.office { display: flex; flex-direction: column; gap: 16px; }
.office__image { height: 240px; overflow: hidden; }
.office__content { display: flex; flex-direction: column; gap: 16px; }
.office__city { font: 400 22px/28px var(--f-head); }
.office__address { font: 400 13px/20px var(--f-body); }
.office__cords { margin: 0; display: flex; flex-direction: column; gap: 4px; font: 400 13px/20px var(--f-body); }
.office__cords div { display: flex; }
.office__cords dt { display: none; }
.office__cords a { color: #fff; text-decoration: none; }
.office__cords a:hover { text-decoration: underline; }
.office .btn--light { margin-top: 16px; }
@media (min-width: 768px) {
  .offices__list { flex-direction: row; flex-wrap: wrap; gap: 32px; }
  .office { flex: 1 1 calc(50% - 16px); }
}
@media (min-width: 1024px) {
  .offices { padding: calc(96 * var(--u)) var(--gutter) calc(184 * var(--u)); gap: 0; align-items: center; }
  .offices__title { font-size: calc(52.5 * var(--u)); line-height: 1.1; text-transform: uppercase; text-align: center; }
  .offices__intro { text-align: center; margin-top: 24px; font-size: 12px; line-height: 28px; }
  .offices__list { flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: calc(132 * var(--u)); margin-top: calc(84 * var(--u)); }
  .office { position: relative; flex: none; width: calc(292 * var(--u)); min-width: 230px; height: calc(459 * var(--u)); min-height: 360px; }
  .office:nth-child(even) { margin-top: calc(67 * var(--u)); }
  .office__image { position: absolute; inset: 0; height: auto; }
  .office__image img { transform: scale(1.3); }
  .office__image::after { content: ""; position: absolute; inset: 0; background: var(--overlay-card); }
  .office__content { position: absolute; left: -38px; bottom: 52px; gap: 0; z-index: 1; }
  .office__city { font-size: 20px; text-transform: lowercase; }
  .office__address { padding: 24px 0; font: 300 12px/28px var(--f-alt); }
  .office__cords { padding-bottom: 28px; font: 500 12px/1.25 var(--f-body); }
  .office__cords dt { display: block; width: 40px; }
  .office .btn--light { margin-top: 0; }
}

/* ---------- Banner CTA ---------- */
.cta-banner { background: var(--cta-bg, var(--c-primary)); color: #fff; padding: 64px var(--gutter); }
.cta-banner__inner { display: flex; flex-direction: column; gap: 32px; }
.cta-banner__title { font: 300 34px/40px var(--f-head); color: var(--c-accent); }
.cta-banner__text { font-size: 15px; margin-top: 16px; }
.cta-banner .btn--light { margin-top: 24px; }
.cta-banner__image { height: 260px; overflow: hidden; }
@media (min-width: 1024px) {
  .cta-banner { padding: calc(96 * var(--u)) var(--gutter); }
  .cta-banner__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 80px; }
  .cta-banner__title { font-size: calc(60 * var(--u)); line-height: 1.2; }
  .cta-banner__image { width: 40%; height: calc(420 * var(--u)); }
}

/* ---------- Pie ---------- */
.site-footer { background: #fff; padding: 48px var(--gutter); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 476px; margin: 0 auto; }
.site-footer__brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; }
.site-footer__logo { width: 64px; height: auto; margin-bottom: 12px; }
.site-footer__name { font: 700 28px/34px var(--f-head); color: var(--c-primary); }
.site-footer__tag { font: 300 27px/1.4 var(--f-head); color: var(--c-accent); letter-spacing: -.03em; }
.btn--footer { width: 100%; max-width: none; }
.site-footer__social { display: flex; gap: 16px; list-style: none; margin: 16px 0 0; padding: 0; }
.site-footer__social a { display: grid; place-items: center; width: 48px; height: 48px; }
.site-footer__social img { width: 18px; height: 20px; }
.site-footer__legal { display: flex; flex-direction: column; align-items: center; list-style: none; margin: 0; padding: 0; width: 100%; }
.site-footer__legal li { width: 100%; text-align: center; }
.site-footer__legal a, .site-footer__legal button { display: block; width: 100%; padding: 14px 0; font: 400 13px/20px var(--f-body); color: var(--c-text); text-decoration: none; }
.site-footer__legal a:hover, .site-footer__legal button:hover { text-decoration: underline; }
.site-footer__copy { order: 10; padding-top: 8px; font: 400 13px/20px var(--f-body); }
.site-footer__note { font-size: 12px; text-align: center; color: var(--c-text-2); }
@media (min-width: 1024px) {
  .site-footer { padding: 0 var(--gutter); }
  .site-footer__inner { max-width: none; gap: 0; }
  .site-footer__brand { margin: 0 0 60px; }
  .site-footer { padding-top: calc(84 * var(--u)); }
  .site-footer__logo { width: calc(113 * var(--u)); min-width: 90px; margin-bottom: calc(32 * var(--u)); }
  .site-footer__name { font-size: 40px; line-height: 44px; }
  .site-footer__tag { font-size: 36px; }
  .btn--footer { width: 476px; min-height: 0; padding: 6px 14px; border-color: var(--c-primary); color: #000; font: 700 18px/1.5 var(--f-alt); }
  .site-footer__social { margin: 0; padding: 75px 0 60px; }
  .site-footer__legal { flex-direction: row; justify-content: center; gap: 22px; padding-bottom: 22px; width: auto; }
  .site-footer__legal li { width: auto; }
  .site-footer__legal li + li::before { content: "—"; margin-right: 22px; color: var(--c-primary); font: 500 9px/16px var(--f-body); }
  .site-footer__legal li { display: flex; align-items: center; }
  .site-footer__legal a, .site-footer__legal button, .site-footer__copy { display: inline; padding: 0; width: auto; font: 500 9px/16px var(--f-body); color: var(--c-primary); }
  .site-footer__legal a, .site-footer__legal button { min-height: 24px; display: inline-flex; align-items: center; }
  .site-footer__copy { order: 0; }
}

/* ---------- Diálogo de cookies ---------- */
.cookie-dialog { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; padding: 16px; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity var(--t-nav); }
.cookie-dialog.is-open { opacity: 1; }
.cookie-dialog[hidden] { display: none; }
.cookie-dialog__panel { width: min(100%, 520px); background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 16px; font-size: 14px; line-height: 1.5; }
.cookie-dialog__title { font: 400 22px/28px var(--f-head); color: var(--c-heading); }
.cookie-dialog__form { display: flex; flex-direction: column; gap: 12px; }
.cookie-dialog__actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.cookie-dialog__more a { color: var(--c-primary); font-size: 13px; }
@media (min-width: 768px) { .cookie-dialog { place-items: center; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
  .card__link:hover img, .expert__card:hover img { transform: none; }
}

@media print {
  .site-header, .mobile-menu, .offices, .site-footer, .cookie-dialog, .skip-link { display: none !important; }
  .hero { background: none; color: #000; padding: 0 0 24px; }
  .hl, .hero__line--2, .hero-media__l2 { color: #000; }
  .accordion__panel { display: block !important; opacity: 1 !important; }
}
