/* Small corrective layer, kept separate so component-level fixes stay isolated. */
:root {
  --display: 'Fjalla One', Arial, sans-serif;
  --black: #080808;
  --ink: #151515;
  --surface: #202020;
  --white: #f5f5f5;
  --muted: #a8a8a8;
  --yellow: #d92d36;
  --orange: #9e1820;
  --red: #7c1118;
  --grad: linear-gradient(105deg, var(--red), var(--orange) 52%, var(--red));
}

/* Contacto: Elementor document full width. */
body.page-id-9 .e-con.e-parent,
body.page-id-9 .e-con.e-child,
body.page-id-9 .elementor-widget-jj-contact,
body.page-id-9 .elementor-widget-jj-contact > .elementor-widget-container { width: 100%; max-width: 100%; }
body.page-id-9 .e-con.e-parent,
body.page-id-9 .e-con.e-child { padding: 0 !important; gap: 0 !important; }

.eyebrow { margin: 0; }

.hero-caption > span {
  display: inline;
}

/* Keep the hero background anchored while the page scrolls. */
.hero {
  position: relative;
  z-index: 0;
}

.hero::before {
  display: none;
}

.hero-content,
.scroll-cue {
  position: relative;
  z-index: auto;
}

/* Keep only the hero artwork fixed; the title and CTA scroll normally. */
.hero-art {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  animation-name: zoomDesktopContained;
  pointer-events: none;
  isolation: isolate;
}

/* El velo lateral debe compartir el mismo viewport que la imagen, no la columna de Elementor. */
.hero-art::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--black) 0%,
    color-mix(in srgb, var(--black) 88%, transparent) 10%,
    color-mix(in srgb, var(--black) 48%, transparent) 25%,
    transparent 43%
  );
  content: '';
  pointer-events: none;
}

/* Internal pages share the same visual language as the home. */
.inner-page {
  min-height: 70vh;
  background: #000;
}

.inner-page--light {
  color: #111;
  background: #f4f4f4;
}

.inner-page-wrap {
  width: min(90rem, 100%);
  margin-inline: auto;
}

.inner-page h1 {
  max-width: 70rem;
  margin: .8rem 0 3rem;
  font: 800 clamp(3rem, 7vw, 8rem)/.94 var(--display);
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.inner-page h2,
.inner-page h3 {
  font-family: var(--display);
  text-transform: uppercase;
}

.inner-lede {
  max-width: 52rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.35;
}

.inner-page-grid,
.inner-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, .9fr);
  gap: 5rem;
  align-items: center;
}

.inner-page-grid img,
.inner-wide-image {
  display: block;
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
}

.inner-page--services {
  background: linear-gradient(#000b, #000b), url('../images/Serviciobg.png') center/cover;
}

.practice-page-grid,
.publication-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 4rem;
  border: 1px solid #ffffff33;
}

.practice-page-grid article,
.publication-page-grid article {
  padding: 2rem;
  border: 1px solid #ffffff33;
  transition: background-color .3s ease, transform .3s ease;
}

.inner-page--light .publication-page-grid {
  border-color: #1113;
}

.inner-page--light .publication-page-grid article {
  border-color: #1113;
}

.practice-page-grid article:hover,
.publication-page-grid article:hover {
  background: var(--red);
  transform: translateY(-.35rem);
}

.practice-page-grid span,
.publication-page-grid article h2 {
  color: var(--red);
}

.practice-page-grid article:hover span,
.practice-page-grid article:hover h2,
.practice-page-grid article:hover p {
  color: #fff;
}

.publication-page-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.inner-contact-grid {
  align-items: start;
}

.inner-contact-grid .contact-form {
  display: grid;
  gap: .7rem;
}

.inner-contact-grid .contact-form input,
.inner-contact-grid .contact-form textarea {
  width: 100%;
  margin-bottom: .8rem;
  padding: .8rem 1rem;
  border: 1px solid #777;
  background: transparent;
  color: inherit;
  font: inherit;
}

.inner-contact-grid .contact-form button {
  justify-self: start;
}

.inner-page .contact-map {
  width: 100vw;
  margin: 5rem calc(50% - 50vw) -8rem;
}

.inner-page .contact-map iframe {
  display: block;
  width: 100%;
  min-height: 24rem;
  border: 0;
}

/* La Firma page */
.firm-page { color: #111; background: #f4f4f2; }
.firm-page {
  --firm-paper: #f7f6f3;
  --firm-paper-deep: #eeece8;
  --firm-ink: #171717;
  --firm-line: #d6d2cb;
  --firm-red: #9e1820;
  background: var(--firm-paper);
}
.firm-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .9fr); min-height: 100svh; color: #fff; background: #080808; border-top: 1px solid var(--red); }
.firm-hero-copy { align-self: center; padding: 7rem max(5vw, 2rem); }
.firm-hero h1 { max-width: 48rem; margin: .7rem 0 2rem; font: 800 clamp(3.2rem, 6.5vw, 7rem)/.92 var(--display); letter-spacing: -.07em; text-transform: uppercase; }
.firm-lede { max-width: 38rem; font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.firm-hero-visual { min-height: 25rem; height: calc(100svh - 6rem); margin: 3rem 5vw 3rem 0; overflow: hidden; border: 1px solid #555; }
.firm-hero-visual img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.firm-section { position: relative; padding: clamp(6rem, 10vw, 9rem) max(5vw, 2rem); color: var(--firm-ink); background: var(--firm-paper); }
.firm-section--light, .firm-section--dark { color: var(--firm-ink); background: var(--firm-paper); }
.firm-section--dark::before, .firm-section--light::before { position: absolute; top: 0; left: max(5vw, 2rem); right: max(5vw, 2rem); height: 1px; background: var(--firm-line); content: ''; }
#firm-experience { color: #171717; background: #EAE5DA !important; }
#firm-experience::before { background: #b8b1a5; }
.firm-responsibility-section { border-top: 1px solid var(--firm-line); }
.firm-responsibility-layout { grid-template-columns: minmax(20rem, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 8vw, 9rem); }
.firm-responsibility-image { position: relative; min-height: 38rem; border: 0; background: var(--firm-paper-deep); }
.firm-responsibility-image::after { position: absolute; inset: 1rem; border: 1px solid #fff9; content: ''; pointer-events: none; }
.firm-responsibility-image img { min-height: 38rem; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.firm-responsibility-image:hover img { transform: scale(1.035); }
.firm-responsibility-image figcaption { position: absolute; z-index: 1; right: 1.5rem; bottom: 1.4rem; left: 1.5rem; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 8px #0008; }
.firm-responsibility-section .firm-story-heading .eyebrow { color: var(--firm-red); }
.firm-responsibility-lead { max-width: 32rem; margin: 0 0 1.5rem; color: var(--firm-red); font: 800 clamp(1.35rem, 2.2vw, 2.2rem)/1.1 var(--display); letter-spacing: -.04em; }
.firm-responsibility-principles { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--firm-line); }
.firm-responsibility-principles span { color: var(--firm-red); font-size: .72rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.firm-section-inner { width: min(90rem, 100%); margin-inline: auto; }
.firm-journey-nav { position: sticky; z-index: 10; top: 0; padding: .7rem max(5vw, 2rem); border-bottom: 1px solid var(--firm-line); background: color-mix(in srgb, var(--firm-paper) 94%, transparent); backdrop-filter: blur(14px); }
.firm-journey-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.firm-journey-nav-label { color: var(--firm-red); font: 800 .72rem var(--body); letter-spacing: .2em; text-transform: uppercase; }
.firm-journey-nav-items { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); }
.firm-journey-nav-items a { position: relative; display: inline-flex; align-items: center; gap: .55rem; padding: .65rem 0; color: #888; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; transition: color .3s ease; }
.firm-journey-nav-items a::after { position: absolute; right: 0; bottom: -.7rem; left: 0; height: 2px; background: var(--firm-red); content: ''; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.firm-journey-nav-items a span { color: var(--firm-red); font-weight: 800; }
.firm-journey-nav-items a.is-active, .firm-journey-nav-items a:hover, .firm-journey-nav-items a:focus-visible { color: var(--firm-ink); }
.firm-journey-nav-items a.is-active::after, .firm-journey-nav-items a:hover::after, .firm-journey-nav-items a:focus-visible::after { transform: scaleX(1); }
.firm-two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, .9fr); gap: 5rem; align-items: center; }
.firm-two-column--reverse { grid-template-columns: minmax(20rem, .9fr) minmax(0, 1fr); }
.firm-story-section { position: relative; }
.firm-story-section--history { grid-template-columns: minmax(20rem, .9fr) minmax(0, 1fr); }
.firm-story-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.firm-story-heading .eyebrow { margin: 0; color: var(--firm-red); }
.firm-story-number { display: inline-grid; width: 3.8rem; height: 3.8rem; place-items: center; color: #fff; background: var(--firm-red); font: 800 1.35rem var(--display); }
.firm-story-year { margin: 0 0 .7rem; color: var(--firm-red); font: 800 clamp(3.5rem, 8vw, 8rem)/.8 var(--display); letter-spacing: -.08em; }
.firm-story-image { position: relative; min-height: 36rem; border: 0; background: var(--firm-paper-deep); }
.firm-story-image::after { position: absolute; inset: 1rem; border: 1px solid #fff9; content: ''; pointer-events: none; }
.firm-story-image img { min-height: 36rem; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.firm-story-image:hover img { transform: scale(1.035); }
.firm-story-image figcaption { position: absolute; z-index: 1; right: 1.4rem; bottom: 1.2rem; left: 1.4rem; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 8px #0008; }
.firm-story-connector { display: flex; align-items: center; gap: 1rem; width: min(90rem, calc(100% - 10vw)); margin: 0 auto; color: var(--firm-red); font: 800 .8rem var(--display); }
.firm-story-connector i { flex: 1; height: 1px; background: var(--firm-red); }
.firm-copy h2, .firm-section-inner > h2, .firm-red-panel h2, .firm-cta h2 { margin: .8rem 0 2rem; font: 800 clamp(2.5rem, 5vw, 5.7rem)/.95 var(--display); letter-spacing: -.07em; text-transform: uppercase; }
.firm-copy p, .firm-red-panel p, .firm-value p, .firm-benefit p { max-width: 47rem; font-size: 1.05rem; line-height: 1.65; }
.firm-image { min-height: 24rem; margin: 0; overflow: hidden; border: 1px solid #aaa; background: #e6e6e4; }
.firm-image img { display: block; width: 100%; height: 100%; min-height: 24rem; object-fit: cover; }
.firm-section--dark .firm-image { border-color: var(--firm-line); background: var(--firm-paper-deep); }
.firm-section--dark .firm-image img { object-fit: cover; padding: 0; filter: none; }
.firm-red-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; padding: 3.5rem 5vw; color: #fff; background: var(--firm-red); }
.firm-red-panel p { margin: 0; }
.firm-philosophy-inner { position: relative; }
.firm-philosophy-label { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.firm-philosophy-label .eyebrow { color: var(--firm-red); }
.firm-philosophy-panel { grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .75fr); gap: clamp(2rem, 5vw, 5rem); min-height: 31rem; padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 6vw, 6rem); overflow: visible; }
.firm-philosophy-copy { position: relative; z-index: 1; }
.firm-philosophy-panel h2 { margin: 0 0 2rem; font-size: clamp(3.5rem, 7vw, 7.5rem); }
.firm-philosophy-panel p { max-width: 38rem; color: #fff; font-size: 1rem; line-height: 1.65; }
.firm-philosophy-image { position: relative; min-height: 35rem; margin: -6rem -2rem -6rem 0; overflow: hidden; border: 1rem solid var(--firm-red); background: var(--firm-paper-deep); transform: rotate(2deg); }
.firm-philosophy-image::after { position: absolute; inset: 1rem; border: 1px solid #fff9; content: ''; pointer-events: none; }
.firm-philosophy-image img { display: block; width: 100%; height: 100%; min-height: 33rem; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.firm-philosophy-image:hover img { transform: scale(1.04); }
.firm-philosophy-image figcaption { position: absolute; z-index: 1; right: 1.5rem; bottom: 1.4rem; left: 1.5rem; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 8px #0008; }
.firm-values-section { border-top: 0; }
.firm-values-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.firm-values-heading h2 { max-width: 42rem; margin: .8rem 0 0; font: 800 clamp(2.8rem, 5vw, 5.8rem)/.95 var(--display); letter-spacing: -.07em; text-transform: uppercase; }
.firm-values-heading > p { max-width: 18rem; margin: 0 0 .5rem; color: #6e6b66; font-size: .9rem; line-height: 1.55; }
.firm-values-editorial { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .85fr); gap: clamp(3rem, 7vw, 8rem); align-items: start; margin-top: 4.5rem; }
.firm-values-list { border-top: 1px solid var(--firm-line); }
.firm-value-row { position: relative; display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1.2rem; align-items: center; width: 100%; padding: 1.5rem 0; color: var(--firm-ink); border: 0; border-bottom: 1px solid var(--firm-line); background: transparent; text-align: left; cursor: pointer; transition: color .3s ease, padding .35s ease; }
.firm-value-row > span { color: var(--firm-red); font: 800 .8rem var(--body); letter-spacing: .08em; }
.firm-value-row strong { font: 800 clamp(1.6rem, 3vw, 3rem)/1 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.firm-value-row i { color: var(--firm-red); font-size: 1.4rem; font-style: normal; opacity: 0; transform: translate(-.5rem, .5rem); transition: opacity .3s ease, transform .3s ease; }
.firm-value-row p { grid-column: 2 / 3; max-width: 34rem; max-height: 0; margin: 0; overflow: hidden; color: #6e6b66; font-size: .95rem; line-height: 1.55; opacity: 0; transition: max-height .4s ease, opacity .3s ease, margin-top .3s ease; }
.firm-value-row:hover, .firm-value-row:focus-visible, .firm-value-row.is-active { padding-left: .8rem; color: var(--firm-red); }
.firm-value-row:focus-visible { outline: 1px solid var(--firm-red); outline-offset: -1px; }
.firm-value-row.is-active i, .firm-value-row:hover i, .firm-value-row:focus-visible i { opacity: 1; transform: none; }
.firm-value-row.is-active p { max-height: 5rem; margin-top: .65rem; opacity: 1; }
.firm-value-row:hover p, .firm-value-row:focus-visible p { max-height: 5rem; margin-top: .65rem; opacity: 1; }
.firm-values-visual { position: sticky; top: 5rem; min-height: 32rem; margin: 0; overflow: hidden; background: var(--firm-paper-deep); }
.firm-values-visual::after { position: absolute; inset: 1rem; border: 1px solid #fff9; content: ''; pointer-events: none; }
.firm-values-visual img { display: block; width: 100%; height: 100%; min-height: 32rem; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.firm-values-visual:hover img { transform: scale(1.035); }
.firm-values-visual figcaption { position: absolute; z-index: 1; right: 1.5rem; bottom: 1.4rem; left: 1.5rem; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 8px #0008; }
.firm-why-section { border-top: 1px solid var(--firm-line); }
.firm-why-intro { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.firm-why-intro h2 { max-width: 48rem; margin: .8rem 0 0; font: 800 clamp(2.8rem, 5vw, 5.8rem)/.95 var(--display); letter-spacing: -.07em; text-transform: uppercase; }
.firm-why-intro-aside { width: min(24rem, 32%); }
.firm-why-intro-aside p { margin: 0 0 1.5rem; color: #6e6b66; font-size: .95rem; line-height: 1.6; }
.firm-why-cta { display: inline-flex; align-items: center; gap: 1.5rem; padding-bottom: .45rem; color: var(--firm-red); border-bottom: 1px solid var(--firm-red); font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; transition: gap .3s ease, color .3s ease; }
.firm-why-cta:hover, .firm-why-cta:focus-visible { gap: 2rem; color: var(--firm-ink); }
.firm-why-process { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 8vw, 9rem); align-items: stretch; margin-top: 5rem; }
.firm-why-red-panel { display: flex; min-height: 33rem; flex-direction: column; align-items: flex-start; padding: clamp(2rem, 5vw, 5rem); color: #fff; background: var(--firm-red); }
.firm-why-red-panel .firm-story-heading { width: 100%; justify-content: flex-start; margin-bottom: auto; }
.firm-why-red-panel .firm-story-number { color: #C29A59; background: transparent; border: 1px solid #C29A59; }
.firm-why-red-panel .eyebrow { color: #C29A59; }
.firm-why-red-panel h2 { max-width: 35rem; margin: 3rem 0 1.5rem; font: 800 clamp(2.7rem, 5vw, 5rem)/.95 var(--display); letter-spacing: -.07em; text-transform: uppercase; }
.firm-why-red-panel > p { max-width: 24rem; margin: 0 0 2rem; color: #fff; font-size: 1rem; line-height: 1.6; }
.firm-why-red-panel .firm-why-cta { margin-top: auto; color: #C29A59; border-color: #C29A59; background: transparent; }
.firm-why-red-panel .firm-why-cta:hover, .firm-why-red-panel .firm-why-cta:focus-visible { color: #C29A59; background: transparent; }
.firm-why-steps { position: relative; padding-left: 2rem; }
.firm-why-steps::before { position: absolute; top: 1.2rem; bottom: 1.2rem; left: .22rem; width: 1px; background: var(--firm-red); content: ''; }
.firm-why-step { position: relative; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; align-items: start; padding: 1.65rem 0; border-bottom: 1px solid var(--firm-line); transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s ease; }
.firm-why-step:first-child { border-top: 1px solid var(--firm-line); }
.firm-why-step::before { position: absolute; top: 1.85rem; left: -2rem; width: .5rem; height: .5rem; border: 2px solid var(--firm-red); border-radius: 50%; background: var(--firm-paper); content: ''; transition: background-color .3s ease, transform .3s ease; }
.firm-why-step > span { color: var(--firm-red); font: 800 .8rem var(--body); letter-spacing: .08em; }
.firm-why-step h3 { margin: 0 0 .45rem; font: 800 clamp(1.5rem, 2.6vw, 2.6rem)/1 var(--display); letter-spacing: -.05em; text-transform: uppercase; transition: color .3s ease; }
.firm-why-step p { max-width: 34rem; margin: 0; color: #6e6b66; font-size: .95rem; line-height: 1.55; }
.firm-why-step:hover, .firm-why-step:focus-within { transform: translateX(.8rem); }
.firm-why-step:hover::before, .firm-why-step:focus-within::before { background: var(--firm-red); transform: scale(1.35); }
.firm-why-step:hover h3, .firm-why-step:focus-within h3 { color: var(--firm-red); }
.firm-benefits-editorial { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(14rem, .6fr); gap: clamp(3rem, 8vw, 10rem); align-items: end; margin-top: 5rem; }
.firm-benefits-list { border-top: 1px solid var(--firm-line); }
.firm-benefit-row { position: relative; display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1.2rem; align-items: center; width: 100%; padding: 1.5rem 0; color: var(--firm-ink); border: 0; border-bottom: 1px solid var(--firm-line); background: transparent; text-align: left; cursor: pointer; transition: color .3s ease, padding .35s ease, opacity .3s ease; }
.firm-benefit-row > span { color: var(--firm-red); font: 800 .8rem var(--body); letter-spacing: .08em; }
.firm-benefit-row strong { font: 800 clamp(1.5rem, 2.6vw, 2.7rem)/1 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.firm-benefit-row i { color: var(--firm-red); font-size: 1.4rem; font-style: normal; opacity: 0; transform: translate(-.5rem, .5rem); transition: opacity .3s ease, transform .3s ease; }
.firm-benefit-row p { grid-column: 2 / 3; max-width: 42rem; max-height: 0; margin: 0; overflow: hidden; color: #6e6b66; font-size: .95rem; line-height: 1.55; opacity: 0; transition: max-height .4s ease, opacity .3s ease, margin-top .3s ease; }
.firm-benefit-row:hover, .firm-benefit-row:focus-visible, .firm-benefit-row.is-active { padding-left: .8rem; color: var(--firm-red); }
.firm-benefit-row:focus-visible { outline: 1px solid var(--firm-red); outline-offset: -1px; }
.firm-benefit-row.is-active i, .firm-benefit-row:hover i, .firm-benefit-row:focus-visible i { opacity: 1; transform: none; }
.firm-benefit-row.is-active p, .firm-benefit-row:hover p, .firm-benefit-row:focus-visible p { max-height: 6rem; margin-top: .65rem; opacity: 1; }
.firm-benefits-signature { align-self: end; padding: 2rem; border-left: 2px solid var(--firm-red); color: var(--firm-red); }
.firm-benefits-signature span { display: block; margin-bottom: 2rem; color: var(--firm-ink); font: 800 clamp(4rem, 8vw, 8rem)/.8 var(--display); letter-spacing: -.1em; }
.firm-benefits-signature p { margin: 0; font: 800 clamp(1.3rem, 2vw, 2rem)/1.05 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.firm-values-grid, .firm-benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 3rem; border-top: 1px solid #bbb; border-left: 1px solid #bbb; }
.firm-value, .firm-benefit { min-height: 16rem; padding: 2rem; border-right: 1px solid #bbb; border-bottom: 1px solid #bbb; transition: color .3s ease, background-color .3s ease, transform .3s ease; }
.firm-value:hover, .firm-benefit:hover { color: #fff; background: var(--firm-red); transform: translateY(-.3rem); }
.firm-value span { color: var(--firm-red); font-weight: 800; letter-spacing: .15em; }
.firm-value:hover span { color: #fff; }
.firm-value h3, .firm-benefit h3 { margin: 2rem 0 .7rem; font: 800 clamp(1.4rem, 2.2vw, 2.2rem)/1 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.firm-value--wide, .firm-benefit:last-child { grid-column: span 1; }
.firm-experience-section { overflow: hidden; }
.firm-experience-intro { display: flex; justify-content: space-between; gap: 3rem; align-items: end; }
.firm-experience-intro .firm-copy { max-width: 47rem; }
.firm-timeline-note { max-width: 13rem; margin: 0 0 .5rem; color: #aaa; font-size: .85rem; line-height: 1.45; text-transform: uppercase; letter-spacing: .12em; }
.firm-timeline-wrap { margin-top: 5rem; }
.firm-timeline { position: relative; display: grid; grid-template-columns: repeat(7, minmax(5rem, 1fr)); align-items: start; color: #fff; }
.firm-timeline-line { position: absolute; top: 3rem; left: calc(100% / 14); right: calc(100% / 14); height: 2px; background: #414141; }
.firm-timeline-line::before { display: block; width: var(--timeline-progress, 0%); height: 100%; background: var(--red); content: ''; transition: width .45s ease; }
.firm-timeline-point { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 0; color: #777; border: 0; background: transparent; font: 800 clamp(1.2rem, 2.2vw, 2rem) var(--display); cursor: pointer; opacity: .58; transition: color .35s ease, opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1); }
.firm-timeline-point,
.firm-timeline-point-detail,
.firm-timeline-point-detail b,
.firm-timeline-point-detail em {
  font-family: Montserrat, Arial, sans-serif !important;
}
.firm-timeline-point i { position: relative; display: block; width: .7rem; height: .7rem; border: 2px solid #777; border-radius: 50%; background: #080808; transition: transform .35s cubic-bezier(.22,1,.36,1), background-color .35s ease, border-color .35s ease, box-shadow .35s ease; }
.firm-timeline-point i::after { position: absolute; inset: -.65rem; border: 1px solid var(--red); border-radius: 50%; content: ''; opacity: 0; transform: scale(.5); transition: opacity .35s ease, transform .35s ease; }
.firm-timeline-point:hover, .firm-timeline-point:focus-visible, .firm-timeline-point.is-active { color: #fff; }
.firm-timeline-point:hover, .firm-timeline-point:focus-visible { opacity: 1; transform: translateY(-.2rem); }
.firm-timeline-point:focus-visible { outline: 1px solid var(--red); outline-offset: .5rem; }
.firm-timeline-point.is-active { opacity: 1; transform: translateY(-.15rem); }
.firm-timeline-point.is-active i { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 .35rem #9e182022, 0 0 1.2rem #9e182088; transform: scale(1.5); }
.firm-timeline-point.is-active i::after { opacity: 1; transform: scale(1); }
.firm-timeline-point:hover i, .firm-timeline-point:focus-visible i { border-color: var(--red); box-shadow: 0 0 .8rem #9e182066; transform: scale(1.25); }
.firm-timeline-panel { display: grid; grid-template-columns: minmax(11rem, .6fr) minmax(0, 1.4fr); gap: 3rem; margin-top: 4.5rem; padding: 2.5rem 0; border-top: 1px solid #333; border-bottom: 1px solid #333; transition: opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1); }
.firm-timeline-panel.is-changing { opacity: 0; transform: translateY(.8rem); }
.firm-timeline-year { margin: 0 0 .55rem; color: var(--firm-red); font: 800 clamp(3rem, 6vw, 6rem)/.85 Montserrat, Arial, sans-serif; letter-spacing: -.06em; }
.firm-timeline-kicker { margin: 0; font: 800 clamp(1.35rem, 2vw, 2.1rem)/1 Montserrat, Arial, sans-serif; text-transform: uppercase; transition: color .35s ease; }
.firm-timeline-body { max-width: 42rem; margin: 0; color: #d0d0d0; font-size: 1.1rem; line-height: 1.65; }
.firm-timeline-disclaimer { margin: 1.2rem 0 0; color: #777; font-size: .75rem; letter-spacing: .05em; }
.firm-cta { display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding: 3.5rem max(5vw, 2rem); color: #fff; background: var(--red); }
.firm-cta h2 { margin: .5rem 0 0; font-size: clamp(2rem, 4vw, 4rem); }
.firm-cta .button { border: 1px solid #fff; background: transparent; }
.firm-cta .button:hover { background: #fff; color: var(--red); }

@media (max-width: 768px) {
  .firm-hero, .firm-two-column, .firm-two-column--reverse, .firm-red-panel { grid-template-columns: 1fr; }
  .firm-hero { min-height: 100svh; }
  .firm-hero-copy { padding: 7rem 1.4rem 3rem; }
  .firm-hero h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .firm-hero-visual { min-height: 18rem; height: 18rem; margin: 0 1.4rem 2rem; }
  .firm-section { padding: 5rem 1.4rem; }
  .firm-two-column, .firm-two-column--reverse { gap: 2.5rem; }
  .firm-two-column--reverse .firm-image { order: 2; }
  .firm-story-section, .firm-story-section--history { gap: 2rem; }
  .firm-story-section:not(.firm-story-section--history) .firm-story-image,
  .elementor-widget-jj-firm-history .firm-story-image { order: -1; }
  .firm-story-section--history .firm-story-image { order: 0; }
  .firm-story-number { width: 3rem; height: 3rem; font-size: 1.05rem; }
  .firm-story-image, .firm-story-image img { min-height: 25rem; }
  .firm-story-image::after { inset: .7rem; }
  .firm-story-connector { width: calc(100% - 2.8rem); }
  .firm-responsibility-layout { grid-template-columns: 1fr; gap: 2rem; }
  .firm-responsibility-image, .firm-responsibility-image img { min-height: 25rem; }
  .firm-responsibility-image::after { inset: .7rem; }
  .firm-responsibility-principles { margin-top: 2rem; }
  .firm-copy h2, .firm-section-inner > h2, .firm-red-panel h2 { font-size: clamp(2.5rem, 11vw, 4.4rem); }
  .firm-red-panel { gap: 1rem; padding: 2rem 1.4rem; }
  .firm-philosophy-label { margin-bottom: 1rem; }
  .firm-philosophy-panel { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.4rem 1.4rem; }
  .firm-philosophy-panel > * {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .firm-philosophy-panel h2 { margin-bottom: 1.5rem; font-size: clamp(3rem, 14vw, 5rem); }
  .firm-philosophy-panel h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.5rem) !important;
    overflow-wrap: anywhere;
  }
  .firm-philosophy-panel p { font-size: .95rem; }
  .firm-philosophy-image { min-height: 23rem; margin: 0 -.2rem -.2rem; border-width: .55rem; transform: rotate(0); }
  .firm-philosophy-image img { min-height: 22rem; }
  .firm-values-grid, .firm-benefits-grid { grid-template-columns: 1fr; margin-top: 2rem; }
  .firm-values-heading { display: block; }
  .firm-values-heading > p { margin-top: 1.5rem; }
  .firm-values-editorial { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2.5rem; }
  .firm-values-editorial > *,
  .firm-values-list,
  .firm-value-row {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .firm-value-row { grid-template-columns: 2.4rem 1fr auto; gap: .7rem; padding: 1.25rem 0; }
  .firm-value-row strong { font-size: clamp(1.35rem, 7vw, 2.2rem); }
  .firm-value-row p { grid-column: 2 / 4; font-size: .9rem; }
  .firm-values-visual { position: relative; top: auto; min-height: 22rem; }
  .firm-values-visual img { min-height: 22rem; }
  .firm-why-intro { display: block; }
  .firm-why-intro-aside { width: auto; margin-top: 1.5rem; }
  .firm-benefits-editorial { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2.5rem; }
  .firm-benefit-row { grid-template-columns: 2.4rem 1fr auto; gap: .7rem; padding: 1.25rem 0; }
  .firm-benefit-row strong { font-size: clamp(1.3rem, 6.5vw, 2.1rem); }
  .firm-benefit-row p { grid-column: 2 / 4; font-size: .9rem; }
  .firm-benefits-signature { padding: 1.5rem; }
  .firm-benefits-signature span { margin-bottom: 1rem; font-size: 4rem; }
  .firm-why-process { grid-template-columns: 1fr; gap: 3rem; margin-top: 2.5rem; }
  .firm-why-red-panel { min-height: 28rem; padding: 2rem 1.4rem; }
  .firm-why-red-panel h2 { margin: 2.5rem 0 1.2rem; font-size: clamp(2.6rem, 12vw, 4.4rem); }
  .firm-why-steps { padding-left: 1.5rem; }
  .firm-why-step { grid-template-columns: 2.4rem 1fr; gap: .7rem; padding: 1.3rem 0; }
  .firm-why-step::before { left: -1.5rem; }
  .firm-why-step h3 { font-size: clamp(1.3rem, 6.5vw, 2.1rem); }
  .firm-value, .firm-benefit, .firm-value--wide, .firm-benefit:last-child { grid-column: auto; min-height: 0; padding: 1.5rem; }
  .firm-value h3, .firm-benefit h3 { margin-top: 1rem; }
  .firm-experience-intro { display: block; }
  .firm-timeline-note { margin-top: 1.5rem; }
  .firm-timeline-wrap { margin-top: 3rem; overflow-x: auto; padding-bottom: .7rem; scrollbar-color: var(--red) #222; }
  .firm-timeline { min-width: 42rem; }
  .firm-timeline-panel { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; padding: 2rem 0; }
  .firm-timeline-body { font-size: 1rem; }
  .firm-journey-nav { display: none; }
  .firm-journey-nav-inner { display: block; }
  .firm-journey-nav-label { display: block; margin-bottom: .35rem; }
  .firm-journey-nav-items { justify-content: space-between; gap: .8rem; overflow-x: auto; }
  .firm-journey-nav-items a { flex: 0 0 auto; font-size: .62rem; }
  .firm-journey-nav-items a b { display: none; }
  .firm-journey-nav-items a::after { bottom: -.7rem; }
  .firm-cta { align-items: flex-start; flex-direction: column; padding: 2.5rem 1.4rem; }
}

/* Equilibrio del cutout frontal del hero de Equipo en escritorio: conserva
 * el tamaño de ventana normal y limita el crecimiento en pantallas anchas. */
@media (min-width: 769px) {
  .team-page-hero-cutout img {
    width: 100%;
    max-width: 1350px;
    margin-inline: auto;
  }
}

/* Footer claro: mantiene la franja legal oscura como cierre visual. */
.site-footer {
  background: #f4f0e8 !important;
  color: #2b2422 !important;
}

.footer-main {
  background: #f4f0e8 !important;
}

.footer-brand-col p,
.footer-contact-col p,
.footer-contact-col > a,
.footer-contact-col > span,
.footer-menu-col a {
  color: #4e4743 !important;
}

.footer-menu-col {
  border-color: #2b242233 !important;
}

.footer-divider,
.footer-menu-col a {
  border-color: #2b242222 !important;
}

.footer-socials a {
  border-color: #2b242255 !important;
  color: var(--red) !important;
}

.footer-socials svg {
  fill: var(--red) !important;
}

.footer-socials a:hover {
  border-color: var(--red) !important;
}

.site-footer .legal {
  background: #191919 !important;
  color: #f4f0e8 !important;
  border-top-color: #191919 !important;
}

/* El menú principal debe conservar cada opción en una sola línea. */
.site-header .desktop-nav {
  min-width: 0;
}

.site-header .desktop-nav > .desktop-menu > .menu-item {
  flex: 0 0 auto;
}

.site-header .desktop-nav > .desktop-menu > .menu-item > a {
  white-space: nowrap;
}

/* En el escritorio intermedio, liberamos espacio sin sacrificar la fila. */
@media (min-width: 769px) and (max-width: 1180px) {
  .site-header .desktop-nav {
    gap: .7rem;
    margin-right: .8rem;
  }

  .site-header .desktop-nav > .desktop-menu > .menu-item > a {
    letter-spacing: .045em;
  }
}

/* La Firma: ocupar todo el alto visible disponible bajo el encabezado. */
@media (min-width: 1081px) {
  .firm-hero-v2 {
    height: calc(100svh - 6.75rem) !important;
    min-height: calc(100svh - 6.75rem) !important;
  }

  /* Elementor renders the hero without .firm-page's header spacer. */
  .elementor-widget-jj-firm-hero .firm-hero-v2 {
    height: 100svh !important;
    min-height: 100svh !important;
  }

  /* Compensate the fixed navbar only inside the left hero column. */
  .elementor-widget-jj-firm-hero .firm-hero-copy-v2 {
    padding-top: 13.5rem;
  }
  .elementor-widget-jj-firm-hero .firm-copy-inner-v2 {
    padding-top: 0;
  }
}

/* Deja un margen de seguridad para la última letra del título principal. */
@media (min-width: 769px) {
  body.home .hero-main-copy h1 {
    max-width: 100% !important;
  }
}

body.home .hero h1 span.is-revealed { overflow: visible; }
body.home .hero h1 span { overflow: visible !important; }


/* Use the mobile art direction on any portrait viewport, including tablets
   wider than 768px, and keep the artwork filling the complete screen. */
@media (orientation: portrait) {
  .hero-art {
    inset: 0;
    width: 100vw;
    height: 100svh;
  }

  .hero-art img,
  .hero-art video {
    width: 100vw !important;
    height: 100svh !important;
    object-fit: cover;
    object-position: center center;
  }
}

/* Reserve vertical space for the hero parallax so translating the artwork
   upward never exposes the black section background at the bottom. */
.hero-art img,
.hero-art video {
  height: calc(100% + 280px) !important;
  margin-top: -140px;
  object-fit: cover;
}

.services { position: relative; isolation: isolate; overflow: hidden; background: #080808 !important; }
.services::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.64)); content: ''; pointer-events: none; }
.services-background-video { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.services > :not(.services-background-video) { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .inner-page {
    padding: 7rem 1.4rem 5rem;
  }

  .inner-page h1 {
    margin-bottom: 2rem;
    font-size: clamp(2.7rem, 12vw, 5rem);
  }

  .inner-page-grid,
  .inner-contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .practice-page-grid,
  .publication-page-grid {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .practice-page-grid article,
  .publication-page-grid article {
    padding: 1.5rem;
  }

  .inner-page .contact-map {
    margin-top: 3rem;
    margin-bottom: -5rem;
  }
}

/* Navbar más compacto en escritorio. */
@media (min-width: 769px) {
  .site-header {
    height: 7rem;
    padding-block: 1.7rem 0;
  }
}

/* Footer con el tono oscuro del selector de episodios de Spotify. */
.site-footer {
  background: #191919 !important;
}

/* Contacto: fondo claro definitivo, después de las reglas antiguas de composición. */
.contact {
  background: #fff !important;
  color: #280506;
}

.contact .contact-inner {
  background: transparent !important;
  color: #280506;
}

.contact .contact-location > p:not(.eyebrow),
.contact .contact-form-wrap > p:not(.eyebrow) {
  color: #444 !important;
}

.contact .contact-location h2,
.contact .contact-form-wrap h2,
.contact .contact-detail,
.contact .contact-detail p,
.contact .contact-detail a {
  color: #444 !important;
}

.contact .contact-location h2,
.contact .contact-form-wrap h2 {
  color: #280506 !important;
}

.contact .contact-rule {
  background: rgba(158, 24, 32, .35) !important;
}

.contact .contact-location p:not(.eyebrow),
.contact .contact-location a,
.contact .contact-location strong,
.contact .contact-form label,
.contact .contact-form .form-label,
.contact .contact-form .form-label span,
.contact .contact-consent,
.contact .contact-consent span {
  color: #444 !important;
}

.contact .contact-location .eyebrow,
.contact .contact-detail > span {
  color: var(--red) !important;
}

/* Navbar móvil más compacto, conservando el espacio superior. */
@media (max-width: 768px) {
  :root {
    --mobile-header-height: 5.75rem;
  }

  .site-header {
    height: 5.75rem;
    padding: 1.2rem 4vw 0;
  }
}

.contact .contact-map iframe {
  filter: none !important;
}

.contact {
  padding-bottom: 0 !important;
}

.contact .contact-map {
  height: 26rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .contact .contact-map {
    height: 20rem;
  }
}

.contact .contact-location h2,
.contact .contact-form-wrap h2 {
  color: #280506 !important;
}

.contact .contact-detail {
  color: #444 !important;
}

.contact .contact-detail p,
.contact .contact-detail a {
  color: #444 !important;
}

.contact .contact-rule {
  background: rgba(158, 24, 32, .35) !important;
}

.hero-art::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgb(0 0 0 / 20%);
  content: '';
  pointer-events: none;
}

.hero-art img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, calc(var(--hero-parallax-y, 0px) + 60px), 0);
  transform-origin: center center;
  will-change: transform;
}

.hero-art video {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, var(--hero-parallax-y, 0px), 0);
  transform-origin: center center;
  will-change: transform;
}

.hero-video-fallback {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.hero-video-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art.is-video-fallback video {
  visibility: hidden;
}

.hero-description {
  max-width: 31rem;
  margin: -1rem 0 2rem;
  color: #f1f1f1;
  font-size: clamp(.95rem, 1.35vw, 1.2rem);
  line-height: 1.45;
  opacity: 0;
  animation: slideRight 1s cubic-bezier(.77, 0, .175, 1) 1.05s forwards;
}

.brand-logo {
  display: block;
  width: clamp(10rem, 17vw, 16rem);
  height: auto;
  max-height: 4.5rem;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 1.5vw, 1.8rem);
  margin-left: auto;
  margin-right: clamp(1rem, 2vw, 2.5rem);
}

.desktop-nav a {
  position: relative;
  color: var(--red);
  font-size: clamp(.68rem, .9vw, .95rem);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: normal;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -.35rem;
  left: 0;
  height: 2px;
  background: var(--red);
  content: '';
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.desktop-nav a:hover {
  color: var(--red);
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font: 800 clamp(.68rem, .9vw, .95rem) var(--body);
  letter-spacing: .08em;
  cursor: pointer;
}

.language-trigger .language-flag {
  font-size: 1.15rem;
  line-height: 1;
}

body.hero-is-visible:not(.menu-layer-open) .site-header .language-trigger,
html.initial-hero .site-header .language-trigger {
  color: #fff;
}

@media (max-width: 768px) {
  .language-trigger {
    font-size: .68rem;
    letter-spacing: .04em;
  }
}

.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--red);
  font: 800 clamp(.68rem, .9vw, .95rem) var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.nav-dropdown-trigger::after {
  position: absolute;
  right: 1.1rem;
  bottom: -.35rem;
  left: 0;
  height: 2px;
  background: var(--red);
  content: '';
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.nav-dropdown-trigger:hover::after,
.nav-dropdown-trigger:focus-visible::after,
.nav-dropdown-wrap:focus-within .nav-dropdown-trigger::after,
.nav-dropdown-trigger.is-current::after,
.nav-dropdown-wrap.is-current .nav-dropdown-trigger::after {
  transform: scaleX(1);
}

.nav-dropdown-trigger span {
  display: inline-block;
  width: .45rem;
  height: .45rem;
  margin-top: -.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s ease;
}

.nav-dropdown-wrap:hover .nav-dropdown-trigger span,
.nav-dropdown-wrap:focus-within .nav-dropdown-trigger span,
.nav-dropdown-wrap.is-open .nav-dropdown-trigger span {
  transform: rotate(225deg);
}

/* Los menús del escritorio reutilizan la estructura nativa de WordPress. */
.desktop-nav .nav-dropdown-wrap.is-open > .sub-menu {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.nav-dropdown {
  position: absolute;
  z-index: 25;
  top: 100%;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: min(48rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  padding: 1.5rem;
  border-top: 3px solid var(--red);
  background: #090909f2;
  box-shadow: 0 1rem 2rem #0008;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-.5rem);
  transition: opacity .25s ease, transform .25s ease;
}

.nav-dropdown > div {
  display: flex;
  align-items: flex-start;
}

.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown,
.nav-dropdown-wrap.is-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.nav-dropdown h3,
.mobile-submenu-grid h3 {
  margin: 0 0 .8rem;
  color: var(--red);
  font: 800 1rem/1.1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-dropdown a,
.mobile-submenu-grid a {
  position: relative;
  display: block;
  margin-top: 0;
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.35;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.nav-dropdown a {
  width: fit-content;
  padding-bottom: .2rem;
  color: #fff;
  font-weight: 400;
}

.nav-dropdown a::after,
.mobile-submenu-grid a::after,
.menu-dialog nav a::after,
.menu-dialog nav button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: '';
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.nav-dropdown a:hover::after,
.nav-dropdown a:focus-visible::after,
.mobile-submenu-grid a:hover::after,
.mobile-submenu-grid a:focus-visible::after,
.menu-dialog nav a:hover::after,
.menu-dialog nav a:focus-visible::after,
.menu-dialog nav button:hover::after,
.menu-dialog nav button:focus-visible::after {
  transform: scaleX(1);
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.mobile-submenu-grid a:hover,
.mobile-submenu-grid a:focus-visible {
  color: #fff;
}

.nav-dropdown a.is-current,
.mobile-submenu-grid a.is-current {
  color: #f4d99a;
  font-weight: 800;
}

.nav-dropdown a.is-current::after,
.mobile-submenu-grid a.is-current::after,
.menu-dialog nav .menu-item.is-current::after {
  transform: scaleX(1);
}

.site-header .nav-dropdown a,
.site-header .nav-dropdown a:hover,
.site-header .nav-dropdown a:focus-visible {
  color: #fff;
}

/* Compact practice-area menu: two columns with as many rows as needed. */
.desktop-nav .nav-dropdown {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem 1.25rem;
  width: min(39rem, calc(100vw - 2rem));
  padding: 1.1rem 1.25rem 1.25rem;
}

.desktop-nav .nav-dropdown > div {
  min-width: 0;
}

.desktop-nav .nav-dropdown a {
  width: 100%;
  padding: .35rem 0;
  font-size: .7rem;
  line-height: 1.25;
}

.desktop-nav .nav-dropdown a.is-current:last-child {
  color: var(--yellow);
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .desktop-nav {
    gap: .65rem;
    margin-right: 1rem;
  }

  .desktop-nav a,
  .nav-dropdown-trigger {
    letter-spacing: .045em;
  }

  .nav-dropdown {
    position: fixed;
    top: 6.75rem;
    right: 1rem;
    left: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    max-width: none;
    gap: 1rem;
  }

}

.nav-dropdown a:hover,
.mobile-submenu-grid a:hover {
  color: var(--red);
}

.site-header .desktop-nav .nav-dropdown a.is-current,
.site-header .desktop-nav .nav-dropdown a.is-current:hover,
.site-header .desktop-nav .nav-dropdown a.is-current:focus-visible {
  color: #f4d99a !important;
}

/* Evita que "Inicio" quede pegado al logo cuando el escritorio tiene poco ancho.
 * El espacio entre enlaces vive en la lista, no en el contenedor nav. */
@media (min-width: 1025px) and (max-width: 1300px) {
  .site-header .desktop-nav {
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
    margin-right: clamp(.6rem, 1vw, 1rem);
  }

  .site-header .desktop-nav > .desktop-menu {
    gap: clamp(.55rem, 1vw, .9rem);
  }
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.whatsapp-link svg {
  display: block;
  width: 24px;
  height: 24px;
}

.floating-whatsapp {
  position: fixed;
  z-index: 30;
  right: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 8px 24px #0008;
  place-items: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px #000b;
}

.floating-whatsapp svg {
  display: block;
}

.site-header .menu-trigger {
  display: none;
}

.menu-trigger {
  position: relative;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0 !important;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1000;
}

/* Keep the single navbar control above the non-modal fullscreen panel. */
body.menu-layer-open .site-header {
  z-index: 1002;
  background: transparent;
  backdrop-filter: none;
  border-top-color: transparent;
  pointer-events: none;
}

body.menu-layer-open .site-header .menu-trigger {
  z-index: 1003;
  pointer-events: auto;
}

body.menu-layer-open .site-header .site-nav,
body.menu-layer-open .site-header .brand,
body.menu-layer-open .site-header .appointment-link {
  visibility: hidden;
}

body.menu-layer-open .site-header .menu-trigger svg {
  stroke: var(--red);
}

/* Do not let the navbar's blur layer cover the fullscreen menu. */
body.menu-layer-open .site-header::before {
  display: none;
}

.menu-trigger svg {
  position: absolute;
  top: -.375rem;
  left: -.875rem;
  display: block;
  width: 4rem;
  height: 3rem;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-trigger svg path {
  --array-1: 26px;
  --array-2: 100px;
  --offset: 126px;
  stroke-dasharray: var(--array-1) var(--array-2);
  stroke-dashoffset: var(--offset);
  transform: translateZ(0);
  transition: stroke-dasharray .85s cubic-bezier(.2,.4,.2,1.1) .15s, stroke-dashoffset .85s cubic-bezier(.2,.4,.2,1.1) .15s;
}

.menu-trigger svg path:nth-child(2) {
  --duration: .7s;
  --offset: 100px;
  --array-2: 74px;
  transition-duration: .7s;
  transition-timing-function: ease-in;
}

.menu-trigger svg path:nth-child(3) {
  --offset: 133px;
  --array-2: 107px;
}

.menu-trigger.active svg path {
  --offset: 57px;
}

.menu-trigger.active svg path:first-child,
.menu-trigger.active svg path:nth-child(3) {
  --offset: 57px;
}

.menu-trigger.active svg path:nth-child(2) {
  --offset: 2px;
  --array-1: 1px;
  transition-duration: .4s;
}

.menu-trigger.active svg path:nth-child(3) {
  --offset: 58px;
}

.appointment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: .65rem 1rem;
  background: #C29A59;
  color: #600000;
  font: 800 .7rem/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .25s ease, transform .25s ease;
}

.appointment-link:hover,
.appointment-link:focus-visible {
  background: #C29A59;
  color: #600000;
  transform: translateY(-2px);
}

@media (min-width: 769px) {
  .appointment-link:hover,
  .appointment-link:focus-visible {
    background: #C29A59 !important;
    background-color: #C29A59 !important;
    color: #600000 !important;
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 3.75vw, 4.4rem);
  letter-spacing: .04em;
}

.section h2,
.section h3,
.mission strong,
.service-card span,
.menu-dialog nav a,
.menu-dialog nav button,
.consultation p {
  letter-spacing: .025em;
}

/* Give the first section a clean, solid layer as it rises over the hero. */
.about {
  position: relative;
  box-shadow: 0 -2rem 4rem #000;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 1fr);
  align-items: center;
  background: var(--white);
  color: var(--black);
}

.about-copy {
  position: relative;
  border-left: 0;
  padding-left: clamp(1.5rem, 4vw, 4rem);
}

.about-copy::before {
  position: absolute;
  top: -5.5rem;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--red);
  content: '';
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .9s cubic-bezier(.22, 1, .36, 1) .2s;
}

.about-copy.is-visible::before { transform: scaleY(1); }

.about-logo {
  display: none;
  width: 9.6rem;
  height: auto;
  margin: 0 0 2.5rem;
  object-fit: contain;
  filter: none;
}

.about-logo-label {
  position: absolute;
  z-index: 2;
  top: 4.15rem;
  left: calc(max(5vw, 2rem) + 11rem);
  max-width: calc(100% - max(5vw, 2rem) - 13rem);
  color: var(--red);
  font-size: clamp(.65rem, 1.25vw, 1.2rem);
  font-weight: 900;
  letter-spacing: .22em;
  line-height: 1.25;
  text-transform: uppercase;
}

.about-logo.reveal,
.about-logo-label.reveal {
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}

.about-logo-label.reveal { transition-delay: .15s; }

.about-logo.reveal.is-visible,
.about-logo-label.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.about-visual {
  min-height: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0;
  border-radius: 1.5rem;
}

.about-visual--mobile {
  display: none;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.text-links {
  align-items: center;
  flex-wrap: wrap;
}

.text-links .button {
  min-width: 18rem;
}

.about-secondary-link {
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.history-secondary {
  color: var(--black);
  font-weight: 400;
}

/* Elementor no ejecuta siempre el IntersectionObserver del tema dentro del editor. */
.elementor-editor-active .reveal,
.elementor-editor-preview .reveal {
  opacity: 1;
  transform: none;
}

/* Las secciones de la portada deben escapar del ancho boxed del contenedor Elementor. */
.elementor-widget-jj-about {
  position: relative;
  z-index: 1;
  width: 100vw !important;
  max-width: 100vw !important;
  align-self: stretch;
  margin-left: calc(50% - 50vw) !important;
}

.elementor-widget-jj-about > .elementor-widget-container {
  width: 100%;
  overflow: hidden;
}

.elementor-widget-jj-services {
  position: relative;
  z-index: 1;
  width: 100vw !important;
  max-width: 100vw !important;
  align-self: stretch;
  margin-left: calc(50% - 50vw) !important;
}

.elementor-widget-jj-services > .elementor-widget-container {
  width: 100%;
  overflow: hidden;
}
.elementor-widget-jj-practice { position: relative; z-index: 1; width: 100vw !important; max-width: 100vw !important; align-self: stretch; margin-left: calc(50% - 50vw) !important; }
.elementor-widget-jj-practice > .elementor-widget-container { width: 100%; overflow: hidden; }
.elementor-widget-jj-principles { position: relative; z-index: 1; width: 100vw !important; max-width: 100vw !important; align-self: stretch; margin-left: calc(50% - 50vw) !important; }
.elementor-widget-jj-principles > .elementor-widget-container { width: 100%; overflow: hidden; }
.elementor-widget-jj-principles h2,
.elementor-widget-jj-principles h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-team { position: relative; z-index: 1; width: 100vw !important; max-width: 100vw !important; align-self: stretch; margin-left: calc(50% - 50vw) !important; }
.elementor-widget-jj-team > .elementor-widget-container { width: 100%; overflow: hidden; }
.elementor-widget-jj-team h1,
.elementor-widget-jj-team h2,
.elementor-widget-jj-team h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-social-impact { position: relative; z-index: 1; width: 100vw !important; max-width: 100vw !important; align-self: stretch; margin-left: calc(50% - 50vw) !important; }
.elementor-widget-jj-social-impact > .elementor-widget-container { width: 100%; overflow: hidden; }
.elementor-widget-jj-social-impact h2,
.elementor-widget-jj-social-impact h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-podcast { position: relative; z-index: 1; width: 100vw !important; max-width: 100vw !important; align-self: stretch; margin-left: calc(50% - 50vw) !important; }
.elementor-widget-jj-podcast > .elementor-widget-container { width: 100%; overflow: hidden; }
.elementor-widget-jj-podcast h2,
.elementor-widget-jj-podcast h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-testimonials { position: relative; z-index: 1; width: 100vw !important; max-width: 100vw !important; align-self: stretch; margin-left: calc(50% - 50vw) !important; }
.elementor-widget-jj-testimonials > .elementor-widget-container { width: 100%; overflow: visible; }
.elementor-widget-jj-testimonials h2,
.elementor-widget-jj-testimonials h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-blog { position: relative; z-index: 1; width: 100vw !important; max-width: 100vw !important; align-self: stretch; margin-left: calc(50% - 50vw) !important; }
.elementor-widget-jj-blog > .elementor-widget-container { width: 100%; overflow: visible; }
.elementor-widget-jj-blog h2,
.elementor-widget-jj-blog h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-contact { position: relative; z-index: 1; width: 100vw !important; max-width: 100vw !important; align-self: stretch; margin-left: calc(50% - 50vw) !important; }
.elementor-widget-jj-contact > .elementor-widget-container { width: 100%; overflow: visible; }
.elementor-widget-jj-contact h2,
.elementor-widget-jj-contact h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-consultation { position: relative; z-index: 1; width: 100vw !important; max-width: 100vw !important; align-self: stretch; margin-left: calc(50% - 50vw) !important; }
.elementor-widget-jj-consultation > .elementor-widget-container { width: 100%; overflow: visible; }
.elementor-widget-jj-consultation h2,
.elementor-widget-jj-consultation h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-practice h1,
.elementor-widget-jj-practice h2,
.elementor-widget-jj-practice h3,
.elementor-widget-jj-practice .mission strong { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }

.practice {
  background: var(--white);
  color: var(--black);
}

.practice .eyebrow {
  color: var(--red);
}

.practice .section-intro > p:not(.eyebrow),
.practice .lede {
  color: var(--black);
}

.practice-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
  gap: 3rem;
  align-items: center;
}

.practice-intro-copy {
  min-width: 0;
}

.practice-intro h1,
.practice-intro h2 {
  font-size: clamp(1.8rem, 3.5vw, 4rem);
}

.practice-intro h1 span,
.practice-intro h2 span {
  color: var(--red);
}

.practice-brand-logo {
  display: block;
  width: calc(33rem + 100px);
  max-width: 100%;
  min-width: 0;
  height: auto;
  margin-inline: auto;
  transform: translateX(50px);
}

.practice-brand-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

@media (min-width: 769px) and (max-width: 1100px) {
  .practice-intro {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 2rem;
  }

  .practice-brand-logo {
    width: 100%;
    transform: none;
  }
}

@media (min-width: 1101px) {
  .practice-brand-logo {
    width: min(calc(100% + 200px), 42vw);
    max-width: 42vw;
    transform: none;
  }
}

.practice-brand-logo--mobile {
  display: none;
}

.practice .mission {
  color: var(--white);
}

.practice .mission p {
  font-weight: 400;
}

.practice .mission p a {
  font-weight: 900;
}

.practice .service-card {
  color: var(--white);
}

.practice .service-grid {
  display: none;
}

.team-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .9fr);
  gap: 5rem;
  align-items: center;
  background-color: var(--black);
  background-image: linear-gradient(#ffffff0b 1px, transparent 1px), linear-gradient(90deg, #ffffff0b 1px, transparent 1px);
  background-attachment: fixed;
  background-position: center;
  background-size: 5rem 5rem;
  color: var(--white);
}
.team-preview-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(18rem,.9fr);gap:5rem;align-items:center;width:100%;max-width:1440px;margin-inline:auto}
@media (max-width: 768px){.team-preview-inner{grid-template-columns:1fr;gap:2rem}.team-preview-inner .team-preview-visual{order:2}}
.team-preview{display:block!important}
.team-preview-visual{overflow:hidden;border-radius:24px}
.team-preview-visual img{border:0!important;border-radius:0!important}
.team-preview-visual{overflow:hidden!important;border-radius:24px!important}

.team-preview .eyebrow {
  color: var(--red);
}

.team-preview h2 {
  margin: .75rem 0 1.5rem;
  font-size: clamp(2.2rem, 4.5vw, 5rem);
}

.team-preview-copy > p:not(.eyebrow) {
  max-width: 34rem;
  color: #d1d1d1;
  font-size: 1.1rem;
}

.team-preview .button {
  margin-top: 1.5rem;
}

.team-preview-visual { position: relative; min-height: clamp(26rem, 41vw, 42rem); overflow: visible; display: flex; align-items: flex-end; }
.team-preview-visual img { width: min(54vw, 48rem); height: auto; max-width: none; object-fit: contain; transform: translate(-5%, 0) scale(1.08); transform-origin: center bottom; }

.social-impact { background: var(--white); color: var(--black); }
.social-impact-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .7fr); gap: clamp(2rem, 8vw, 8rem); align-items: end; margin-bottom: 4rem; }
.social-impact .eyebrow, .social-impact-link { color: var(--red); }
.social-impact h2 { max-width: 48rem; margin-top: .75rem; font-size: clamp(2.3rem, 5vw, 5.5rem); }
.social-impact-copy { max-width: 30rem; }
.social-impact-copy p { margin: 0; font-size: 1.1rem; }
.social-impact-link { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.5rem; font-size: .75rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.social-impact-link span { font-size: 1.3rem; line-height: 1; }
.social-impact-gallery { display: grid; grid-template-columns: 1.35fr .8fr .8fr; grid-auto-rows: clamp(10rem, 16vw, 15rem); gap: .8rem; }
.social-impact-item { min-width: 0; margin: 0; overflow: hidden; background: var(--muted); }
.social-impact-item--feature { grid-row: span 2; }
.social-impact-item--feature { min-height: 100%; line-height: 0; }
.social-impact-item img { display: block; width: 100%; height: 100%; min-height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .8s cubic-bezier(.22, 1, .36, 1), filter .5s ease; }
.social-impact-item:hover img { filter: saturate(1.1); transform: scale(1.05); }

.principles {
  background: var(--white);
  color: var(--black);
}

.principles .eyebrow {
  color: var(--red);
}

.principles-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  margin-top: 5rem;
}

.principle-feature {
  padding-left: 2rem;
  border-left: 1px solid var(--red);
}

.principle-feature h3,
.values-heading h3 {
  margin: .75rem 0 1.25rem;
  font: 800 clamp(1.8rem, 3vw, 3.4rem)/1.05 var(--display);
  letter-spacing: .025em;
  text-transform: uppercase;
}

.principle-feature > p:last-child {
  max-width: 38rem;
  color: #444;
  line-height: 1.7;
}

.values-heading {
  margin-top: 6rem;
}

.values-panel {
  width: 100vw;
  margin-top: 6rem;
  margin-left: 50%;
  padding: 4.5rem max(5vw, 2rem) 5rem;
  background: var(--red);
  color: var(--white);
  transform: translateX(-50%);
}

.values-panel .values-heading {
  margin-top: 0;
}

.values-panel .eyebrow,
.values-panel .value-card > span {
  color: var(--white);
}

.values-panel .values-heading h3,
.values-panel .value-card h3,
.values-panel .value-card p {
  color: var(--white);
}

.values-heading h3 {
  margin-bottom: 2rem;
  font-size: clamp(1.8rem, 3.5vw, 4rem);
}

.values-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.values-grid::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 66.666%;
  width: 1px;
  background: #ffffff66;
  content: '';
  pointer-events: none;
}

.values-grid::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: #ffffff66;
  content: '';
  pointer-events: none;
}

.value-card {
  position: relative;
  z-index: 2;
  min-height: 14rem;
  padding: 1.75rem;
  background: transparent;
  border: 0;
  border-left: 1px solid #ffffff66;
  transition: background-color .35s ease, color .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}

@media (hover: hover) {
  .values-panel .value-card:hover {
    background: var(--white);
    color: var(--black);
    box-shadow: 0 .8rem 1.5rem #500b1233;
  }

  .values-panel .value-card:nth-child(-n + 3):hover {
    transform: translateY(.4rem);
  }

  .values-panel .value-card:nth-child(n + 4):hover {
    transform: translateY(-.4rem);
  }

  .values-panel .value-card:hover > span {
    color: var(--red);
  }

  .values-panel .value-card:hover h3 {
    color: var(--black);
  }

  .values-panel .value-card:hover p {
    color: #444;
  }
}

.value-card:nth-child(3n + 1) {
  border-left: 0;
}

.value-card > span {
  color: var(--red);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.value-card h3 {
  margin: 2.5rem 0 .75rem;
  font: 800 clamp(1.2rem, 1.8vw, 1.8rem)/1 var(--display);
  letter-spacing: .025em;
  text-transform: uppercase;
}

.value-card p {
  margin: 0;
  color: #555;
  font-size: .9rem;
  line-height: 1.5;
}

.value-card--wide {
  grid-column: auto;
}

.testimonials,
.posts,
.contact,
.consultation {
  background: var(--white);
  color: var(--black);
}

.testimonials .eyebrow,
.posts .eyebrow,
.contact .eyebrow {
  color: var(--red);
}

.testimonials .testimonial {
  color: var(--white);
}

.testimonial-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 4rem;
  align-items: center;
  gap: 1rem;
  margin: 4rem 0 2rem;
}

.reviews-swiper {
  min-width: 0;
  width: 100%;
  height: 37rem;
  overflow: visible;
  perspective: 1200px;
}

/* Coverflow needs its side cards to extend beyond the widget box. */
.elementor-widget-jj-testimonials,
.elementor-widget-jj-testimonials > .elementor-widget-container,
.elementor-widget-jj-testimonials .testimonials {
  overflow: visible;
}

.reviews-swiper.swiper-fallback {
  overflow: hidden;
}

.reviews-swiper.swiper-fallback .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  transform: none !important;
}

.reviews-swiper.swiper-fallback .swiper-slide {
  opacity: 1;
}

@media (max-width: 768px) {
  .reviews-swiper.swiper-fallback .swiper-wrapper {
    grid-template-columns: 1fr;
  }
}

.reviews-swiper::before,
.reviews-swiper::after {
  position: absolute;
  z-index: 10;
  top: 0;
  bottom: 0;
  width: 16%;
  content: '';
  pointer-events: none;
}

.reviews-swiper::before {
  left: 0;
  background: linear-gradient(90deg, var(--black) 8%, transparent);
}

.reviews-swiper::after {
  right: 0;
  background: linear-gradient(270deg, var(--black) 8%, transparent);
}

.reviews-swiper .swiper-wrapper {
  align-items: stretch;
  transform-style: preserve-3d;
  transition-timing-function: cubic-bezier(.16, 1, .3, 1);
}

.reviews-swiper .swiper-slide {
  display: flex;
  min-height: 30rem;
  height: auto;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.5rem 4rem 2.8rem;
  border: 2px solid var(--black);
  border-radius: 2rem;
  background: var(--white);
  color: var(--black);
  text-align: center;
  opacity: .5;
  transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1);
}

.reviews-swiper .swiper-slide-active {
  opacity: 1;
  box-shadow: none;
  border-width: 4px;
  border-color: transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(120deg, #4285f4 0%, #34a853 32%, #fbbc05 66%, #ea4335 100%) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: googleBorderShift 5s ease-in-out infinite;
}

.reviews-swiper .swiper-slide-prev,
.reviews-swiper .swiper-slide-next {
  opacity: .42;
}

.reviews-swiper .swiper-slide blockquote {
  max-width: 42rem;
  margin: 1.5rem auto;
  font-size: clamp(1rem, 1.7vw, 1.45rem);
}

.testimonial-google-logo {
  display: block;
  width: 5.5rem;
  height: auto;
  margin: 0 auto;
}

.testimonial-profile-photo {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto;
  border: 2px solid #ddd;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.elementor .testimonial-profile-photo {
  width: 4.25rem !important;
  height: 4.25rem !important;
  flex: 0 0 4.25rem;
  border-radius: 50% !important;
}

.testimonial-name {
  margin: 1rem 0 0;
  font-weight: 800;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}

.testimonial-rating .stars,
.testimonial-rating .star-full,
.testimonial-rating .star-half {
  color: #fbbc05;
}

.testimonial-rating .stars {
  display: inline-flex;
  align-items: center;
  gap: .12em;
  letter-spacing: 0;
  line-height: 1;
}

.testimonial-rating .star-empty {
  color: #bdbdbd;
}

.testimonial-rating small {
  margin: 0;
  color: #555;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
}

.testimonial-carousel > .carousel-arrow {
  position: relative;
  z-index: 30;
}

@media (max-width: 768px) {
  .services.dark-photo {
    background-image: linear-gradient(#0009, #000c), url('../images/Serviciobgmobile.png');
    background-position: center top;
    background-size: cover;
  }

  .service-slide h3 {
    font-size: 1.2rem;
  }

  .testimonial-carousel {
    display: block;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-inline: 0;
  }

  .reviews-swiper {
    height: 31rem;
    overflow: visible;
  }

  .reviews-swiper::before,
  .reviews-swiper::after {
    display: none;
  }

  .reviews-swiper .swiper-slide {
    min-height: 26rem;
    padding: 2.2rem 1.1rem;
    border-radius: 1.5rem;
  }

  .testimonial-carousel > .carousel-arrow {
    position: absolute;
    z-index: 30;
    top: 50%;
    transform: translateY(-50%);
  }

  .testimonial-carousel > .carousel-arrow.prev {
    left: .5rem;
  }

  .testimonial-carousel > .carousel-arrow.next {
    right: .5rem;
  }

  .testimonials .section-intro h2 {
    font-size: clamp(1.35rem, 5.4vw, 2.2rem);
    width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .testimonials .testimonial-carousel > .carousel-arrow {
    display: none;
  }

  .testimonial-stage {
    height: 31rem;
    overflow: hidden;
  }

  .testimonial-stage::before,
  .testimonial-stage::after {
    display: none;
  }

  .testimonial-track .testimonial {
    width: 100%;
    min-height: 26rem;
    padding: 2.2rem 1.1rem;
    border-radius: 1.5rem;
  }
}

/* Brand-colored translucent navbar for clear contrast on every viewport. */
.site-header::before {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header .desktop-nav a,
.site-header .nav-dropdown-trigger {
  color: var(--red);
  transition: color .7s ease;
}

.site-header .desktop-nav a::after {
  background: var(--red);
  transition: background-color .7s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.site-header .desktop-nav a:hover,
.site-header .desktop-nav a:focus-visible {
  color: var(--red);
}

.site-header .menu-trigger svg {
  stroke: var(--red);
  transition: stroke .7s ease;
}

body.menu-layer-open .site-header::before {
  display: none;
}

.testimonials .benefits,
.testimonials .show-more,
.posts .post,
.posts .post h3,
.posts .post p,
.posts .post footer,
.contact .contact-inner,
.consultation p {
  color: var(--black);
}

.posts .post {
  border-color: #d7d7d7;
}

.posts .section-intro h2 {
  font-size: clamp(2rem, 3.6vw, 4rem);
}

.contact {
  background-color: #fff !important;
  color: #280506;
  background-image: none;
}

.contact-inner {
  background: transparent;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(18rem, .8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 8rem);
  max-width: 90rem;
  margin: 0 auto;
}

.contact-form-wrap,
.contact-form {
  min-width: 0;
}

.contact-location h2,
.contact-form-wrap h2 {
  margin: .4rem 0 .8rem;
  font: 500 clamp(2rem, 3.5vw, 3.5rem)/1.1 var(--body);
  letter-spacing: -.04em;
  text-transform: none;
}

.contact-location > p:not(.eyebrow),
.contact-form-wrap > p:not(.eyebrow) {
  max-width: 38rem;
  color: #444;
  font-size: 1.05rem;
}

.contact-rule {
  height: 7px;
  margin: 1rem 0 1.5rem;
  background: var(--red);
}

.contact-detail {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
  margin: 1.75rem 0;
  color: #444;
}

.contact-detail > span {
  color: var(--red);
  font-size: 1.65rem;
  line-height: 1;
  text-align: center;
}

.contact-detail p {
  margin: 0;
  line-height: 1.65;
}

.contact-detail a {
  color: inherit;
}

.contact-detail a:hover {
  color: var(--red);
}

.contact-form {
  display: grid;
  gap: .3rem;
}

.contact-form label {
  margin-top: .3rem;
  color: #444;
  font-size: 1rem;
}

.contact-form label span {
  font-size: .85em;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0;
  outline: 0;
  background: #f1f1f1;
  color: var(--black);
  font: inherit;
  transition: border-color .25s ease, background-color .25s ease;
}

.contact-form input:not([type="checkbox"]) {
  min-height: 2.65rem;
  padding: .45rem .8rem;
}

.contact-form textarea {
  min-height: 6.5rem;
  padding: .7rem .8rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  background: var(--white);
}

.contact-consent {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  margin-top: .65rem !important;
  font-size: .78rem !important;
}

.contact-consent input {
  accent-color: var(--red);
  margin-top: .25rem;
}

.contact-submit {
  justify-self: start;
  min-width: 9rem;
  margin-top: .55rem;
  background: var(--red);
  color: var(--white);
  transition: background-color .25s ease, transform .25s ease;
}

.contact-submit:hover {
  background: var(--black);
  transform: translateY(-2px);
}

.contact-map {
  position: relative;
  height: 18rem;
  width: 100vw;
  max-width: none;
  margin: 4rem 0 0 calc(50% - 50vw);
  overflow: hidden;
  border-top: 5px solid var(--red);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .contact-location h2,
  .contact-form-wrap h2 {
    font-size: 2.35rem;
  }

  .contact-detail {
    margin: 1.35rem 0;
  }
}

/* Contact: custom brand-led composition, independent from the reference layout. */
.contact {
  background: var(--black) !important;
  color: var(--white);
}

.contact-layout {
  grid-template-columns: minmax(0, .85fr) minmax(22rem, 1.15fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.contact-location {
  position: relative;
  padding: 2rem 0 2rem clamp(1.5rem, 3vw, 3rem);
  border-left: 2px solid var(--red);
}

.contact-location::before {
  position: absolute;
  top: 0;
  left: -2px;
  width: 3.5rem;
  height: 2px;
  background: var(--red);
  content: '';
}

.contact-location h2,
.contact-form-wrap h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.contact-location h2 {
  margin: .75rem 0 1.25rem;
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 5.5rem);
  line-height: .95;
}

.contact-location > p:not(.eyebrow),
.contact-form-wrap > p:not(.eyebrow) {
  color: #cfcfcf;
}

.contact-rule {
  height: 1px;
  margin: 1.5rem 0;
  background: #ffffff44;
}

.contact-detail {
  grid-template-columns: 2rem 1fr;
  margin: 1.5rem 0;
}

.contact-detail > span {
  color: var(--red);
}

.contact-detail p {
  color: #e5e5e5;
  font-size: .95rem;
}

.contact-detail strong,
.contact-form label,
.contact-consent,
.contact-consent span {
  font-weight: 400;
}

.contact-form-wrap {
  padding: clamp(1.75rem, 3vw, 3rem);
  background: var(--white);
  color: var(--black);
}

.contact-form-wrap h2 {
  margin: .6rem 0 1rem;
  color: var(--black);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: .06em;
}

.contact-form-wrap > p:not(.eyebrow) {
  color: #555;
}

.contact-form-wrap .contact-rule {
  height: 5px;
  margin: 1.5rem 0 1rem;
  background: var(--red);
}

.contact-form label {
  color: #222;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  border-bottom: 1px solid #bcbcbc;
  background: #f4f4f4;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
}

.contact-submit {
  background: var(--red);
}

@media (max-width: 768px) {
  .contact {
    padding: 4rem 1.4rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-location {
    padding-left: 1.25rem;
  }

  .contact-location h2 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .contact-form-wrap {
    padding: 1.75rem 1.25rem;
  }

  .contact-map {
    height: 14rem;
    margin-top: 2rem;
  }
}

.services.dark-photo {
  background: linear-gradient(#0009, #000c), url('../images/Serviciobg.png') center/cover;
}

.services > .button {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

/* Footer rebuilt to match the three-column reference composition. */
.site-footer {
  background: #070707;
  color: #e8e8e8;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.15fr .9fr 1.15fr;
  max-width: 95rem;
  margin: 0 auto;
  padding: 4.75rem max(5vw, 2rem) 3.5rem;
}

.footer-brand-col,
.footer-menu-col,
.footer-contact-col {
  min-width: 0;
}

.footer-brand-col {
  padding-right: clamp(2rem, 5vw, 6rem);
}

.footer-menu-col {
  padding: 0 clamp(2rem, 5vw, 6rem);
  border-inline: 1px solid #ffffff33;
}

.footer-contact-col {
  padding-left: clamp(2rem, 5vw, 6rem);
}

.footer-logo-link {
  display: inline-block;
  max-width: 27rem;
}

.footer-logo-link .brand-logo {
  display: block;
  width: min(100%, 27rem);
  max-height: none;
}

.footer-accent,
.footer-heading-line {
  display: block;
  width: 2.65rem;
  height: 3px;
  margin: 2rem 0 1.1rem;
  background: var(--red);
}

.footer-brand-col p,
.footer-contact-col p {
  margin: 0;
  color: #d3d3d3;
  font-size: 1rem;
  line-height: 1.55;
}

.footer-divider {
  display: block;
  width: min(100%, 22rem);
  height: 1px;
  margin: 2rem 0;
  background: #ffffff33;
}

.footer-menu-col h3,
.footer-contact-col h3 {
  margin: 0;
  color: var(--red);
  font: 800 1.35rem/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-menu-col .footer-heading-line,
.footer-contact-col .footer-heading-line {
  margin: 1rem 0 1.4rem;
}

.footer-menu-col a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px dashed #ffffff1f;
  color: #e8e8e8;
  font-size: 1rem;
  transition: color .25s ease, padding-left .25s ease;
}

.footer-menu-col a:hover {
  padding-left: .35rem;
  color: var(--red);
}

.footer-contact-col h3:nth-of-type(2) {
  margin-top: 2.2rem;
}

.footer-contact-col > a,
.footer-contact-col > span {
  display: flex;
  gap: .9rem;
  align-items: center;
  margin: 1rem 0;
  color: #e8e8e8;
  font-size: 1rem;
}

.footer-contact-col > a:hover {
  color: var(--red);
}

.footer-contact-col > a > svg,
.footer-contact-col > span > svg {
  flex: 0 0 24px;
  width: 1.35rem;
  height: 1.35rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
}

.footer-socials a {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}

.footer-socials svg {
  display: block;
  fill: #fff;
  stroke: none;
}

.footer-socials img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-socials a:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-3px);
}

.site-footer .legal {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem max(5vw, 2rem);
  border-top: 1px solid #ffffff22;
  background: linear-gradient(105deg, #650b0f, #b12418 48%, #45070a);
  color: #e8e8e8;
  font-size: .85rem;
}

@media (max-width: 768px) {
  .footer-menu-col {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3.5rem 1.4rem 2.5rem;
  }

  .footer-brand-col,
  .footer-menu-col,
  .footer-contact-col {
    padding: 0;
    border: 0;
  }

  .footer-menu-col,
  .footer-contact-col {
    padding-top: 2rem;
    border-top: 1px solid #ffffff33;
  }

  .footer-logo-link .brand-logo {
    width: min(100%, 20rem);
  }

  .site-footer .legal {
    display: grid;
    gap: .5rem;
    text-align: center;
  }
}

/* White testimonial section with a high-contrast 3D carousel. */
.testimonials {
  background: var(--white);
  color: var(--black);
}

.testimonials .section-intro h2,
.testimonials .section-intro > p:not(.eyebrow),
.testimonials .benefits {
  color: var(--black);
}

.testimonials .section-intro h2 {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  font-size: clamp(2rem, 4vw, 4.5rem);
  text-align: center;
  white-space: nowrap;
}

.testimonials-mobile-break {
  display: none;
}

/* Spotify keeps its native player UI; this wrapper gives it a home that matches the site. */
.podcast-section { background: #600000; color: var(--white); padding-block: clamp(4.5rem, 8vw, 8rem); }
.podcast-inner { max-width: 90rem; margin-inline: auto; }
.podcast-copy { max-width: 50rem; margin-bottom: 2.5rem; }
.podcast-copy h2 { max-width: 48rem; margin: .6rem 0 1.25rem; color: var(--white); font-size: clamp(2rem, 3.4vw, 3.6rem); line-height: 1.03; }
.podcast-copy > p:not(.eyebrow) { max-width: 31rem; color: #d7d7d7; font-size: 1.05rem; }
.podcast-link { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.5rem; color: var(--yellow); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.podcast-link span { font-size: 1.35rem; line-height: 1; }
.podcast-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr); gap: 0; align-items: stretch; overflow: hidden; border: 1px solid #7a3030; border-radius: 12px; background: #600000; }
.podcast-player { align-self: stretch; min-width: 0; overflow: hidden; background: transparent; }
.podcast-player iframe { display: block; width: 100%; min-height: 352px; border: 0; border-radius: 0; }
.podcast-episodes { position: relative; z-index: 2; display: flex; min-width: 0; max-height: 352px; margin-left: -8px; flex-direction: column; padding: 20px; overflow: hidden; border-left: 1px solid #d8d0c7; background: #fff; color: #171112; }
.podcast-episodes-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.podcast-episodes-heading h3 { margin: 0; color: #171112; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.podcast-episodes-heading span { color: #756c69; font-size: 11px; }
.podcast-episodes-list { min-height: 0; overflow-y: auto; border-top: 1px solid #d8d0c7; scrollbar-color: #b8b1a5 transparent; }
.podcast-episode { display: grid; grid-template-columns: 32px 1fr 30px; gap: 10px; width: 100%; padding: 13px 9px; border: 0; border-bottom: 1px solid #d8d0c7; background: transparent; color: #171112; text-align: left; cursor: pointer; transition: background-color .2s ease, color .2s ease, padding-left .2s ease; }
.podcast-episode:hover, .podcast-episode:focus-visible, .podcast-episode[aria-current="true"] { background: #f3e7e5; color: #171112; }
.podcast-episode:hover, .podcast-episode:focus-visible { padding-left: 13px; }
.podcast-episode[aria-current="true"] .podcast-episode-number { color: #d94a3f; }
.podcast-episode-number { color: #756c69; font-size: 11px; }
.podcast-episode strong, .podcast-episode small { display: block; }
.podcast-episode strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.podcast-episode small { margin-top: 4px; color: #756c69; font-size: 10px; }
.podcast-episode-icon { color: #600000; font-size: 14px; text-align: right; }
.podcast-episodes-note { margin: 15px 0 0; color: #756c69; font-size: 11px; line-height: 1.5; }
.podcast-episodes-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: 13px; color: #d94a3f; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.podcast-episodes-link span { font-size: 13px; line-height: 1; }

@media (max-width: 768px) {
  .podcast-layout { grid-template-columns: 1fr; }
  .podcast-episodes { max-height: none; margin-left: 0; border-top: 1px solid #3b3b3b; border-left: 0; }
  .podcast-copy { max-width: none; }
  .podcast-copy h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .podcast-episodes { padding: 17px; }
}

.testimonials .show-more {
  color: var(--red);
}

.testimonials .stars {
  color: var(--red);
}

.testimonials .testimonial-rating .stars,
.testimonials .testimonial-rating .star-half {
  color: #fbbc05;
}

.testimonials .testimonial-carousel > .carousel-arrow {
  color: var(--black);
}

.reviews-swiper::before {
  background: linear-gradient(90deg, var(--white) 8%, transparent);
}

.reviews-swiper::after {
  background: linear-gradient(270deg, var(--white) 8%, transparent);
}

@media (max-width: 768px) {
  .testimonials .section-intro h2 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.8rem, calc(8vw + 5px), calc(2.6rem + 5px));
    white-space: normal;
    line-height: 1.05;
  }

  .testimonials-mobile-break {
    display: block;
  }

  .testimonials .testimonial-carousel > .carousel-arrow {
    display: none;
  }
}

.marquee {
  overflow: hidden;
}

.marquee > span {
  display: inline-block;
  min-width: max-content;
  padding-right: 2rem;
  animation: marqueeScroll 22s linear infinite;
  will-change: transform;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes googleBorderShift {
  0%, 100% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
}

.service-slide {
  display: flex;
  min-height: 19rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem !important;
  border: 1px solid var(--red) !important;
  border-radius: 1rem !important;
  background: #080808d9 !important;
  text-align: left !important;
  font: inherit !important;
  text-transform: none;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .35s ease, box-shadow .35s ease, background-color .35s ease;
}

.services .carousel-window { padding-top: .6rem; }

.service-slide:hover {
  border-color: #f27a75 !important;
  background: #160b0bd9 !important;
  box-shadow: 0 .8rem 2rem #0008, 0 0 1.5rem #b1241840;
  transform: translateY(-.45rem);
}

.service-slide h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(.9rem, 1.35vw, 1.35rem);
  line-height: 1.05;
  text-transform: none !important;
  white-space: normal;
}

.service-slide p {
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
  text-transform: none !important;
}

.service-slide a {
  color: var(--yellow);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .services .service-slide h3 {
    font-size: 1.2rem;
  }
}

.posts-empty {
  padding: 2rem 0;
  color: var(--black);
}

.blog-single {
  color: #111;
  background: #f4f4f4;
}

.blog-single-header {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 32rem;
  align-items: flex-end;
  overflow: hidden;
  padding: 12rem max(5vw, 2rem) 5rem;
  color: #fff;
  background: #080808;
  isolation: isolate;
}

.blog-single-header-video,
.blog-single-header-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blog-single-header-video { object-fit: cover; }

.blog-single-header-overlay {
  z-index: -1;
  background: linear-gradient(90deg, #000d 0%, #0009 48%, #0005 100%), linear-gradient(#0007, #0009);
}

.blog-single-header-inner,
.blog-single-content {
  width: min(52rem, 100%);
  margin-inline: auto;
}

.blog-single-header-inner { position: relative; z-index: 1; }

.blog-single-back {
  display: inline-block;
  margin-bottom: 3rem;
  color: var(--yellow);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.blog-single-header h1 {
  max-width: 50rem;
  margin: .8rem 0 1.2rem;
  font: 800 clamp(2.4rem, 5vw, 5.5rem)/1 var(--display);
  letter-spacing: -.07em;
}

.blog-single-meta {
  color: #d7d7d7;
  font-size: .85rem;
}

.blog-single-image {
  position: relative;
  z-index: 2;
  width: min(62rem, calc(100% - 2 * max(5vw, 2rem)));
  margin: -4rem auto 0;
  overflow: hidden;
}

.blog-single-image img {
  display: block;
  width: 100%;
  max-height: 38rem;
  object-fit: cover;
}

.blog-single-toc {
  width: min(52rem, calc(100% - 2 * max(5vw, 2rem)));
  margin: 3.5rem auto 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--red);
  background: #ece9e4;
}

.blog-single-toc p {
  margin: 0 0 .8rem;
  color: #54141b;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.blog-single-toc ol { margin: 0; padding-left: 1.2rem; }
.blog-single-toc li { margin: .35rem 0; color: var(--red); }
.blog-single-toc a { color: #333; font-size: .9rem; font-weight: 700; }

.blog-single-content {
  padding: 4rem 0 7rem;
  font-size: 1.08rem;
  line-height: 1.8;
}

.blog-single-content h2,
.blog-single-content h3 {
  position: relative;
  margin: 3.2rem 0 1rem;
  color: #111;
  font-family: var(--display);
  line-height: 1.1;
}

.blog-single-content h2 {
  padding-top: 1.2rem;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  text-transform: uppercase;
}

.blog-single-content h2::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5rem;
  height: 3px;
  background: var(--red);
  content: '';
}

.blog-single-content h3 {
  color: var(--red);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.blog-single-content p { margin: 0 0 1.35rem; }

.blog-single-content > p:first-child {
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.65;
}

.blog-single-content ul,
.blog-single-content ol {
  margin: 1.5rem 0 2rem;
  padding-left: 1.5rem;
}

.blog-single-content li { margin: .7rem 0; padding-left: .35rem; }

.blog-single-content li::marker { color: var(--red); font-weight: 900; }

.blog-single-content a { color: var(--red); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.blog-single-content blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--red);
  background: #ece9e4;
  color: #54141b;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.55;
}

.blog-single-content img,
.blog-single-content figure {
  max-width: 100%;
  height: auto;
}

.blog-single-content figure { margin: 2.5rem 0; }

.blog-single-content figcaption {
  margin-top: .6rem;
  color: #6e6b66;
  font-size: .78rem;
  font-style: italic;
}

.blog-single-content hr {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid #d2cbc4;
}

.blog-single-cta {
  width: 100%;
  margin: 0 0 6rem;
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  color: #111;
  background: #fff;
  border-top: 4px solid var(--red);
}

.blog-single-cta h2 {
  max-width: 32rem;
  margin: .6rem 0 1.8rem;
  font: 800 clamp(1.7rem, 3.5vw, 3rem)/1 var(--display);
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.blog-single-cta .eyebrow { color: var(--red); }

.blog-single-author {
  width: min(52rem, calc(100% - 2 * max(5vw, 2rem)));
  margin: 0 auto 5rem;
  padding: 2rem 0;
  border-top: 1px solid #d2cbc4;
  border-bottom: 1px solid #d2cbc4;
}

.blog-single-author h2 {
  margin: .45rem 0 .6rem;
  color: #111;
  font: 800 clamp(1.35rem, 2.5vw, 2rem)/1 var(--display);
  text-transform: uppercase;
}

.blog-single-author p:last-child { max-width: 42rem; margin: 0; color: #6e6b66; }

.blog-related {
  padding: 5rem max(5vw, 2rem);
  background: #080808;
  color: #fff;
}

.blog-related-inner { width: min(72rem, 100%); margin-inline: auto; }
.blog-related h2 { margin: .6rem 0 2rem; font: 800 clamp(2rem, 4vw, 4rem)/1 var(--display); text-transform: uppercase; }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.blog-related-card { display: block; padding-bottom: 1.2rem; border-bottom: 1px solid #fff5; transition: transform .3s ease, border-color .3s ease; }
.blog-related-card:hover { border-color: var(--yellow); transform: translateY(-.35rem); }
.blog-related-card img { display: block; width: 100%; aspect-ratio: 1.35; margin-bottom: 1rem; object-fit: cover; }
.blog-related-card span { color: var(--yellow); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.blog-related-card h3 { margin: .6rem 0 0; font: 800 1.25rem/1.1 var(--display); }

@media (max-width: 768px) {
  .blog-single-header { min-height: 29rem; padding: 9rem 1.4rem 4rem; }
  .blog-single-image { width: calc(100% - 2.8rem); margin-top: -2rem; }
  .blog-single-content { padding: 3rem 1.4rem 5rem; font-size: 1rem; }
  .blog-single-content > p:first-child { font-size: 1.08rem; }
  .blog-single-toc { width: calc(100% - 2.8rem); padding: 1.25rem 1.4rem; }
  .blog-single-cta { width: 100%; margin-bottom: 4rem; }
  .blog-single-cta .button { width: 100%; }
  .blog-single-author { width: calc(100% - 2.8rem); margin-bottom: 3.5rem; }
  .blog-related-grid { grid-template-columns: 1fr; }
}

.services .audience-carousel {
  margin-right: calc(max(5vw, 2rem) * -1);
}

/* Keep the practice-section isotipo compact beside the introduction. */
.practice-brand-logo {
  width: 30rem;
}

@media (max-width: 768px) {
  .practice-brand-logo--mobile {
    width: min(30rem, 72vw);
  }
}

@media (max-width: 768px) {
  .services.dark-photo {
    background-image: linear-gradient(#0009, #000c), url('../images/Serviciobgmobile.png');
    background-position: center top;
    background-size: cover;
  }
}

.carousel-dots {
  display: none;
}

.carousel-dot {
  width: .55rem;
  height: .55rem;
  padding: 0;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: .65;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease, opacity .25s ease;
}

.carousel-dot.is-active {
  border-color: var(--red);
  background: var(--red);
  opacity: 1;
  transform: scale(1.25);
}

.arrow-control {
  position: relative;
  display: flex;
  width: 7.5rem;
  min-width: 7.5rem;
  height: 10rem;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.arrow-control.reveal {
  opacity: 0;
  transform: translateX(-2.5rem);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}

.arrow-control.prev.reveal {
  transform: translateX(2.5rem);
}

.arrow-control.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.arrow-control svg {
  display: block;
  overflow: visible;
  flex: 0 0 auto;
  fill: none;
  stroke-width: 21;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}

.arrow-control .arrow-small {
  width: 4.5rem;
  height: 5.6rem;
  transform: translateX(-1.2rem);
}

.arrow-control .arrow-medium {
  width: 5.8rem;
  height: 7.5rem;
  margin-left: -2.6rem;
}

.arrow-control:hover .arrow-small {
  transform: translateX(3.8rem);
}

.arrow-control:hover .arrow-medium {
  transform: scale(.5);
}

.arrow-control--mobile {
  display: none;
}

.arrow-control--mobile .arrow-small { transform: rotate(180deg); }

@media (max-width: 768px) {
  .practice {
    padding-top: 2rem;
  }

  .team-preview {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .team-preview h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .team-preview-visual { order: 2; min-height: 23rem; margin-inline: -1.4rem; }
  .team-preview-visual img { width: 100%; transform: translateY(0) scale(1.03); transform-origin: center bottom; }

  .social-impact-intro { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
  .social-impact h2 { font-size: clamp(2.2rem, 10vw, 3.3rem); }
  .social-impact-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 10rem; gap: .55rem; }
  .social-impact-item--feature { grid-row: span 2; }

  .practice-intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .practice-intro h1,
  .practice-intro h2 {
    font-size: 40px;
    line-height: 1.08;
    text-align: center;
    letter-spacing: .04em;
  }

  .practice-intro .eyebrow {
    text-align: center;
  }

  .practice-intro-copy > p:not(.eyebrow):not(.lede) {
    text-align: justify;
  }

  .practice-intro-copy {
    display: flex;
    flex-direction: column;
  }

  .practice-intro-copy .eyebrow { order: 1; }
  .practice-intro-copy h1,
  .practice-intro-copy h2 { order: 2; }

  .practice-intro-copy > p:last-child {
    display: block;
    order: 3;
    margin-top: 1.5rem;
  }

  .practice-intro .lede {
    display: none;
  }

  .practice .mission p {
    font-size: .9rem;
    line-height: 1.45;
  }

  .practice .mission p a {
    font-size: .72rem;
  }

  .practice-brand-logo {
    width: min(85%, 27rem);
    transform: none;
    display: none;
  }

  .practice-brand-logo--mobile {
    display: block;
    order: 4;
    width: min(72%, 20rem);
    margin: .5rem auto 0;
    transform: translateY(20px);
  }

  .practice-brand-logo--mobile img {
    display: block;
    width: 100%;
    height: auto;
  }

  .principles-overview {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3.5rem;
  }

  .principle-feature {
    padding-left: 1.25rem;
  }

  .values-heading {
    margin-top: 4.5rem;
    padding-right: 1rem;
    border-right: 1px solid #ffffff66;
  }

  .values-panel {
    margin-top: 4.5rem;
    padding: 3rem 1.4rem 3.5rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    border-right: 1px solid #ffffff66;
  }

  .values-grid::after {
    display: none;
  }

  .values-grid::before {
    display: none;
  }

  .value-card,
  .value-card--wide {
    grid-column: auto;
    min-height: 0;
    border-left: 0;
    border-top: 1px solid #ffffff66;
  }

  .value-card:first-child {
    border-top: 0;
  }

  .services .section-intro {
    text-align: center;
  }

  .services .section-intro h2 {
    line-height: normal;
  }

  .services .section-intro > p:not(.eyebrow) {
    margin-inline: auto;
  }

  .services .audience-carousel {
    grid-template-columns: 1fr;
    margin-right: 0;
    gap: 1.25rem;
  }

  /* Mobile uses the exact same double-arrow control as desktop. */
  .services .arrow-control { display: none; }

  .carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    min-height: 1rem;
  }
}

.menu-dialog .menu-item {
  display: flex;
  justify-content: space-between;
  color: var(--white);
  font: 800 clamp(1.7rem, 3.5vw, 4.2rem) var(--display);
  letter-spacing: .025em;
  text-transform: uppercase;
}

@media (min-width: 769px) {
  .hero-art img,
  .hero-art video {
    object-position: 50% center;
    transform: translate3d(0, var(--hero-parallax-y, 0px), 0);
  }

  .hero-content {
    width: 38%;
    margin-left: 58.5%;
    transform: translateY(100px);
  }

  .hero h1 {
    font-size: clamp(2.64rem, 4.5vw, 5.28rem);
  }
}

@keyframes zoomDesktopContained {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .site-header .menu-trigger {
    display: grid;
  }

  /* Keep the desktop-style hero readable on tablet widths without
     allowing the copy block to run past the right edge. */
  .hero-content {
    width: 36%;
    margin-left: 58%;
  }
}

@media (max-width: 768px) {
  :root {
    --mobile-header-height: 6.75rem;
  }

  .hero {
    height: 100svh;
    min-height: 100svh;
  }

  .desktop-nav {
    display: none;
  }

  .site-header .menu-trigger {
    display: grid;
  }

  /* Mobile keeps the hero copy as one centered column. */
  .hero-content {
    width: 100%;
    margin-left: 0;
    position: static;
    transform: none;
    text-align: center;
  }

  .hero-art img,
  .hero-art video {
    width: 100%;
    height: 32rem;
    object-fit: cover;
    object-position: 10% center;
    transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(.9);
  }

  .hero-art {
    inset: 6rem 0 0;
  }

  .brand-logo {
    width: 8.5rem;
    max-height: 3rem;
  }

  .hero-content {
    padding-top: calc(var(--mobile-header-height) + 2.75rem + env(safe-area-inset-top));
  }

  .hero-caption {
    position: absolute;
    top: calc(var(--mobile-header-height) + 1rem + env(safe-area-inset-top));
    right: 1.4rem;
    left: 1.4rem;
    z-index: 2;
    margin: 0;
  }

  .hero h1 {
    position: relative;
    top: calc(10rem + 80px);
    left: -20px;
    right: auto;
    width: calc(100% - 2.8rem);
    margin: 0 1.4rem;
    font-size: 3.35rem;
    line-height: .96;
    text-align: left;
  }


  .hero-description {
    position: absolute;
    right: 1.4rem;
    top: calc(34rem + 45px);
    left: 1.4rem;
    bottom: auto;
    margin: 0 auto;
    max-width: none;
    text-align: left;
  }

  .hero-caption > span {
    display: block;
  }

  .hero-cta {
    position: absolute;
    z-index: 2;
    right: 5%;
    bottom: calc(2rem + 70px);
    left: 5%;
    display: inline-flex;
    width: 90%;
    margin: 0;
  }

  .about {
    grid-template-columns: 1fr;
    padding-bottom: 8rem;
  }

  .about-visual {
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin-inline: -1.4rem;
    border-radius: 0;
  }

  .about > .about-visual {
    display: none;
  }

  .about-copy .about-visual--mobile {
    display: block;
    width: calc(100% + 1.25rem);
    margin: 2rem 0 2.25rem -1.25rem;
  }

  .about-copy {
    padding-left: 1.25rem;
  }

  .about-copy h1,
  .about-copy h2 {
    margin-top: .35rem;
    font-size: calc(1.75rem + 10px);
    line-height: 1.08;
  }

  .about-copy::before { top: -3rem; }

  .about-logo {
    display: none;
    width: 8.4rem;
    height: auto;
    margin: 0 0 2rem;
    object-fit: contain;
  }

  .about-logo-label {
    display: none;
    top: 3.25rem;
    left: calc(1.4rem + 9.8rem);
    max-width: calc(100% - 12rem);
    font-size: .55rem;
    letter-spacing: .1em;
  }

}



/* Let the following sections slide over the pinned hero. */
.section,
.consultation,
.site-footer {
  position: relative;
  z-index: 1;
}

/* El fondo del footer debe cubrir todo el ancho, aunque el contenido conserve su max-width. */
.site-footer {
  background: #f4f0e8 !important;
}

/* Smart sticky navigation: hide it while scrolling down and reveal it on the way up. */
.site-header {
  background: transparent;
  backdrop-filter: none;
  border-top: 0;
  border-image: none;
  transition: transform .35s ease;
  will-change: transform;
}

.site-header::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  content: '';
  transition: background-color .7s ease, backdrop-filter .7s ease, transform .35s ease;
  will-change: transform;
  transform: translateY(0);
}

.site-header > * {
  position: relative;
  z-index: 1;
}

/* Independent top rule: it never participates in the background animation. */
.site-header::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: var(--grad);
  content: '';
  pointer-events: none;
}

/* Keep the gradient rule visible even when the navbar background is hidden. */
.site-header {
  isolation: isolate;
}

.site-header.nav-hidden::before {
  transform: none;
}

.site-header.nav-hidden {
  transform: translateY(-100%);
}

@media (max-width: 768px) {
  .site-header {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header .brand {
    min-width: 0;
  }

  .site-header .header-actions {
    min-width: 0;
  }

  .site-header::after { height: 6px; }
}

/* Dialog panels are sections too; reset the page-section rules inside overlays. */
.menu-dialog nav[hidden],
.menu-dialog section[hidden] { display: none !important; }

.menu-dialog section {
  min-height: 0;
  padding: 0;
  background: transparent;
}

/* Reference-style fullscreen menu reveal and staggered navigation. */
.menu-dialog {
  z-index: 1001;
  opacity: 0;
  transform: translateY(-1rem);
  transition: opacity .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
}

.menu-dialog.menu-is-open {
  opacity: 1;
  transform: none;
}

.menu-dialog nav a,
.menu-dialog nav button {
  opacity: 0;
  transform: translateX(-5rem);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1), color .3s ease;
}

.menu-dialog.menu-is-open nav a,
.menu-dialog.menu-is-open nav button {
  opacity: 1;
  transform: none;
}

/* Returning from a submenu replays the main menu's original staggered entrance. */
.menu-dialog.menu-returning nav a,
.menu-dialog.menu-returning nav button {
  opacity: 0;
  transform: translateX(-5rem);
}

.menu-dialog.menu-is-open nav a:nth-child(1),
.menu-dialog.menu-is-open nav button:nth-child(1) { transition-delay: .1s; }
.menu-dialog.menu-is-open nav a:nth-child(2),
.menu-dialog.menu-is-open nav button:nth-child(2) { transition-delay: .15s; }
.menu-dialog.menu-is-open nav a:nth-child(3),
.menu-dialog.menu-is-open nav button:nth-child(3) { transition-delay: .2s; }
.menu-dialog.menu-is-open nav a:nth-child(4),
.menu-dialog.menu-is-open nav button:nth-child(4) { transition-delay: .25s; }
.menu-dialog.menu-is-open nav a:nth-child(5),
.menu-dialog.menu-is-open nav button:nth-child(5) { transition-delay: .3s; }
.menu-dialog.menu-is-open nav a:nth-child(6),
.menu-dialog.menu-is-open nav button:nth-child(6) { transition-delay: .35s; }

.menu-dialog section[data-submenu-panel] {
  position: absolute;
  top: 10rem;
  right: 5rem;
  left: 45%;
  display: block;
  opacity: 0;
  transform: translateX(5rem);
  transition: opacity .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
}

.menu-dialog section[data-submenu-panel]:not([hidden]) {
  opacity: 1;
  transform: none;
}

.menu-dialog section[data-submenu-panel].submenu-panel-visible {
  opacity: 1;
  transform: none;
}

/* The submenu is a second menu view: replace the brand header with Back. */
.menu-dialog.menu-submenu-open .menu-brand {
  display: none;
}

.menu-dialog.menu-submenu-open section[data-submenu-panel]:not([hidden]) .submenu-back {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin: 0 0 1.5rem;
}

.menu-dialog section[data-submenu-panel] h2 {
  padding-bottom: 1.25rem;
  border-bottom: 2px solid transparent;
  border-image: var(--grad) 1;
}

.menu-dialog section[data-submenu-panel] .mobile-submenu-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.menu-dialog section[data-submenu-panel] .mobile-submenu-grid > div {
  border-bottom: 0;
}

.submenu-back {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--red);
  font: 800 .8rem var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-dialog section h2 {
  margin: 1.5rem 0 2rem;
}

.mobile-submenu-grid {
  display: grid;
  gap: 1.5rem;
}

.mobile-submenu-grid > div {
  padding: 1rem 0;
  border-bottom: 1px solid #ffffff2b;
}

@media (max-width: 768px) {
  .menu-dialog {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 6rem 1.4rem 3rem;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: var(--black);
  }

  .header-actions {
    gap: .55rem;
    overflow: clip;
  }

  .site-header .menu-trigger svg {
    left: 0;
    width: 2.25rem;
  }

  .appointment-link {
    min-height: 2rem;
    padding: .5rem .65rem;
    font-size: .55rem;
    letter-spacing: .04em;
  }

  .menu-brand {
    display: block;
    width: 100%;
    margin: 0 0 2.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--red);
  }

  .menu-brand img {
    display: block;
    width: min(14rem, 68vw);
    height: auto;
  }

  .menu-dialog nav a,
  .menu-dialog nav button,
  .menu-dialog .menu-item,
  .menu-dialog section h2,
  .mobile-submenu-grid h3,
  .submenu-back {
    color: var(--red);
  }

  .menu-dialog nav a,
  .menu-dialog nav button,
  .menu-dialog .menu-item {
    font-size: clamp(1.45rem, 6.2vw, 1.8rem);
    line-height: 1.12;
  }

  .menu-dialog nav {
    gap: .85rem;
    padding-top: .75rem;
  }

  .mobile-submenu-grid a {
    color: var(--black);
  }

  .nav-dropdown {
    display: none;
  }

  .menu-dialog .menu-item--trigger {
    color: var(--red);
  }

  .menu-dialog section[data-submenu-panel] {
    position: static;
    inset: auto;
    opacity: 0;
    transform: translateX(2rem);
    transition: opacity .32s ease, transform .32s cubic-bezier(.22,1,.36,1);
  }

  .menu-dialog.menu-submenu-open section[data-submenu-panel]:not([hidden]) {
    display: block;
    padding-top: .25rem;
  }

  .menu-dialog section[data-submenu-panel].submenu-panel-visible {
    opacity: 1;
    transform: none;
  }

  .menu-dialog section[data-submenu-panel] .mobile-submenu-grid {
    grid-template-columns: 1fr;
  }
}

/* Submenu typography: keep the hierarchy clear without heavy bold text. */
.menu-dialog section[data-submenu-panel] h2 {
  margin: 1.75rem 0 2.5rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.menu-dialog section[data-submenu-panel] .submenu-back {
  font-weight: 500;
  letter-spacing: .08em;
}

.menu-dialog section[data-submenu-panel] .mobile-submenu-grid {
  gap: 1.5rem 2.5rem;
}

.menu-dialog section[data-submenu-panel] .mobile-submenu-grid > div {
  display: grid;
  gap: 0;
  padding: 0 0 1.1rem;
  border-bottom: 1px solid currentColor;
  opacity: .92;
}

.menu-dialog section[data-submenu-panel] .mobile-submenu-grid h3 {
  margin: 0 0 .35rem;
  font: 500 1rem/1.1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.menu-dialog section[data-submenu-panel] .mobile-submenu-grid a {
  font: 400 1.15rem/1.35 var(--body);
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 768px) {
  .menu-dialog section[data-submenu-panel] h2 {
    font-size: clamp(2rem, 8vw, 3.4rem);
  }

  .menu-dialog section[data-submenu-panel] .mobile-submenu-grid {
    gap: 1.35rem;
  }

  .menu-dialog section[data-submenu-panel] .mobile-submenu-grid > div {
    padding-bottom: 1.1rem;
  }

  .menu-dialog section[data-submenu-panel] .mobile-submenu-grid h3 {
    color: var(--red);
  }

  .menu-dialog section[data-submenu-panel] .mobile-submenu-grid a {
    color: var(--black);
    font-size: 1.05rem;
  }
}

/* Staggered entrance for the practice-areas submenu, matching the main menu. */
.menu-dialog section[data-submenu-panel] .submenu-back,
.menu-dialog section[data-submenu-panel] h2,
.menu-dialog section[data-submenu-panel] .mobile-submenu-grid > div,
.menu-dialog section[data-submenu-panel] .mobile-submenu-grid a {
  opacity: 0;
  transform: translateX(-5rem);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1);
}

.menu-dialog section[data-submenu-panel].submenu-panel-visible .submenu-back,
.menu-dialog section[data-submenu-panel].submenu-panel-visible h2,
.menu-dialog section[data-submenu-panel].submenu-panel-visible .mobile-submenu-grid > div,
.menu-dialog section[data-submenu-panel].submenu-panel-visible .mobile-submenu-grid a {
  opacity: 1;
  transform: none;
}

.menu-dialog section[data-submenu-panel].submenu-panel-visible .submenu-back { transition-delay: .05s; }
.menu-dialog section[data-submenu-panel].submenu-panel-visible h2 { transition-delay: .12s; }
.menu-dialog section[data-submenu-panel].submenu-panel-visible .mobile-submenu-grid > div:nth-child(1) { transition-delay: .2s; }
.menu-dialog section[data-submenu-panel].submenu-panel-visible .mobile-submenu-grid > div:nth-child(2) { transition-delay: .3s; }
.menu-dialog section[data-submenu-panel].submenu-panel-visible .mobile-submenu-grid > div:nth-child(3) { transition-delay: .4s; }
.menu-dialog section[data-submenu-panel].submenu-panel-visible .mobile-submenu-grid > div a:nth-child(2) { transition-delay: .48s; }
.menu-dialog section[data-submenu-panel].submenu-panel-visible .mobile-submenu-grid > div a:nth-child(3) { transition-delay: .56s; }

/* The navbar switches to a dark treatment while it sits over the hero. */
body.hero-is-visible:not(.menu-layer-open) .site-header::before {
  background: rgba(0, 0, 0, .82);
}

body.hero-is-visible:not(.menu-layer-open) .site-header .desktop-nav a,
body.hero-is-visible:not(.menu-layer-open) .site-header .nav-dropdown-trigger {
  color: #fff;
}

body.hero-is-visible:not(.menu-layer-open) .site-header .desktop-nav a::after,
body.hero-is-visible:not(.menu-layer-open) .site-header .nav-dropdown-trigger::after {
  background: #fff;
}

body.hero-is-visible:not(.menu-layer-open) .site-header .menu-trigger svg {
  stroke: #fff;
}

/* Match the hero state before deferred JavaScript runs, preventing first-paint flicker. */
html.initial-hero .site-header::before {
  background: rgba(0, 0, 0, .82);
}

html.initial-hero .site-header .desktop-nav a,
html.initial-hero .site-header .nav-dropdown-trigger {
  color: #fff;
}

html.initial-hero .site-header .desktop-nav a::after,
html.initial-hero .site-header .nav-dropdown-trigger::after {
  background: #fff;
}

/* Dropdown links stay white in every navbar state. */
.site-header .desktop-nav .nav-dropdown a,
.site-header .desktop-nav .nav-dropdown a:hover,
.site-header .desktop-nav .nav-dropdown a:focus-visible {
  color: #fff !important;
}

.site-header .desktop-nav .nav-dropdown a::after {
  background: #fff;
}

html.initial-hero .site-header .menu-trigger svg {
  stroke: #fff;
}

body.menu-layer-open .site-header .menu-trigger svg {
  stroke: var(--red);
}
.posts .post {
  position: relative;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .35s ease, background-color .35s ease;
}

.posts .post:hover,
.posts .post:focus-visible {
  z-index: 1;
  border-color: var(--red);
  background-color: #fafafa;
  transform: translateX(.45rem);
}

.posts .post:hover img,
.posts .post:focus-visible img {
  transform: none;
}

.posts .post:hover figure::after,
.posts .post:focus-visible figure::after,
.posts .post:hover figure span,
.posts .post:focus-visible figure span {
  opacity: 0;
  transform: none;
}

/*
Editorial archive layout for the native WordPress publications page.
.publication-archive {
  padding-top: 13rem;
  background: #f5f4f1;
}

.publication-archive .section-intro {
  max-width: 70rem;
}

.publication-archive .section-intro h1 {
  max-width: 62rem;
  margin: .75rem 0 1.25rem;
  color: #111;
  font: 800 clamp(2.8rem, 6vw, 6.8rem)/.94 var(--display);
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.publication-archive .section-intro > p:last-child {
  max-width: 44rem;
  margin-bottom: 0;
  color: #5e5b57;
  font-size: 1.08rem;
}

.publication-archive-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 5rem;
  padding: 1rem 0;
  border-top: 1px solid #bdbbb5;
  border-bottom: 1px solid #bdbbb5;
  color: #6c6862;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.publication-archive-head span:first-child {
  color: var(--red);
}

.publication-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.publication-archive .publication-card {
  display: flex;
  position: relative;
  min-width: 0;
  padding: 0;
  border: 1px solid #d5d2cc;
  background: #fff;
  color: #111;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease;
}

.publication-archive .publication-card:hover,
.publication-archive .publication-card:focus-visible {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 1.25rem 2.5rem #241a1417;
  transform: translateY(-.35rem);
}

.publication-archive .publication-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(21rem, .95fr);
}

.publication-archive .publication-card figure {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.publication-archive .publication-card figure::after {
  background: linear-gradient(135deg, #b12418d9, #0000001a 65%);
  opacity: .82;
  transition: opacity .35s ease;
}

.publication-archive .publication-card:hover figure::after,
.publication-archive .publication-card:focus-visible figure::after {
  opacity: .55;
}

.publication-archive .publication-card img {
  width: 100%;
  height: 100%;
  min-height: 19rem;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.publication-archive .publication-card:hover img,
.publication-archive .publication-card:focus-visible img {
  transform: scale(1.045);
}

.publication-archive .publication-card figure span {
  right: 1.4rem;
  bottom: 1.2rem;
  display: inline-flex;
  gap: .6rem;
  align-items: center;
  color: #fff;
  font-size: .7rem;
  letter-spacing: .12em;
}

.publication-archive .publication-card figure span b {
  font-size: 1.2rem;
  line-height: 1;
}

.publication-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 3.5rem);
}

.publication-card-label {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  color: var(--red);
}

.publication-card-label small {
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.publication-card-label i {
  width: .25rem;
  height: .25rem;
  border-radius: 50%;
  background: var(--yellow);
}

.publication-archive .publication-card h2 {
  margin: 1.25rem 0 .9rem;
  color: #111;
  font: 800 clamp(1.4rem, 2.25vw, 2.6rem)/1.05 var(--display);
  letter-spacing: -.06em;
  text-transform: none;
}

.publication-archive .publication-card--featured h2 {
  max-width: 34rem;
  font-size: clamp(1.8rem, 3.5vw, 4rem);
}

.publication-archive .publication-card p {
  margin: 0;
  color: #68645f;
  font-size: .96rem;
  line-height: 1.65;
}

.publication-archive .publication-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  margin: auto 0 0;
  padding-top: 2rem;
  color: #77736d;
  font-size: .64rem;
  letter-spacing: .08em;
}

.publication-archive .publication-card footer b {
  color: #111;
}

@media (max-width: 768px) {
  .publication-archive {
    padding-top: 7rem;
  }

  .publication-archive-head {
    display: grid;
    gap: .45rem;
    margin-top: 3rem;
  }

  .publication-archive-grid {
    grid-template-columns: 1fr;
  }

  .publication-archive .publication-card--featured {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }

  .publication-archive .publication-card figure,
  .publication-archive .publication-card img {
    min-height: 14rem;
  }

  .publication-card-body {
    padding: 1.5rem;
  }

  .publication-archive .publication-card footer {
    margin-top: 1.5rem;
  }
}
*/

/* Compact editorial archive layout. */
.publication-archive {
  padding-top: clamp(5.5rem, 8vw, 7rem);
  background: #f8f6f1;
}

.publication-archive .section-intro h1 {
  max-width: 60rem;
  margin: .7rem 0 1rem;
  color: #651d28;
  font: 700 clamp(2.35rem, 3.5vw, 4rem)/1.02 var(--display);
  letter-spacing: -.06em;
  text-transform: none;
}

.publication-archive .section-intro > p:last-child {
  max-width: 43rem;
  margin-bottom: 0;
  color: #5f5b56;
}

.publication-archive-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding: .85rem 0;
  border-top: 1px solid #c8c4bd;
  border-bottom: 1px solid #c8c4bd;
  color: #6c6862;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.publication-archive-meta span:first-child {
  color: var(--red);
}

.publication-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.publication-archive .publication-editorial-card {
  display: flex;
  min-width: 0;
  padding: 0;
  border: 1px solid #d4d0c9;
  background: #fff;
  color: #111;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.publication-archive .publication-editorial-card:hover,
.publication-archive .publication-editorial-card:focus-visible {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 1rem 2rem #241a1417;
  transform: translateY(-.25rem);
}

.publication-archive .publication-editorial-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .9fr);
}

.publication-archive .publication-editorial-card figure {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.publication-archive .publication-editorial-card figure::after {
  display: none;
}

.publication-archive .publication-editorial-card:hover figure::after,
.publication-archive .publication-editorial-card:focus-visible figure::after {
  opacity: .5;
}

.publication-archive .publication-editorial-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 17rem;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform .6s ease;
}

.publication-archive .publication-editorial-card:hover img,
.publication-archive .publication-editorial-card:focus-visible img {
  transform: scale(1.04);
}

.publication-archive .publication-editorial-card figure span {
  right: 1.25rem;
  bottom: 1.1rem;
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  color: #fff;
  font-size: .68rem;
  letter-spacing: .1em;
}

.publication-archive .publication-editorial-card figure span b {
  font-size: 1.1rem;
}

.publication-editorial-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.35rem, 2.8vw, 2.8rem);
}

.publication-editorial-label {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  color: var(--red);
}

.publication-editorial-label small {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.publication-editorial-label i {
  width: .22rem;
  height: .22rem;
  border-radius: 50%;
  background: var(--yellow);
}

.publication-archive .publication-editorial-card h2 {
  margin: 1rem 0 .75rem;
  color: #111;
  font: 700 clamp(1.25rem, 2vw, 2rem)/1.13 var(--display);
  letter-spacing: -.035em;
  text-transform: none;
}

.publication-archive .publication-editorial-card--featured h2 {
  max-width: none;
  font-size: clamp(1.6rem, 2.7vw, 2.7rem);
}

.publication-archive .publication-editorial-card p {
  margin: 0;
  color: #68645e;
  font-size: .92rem;
  line-height: 1.6;
}

.publication-archive .publication-editorial-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin: auto 0 0;
  padding-top: 1.8rem;
  color: #77736d;
  font-size: .62rem;
  letter-spacing: .06em;
}

.publication-archive .publication-editorial-card footer b {
  color: #111;
}

@media (max-width: 768px) {
  .publication-archive {
    padding-top: 7rem;
  }

  .publication-archive-meta {
    display: grid;
    gap: .4rem;
    margin-top: 2.8rem;
  }

  .publication-editorial-grid {
    grid-template-columns: 1fr;
  }

  .publication-archive .publication-editorial-card--featured {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }

  .publication-archive .publication-editorial-card figure,
  .publication-archive .publication-editorial-card img {
    min-height: 13rem;
  }

  .publication-editorial-copy {
    padding: 1.35rem;
  }
}

/* Secondary cards stay proportional when their copy is longer. */
.publication-archive .publication-editorial-card:not(.publication-editorial-card--featured) {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.publication-archive .publication-editorial-card:not(.publication-editorial-card--featured) figure {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1.65 / 1;
}

.publication-archive .publication-editorial-card:not(.publication-editorial-card--featured) img {
  min-height: 0;
  height: 100%;
}

.publication-archive .publication-editorial-card:not(.publication-editorial-card--featured) .publication-editorial-copy {
  min-height: 19rem;
}

.publication-archive .publication-editorial-card:not(.publication-editorial-card--featured) h2 {
  max-width: none;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
}

/* Blog card titles keep hierarchy without inheriting the heaviest global weight. */
.publication-archive .publication-editorial-card h2 {
  font-weight: 700 !important;
}

.publication-archive .publication-editorial-card--featured h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
}

.contact-form .form-label {
  margin: 1rem 0 .15rem;
  color: #111;
  font-weight: 800;
}

.contact-form .form-label span {
  color: #777;
  font-weight: 400;
}

.contact-form select {
  width: 100%;
  min-height: 2.65rem;
  padding: .45rem .8rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: #f1f1f1;
  color: var(--black);
  font: inherit;
}

.contact-form select:focus {
  border-color: var(--red);
  outline: 0;
  background: var(--white);
}

.contact-form .appointment-choice {
  display: grid;
  gap: .15rem;
  margin-bottom: .5rem;
}

.contact-form .appointment-choice label {
  display: flex;
  gap: .55rem;
  align-items: center;
  margin-top: 0;
}

.contact-form .appointment-choice input[type="radio"] {
  width: auto;
  min-height: 0;
  accent-color: var(--red);
}

.contact-form .appointment-required > label {
  margin-top: .65rem;
}

.contact-form .appointment-date-time {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: .1rem;
}

.contact-form .appointment-date-time label {
  display: block;
  margin-top: .65rem;
}

.contact-form .appointment-date-time input {
  margin-top: .3rem;
}

.contact-form .appointment-date-time select {
  margin-top: .3rem;
}

.appointment-status {
  min-height: 1.25rem;
  margin: .65rem 0 0;
  color: #666;
  font-size: .78rem;
  line-height: 1.5;
}

.consultation-payment-info,
.consultation-payment-summary,
.consultation-payment-acceptance {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--red);
  background: #f5f2ee;
  color: #262626;
  font-size: .86rem;
  line-height: 1.55;
}
.consultation-payment-info[hidden], .consultation-payment-summary[hidden], .consultation-payment-acceptance[hidden] { display: none !important; }
.consultation-payment-info__title,
.consultation-payment-summary .form-label { margin: 0 0 .35rem; color: var(--red); font-weight: 900; }
.consultation-payment-info p:last-child,
.consultation-payment-summary p:last-child { margin: 0; }
.consultation-payment-summary strong { color: var(--red); }
.consultation-payment-acceptance { display: flex; align-items: flex-start; gap: .65rem; border-left-color: #287a4b; }
.consultation-payment-acceptance input { flex: 0 0 auto; margin-top: .25rem; accent-color: var(--red); }
.payment-confirmation { margin: 1rem 0 1.5rem; padding: 1.25rem; border-left: 4px solid #287a4b; background: #edf7f1; color: #262626; line-height: 1.6; }
.payment-confirmation h3 { margin: 0 0 .7rem; color: #205f35; font-size: 1.15rem; }
.payment-confirmation p { margin: .7rem 0; }
.payment-confirmation dl { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: .3rem 1rem; margin: 1rem 0; }
.payment-confirmation dt { font-weight: 800; }
.payment-confirmation dd { margin: 0; }
.payment-confirmation a { color: #205f35; font-weight: 800; text-decoration: underline; }
.appointment-confirmation-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 1.25rem; }
.appointment-confirmation-modal[hidden] { display: none !important; }
.appointment-confirmation-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(10, 18, 27, .72); cursor: pointer; }
.appointment-confirmation-modal__card { position: relative; width: min(100%, 620px); max-height: min(90vh, 760px); overflow-y: auto; padding: clamp(1.35rem, 3vw, 2.25rem); border: 1px solid rgba(168, 29, 36, .18); border-radius: 14px; background: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, .3); }
.appointment-confirmation-modal__close { position: absolute; top: .55rem; right: .7rem; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: transparent; color: #5b6068; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.appointment-confirmation-modal__close:hover, .appointment-confirmation-modal__close:focus-visible { background: #f3f4f5; color: #a81d24; }
.appointment-confirmation-modal__eyebrow { margin: 0 2.5rem .65rem 0; color: #a81d24; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.appointment-confirmation-modal__success { margin: 0 0 1rem; padding: .9rem 1rem; border-left: 4px solid #287a4b; background: #edf7f1; color: #205f35; font-weight: 700; line-height: 1.5; }
.appointment-confirmation-modal .payment-confirmation { margin: 0; }
.appointment-confirmation-modal__dismiss { display: block; margin: 1.15rem 0 0 auto; padding: .7rem 1.25rem; border: 0; border-radius: 999px; background: #a81d24; color: #fff; font-weight: 800; cursor: pointer; }
@media (max-width: 600px) { .appointment-confirmation-modal { padding: .75rem; } .appointment-confirmation-modal__card { max-height: 94vh; padding: 1.25rem; } .appointment-confirmation-modal .payment-confirmation dl { grid-template-columns: 1fr; gap: .15rem; } .appointment-confirmation-modal .payment-confirmation dd { margin-bottom: .45rem; } }

.appointment-notice {
  margin: 0 0 1.25rem;
  padding: .85rem 1rem;
  border-left: 3px solid var(--red);
  background: #f5f2ee;
  color: #262626;
  font-size: .86rem;
  line-height: 1.55;
}

.appointment-notice--success {
  border-left-color: #287a4b;
  background: #edf7f1;
}

.contact-form select:disabled,
.contact-form input:disabled,
.contact-form button:disabled {
  cursor: not-allowed;
  opacity: .62;
}

@media (max-width: 560px) {
  .contact-form .appointment-date-time {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 768px) {
  .publication-archive .publication-editorial-card:not(.publication-editorial-card--featured) figure {
    aspect-ratio: 1.6 / 1;
  }

  .publication-archive .publication-editorial-card:not(.publication-editorial-card--featured) .publication-editorial-copy {
    min-height: 0;
  }
}

.gradient-button {
  transition: filter .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}

.gradient-button:hover,
.gradient-button:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-3px);
  box-shadow: 0 .65rem 1.25rem #7c111833;
}

.text-links .about-secondary-link,
.mission a,
.service-slide a,
.team-preview .button {
  transition: color .25s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
}

.text-links .about-secondary-link:hover,
.text-links .about-secondary-link:focus-visible,
.mission a:hover,
.mission a:focus-visible,
.service-slide a:hover,
.service-slide a:focus-visible {
  color: var(--red);
  transform: translateX(.35rem);
}

.service-slide a b,
.mission a {
  display: inline-block;
}

.service-slide a:hover b,
.service-slide a:focus-visible b,
.mission a:hover,
.mission a:focus-visible {
  transform: translateX(.25rem);
}

/* Global heading rhythm: prevent condensed display titles from colliding. */
:root {
  --tracking-headings: .02em;
  --leading-headings: 1.12;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: var(--tracking-headings) !important;
  line-height: var(--leading-headings) !important;
}

/* La Firma hero v2: isolated implementation based on the supplied HTML. */
.firm-page { padding-top: 6.75rem; }
.elementor-widget-jj-firm-hero {
  width: 100vw !important;
  max-width: none !important;
  flex-basis: auto !important;
  align-self: stretch !important;
  margin-left: calc(50% - 50vw) !important;
  position: relative;
  z-index: 1;
  background: #eee8de;
}
.elementor-widget-jj-firm-hero h1 {
  font-family: var(--e-global-typography-primary-font-family, var(--display)) !important;
}
.e-con-inner:has(> .elementor-widget-jj-firm-hero),
.e-con:has(.elementor-widget-jj-firm-hero) {
  gap: 0 !important;
  padding: 0 !important;
}
.elementor-widget-jj-firm-history {
  --firm-paper: #f7f6f3;
  --firm-paper-deep: #eeece8;
  --firm-ink: #171717;
  --firm-line: #d6d2cb;
  --firm-red: #9e1820;
  width: 100vw !important;
  max-width: none !important;
  flex-basis: auto !important;
  align-self: stretch !important;
  margin-left: calc(50% - 50vw) !important;
  position: relative;
  z-index: 1;
}
.elementor-widget-jj-firm-history h1,
.elementor-widget-jj-firm-history h2,
.elementor-widget-jj-firm-history h3 {
  font-family: var(--e-global-typography-primary-font-family, var(--display)) !important;
}
.elementor-widget-jj-firm-history p,
.elementor-widget-jj-firm-history li,
.elementor-widget-jj-firm-history a,
.elementor-widget-jj-firm-history button {
  font-family: var(--e-global-typography-text-font-family, var(--body)) !important;
}
.elementor-widget-jj-firm-trajectory {
  --firm-paper: #f7f6f3;
  --firm-paper-deep: #eeece8;
  --firm-ink: #171717;
  --firm-line: #d6d2cb;
  --firm-red: #9e1820;
  width: 100vw !important;
  max-width: none !important;
  flex-basis: auto !important;
  align-self: stretch !important;
  margin-left: calc(50% - 50vw) !important;
  position: relative;
  z-index: 1;
}
.elementor-widget-jj-firm-trajectory h1,
.elementor-widget-jj-firm-trajectory h2,
.elementor-widget-jj-firm-trajectory h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-firm-trajectory p,
.elementor-widget-jj-firm-trajectory li,
.elementor-widget-jj-firm-trajectory a,
.elementor-widget-jj-firm-trajectory button { font-family: var(--e-global-typography-text-font-family, var(--body)) !important; }
.elementor-widget-jj-firm-philosophy {
  --firm-paper: #f7f6f3;
  --firm-paper-deep: #eeece8;
  --firm-ink: #171717;
  --firm-line: #d6d2cb;
  --firm-red: #9e1820;
  width: 100vw !important;
  max-width: none !important;
  flex-basis: auto !important;
  align-self: stretch !important;
  margin-left: calc(50% - 50vw) !important;
  position: relative;
  z-index: 1;
}
.elementor-widget-jj-firm-philosophy .firm-page--elementor-widget { padding-top: 0; }
.elementor-widget-jj-firm-philosophy h1,
.elementor-widget-jj-firm-philosophy h2,
.elementor-widget-jj-firm-philosophy h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-firm-philosophy p,
.elementor-widget-jj-firm-philosophy li,
.elementor-widget-jj-firm-philosophy a,
.elementor-widget-jj-firm-philosophy button { font-family: var(--e-global-typography-text-font-family, var(--body)) !important; }
.elementor-widget-jj-firm-values {
  --firm-paper: #f7f6f3;
  --firm-paper-deep: #eeece8;
  --firm-ink: #171717;
  --firm-line: #d6d2cb;
  --firm-red: #9e1820;
  width: 100vw !important;
  max-width: none !important;
  flex-basis: auto !important;
  align-self: stretch !important;
  margin-left: calc(50% - 50vw) !important;
  position: relative;
  z-index: 1;
}
.elementor-widget-jj-firm-values .firm-page--elementor-widget { padding-top: 0; }
.elementor-widget-jj-firm-values h1,
.elementor-widget-jj-firm-values h2,
.elementor-widget-jj-firm-values h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-firm-values .firm-value-row strong { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-firm-values p,
.elementor-widget-jj-firm-values li,
.elementor-widget-jj-firm-values a,
.elementor-widget-jj-firm-values button { font-family: var(--e-global-typography-text-font-family, var(--body)) !important; }
.elementor-widget-jj-firm-experience {
  --firm-paper: #f7f6f3;
  --firm-paper-deep: #eeece8;
  --firm-ink: #171717;
  --firm-line: #d6d2cb;
  --firm-red: #9e1820;
  width: 100vw !important;
  max-width: none !important;
  flex-basis: auto !important;
  align-self: stretch !important;
  margin-left: calc(50% - 50vw) !important;
  position: relative;
  z-index: 1;
}
.elementor-widget-jj-firm-experience .firm-page--elementor-widget { padding-top: 0; }
.elementor-widget-jj-firm-experience h1,
.elementor-widget-jj-firm-experience h2,
.elementor-widget-jj-firm-experience h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-firm-experience p,
.elementor-widget-jj-firm-experience li,
.elementor-widget-jj-firm-experience a,
.elementor-widget-jj-firm-experience button { font-family: var(--e-global-typography-text-font-family, var(--body)) !important; }
.elementor-widget-jj-firm-why {
  --firm-paper: #f7f6f3;
  --firm-paper-deep: #eeece8;
  --firm-ink: #171717;
  --firm-line: #d6d2cb;
  --firm-red: #9e1820;
  width: 100vw !important;
  max-width: none !important;
  flex-basis: auto !important;
  align-self: stretch !important;
  margin-left: calc(50% - 50vw) !important;
  position: relative;
  z-index: 1;
}
.elementor-widget-jj-firm-why .firm-page--elementor-widget { padding-top: 0; }
.elementor-widget-jj-firm-why h1,
.elementor-widget-jj-firm-why h2,
.elementor-widget-jj-firm-why h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-firm-why p,
.elementor-widget-jj-firm-why li,
.elementor-widget-jj-firm-why a,
.elementor-widget-jj-firm-why button { font-family: var(--e-global-typography-text-font-family, var(--body)) !important; }
.elementor-widget-jj-firm-responsibility {
  --firm-paper: #f7f6f3;
  --firm-paper-deep: #eeece8;
  --firm-ink: #171717;
  --firm-line: #d6d2cb;
  --firm-red: #9e1820;
  width: 100vw !important;
  max-width: none !important;
  flex-basis: auto !important;
  align-self: stretch !important;
  margin-left: calc(50% - 50vw) !important;
  position: relative;
  z-index: 1;
}
.elementor-widget-jj-firm-responsibility .firm-page--elementor-widget { padding-top: 0; }
.elementor-widget-jj-firm-responsibility h1,
.elementor-widget-jj-firm-responsibility h2,
.elementor-widget-jj-firm-responsibility h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-firm-responsibility p,
.elementor-widget-jj-firm-responsibility li,
.elementor-widget-jj-firm-responsibility a,
.elementor-widget-jj-firm-responsibility button { font-family: var(--e-global-typography-text-font-family, var(--body)) !important; }
.elementor-widget-jj-firm-cta {
  width: 100vw !important;
  max-width: none !important;
  flex-basis: auto !important;
  align-self: stretch !important;
  margin-left: calc(50% - 50vw) !important;
  position: relative;
  z-index: 1;
}
.elementor-widget-jj-firm-cta .firm-page--elementor-widget { padding-top: 0; }
.elementor-widget-jj-firm-cta h1,
.elementor-widget-jj-firm-cta h2,
.elementor-widget-jj-firm-cta h3 { font-family: var(--e-global-typography-primary-font-family, var(--display)) !important; }
.elementor-widget-jj-firm-cta p,
.elementor-widget-jj-firm-cta li,
.elementor-widget-jj-firm-cta a,
.elementor-widget-jj-firm-cta button { font-family: var(--e-global-typography-text-font-family, var(--body)) !important; }
.elementor-widget-jj-firm-cta .firm-cta .eyebrow { color: #fff !important; }
.firm-hero-v2 {
  --firm-wine: #651012;
  --firm-wine-deep: #280506;
  --firm-gold: #c29a59;
  --firm-paper: #f2efe8;
  width: 100vw;
  max-width: 100vw;
  display: grid;
  grid-template-columns: 47% 53%;
  min-height: calc(100svh - 6.75rem);
  height: min(790px, calc(100svh - 6.75rem));
  min-height: 690px;
  overflow: hidden;
  color: #fff;
  background: #eee8de;
}
.firm-hero-copy-v2 {
  position: relative;
  z-index: 7;
  margin-right: -10.6%;
  padding-right: 12%;
  background: radial-gradient(circle at 15% 64%, #8F242C26, transparent 35%), linear-gradient(113deg, #560A11 0%, #420309 44%, #681018 76%, #2B0105 100%);
  clip-path: polygon(0 0, 100% 0, 88.8% 100%, 0 100%);
}
.firm-hero-copy-v2::after { position: absolute; inset: 0; background: linear-gradient(108deg, transparent 0 56%, #76151D21 56.2% 57%, transparent 57.2% 100%); content: ''; pointer-events: none; }
.firm-copy-inner-v2 { position: relative; z-index: 2; width: min(690px, 82%); margin-left: clamp(68px, 6vw, 102px); padding-top: clamp(92px, 10vh, 125px); }
.firm-eyebrow-v2 { margin: 0 0 1.25rem; color: #fff; font: 500 clamp(.75rem, 1vw, 1rem)/1 var(--body); letter-spacing: .22em; text-transform: uppercase; }
.firm-hero-v2 h1 { margin: 0; color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(50px, 4vw, 70px); font-weight: 400; line-height: 1.05 !important; letter-spacing: -.015em !important; text-transform: uppercase; }
.firm-hero-v2 h1 span, .firm-hero-v2 h1 strong { display: block; }
.firm-hero-v2 h1 strong { color: #d1b47d; font-weight: 400; }
.firm-gold-rule-v2 { width: 80px; height: 2px; margin: 30px 0 28px; background: linear-gradient(90deg, var(--firm-gold), var(--firm-gold) 70%, #c29a5959 70%); }
.firm-lede-v2 { max-width: 590px; margin: 0 0 38px; color: #fffc; font: 400 clamp(17px, 1.35vw, 22px)/1.55 var(--body); }
.firm-cta-v2 { display: flex; align-items: center; justify-content: space-between; width: min(370px, 80%); height: 64px; padding: 0 37px; border: 1px solid #d1b47d; background: #680d0f61; box-shadow: inset 0 0 0 1px #c29a5940; color: #fff; font: 400 16px var(--body); letter-spacing: .05em; text-transform: uppercase; transition: background .3s ease, color .3s ease; }
.firm-cta-v2 b { color: var(--firm-gold); font-size: 27px; font-weight: 300; transform: translateY(-1px); }
.firm-cta-v2:hover { background: #d1b47d; color: var(--firm-wine-deep); }
.firm-monogram-v2 { position: absolute; right: 17%; bottom: -80px; color: #6e121326; font: 210px/1 Georgia, 'Times New Roman', serif; transform: skewX(-8deg); }
.firm-document-stage-v2 { position: relative; z-index: 3; overflow: hidden; color: #5c1c18; background: linear-gradient(115deg, #f0ece4, #e8e1d5 62%, #f3efe7); }
.firm-document-stage-v2::before { position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(circle at 25% 20%, #4d2d1b1c 0 .7px, transparent .9px), radial-gradient(circle at 62% 38%, #4d2d1b14 0 .6px, transparent .8px); background-size: 7px 7px, 11px 11px; content: ''; pointer-events: none; }
.firm-tabs-rail-v2 { position: absolute; z-index: 7; inset: 0 auto 0 0; display: grid; grid-template-rows: repeat(3, 1fr); width: 22.5%; overflow: visible; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.firm-slanted-tab-v2 { position: relative; overflow: visible; padding: 70px 24px 35px 39%; border: 0; background: transparent; color: #5c1c18; text-align: left; cursor: pointer; transition: background .5s cubic-bezier(.22, 1, .36, 1), color .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s ease; box-shadow: inset 0 1px 0 #fff8, inset 0 -1px 0 #ae9a7e29; }
.firm-slanted-tab-v2:not(:last-child)::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: linear-gradient(to bottom, #fff9 0 50%, #b8a48861 50% 100%); box-shadow: 0 2px 5px #6d53360f; content: ''; pointer-events: none; }
.firm-slanted-tab-v2:first-child { transform: translateX(30px); }
.firm-slanted-tab-v2:nth-child(3) { transform: translateX(-30px); }
.firm-tab-number-v2 { display: block; margin-bottom: 13px; font: 400 clamp(30px, 2.3vw, 42px)/1 Georgia, serif; }
.firm-tab-label-v2 { display: block; font: 500 clamp(11px, .88vw, 15px)/1 var(--body); letter-spacing: .075em; text-transform: uppercase; }
.firm-tab-rule-v2 { display: block; width: 42px; height: 1px; margin-top: 14px; background: var(--firm-gold); transition: width .25s ease, transform .25s ease; }
.firm-slanted-tab-v2.is-active { color: #6f1a17; }
.firm-slanted-tab-v2:hover .firm-tab-number-v2, .firm-slanted-tab-v2:hover .firm-tab-label-v2 { color: #a87932; transform: none; }
.firm-slanted-tab-v2:hover .firm-tab-rule-v2 { width: 64px; transform: none; }
.firm-info-panel-v2 { position: absolute; z-index: 5; top: 50%; left: 31%; width: min(58%, 760px); transform: translateY(-50%); color: #5c1c18; transition: opacity .22s ease, transform .22s ease; }
.firm-info-panel-v2.is-changing { opacity: 0; transform: translateY(calc(-50% + 10px)); }
.firm-info-kicker-v2 { margin: 0 0 22px; color: #a87932; font: 600 13px/1 var(--body); letter-spacing: .24em; text-transform: uppercase; }
.firm-info-title-v2 { max-width: 720px; margin: 0; font: 400 clamp(46px, 4.5vw, 78px)/.98 Georgia, serif !important; letter-spacing: -.025em !important; text-transform: none !important; }
.firm-info-rule-v2 { width: 86px; height: 2px; margin: 30px 0; background: var(--firm-gold); }
.firm-info-body-v2 { max-width: 650px; margin: 0; color: #42271cb3; font: 400 clamp(16px, 1.25vw, 20px)/1.65 Georgia, serif; }
.firm-info-bottom-v2 { display: flex; align-items: flex-end; gap: 54px; margin-top: 44px; }
.firm-info-stat-v2 strong { display: block; color: #6f1a17; font: 400 clamp(38px, 3.2vw, 56px)/1 Georgia, serif; }
.firm-info-stat-v2 span { display: block; max-width: 160px; margin-top: 8px; color: #42271c8c; font: 400 11px/1.4 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.firm-info-link-v2 { display: inline-flex; align-items: center; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid #6f1a173d; color: #6f1a17; font: 600 12px var(--body); letter-spacing: .12em; text-transform: uppercase; }
.firm-info-link-v2 b { color: var(--firm-gold); font-size: 22px; font-weight: 400; transition: transform .2s ease; }
.firm-info-link-v2:hover b { transform: translateX(6px); }

/* La Firma: entrada editorial y parallax orgánico de baja intensidad. */
@keyframes firmHeroPanelIn {
  from { opacity: 0; transform: translateX(-2.5rem); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes firmHeroStageIn {
  from { opacity: 0; transform: translateX(2.5rem); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes firmHeroLineIn {
  from { opacity: 0; transform: translateY(1.4rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes firmHeroRuleIn {
  from { opacity: 0; transform: scaleX(0); transform-origin: left; }
  to { opacity: 1; transform: scaleX(1); transform-origin: left; }
}
@keyframes firmHeroInfoIn {
  from { opacity: 0; transform: translate3d(2.5rem, -50%, 0); }
  to { opacity: 1; transform: translate3d(0, -50%, 0); }
}
@keyframes firmHeroMonogramFloat {
  0%, 100% { transform: translate3d(var(--firm-parallax-x, 0), var(--firm-parallax-y, 0), 0) skewX(-8deg); }
  50% { transform: translate3d(var(--firm-parallax-x, 0), calc(var(--firm-parallax-y, 0) - 8px), 0) skewX(-8deg); }
}
.firm-hero-copy-v2 { animation: firmHeroPanelIn 1s cubic-bezier(.22, 1, .36, 1) both; }
.firm-document-stage-v2 { animation: firmHeroStageIn 1.15s cubic-bezier(.22, 1, .36, 1) .12s both; }
.firm-copy-inner-v2 > * { opacity: 0; animation: firmHeroLineIn .75s cubic-bezier(.22, 1, .36, 1) both; }
.firm-copy-inner-v2 .firm-eyebrow-v2 { animation-delay: .28s; }
.firm-copy-inner-v2 h1 { animation-delay: .4s; }
.firm-copy-inner-v2 .firm-gold-rule-v2 { animation: firmHeroRuleIn .65s cubic-bezier(.22, 1, .36, 1) .78s both; }
.firm-copy-inner-v2 .firm-lede-v2 { animation-delay: .92s; }
.firm-copy-inner-v2 .firm-cta-v2 { animation-delay: 1.08s; }
.firm-tabs-rail-v2 { animation: firmHeroLineIn .9s cubic-bezier(.22, 1, .36, 1) .45s both; }
.firm-hero-v2.is-intro .firm-info-panel-v2 { animation: firmHeroInfoIn .95s cubic-bezier(.22, 1, .36, 1) .62s both; }
.firm-monogram-v2 { animation: firmHeroMonogramFloat 8s ease-in-out 1.2s infinite; }
.firm-document-stage-v2::before { transform: translate3d(var(--firm-parallax-x, 0), var(--firm-parallax-y, 0), 0) scale(1.02); transition: transform 1s cubic-bezier(.22, 1, .36, 1); }

@media (prefers-reduced-motion: reduce) {
  .firm-hero-copy-v2, .firm-document-stage-v2, .firm-copy-inner-v2 > *, .firm-tabs-rail-v2, .firm-monogram-v2 { animation: none; opacity: 1; transform: none; }
  .firm-info-panel-v2 { animation: none; opacity: 1; transform: translateY(-50%); }
  .firm-document-stage-v2::before { transform: none; }
}

@media (max-width: 1320px) and (min-width: 1081px) {
  .firm-hero-v2 { grid-template-columns: 45% 55%; }
  .firm-copy-inner-v2 { margin-left: 54px; }
  .firm-slanted-tab-v2 { padding-left: 36%; }
}

@media (max-width: 1080px) {
  .firm-page { padding-top: 6.75rem; }
  .firm-hero-v2 { display: block; height: auto; min-height: 0; }
  .firm-hero-copy-v2 { min-height: 620px; margin: 0; padding-right: 0; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
  .firm-copy-inner-v2 { width: min(640px, 82%); padding-top: 90px; padding-bottom: 120px; }
  .firm-document-stage-v2 { height: 720px; margin-top: -38px; }
}

@media (max-width: 700px) {
  .firm-page { padding-top: 4.875rem; }
  .firm-hero-copy-v2 { min-height: 0; clip-path: none; background: linear-gradient(145deg, #560A11 0%, #681018 62%, #2B0105 100%); }
  .firm-copy-inner-v2 { width: auto; margin: 0; padding: 54px 24px 46px; }
  .firm-hero-v2 h1 { font-size: clamp(42px, 12vw, 56px); line-height: 1 !important; }
  .firm-lede-v2 { margin-bottom: 28px; font-size: 16px; line-height: 1.55; }
  .firm-cta-v2 { width: 100%; height: 56px; padding: 0 20px; font-size: 12px; }
  .firm-monogram-v2 { right: -18px; bottom: -18px; font-size: 120px; }
  .firm-document-stage-v2 { display: flex; flex-direction: column; height: auto; min-height: 0; margin: 0; overflow: hidden; }
  .firm-tabs-rail-v2 { position: relative; inset: auto; order: 1; width: 100%; height: auto; display: grid; grid-template: 1fr / repeat(3, minmax(0, 1fr)); clip-path: none; overflow: visible; background: #f7f3ebfa; border-bottom: 1px solid #50271824; }
  .firm-slanted-tab-v2, .firm-slanted-tab-v2:first-child, .firm-slanted-tab-v2:nth-child(3) { min-width: 0; min-height: 112px; padding: 20px 5px 17px; transform: none; border-right: 1px solid #50271824; text-align: center; }
  .firm-slanted-tab-v2:last-child { border-right: 0; }
  .firm-slanted-tab-v2:not(:last-child)::after { display: none; }
  .firm-tab-number-v2 { margin-bottom: 10px; font-size: 30px; }
  .firm-tab-label-v2 { width: 100%; overflow: visible; font-size: 8px; letter-spacing: .035em; white-space: normal; text-overflow: clip; }
  .firm-tab-rule-v2 { width: 34px; margin: 11px auto 0; }
  .firm-slanted-tab-v2:hover .firm-tab-number-v2, .firm-slanted-tab-v2:hover .firm-tab-label-v2, .firm-slanted-tab-v2:hover .firm-tab-rule-v2 { transform: none; }
  .firm-info-panel-v2 { position: relative; inset: auto; order: 2; width: 100%; min-height: 390px; padding: 42px 24px 44px; transform: none; animation: none; opacity: 1; }
  .firm-info-panel-v2.is-changing { transform: translateY(8px); }
  .firm-info-kicker-v2 { margin-bottom: 16px; font-size: 11px; }
  .firm-info-title-v2 { max-width: none; font-size: clamp(36px, 10vw, 46px) !important; line-height: 1.02 !important; }
  .firm-info-rule-v2 { margin: 24px 0; }
  .firm-info-body-v2 { font-size: 16px; line-height: 1.6; }
  .firm-info-bottom-v2 { align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; }
  .firm-info-stat-v2 strong { font-size: 42px; }
  .firm-info-stat-v2 span { max-width: 125px; font-size: 9px; }
  .firm-info-link-v2 { max-width: 150px; font-size: 9px; line-height: 1.4; }
}

/* Equipo — paso 1: hero editorial de contenido mínimo. */
.team-page {
  --team-red: #600000;
  --team-paper: #f7f6f3;
  background: var(--team-paper);
}

.team-page-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #160608;
}

.team-page-hero-media,
.team-page-hero-overlay,
.team-page-hero-cutout {
  position: absolute;
  inset: 0;
}

.team-page-hero-media {
  display: block;
  z-index: -2;
}

.team-page-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.88) contrast(1.03);
  transform: none;
}

.team-page-hero-media picture,
.team-page-hero-cutout picture {
  display: block;
  width: 100%;
  height: 100%;
}

.team-page-hero-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(8,8,8,.84) 0%, rgba(42,5,9,.68) 42%, rgba(8,8,8,.2) 100%), linear-gradient(0deg, rgba(8,8,8,.55), transparent 42%);
}

.team-page-hero-cutout {
  z-index: 2;
  pointer-events: none;
}

.team-page-hero-cutout img {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: translateY(100px) scale(.825);
}

.team-page-hero-content {
  align-self: center;
  position: relative;
  z-index: auto;
  width: min(78rem, 90%);
  margin-inline: auto;
  padding: 8rem 0 4rem;
  text-align: center;
}

.team-page-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 58rem;
  margin: 0 auto 2.2rem;
  font: 800 clamp(3.2rem, 7vw, 8rem)/.91 var(--display);
  letter-spacing: -.075em;
  text-transform: uppercase;
  transform: translateY(75px);
}

.team-page-hero h1 .hero-title-accent { color: var(--team-red); }

.team-page-hero-cta {
  position: relative;
  z-index: 10 !important;
  background: var(--team-red);
  margin-inline: auto;
  transition: background-color .3s ease, transform .3s ease;
}

.team-page-hero-cta:hover,
.team-page-hero-cta:focus-visible {
  background: #600000;
  transform: translateY(-.2rem);
}

@media (max-width: 768px) {
  .team-page-hero-media img { object-position: 58% center; }
  .team-page-hero-cutout img { transform: translateY(100px) scale(1.15); }
  .team-page-hero h1 { transform: translateY(-125px); }
  .team-page-hero-cta { transform: translateY(70px); }

  .team-page-hero-overlay {
    background: linear-gradient(90deg, rgba(8,8,8,.78), rgba(42,5,9,.46)), linear-gradient(0deg, rgba(8,8,8,.72), rgba(8,8,8,.12) 70%);
  }

  .team-page-hero-content {
    width: auto;
    margin-inline: 1.4rem;
    padding: 8rem 0 3rem;
  }

  .team-page-hero h1 {
    margin-bottom: 1.8rem;
    font-size: clamp(3rem, 13vw, 5rem);
  }
}

/* El grupo se mantiene centrado con más aire visual alrededor. */
.team-page-hero-media {
  background: #080808;
}

.team-page-intro {
  padding: clamp(2.8rem, 5vw, 4.8rem) max(5vw, 2rem);
  color: #fff;
  background: var(--team-red);
}

.team-page-intro-inner {
  display: grid;
  grid-template-columns: minmax(10rem, .5fr) minmax(0, 1fr) minmax(17rem, .9fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  width: min(90rem, 100%);
  margin-inline: auto;
}

.team-page-intro-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  align-self: start;
}

.team-page-intro-label .eyebrow {
  color: #fff;
  font-size: .7rem;
}

.team-page-intro-rule {
  width: 2.5rem;
  height: 2px;
  background: #fff;
}

.team-page-intro-copy {
  max-width: 53rem;
}

.team-page-intro-copy h2 {
  margin: 0;
  font: 800 clamp(1.8rem, 3.2vw, 3.6rem)/.98 var(--display);
  letter-spacing: 0;
  text-transform: uppercase;
}

.team-page-intro-copy p {
  max-width: 31rem;
  margin: 0;
  color: #fff;
  font-size: clamp(.9rem, 1.1vw, 1.05rem);
  line-height: 1.55;
}

.team-page-intro-meta {
  grid-column: 3;
  margin: 1rem 0 0;
  padding-top: .8rem;
  border-top: 1px solid #fff7;
  color: #fff;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .team-page-intro-inner {
    display: block;
  }

  .team-page-intro-label {
    margin-bottom: 1.6rem;
  }

  .team-page-intro-copy h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.9rem, 8.4vw, 3rem);
  }

  .team-page-intro-copy p { max-width: 34rem; }

  .team-page-intro-meta {
    margin-top: 1.5rem;
  }
}

.team-founder {
  padding: clamp(5rem, 9vw, 9rem) max(5vw, 2rem);
  color: #171717;
  background: #fff;
  border-top: 1px solid #d6d2cb;
}

.team-founder-inner {
  display: grid;
  grid-template-columns: minmax(18rem, .82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
  width: min(90rem, 100%);
  margin-inline: auto;
}

.team-founder-media {
  position: relative;
  min-height: 42rem;
  margin: 0;
  overflow: hidden;
  background: #e9e6e1;
}

.team-founder-media::after {
  position: absolute;
  inset: 1rem;
  border: 1px solid #fff9;
  content: '';
  pointer-events: none;
}

.team-founder-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 42rem;
  object-fit: cover;
  object-position: center;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}

.team-founder-media:hover img { transform: scale(1.035); }

.team-founder-content { padding-top: .4rem; }

.team-founder-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.team-founder-kicker > span {
  display: inline-grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  color: #fff;
  background: var(--team-red);
  font: 800 1.2rem var(--display);
}

.team-founder-kicker .eyebrow { color: var(--team-red); }

.team-founder-content h2 {
  max-width: 46rem;
  margin: 0 0 1.4rem;
  font: 800 clamp(2.8rem, 5vw, 5.8rem)/.94 var(--display);
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.team-founder-summary {
  max-width: 42rem;
  margin: 0;
  color: var(--team-red);
  font: 800 clamp(1.25rem, 2vw, 1.8rem)/1.15 var(--display);
  letter-spacing: -.035em;
}

.team-founder-details {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(13rem, .9fr);
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d6d2cb;
}

.team-founder-details h3 {
  margin: 0 0 .8rem;
  color: var(--team-red);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.team-founder-details p {
  margin: 0 0 1rem;
  color: #4f4c48;
  font-size: .98rem;
  line-height: 1.65;
}

.team-founder-masters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

.team-founder-masters-card {
  min-height: 9.5rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid #d4b3b5;
  background: #fff8f8;
}

.team-founder-masters-label {
  display: block;
  margin-bottom: .75rem;
  color: var(--team-red);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.team-founder-masters-card h4,
.team-founder-additional-studies h4 {
  margin: 0 0 .45rem;
  color: #292624;
  font-size: 1rem;
  line-height: 1.2;
}

.team-founder-masters-title {
  margin: 1.4rem 0 .6rem !important;
  color: var(--team-red) !important;
  font-size: .7rem !important;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.team-founder-career-second {
  margin-top: 1rem !important;
}

.team-founder-masters-card p {
  margin: 0 0 .5rem;
  font-size: .82rem;
  line-height: 1.4;
}

.team-founder-masters-card strong {
  color: var(--team-red);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-founder-additional-studies {
  padding-top: 1rem;
  border-top: 1px solid #e1ddd7;
}

.team-founder-additional-studies h4 {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.team-founder-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.team-founder-tags li {
  padding: .45rem .65rem;
  border: 1px solid #c8c3bc;
  color: #4f4c48;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .team-founder-inner,
  .team-founder-details {
    display: block;
  }

  .team-founder-media,
  .team-founder-media img {
    min-height: 31rem;
  }

  .team-founder-content { padding-top: 2.8rem; }

  .team-founder-content h2 { font-size: clamp(2.6rem, 12vw, 4.2rem); }

  .team-founder-details > div + div {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d6d2cb;
  }

  .team-founder-masters { grid-template-columns: 1fr; }
}

/* Sistema tipográfico global: Manrope y espaciado estándar en titulares. */
:root {
  --display: 'Manrope', Arial, sans-serif;
  --body: 'Manrope', Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.mission strong,
.service-card span,
.menu-dialog nav a,
.menu-dialog nav button,
.consultation p,
.marquee,
.firm-story-year,
.firm-benefits-signature span,
.firm-benefits-signature p,
.firm-value-row strong,
.firm-why-step h3,
.firm-benefit-row strong {
  font-family: var(--display) !important;
  letter-spacing: normal !important;
}

.elementor-widget-jj-firm-why .firm-why-step h3 {
  font-family: var(--e-global-typography-primary-font-family, var(--display)) !important;
}

/* Ningún titular debe comprimirse: el espaciado de headings es siempre estándar. */
body [class] h1,
body [class] h2,
body [class] h3,
body [class] h4,
body [class] h5,
body [class] h6,
.firm-info-title-v2,
.firm-hero-v2 h1 {
  letter-spacing: 0 !important;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr) !important; width: 100%; min-width: 0; }
  .contact-form-wrap { width: 100%; max-width: 100%; }
  .contact-location h2 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero-main-copy { position: absolute; right: 1.4rem; bottom: calc(2rem + 70px); left: 1.4rem; display: flex; flex-direction: column; align-items: stretch; gap: 1rem; }
  .hero-main-copy h1, .hero-main-copy .hero-description, .hero-main-copy .hero-cta { position: static; width: 100%; margin: 0; }
  .hero-main-copy h1 { transform: none; }
  .hero-main-copy .hero-description { max-width: none; }
}

/* Lista editorial interactiva del equipo. */
.team-roster { padding: clamp(5rem, 9vw, 9rem) max(5vw, 2rem); color: #171717; background: var(--team-paper); border-top: 1px solid #d6d2cb; }
.team-roster-inner { width: min(90rem, 100%); margin-inline: auto; }
.team-roster-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 2.6rem; }
.team-roster-heading .eyebrow { color: var(--team-red); }
.team-roster-heading h2 { max-width: 40rem; margin: 0; font: 800 clamp(2rem, 3.5vw, 4rem)/1 var(--display); letter-spacing: 0; text-align: right; text-transform: uppercase; }
.team-member { border-top: 1px solid #b8b2aa; }
.team-member:last-child { border-bottom: 1px solid #b8b2aa; }
.team-member-trigger { display: grid; grid-template-columns: 4rem minmax(17rem, 1.2fr) minmax(12rem, .7fr) 2rem; gap: 1.5rem; align-items: center; width: 100%; padding: 1.45rem 0; border: 0; background: transparent; color: #171717; text-align: left; cursor: pointer; }
.team-member-trigger:hover, .team-member-trigger:focus-visible { color: var(--team-red); }
.team-member-trigger:focus-visible { outline: 2px solid var(--team-red); outline-offset: 5px; }
.team-member-number { color: #8d8780; font: 800 1.1rem var(--display); transition: color .25s ease; }
.team-member-heading { display: grid; gap: .3rem; }
.team-member-heading strong { font-size: clamp(1.15rem, 1.8vw, 1.7rem); font-weight: 800; line-height: 1.15; }
.team-member-heading em { color: #77716b; font-size: .72rem; font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.team-member-summary { color: #77716b; font-size: .78rem; font-weight: 700; line-height: 1.4; }
.team-member-arrow { justify-self: end; color: var(--team-red); font-size: 1.7rem; transition: transform .3s ease; }
.team-member.is-open .team-member-number { color: var(--team-red); }
.team-member.is-open .team-member-arrow { transform: rotate(90deg); }
.team-member-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .8fr); gap: 3rem; padding: 0 4rem 2rem 5.5rem; color: #4f4c48; animation: teamPanelIn .3s ease both; }
.team-member-panel h3 { margin: 0 0 .7rem; color: var(--team-red); font-size: .7rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.team-member-panel p { max-width: 42rem; margin: 0; font-size: .95rem; line-height: 1.65; }
.team-member-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.team-member-tags li { padding: .42rem .6rem; border: 1px solid #d4b3b5; color: #631116; font-size: .7rem; font-weight: 800; }
@keyframes teamPanelIn { from { opacity: 0; transform: translateY(-.4rem); } to { opacity: 1; transform: none; } }
@media (max-width: 768px) {
  .team-roster-heading { display: block; margin-bottom: 2rem; }
  .team-roster-heading h2 { margin-top: .8rem; text-align: left; }
  .team-member-trigger { grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem; gap: .8rem; padding: 1.2rem 0; }
  .team-member-summary { grid-column: 2; }
  .team-member-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .team-member-panel { display: block; padding: 0 0 1.6rem 3.3rem; }
  .team-member-panel > div + div { margin-top: 1.5rem; }
}

/* Ficha desplegada: competencias, contenido central y foto reservada. */
.team-member-panel {
  grid-template-columns: minmax(16rem, .88fr) minmax(0, 1.12fr) minmax(11rem, .68fr);
  gap: clamp(2rem, 3.5vw, 4rem);
  padding-left: 5.5rem;
}

.team-member-photo-slot { grid-column: 1; grid-row: 1; }
.team-member-bio { grid-column: 2; grid-row: 1; }
.team-member-competencies { grid-column: 3; grid-row: 1; }

.team-member-panel > div + div { margin-top: 0; }

.team-member-photo-slot {
  position: relative;
  width: min(100%, 18rem);
  aspect-ratio: 3 / 4;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d4b3b5;
  background: linear-gradient(145deg, #eeeae5, #d8d2cb);
}

.team-member-photo-slot::before,
.team-member-photo-slot::after {
  position: absolute;
  background: var(--team-red);
  content: '';
}

.team-member-photo-slot::before { top: 1rem; right: 1rem; width: 2.5rem; height: 2px; }
.team-member-photo-slot::after { top: 1rem; right: 1rem; width: 2px; height: 2.5rem; }

.team-member-photo-slot span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  color: #7b161c;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.team-member-photo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.team-member-photo-slot--eury img {
  object-position: center 28%;
  transform: scale(1.18);
  transform-origin: center 28%;
}

@media (max-width: 768px) {
  .team-member-panel { display: grid; grid-template-columns: 1fr; padding-left: 3.3rem; }
  .team-member-bio { grid-column: auto; grid-row: auto; order: 1; }
  .team-member-photo-slot { grid-column: auto; grid-row: auto; order: 2; }
  .team-member-competencies { grid-column: auto; grid-row: auto; order: 3; }
  .team-member-panel > div + div { margin-top: 1.5rem; }
  .team-member-photo-slot { width: min(100%, 19rem); }
}

/* Cierre de Equipo y llamada a la acción. */
.team-page-cta {
  padding: clamp(4rem, 7vw, 7rem) max(5vw, 2rem);
  color: #fff;
  background: var(--team-red);
}

.team-page-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(15rem, .7fr) auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  width: min(90rem, 100%);
  margin-inline: auto;
}

.team-page-cta .eyebrow { color: #fff9; }

.team-page-cta h2 {
  max-width: 44rem;
  margin: .8rem 0 0;
  font: 800 clamp(2rem, 3.6vw, 4.2rem)/.98 var(--display);
  letter-spacing: 0;
  text-transform: uppercase;
}

.team-page-cta-copy {
  max-width: 22rem;
  margin: 0;
  color: #fff;
  font-size: .98rem;
  line-height: 1.6;
}

.team-page-cta-button {
  align-self: end;
  background: #fff;
  color: var(--team-red);
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.team-page-cta-button:hover,
.team-page-cta-button:focus-visible {
  background: #171717;
  color: #fff;
  transform: translateY(-.2rem);
}

@media (max-width: 768px) {
  .team-page-cta-inner { display: block; }
  .team-page-cta h2 { margin-bottom: 1.3rem; font-size: clamp(2rem, 9vw, 3.3rem); }
  .team-page-cta-copy { max-width: 34rem; margin-bottom: 1.7rem; }
  .team-page-cta-button { width: 100%; }
}

@media (max-width: 700px) {
  .firm-hero-v2 h1 { font-size: clamp(42px, 12vw, 56px) !important; }
}

/* Ficha editorial del fundador: más ritmo, contraste y jerarquía. */
.team-founder-inner {
  grid-template-columns: minmax(18rem, .78fr) minmax(0, 1.22fr);
  gap: clamp(3rem, 6vw, 6.5rem);
}

.team-founder-media {
  z-index: 0;
  border: 0;
}

.team-founder-media::before {
  position: absolute;
  z-index: -1;
  top: 1.3rem;
  right: -1.1rem;
  bottom: -1.3rem;
  left: 1.1rem;
  background: var(--team-red);
  content: '';
}

.team-founder-kicker {
  margin-bottom: 1rem;
}

.team-founder-content h2 {
  max-width: 38rem;
  font-size: clamp(2rem, 2.6vw, 3.4rem) !important;
  line-height: 1.02;
  letter-spacing: 0 !important;
  text-transform: none;
}

.team-founder-founded {
  margin: -.4rem 0 1.7rem;
  color: var(--team-red);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.team-founder-summary {
  max-width: 39rem;
  padding-left: 1rem;
  border-left: 3px solid var(--team-red);
  color: #45413d;
  font-size: clamp(1.05rem, 1.3vw, 1.3rem) !important;
  font-weight: 600;
  line-height: 1.45;
}

.team-founder-details {
  gap: clamp(2rem, 4vw, 4.5rem);
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid #d6d2cb;
}

.team-founder-details h3 {
  margin-bottom: 1rem;
  letter-spacing: .12em;
}

.team-founder-details p {
  font-size: .94rem;
  line-height: 1.65;
}

.team-founder-tags ul {
  gap: .55rem;
  margin-bottom: 2.2rem;
}

.team-founder-tags li {
  padding: .48rem .7rem;
  border-color: #d4b3b5;
  background: #fff8f8;
  color: #631116;
  font-size: .7rem;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}

.team-founder-tags li:hover {
  border-color: var(--team-red);
  background: var(--team-red);
  color: #fff;
}

@media (max-width: 768px) {
  .team-founder-media::before {
    top: .8rem;
    right: -.6rem;
    bottom: -.8rem;
    left: .6rem;
  }

  .team-founder-content h2 { font-size: clamp(2rem, 8.4vw, 3rem) !important; }

  .team-founder-founded { margin-bottom: 1.4rem; }
}

/* Cintillo de Equipo: una sola composición centrada, sin columnas. */
.team-page-intro-inner {
  display: block;
  width: min(68rem, 100%);
  text-align: center;
}

.team-page-intro-label {
  justify-content: center;
  margin-bottom: 1.2rem;
}

.team-page-intro-copy h2 {
  max-width: 52rem;
  margin: 0 auto .9rem;
  font-size: clamp(1.9rem, 2.8vw, 3.2rem) !important;
  line-height: 1.02;
}

.team-page-intro-copy p {
  max-width: 52rem;
  margin-inline: auto;
  font-size: clamp(.9rem, 1.05vw, 1.05rem);
}

.team-page-intro-meta {
  width: min(34rem, 100%);
  margin: 1.15rem auto 0;
  grid-column: auto;
  text-align: center;
}

/* Ajuste de escala: titulares señalados, aproximadamente 30% más contenidos. */
.firm-hero-v2 h1 { font-size: clamp(2.2rem, 2.8vw, 3.5rem) !important; }
.firm-info-title-v2 { font-size: clamp(2rem, 3.15vw, 3.9rem) !important; }
.firm-copy h2,
.firm-section-inner > h2,
.firm-red-panel h2,
.firm-cta h2 { font-size: clamp(1.8rem, 3.5vw, 4rem) !important; }
.firm-philosophy-panel h2 { font-size: clamp(2.5rem, 4.9vw, 5.3rem) !important; }
.firm-why-red-panel h2 { font-size: clamp(1.9rem, 3.5vw, 3.5rem) !important; }
.team-page-hero h1 {
  max-width: 72rem;
  font-size: clamp(2.25rem, 3.8vw, 4.5rem) !important;
}
.team-page-intro-copy h2 { font-size: clamp(2rem, 3.65vw, 4.2rem) !important; }
.team-founder-content h2 { font-size: clamp(2rem, 3.5vw, 4.1rem) !important; }
.team-founder-summary { font-size: clamp(1rem, 1.4vw, 1.3rem) !important; }

@media (max-width: 768px) {
  .firm-hero-v2 h1 { font-size: clamp(2rem, 8.4vw, 3.9rem) !important; }
  .firm-info-title-v2 { font-size: clamp(1.85rem, 7vw, 3.2rem) !important; }
  .firm-philosophy-panel h2 { font-size: clamp(2.2rem, 10vw, 4rem) !important; }
  .team-page-hero h1 { font-size: clamp(2.1rem, 9.1vw, 3.5rem) !important; }
  .team-page-intro-copy h2 { font-size: clamp(1.9rem, 8.4vw, 3rem) !important; }
  .team-founder-content h2 { font-size: clamp(1.9rem, 8.4vw, 3rem) !important; }
}

@media (min-width: 769px) {
  /* Keep the desktop cutout resting on the lower edge as the viewport narrows. */
  .team-page-hero-cutout img {
    object-fit: cover;
    object-position: center bottom;
    transform-origin: center bottom;
    transform: translateY(0) scale(1);
  }

  .team-page-hero h1 { transform: translateY(-140px); }
  .team-page-hero-cta { transform: translateY(100px); }
  .team-page-hero-cta:hover,
  .team-page-hero-cta:focus-visible { transform: translateY(calc(100px - .2rem)); }
}

@media (min-width: 1200px) {
  /* On wide desktop, contain the cutout so it does not grow over the title. */
  .team-page-hero-cutout img {
    object-fit: contain;
  }
}

/* Keep the hero background fixed without changing the foreground cutout size. */
.team-page-hero-media {
  background-image: url('../images/team-hero-background.png?v=3');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.team-page-hero-media > picture > img {
  opacity: 0;
}

@media (max-width: 768px) {
  .team-page-hero-media {
    background-image: url('../images/team-hero-background-mobile.png?v=3');
    background-position: 58% center;
    background-attachment: scroll;
  }
}

@media (min-width: 769px) {
  /* Keep the desktop title and CTA attached to the viewport during scroll. */
  .team-page-hero h1 {
    position: fixed;
    top: 20%;
    left: 50%;
    width: min(78rem, 90%);
    transform: translateX(-50%);
    opacity: var(--team-fixed-opacity, 1);
    visibility: visible;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .team-page-hero-cta {
    position: fixed;
    top: clamp(28rem, calc(50vh + 10rem), 42rem);
    left: 50%;
    transform: translateX(-50%);
    opacity: var(--team-fixed-opacity, 1);
    visibility: visible;
    transition: opacity .25s ease, visibility .25s ease, transform .3s ease;
  }

  .team-page-hero-cta:hover,
  .team-page-hero-cta:focus-visible {
    transform: translate(-50%, -.2rem);
  }
}

@media (max-width: 768px) {
  /* Mobile uses the same fixed hero treatment with its own viewport positions. */
  .team-page-hero h1 {
    position: fixed;
    top: 19%;
    left: 50%;
    width: calc(100% - 2.8rem);
    transform: translateX(-50%);
    opacity: var(--team-fixed-opacity, 1);
    visibility: visible;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .team-page-hero-cta {
    position: fixed;
    top: clamp(26rem, calc(50vh + 8rem), 37rem);
    left: 50%;
    width: max-content;
    max-width: calc(100vw - 2.8rem);
    white-space: nowrap;
    transform: translateX(-50%);
    opacity: var(--team-fixed-opacity, 1);
    visibility: visible;
    transition: opacity .25s ease, visibility .25s ease, transform .3s ease;
  }

  .team-page-hero-cta:hover,
  .team-page-hero-cta:focus-visible {
    transform: translate(-50%, -.2rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes teamHeroCutoutIn {
    from { opacity: 0; transform: translateY(135px) scale(1.02); }
    to { opacity: 1; transform: translateY(100px) scale(1); }
  }

  @keyframes teamHeroTitleIn {
    from { clip-path: inset(0 0 100% 0); filter: blur(7px); }
    to { clip-path: inset(0); filter: blur(0); }
  }

  @keyframes teamHeroCtaIn {
    from { clip-path: inset(100% 0 0 0); filter: blur(5px); }
    to { clip-path: inset(0); filter: blur(0); }
  }

  .team-page-hero-cutout img {
    animation: teamHeroCutoutIn .95s cubic-bezier(.22, 1, .36, 1) .2s both;
  }

  .team-page-hero h1 {
    animation: teamHeroTitleIn .85s cubic-bezier(.22, 1, .36, 1) .45s both;
  }

  .team-page-hero-cta {
    animation: teamHeroCtaIn .7s cubic-bezier(.22, 1, .36, 1) .95s both;
  }

  .team-page .reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
  }

  .team-page .team-founder-media.reveal { transform: translateX(-2.5rem) scale(.98); }
  .team-page .team-founder-content.reveal { transform: translateX(2.5rem); transition-delay: .12s; }
  .team-page .team-member:nth-child(2).reveal { transition-delay: .1s; }
  .team-page .team-member:nth-child(3).reveal { transition-delay: .2s; }
  .team-page .team-page-cta-inner.reveal { transform: translateY(2.5rem); }

  .team-page .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  @media (max-width: 768px) {
    @keyframes teamMobileCutoutIn {
      from { opacity: 0; transform: translateY(118px) scale(1.15); }
      to { opacity: 1; transform: translateY(100px) scale(1.15); }
    }

    @keyframes teamMobileTitleIn {
      from { clip-path: inset(0 0 100% 0); filter: blur(4px); }
      to { clip-path: inset(0); filter: blur(0); }
    }

    @keyframes teamMobileCtaIn {
      from { clip-path: inset(100% 0 0 0); filter: blur(3px); }
      to { clip-path: inset(0); filter: blur(0); }
    }

    .team-page-hero-cutout img {
      animation: teamMobileCutoutIn .75s ease-out .1s both;
    }

    .team-page-hero h1 {
      animation: teamMobileTitleIn .65s ease-out .3s both;
    }

    .team-page-hero-cta {
      animation: teamMobileCtaIn .55s ease-out .65s both;
    }
  }
}

/* La frase principal de La Firma conserva su tratamiento editorial serif original. */
.firm-hero-v2 h1 {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(50px, 4vw, 70px) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 700px) {
  .elementor-widget-jj-firm-hero .firm-hero-copy-v2 { padding-top: 7rem; }
  .elementor-widget-jj-firm-hero .firm-copy-inner-v2 { padding-top: 0; }
  .firm-hero-v2 h1 {
    max-width: 100%;
    font-size: clamp(42px, 10.5vw, 50px) !important;
  }
}

/* En mobile la trayectoria se lee como un recorrido vertical completo. */
.firm-timeline-point-detail {
  display: none;
}

@media (max-width: 800px) {
  .firm-timeline-wrap {
    overflow: visible;
    padding-bottom: 0;
  }

  .firm-timeline {
    display: grid;
    grid-template-columns: 5.25rem .9rem minmax(0, 1fr);
    min-width: 0;
    gap: 0;
  }

  .firm-timeline-line {
    top: 1.15rem;
    bottom: 1.15rem;
    left: 5.6rem;
    right: auto;
    width: 2px;
    height: auto;
  }

  .firm-timeline-point {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 5.25rem .9rem minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 4.25rem;
    text-align: left;
  }

  .firm-timeline-point > span:first-child {
    grid-column: 1;
    justify-self: start;
  }

  .firm-timeline-point i {
    grid-column: 2;
    justify-self: start;
    margin-left: .35rem;
  }

  .firm-timeline-point-detail {
    grid-column: 3;
    display: grid;
    gap: .35rem;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 1rem;
    opacity: 0;
    text-align: left;
    transform: translateY(.6rem);
    transition: max-height .65s cubic-bezier(.22, 1, .36, 1), opacity .45s ease, transform .65s cubic-bezier(.22, 1, .36, 1), padding .65s ease;
  }

  .firm-timeline-point-detail b {
    color: #fff;
    font: 800 1rem/1.2 var(--display);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(.5rem);
    transition: opacity .45s ease .08s, transform .55s cubic-bezier(.22, 1, .36, 1) .08s;
  }

  .firm-timeline-point-detail em {
    color: #bdbdbd;
    font: 400 .9rem/1.5 var(--body);
    font-style: normal;
    opacity: 0;
    transform: translateY(.5rem);
    transition: opacity .45s ease .16s, transform .55s cubic-bezier(.22, 1, .36, 1) .16s;
  }

  .firm-timeline-point.is-active .firm-timeline-point-detail {
    max-height: 16rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
    opacity: 1;
    transform: translateY(0);
  }

  .firm-timeline-point.is-active .firm-timeline-point-detail b,
  .firm-timeline-point.is-active .firm-timeline-point-detail em {
    opacity: 1;
    transform: translateY(0);
  }

  .firm-timeline-panel {
    display: none;
  }

  .firm-timeline-disclaimer {
    display: none;
  }
}

/* Prevent the mobile hero artwork and headline from creating horizontal overflow. */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .hero {
    max-width: 100%;
    overflow-x: clip;
  }

  .hero-lines,
  .hero-art,
  .hero-content {
    max-width: 100%;
  }

  .hero-lines {
    left: 0;
    width: 100%;
  }

  .hero-content {
    width: 100%;
    overflow-x: clip;
  }

  .hero h1,
  .hero h1 span {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11.5vw, 3rem);
  }
}

/* Keep the La Firma hero accent word fully visible on narrow screens. */
@media (max-width: 700px) {
  .firm-hero-v2 h1 strong {
    max-width: 100%;
    font-size: clamp(32px, 10vw, 42px) !important;
    letter-spacing: -.02em !important;
    white-space: nowrap;
  }
}

.contact-detail > span svg {
  display: block;
  width: 24px;
  height: 24px;
  margin-inline: auto;
}

.contact-detail--no-icon {
  grid-template-columns: 1fr;
}

.jj-form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.team-preview-visual::after {
  display: none;
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 18%;
  background: linear-gradient(to bottom, transparent 0%, #000 100%);
  content: '';
  pointer-events: none;
}

@media (min-width: 801px) {
  .team-preview {
    grid-template-columns: minmax(0, .9fr) minmax(26rem, 1.1fr);
    gap: 2rem;
  }

  .team-preview-visual {
    min-width: 0;
    overflow: hidden;
  }

  .team-preview-visual img {
    width: 100%;
    max-width: 48rem;
    transform: scale(1.02);
    transform-origin: center bottom;
  }
}

@media (max-width: 800px) {
  .team-preview-visual {
    width: 100%;
    min-width: 0;
    margin-inline: 0;
    overflow: hidden;
  }

  .team-preview-visual img {
    width: 100%;
    max-width: 100%;
    transform: none;
  }
}

@media (max-width: 768px) {
  .podcast-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .podcast-player,
  .podcast-player iframe {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
.desktop-nav > .desktop-menu,
.menu-dialog nav > .mobile-menu,
.menu-dialog nav > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav > .desktop-menu {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 1.5vw, 1.8rem);
}

.desktop-nav .menu-item {
  position: relative;
}

.desktop-nav .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  display: grid;
  gap: .8rem;
  min-width: 16rem;
  margin: 0;
  padding: 1.25rem;
  list-style: none;
  border-top: 3px solid var(--red);
  background: #090909f2;
  box-shadow: 0 1rem 2rem #0008;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-.5rem);
  transition: opacity .25s ease, transform .25s ease;
}

.desktop-nav .menu-item-has-children:hover > .sub-menu,
.desktop-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.desktop-nav .sub-menu a {
  color: #fff;
  font-size: .78rem;
  font-weight: 400;
  text-transform: none;
}

.header-actions .appointment-link {
  display: none;
}

.site-header > .header-cta {
  order: 1;
  margin-left: 1rem;
}

.site-header > .header-actions {
  order: 2;
}

.header-cta-menu,
.header-cta-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-cta-menu a {
  display: inline-flex;
  align-items: center;
  padding: .7rem 1rem;
  color: #600000;
  background: #C29A59;
  font: 900 .7rem var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .site-header > .header-cta {
    display: none;
  }
}

.menu-dialog nav > .mobile-menu {
  display: grid;
  gap: 1rem;
  width: min(43rem, 100%);
}

.menu-dialog .mobile-menu .sub-menu {
  display: grid;
  gap: .7rem;
  margin: .7rem 0 0 1rem;
  padding-left: 1rem;
  border-left: 1px solid #fff5;
  list-style: none;
}

.menu-dialog .mobile-menu .sub-menu a {
  font-size: 1.1rem;
}

.publication-archive {
  background: #f8f6f1;
  color: #651d28;
}

.publication-archive-hero {
  display: block;
  min-height: 0;
  padding-block: 2rem 2.75rem;
}

.publication-archive-hero .section-intro {
  max-width: 52rem;
}

.publication-archive-hero h1 {
  max-width: 60rem;
  margin: .7rem 0 1rem;
  color: #651d28;
  font: 700 clamp(2.35rem, 4.5vw, 5rem)/1.02 var(--display);
  letter-spacing: -.06em;
  text-transform: none;
}

.publication-archive-hero .section-intro > p:last-child {
  max-width: 43rem;
  margin: 0;
  color: #5f5b56;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

@media (max-width: 700px) {
  .publication-archive-hero {
    min-height: 0;
    padding-block: 0 2.5rem;
  }

  .publication-archive-hero h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }
}

/* Final mobile hero positioning: keep the eyebrow tied to the header. */
@media (max-width: 768px) {
  .hero-content {
    position: static !important;
    padding-top: calc(var(--mobile-header-height, 6.75rem) + 2.75rem + env(safe-area-inset-top)) !important;
  }

  .hero-caption {
    position: absolute !important;
    top: calc(var(--mobile-header-height, 6.75rem) + .25rem + env(safe-area-inset-top)) !important;
    right: 1.4rem !important;
    left: 1.4rem !important;
    margin: 0 !important;
  }
}

/* Keep the current page covered while a mobile menu link navigates away. */
.menu-dialog.menu-is-leaving {
  opacity: 0;
  transform: translateY(-1rem);
  pointer-events: none;
}

.menu-dialog.menu-is-leaving::backdrop {
  background: #000;
}

/* Give the mobile primary menu a clearer editorial rhythm. */
@media (max-width: 768px) {
  .menu-dialog nav > .mobile-menu {
    gap: 0;
    border-top: 1px solid #651d2833;
  }

  .menu-dialog nav > .mobile-menu > .menu-item {
    padding: .9rem 0;
    border-bottom: 1px solid #651d2833;
  }

  .menu-dialog nav > .mobile-menu > .menu-item > a,
  .menu-dialog nav > .mobile-menu > .menu-item > button {
    width: 100%;
  }

  .menu-dialog > .menu-brand {
    position: absolute;
    top: 1.35rem;
    left: 1.4rem;
    width: min(10.5rem, 48vw);
    margin: 0;
    padding: 0;
    border: 0;
  }

  .menu-dialog > .menu-brand img {
    display: block;
    width: 100%;
    height: auto;
  }

  .practice-intro h1,
  .practice-intro h2 {
    max-width: 100%;
    font-size: clamp(1.9rem, 8.5vw, 2.35rem) !important;
    line-height: 1.02;
    letter-spacing: -.03em !important;
  }
}

@media (max-width: 800px) {
  .team-preview {
    row-gap: 1.25rem;
  }

  .team-preview-inner {
    gap: 0;
  }

  .team-preview-copy {
    display: contents;
  }

  .team-preview-copy .eyebrow { order: 1; }
  .team-preview-copy h1,
  .team-preview-copy h2 { order: 2; margin-bottom: .75rem; }
  .team-preview-copy > p:not(.eyebrow) { order: 3; margin: 1.5rem 0 0; }

  .team-preview-visual {
    order: 4;
    width: calc(100% + 2.8rem);
    margin-inline: -1.4rem;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .team-preview-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
    transform-origin: center bottom;
  }

.team-preview-copy .button {
    order: 5;
    width: 100%;
    margin-top: 1.5rem;
    }
}

/* Navbar sobre el hero: fondo transparente y velo negro al 10%. */
body.hero-is-visible:not(.menu-layer-open) .site-header,
html.initial-hero .site-header {
  background: transparent !important;
}

body.hero-is-visible:not(.menu-layer-open) .site-header::before,
html.initial-hero .site-header::before {
  background: rgba(0, 0, 0, .10) !important;
}

/* Ajustes del hero de Equipo. */
@media (min-width: 769px) {
  .team-page-hero h1 {
    top: clamp(7rem, 22vh, 18rem);
  }

  .team-page-hero-cutout img {
    animation: none !important;
    object-position: center bottom;
    transform-origin: center bottom;
    transform: translateY(0) scale(.85) !important;
  }
}

@media (max-width: 768px) {
  .team-page-hero h1 {
    top: clamp(6.5rem, 20vh, 11rem);
  }

  .team-page-hero-cutout img {
    animation: none !important;
    width: 100vw;
    max-width: none;
    object-position: center bottom;
    transform-origin: center bottom;
    transform: translateY(0) scale(1.1) !important;
  }
}

/* Home services: La Firma palette, preserving the existing carousel layout. */
.services#services {
  color: #280506;
  background: #f2efe8 !important;
}

.services#services::before {
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, #c29a5914, transparent 30%),
    linear-gradient(115deg, #f2efe8f2, #e8e1d5e8 62%, #f7f3ebf2);
}

.services#services .services-background-video {
  opacity: .08;
  filter: grayscale(1) sepia(.25);
}

.services#services .section-intro .eyebrow {
  color: #9e1820;
}

.services#services .section-intro h2 {
  color: #280506;
  font-family: var(--e-global-typography-primary-font-family, var(--display)) !important;
}

.services#services .section-intro > p:not(.eyebrow) {
  color: #5c1c18;
}

.services#services .service-slide {
  border-color: #c29a59 !important;
  background: #f7f3ebf2 !important;
  box-shadow: inset 0 0 0 1px #ffffff80;
}

.services#services .service-slide:hover {
  border-color: #c29a59 !important;
  background: #651012 !important;
  box-shadow: 0 .8rem 2rem #28050629, 0 0 1.5rem #9e182033;
}

.services#services .service-slide h3 {
  color: #280506;
  font-family: var(--e-global-typography-primary-font-family, var(--display)) !important;
}

.services#services .service-slide p {
  color: #6e6b66;
}

.services#services .service-slide a {
  color: #9e1820;
}

.services#services .service-slide:hover h3,
.services#services .service-slide:hover p,
.services#services .service-slide:hover a {
  color: #f7f3eb;
}

.services#services .service-slide:hover a {
  color: #d1b47d;
}

.services#services .arrow-control svg path {
  stroke: #9e1820 !important;
}

.services#services .arrow-control:hover svg path {
  stroke: #c29a59 !important;
}

.services#services .carousel-dot {
  border-color: #9e1820;
}

.services#services .carousel-dot.is-active {
  border-color: #9e1820;
  background: #9e1820;
}

/* Las flechas del carrusel deben permanecer disponibles aunque la animación reveal no se inicialice. */
.elementor-widget-jj-services .arrow-control.reveal {
  opacity: 1;
  transform: translateX(0);
}

/* Elementor Design System is the source of truth when its kit is active. */
:root {
  --display: Unbounded;
  --body: Montserrat;
  --yellow: #febd01;
  --orange: #f7a701;
  --red: #b12418;
}

body[class*="elementor-kit-"] {
  --display: var(--e-global-typography-primary-font-family, Unbounded);
  --body: var(--e-global-typography-text-font-family, Montserrat);
  --yellow: var(--e-global-color-accent, #febd01);
  --orange: var(--e-global-color-secondary, #f7a701);
  --red: var(--e-global-color-primary, #b12418);
  --grad: linear-gradient(
    105deg,
    var(--e-global-color-primary, #b12418),
    var(--e-global-color-secondary, #f7a701) 52%,
    var(--e-global-color-primary, #b12418)
  );
}

body[class*="elementor-kit-"] .hero-lines path:first-child {
  stroke: var(--e-global-color-secondary, #f7a701);
}

body[class*="elementor-kit-"] .hero-lines path + path {
  stroke: var(--e-global-color-primary, #b12418);
}

/* Use Elementor's global font families throughout the theme when its kit is active. */
body[class*="elementor-kit-"] h1,
body[class*="elementor-kit-"] h2,
body[class*="elementor-kit-"] h3,
body[class*="elementor-kit-"] h4,
body[class*="elementor-kit-"] h5,
body[class*="elementor-kit-"] h6 {
  font-family: var(--e-global-typography-primary-font-family, var(--display));
}

body[class*="elementor-kit-"] p,
body[class*="elementor-kit-"] li,
body[class*="elementor-kit-"] a,
body[class*="elementor-kit-"] button,
body[class*="elementor-kit-"] input,
body[class*="elementor-kit-"] textarea,
body[class*="elementor-kit-"] select,
body[class*="elementor-kit-"] label,
body[class*="elementor-kit-"] small,
body[class*="elementor-kit-"] blockquote,
body[class*="elementor-kit-"] figcaption {
  font-family: var(--e-global-typography-text-font-family, var(--body));
}

/* Keep the services heading proportionate on very wide desktop screens. */
.elementor-widget-jj-hero .hero h1 {
  font-family: var(--e-global-typography-primary-font-family, var(--display)) !important;
  font-weight: 900 !important;
  line-height: .98;
  text-transform: uppercase;
}

.elementor-widget-jj-about .about-copy h1,
.elementor-widget-jj-about .about-copy h2 {
  font-family: var(--e-global-typography-primary-font-family, var(--display)) !important;
}

.about-copy h1 {
  line-height: 1.5 !important;
}

@media (min-width: 769px) {
  body.home .team-preview h2,
  body.home .social-impact h2,
  body.home .contact-location h2 {
    font-size: clamp(2.2rem, 4vw, 4rem) !important;
  }

  body.home .about-copy h1,
  body.home .about-copy h2 {
    font-size: clamp(1.75rem, 3vw, 4rem) !important;
  }
}

/* Home values panel: use the same cream surface as the services section. */
.values-panel {
  background: #f2efe8 !important;
  color: #280506 !important;
}

.values-panel .values-heading h3,
.values-panel .value-card h3,
.values-panel .value-card p {
  color: #280506 !important;
}

.values-panel .eyebrow {
  color: #600000 !important;
}

.values-panel .value-card > span {
  color: #9e1820 !important;
}

.values-panel .values-grid::before,
.values-panel .values-grid::after,
.values-panel .value-card {
  border-color: #c29a5966;
}

@media (hover: hover) {
  .values-panel .value-card:hover {
    background: #651012;
    color: #f7f3eb;
  }

.values-panel .value-card:hover > span,
.values-panel .value-card:hover h3,
.values-panel .value-card:hover p {
  color: #f7f3eb !important;
}

}

/* Nuestra historia: restore the image strip without the text-contrast shape. */
#about {
  padding-bottom: 8rem;
}

#practice-areas {
  padding-top: 0;
  padding-bottom: 0;
}

#practice-areas .mission {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
}

#practice-areas .mission p {
  max-width: 34rem;
}

#practice-areas .practice-intro-copy > p:last-child {
  max-width: 34rem;
}

/* Nuestro equipo: fondo claro con cuadrícula gris opaca. */
.team-preview {
  color: #280506;
  background-color: #f4f4f4;
  background-image: linear-gradient(rgba(119, 119, 119, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(119, 119, 119, .10) 1px, transparent 1px);
}

.team-preview-copy > p:not(.eyebrow) {
  color: #4b4b4b;
}

.team-preview h2 span {
  color: var(--red);
}

.team-preview h1 {
  margin: .75rem 0 1.5rem;
  font-size: clamp(2.2rem, 4.5vw, 5rem);
}

.team-preview h1 span {
  color: var(--red);
}

.practice-intro {
  position: relative;
  z-index: 0;
  max-width: none;
  margin-top: 0;
  min-height: max(45vw, 20rem);
}

.practice-intro::before {
  position: absolute;
  z-index: 0;
  top: 0;
  left: calc(-1 * max(5vw, 2rem));
  width: 100vw;
  height: auto;
  aspect-ratio: 2000 / 900;
  background: var(--practice-history-image) center / cover no-repeat;
  content: '';
  pointer-events: none;
}

.practice-intro-copy {
  position: relative;
  z-index: 1;
}

.practice-intro-mobile-visual {
  display: none;
}

/* Evita que el bloque rojo salte mientras se activa la animación reveal. */
.practice .mission.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* El bloque rojo no debe dejar escapar su margen y mostrar el fondo del hero. */
#practice-areas {
  display: flow-root;
}

#practice-areas .mission {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  #practice-areas {
    padding-top: 2rem;
  }

  #practice-areas .mission {
    margin-top: -1rem;
  }

  .practice-intro {
    min-height: 0;
    row-gap: 0;
  }

  .practice-intro-mobile-visual {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin: .75rem 0 0;
    overflow: hidden;
  }

  .practice-intro-mobile-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .practice-intro::before {
    display: none;
    left: -1.4rem;
    height: auto;
    aspect-ratio: 2000 / 900;
    background-position: center;
  }
}

/* Contacto: prioridad final sobre la composición oscura anterior. */
.contact {
  background: #fff !important;
  color: #280506 !important;
}

.contact .contact-inner {
  background: transparent !important;
  color: #280506 !important;
}

.contact .contact-location > p:not(.eyebrow),
.contact .contact-form-wrap > p:not(.eyebrow) {
  color: #444 !important;
}

.contact .contact-location h2,
.contact .contact-form-wrap h2,
.contact .contact-detail,
.contact .contact-detail p,
.contact .contact-detail a {
  color: #444 !important;
}

.contact .contact-location h2,
.contact .contact-form-wrap h2 {
  color: #280506 !important;
}

.contact .contact-rule {
  background: rgba(158, 24, 32, .35) !important;
}

/* Hero móvil a pantalla completa, sin márgenes laterales ni superiores. */
@media (max-width: 768px) {
  .hero-art {
    inset: 0;
    width: 100vw;
    height: 100svh;
    --hero-mobile-offset: 60px;
  }

  .hero-art video,
  .hero-art img {
    width: 100vw !important;
    max-width: none;
    height: 100svh !important;
    object-fit: cover;
    object-position: center 65%;
    transform: translate3d(0, calc(var(--hero-parallax-y, 0px) + var(--hero-mobile-offset, 0px)), 0) scale(1) !important;
  }

  /* Aumenta solo el encuadre del respaldo móvil del hero. */
  .hero-art .hero-video-fallback img {
    transform: translate3d(20%, var(--hero-mobile-offset, 0px), 0) scale(1.3) !important;
  }
}

/* Mobile: bloque principal centrado debajo del encabezado del hero. */
@media (max-width: 768px) {
  .hero-main-copy {
    position: absolute !important;
    top: calc(var(--mobile-header-height, 6.75rem) + 1rem + env(safe-area-inset-top));
    right: 1.4rem !important;
    bottom: auto !important;
    left: 1.4rem !important;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 0 !important;
    text-align: center;
    transform: none !important;
  }

  .hero-main-copy h1,
  .hero-main-copy .hero-description,
  .hero-main-copy .hero-cta {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .hero-main-copy h1 {
    text-shadow: 0 2px 4px rgb(0 0 0 / 85%), 0 5px 14px rgb(0 0 0 / 65%);
  }

  .hero-main-copy .hero-description {
    text-shadow: 0 2px 4px rgb(0 0 0 / 90%), 0 4px 10px rgb(0 0 0 / 70%);
  }

  .hero-main-copy .hero-cta {
    justify-content: center;
    position: fixed !important;
    z-index: 3;
    right: auto !important;
    bottom: calc(6.5rem + env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    width: min(90vw, 22rem) !important;
    transform: translateX(-50%) !important;
    animation: none !important;
    opacity: 1 !important;
  }

  .hero-caption {
    display: none !important;
  }
}

/* Elementor reinserta widgets sin volver a registrar siempre el reveal observer. */
body.elementor-editor-active .team-page .reveal,
body.elementor-editor-preview .team-page .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* All headings inherit Elementor's Primary global typography. */
body[class] :is(h1, h2, h3, h4, h5, h6),
body[class] :is(h1, h2, h3, h4, h5, h6) :is(span, strong, em) {
  font-family: var(--e-global-typography-primary-font-family, Montserrat, Arial, sans-serif) !important;
  font-weight: var(--e-global-typography-primary-font-weight, 900) !important;
  font-style: var(--e-global-typography-primary-font-style, normal) !important;
  text-decoration: var(--e-global-typography-primary-text-decoration, none) !important;
}

.elementor-widget-jj-publications-page {
  width: 100%;
  max-width: 100%;
}

.elementor-widget-jj-publications-page > .elementor-widget-container {
  width: 100%;
}

/* Shared heading scale: keep page H1s readable and consistent across templates. */
body[class] h1 {
  font-weight: 800 !important;
  line-height: 1.05 !important;
}

body[class] .elementor-widget-jj-hero .hero h1 {
  font-weight: 800 !important;
}

/* Keep the services content proportionate on ultra-wide screens while preserving full-bleed background. */
.services > .section-intro,
.services > .audience-carousel {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

body[class] h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
}

body[class] h3 {
  font-size: clamp(1.15rem, 2vw, 1.65rem) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}

/* Home: títulos de las tarjetas de servicios, más discretos que los H3 globales. */
.services#services .service-slide h3,
.services#services .service-slide:hover h3 {
  font-size: clamp(1rem, 1.35vw, 1.3rem) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

/* Elementor widgets may carry more-specific legacy heading sizes; normalize them too. */
body[class] .elementor-widget h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
}

body[class] .elementor-widget h3 {
  font-size: clamp(1.15rem, 2vw, 1.65rem) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}

/* Blog cards remain compact within the shared heading scale. */
.publication-archive .publication-editorial-card h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem) !important;
  font-weight: 700 !important;
}

body[class] .elementor-widget-jj-publications-page .publication-editorial-card h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem) !important;
  font-weight: 700 !important;
}

body[class] .elementor-widget-jj-publications-page .publication-editorial-card--featured h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem) !important;
}

.publication-archive .publication-editorial-card--featured h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem) !important;
}

/* Excepción: título principal de Filosofía de trabajo en La Firma. */
body.page-id-4 .elementor-widget-jj-firm-philosophy .firm-philosophy-panel h2 {
  font-size: clamp(2.5rem, 4.9vw, 5.3rem) !important;
}

/* Excepción: título de Valores en La Firma. */
body.page-id-4 .elementor-widget-jj-firm-values .firm-values-heading h2 {
  font-size: clamp(2.8rem, 5vw, 4rem) !important;
}

/* Excepción: título de Responsabilidad profesional en La Firma. */
body.page-id-4 .elementor-widget-jj-firm-responsibility .firm-copy h2 {
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
}

/* Final desktop cap for the Team hero foreground image. */
@media (min-width: 769px) {
  .team-page-hero-cutout img {
    width: 100% !important;
    max-width: 1350px !important;
    margin-inline: auto;
  }
}

/* La Firma: la reducción del título de Filosofía debe prevalecer en mobile. */
@media (max-width: 768px) {
  body.page-id-4 .elementor-widget-jj-firm-philosophy .firm-philosophy-panel h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.5rem) !important;
  }

  body.page-id-4 .elementor-widget-jj-firm-values .firm-values-heading h2 {
    font-size: 33px !important;
  }

  body.page-id-4 .elementor-widget-jj-firm-responsibility .firm-copy h2 {
    font-size: 33px !important;
  }
}

/* Mobile: la dirección y los teléfonos ya están disponibles en el footer. */
@media (max-width: 768px) {
  .contact-location {
    display: none !important;
  }

  .contact-layout {
    grid-template-columns: 1fr !important;
  }
}
/* Home hero image slider: cross-fade between the three editorial images. */
.hero-art .hero-slides,
.hero-art .hero-slide {
  position: absolute;
  inset: 0;
}

.hero-art .hero-slide {
  opacity: 0;
  transition: opacity .9s ease-in-out;
  pointer-events: none;
}

.hero-art .hero-slide.is-active {
  opacity: 1;
}

.hero-main-copy h1.is-title-hidden {
  display: none;
}

.hero h1,
.hero-slide-content h1 {
  text-shadow: 0 3px 10px rgb(0 0 0 / 78%), 0 8px 24px rgb(0 0 0 / 58%);
}

.hero.hero-slide-copy-hidden .hero-content {
  opacity: 0;
  pointer-events: none;
}

.hero-slide-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(42rem, 82vw);
  transform: translate(-50%, -50%);
  color: var(--white);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease-in-out, visibility 0s linear .9s;
}

.hero-slide-content.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

@media (min-width: 769px) {
  .hero-slide-content-3 {
    left: 8%;
    width: min(42rem, 40vw);
    transform: translateY(-50%);
    text-align: left;
  }

  .hero-slide-content-3 p {
    width: 100%;
    margin: 0 0 2rem !important;
    text-align: left;
  }
}

.hero-slide-content h1 {
  margin: 0 0 1.5rem;
  font: 900 clamp(2.64rem, 4.5vw, 5.28rem)/.98 var(--display);
  letter-spacing: -.08em;
  text-transform: uppercase;
}

.hero-slide-content h1 span {
  display: block;
  overflow: hidden;
  transform: translateY(100%);
}

.hero-slide-content.is-active .hero-slide-2-title span {
  animation: revealText 1.5s cubic-bezier(.77, 0, .175, 1) forwards;
}

.hero-slide-content.is-active .hero-slide-2-title span:nth-child(1) { animation-delay: .5s; }
.hero-slide-content.is-active .hero-slide-2-title span:nth-child(2) { animation-delay: .7s; }
.hero-slide-content.is-active .hero-slide-2-title span:nth-child(3) { animation-delay: .9s; }

.hero-slide-2-description,
.hero-slide-2-cta {
  opacity: 0;
  transform: translateX(-128px);
}

.hero-slide-content.is-active .hero-slide-2-description {
  animation: slideRight 1s cubic-bezier(.77, 0, .175, 1) 1.05s forwards;
}

.hero-slide-content.is-active .hero-slide-2-cta {
  animation: slideRight 1s cubic-bezier(.77, 0, .175, 1) 1.3s forwards, gradientMove 5s linear infinite;
}

.hero-slide-content.is-active .hero-slide-3-title span {
  animation: revealText 1.5s cubic-bezier(.77, 0, .175, 1) forwards;
}

.hero-slide-content.is-active .hero-slide-3-title span:nth-child(1) { animation-delay: .5s; }
.hero-slide-content.is-active .hero-slide-3-title span:nth-child(2) { animation-delay: .7s; }
.hero-slide-content.is-active .hero-slide-3-title span:nth-child(3) { animation-delay: .9s; }

.hero-slide-3-description,
.hero-slide-3-cta {
  opacity: 0;
  transform: translateX(-128px);
}

.hero-slide-content.is-active .hero-slide-3-description {
  animation: slideRight 1s cubic-bezier(.77, 0, .175, 1) 1.05s forwards;
}

.hero-slide-content.is-active .hero-slide-3-cta {
  animation: slideRight 1s cubic-bezier(.77, 0, .175, 1) 1.3s forwards, gradientMove 5s linear infinite;
}

.hero-slide-content p {
  max-width: 38rem;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

@media (max-width: 768px) {
  .hero-slide-content {
    top: calc(var(--mobile-header-height, 6.75rem) + 1rem);
    width: min(90vw, 28rem);
    transform: translateX(-50%);
  }

  .hero-slide-content h1 {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin: 0 0 1.5rem;
    text-align: center !important;
  }

  .hero-slide-content h1 {
    font-size: clamp(2rem, 8.5vw, 2.7rem);
  }
}

.hero .hero-content {
  transition: opacity .9s ease-in-out;
}

@media (max-width: 768px) {
  .hero-main-copy .hero-cta {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: min(90vw, 22rem) !important;
    margin: 1rem auto 0 !important;
    transform: none !important;
  }
}

@media (min-width: 769px) {
  .hero.hero-copy-position-center .hero-content {
    width: 42%;
    margin-left: 29%;
    text-align: center;
  }

  .hero-main-copy.hero-copy-position-left {
    transform: translateX(-115%);
    text-align: left;
  }

  .hero-main-copy.hero-copy-position-center {
    transform: translateX(-55%);
    text-align: center;
  }

  .hero-main-copy.hero-copy-position-right {
    transform: none;
    text-align: left;
  }
}

.hero-art .hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-art .hero-slide img {
    height: 32rem;
  }
}

/* Home page eyebrow color system: keep every section on the same brand red. */
body.home .firm-eyebrow-v2,
body.home .social-eyebrow,
body.home .contact .contact-location .eyebrow {
  color: #600000 !important;
}

/* Global eyebrow color system across the site. */
body .firm-eyebrow-v2,
body .social-eyebrow,
body .social-kicker,
body .jj-cookie-banner__eyebrow,
body .firm-cta .eyebrow,
body .elementor-widget-jj-firm-cta .firm-cta .eyebrow,
body .contact .contact-location .eyebrow {
  color: #600000 !important;
}

/* Keep eyebrows legible on red panels. */
body .firm-cta .eyebrow,
body .team-page-cta .eyebrow,
body .social-health .social-kicker {
  color: #fff !important;
}
body.page-id-4 .elementor-widget-jj-firm-cta .firm-cta .eyebrow {
  color: #fff !important;
}
body.home .hero .hero-caption,
body.home .hero .hero-caption > span {
  color: #fff !important;
}

/* Remove Elementor's final 10px gutter so Home meets the footer cleanly. */
body.home .elementor-637 > .e-con:last-child > .e-con-inner {
  padding-bottom: 0 !important;
}

/* Remove Elementor's final gutter on the La firma page as well. */
body.page-id-4 .elementor-4 > .e-con:last-child > .e-con-inner {
  padding-bottom: 0 !important;
}

/* The practice index CTA has a 7rem bottom gutter that exposes the dark body. */
body.page-id-6 .elementor-widget-jj-practice-index-cta .practice-index-cta-widget-wrap {
  padding-bottom: 0 !important;
}

/* Inicio: unificar los acentos rojos restantes en #600000. */
body.home .services#services .section-intro > p:not(.eyebrow) {
  color: #600000 !important;
}

body.home .contact-rule {
  background-color: #600000 !important;
}

body.home .services#services .arrow-control svg path,
body.home .contact svg,
body.home .contact svg path,
body.home .footer-contact-col svg,
body.home svg[stroke="#A81D24"] {
  stroke: #600000 !important;
}

body.home .services#services .carousel-dot {
  border-color: #600000 !important;
}

body.home .services#services .carousel-dot.is-active {
  background-color: #600000 !important;
}

body.home .value-card > *:first-child,
body.home .value-card .value-number {
  color: #600000 !important;
}

/* Paleta roja unificada: todos los rojos/vinos usan el rojo institucional. */
:root {
  --red: #600000;
  --firm-red: #600000;
  --team-red: #600000;
  --legal-red: #600000;
  --legal-wine: #600000;
  --cookie-red: #600000;
  --cookie-wine: #600000;
  --firm-wine: #600000;
  --firm-wine-deep: #600000;
}

/* Componentes con tonos rojos escritos directamente en sus reglas originales. */
.site-header::after,
.site-header .desktop-nav a::after,
.site-header .nav-dropdown-trigger::after {
  background: #600000 !important;
}

.services#services .service-slide:hover,
.elementor-widget-jj-firm-cta .firm-cta,
.firm-cta,
.social-hero,
.social-health,
.jj-practice-deck__divider,
.jj-practice-deck__nav-toggle,
.jj-practice-deck__nav,
.legal-page-contact {
  background-color: #600000;
}

.services#services .service-slide:hover {
  background: #600000 !important;
}

.services#services .service-slide a,
.services#services .arrow-control svg path,
.services#services .carousel-dot,
.services#services .carousel-dot.is-active,
.legal-page-hero .eyebrow,
.legal-page-toc,
.legal-page-toc a:first-of-type,
.legal-page-document h3,
.legal-page-document a,
.social-intro h2 em,
.social-intro-copy strong,
.firm-slanted-tab-v2.is-active,
.firm-info-stat-v2 strong,
.firm-info-link-v2,
.team-member-photo-slot span,
.podcast-section .eyebrow,
.podcast-episode[aria-current="true"] .podcast-episode-number,
.podcast-episodes-link {
  color: #C29A59 !important;
}

/* Equipo: áreas de competencia de los integrantes en rojo institucional. */
.team-member-tags li,
.team-member-tags li:hover {
  color: #600000 !important;
  background: #fff !important;
  border-color: #600000 !important;
}

.services#services .section-intro .eyebrow {
  color: #600000 !important;
}

#firm-experience .firm-experience-intro .eyebrow {
  color: #C29A59 !important;
}

/* Section 05: contrast palette for the light experience background. */
#firm-experience .firm-timeline-note {
  color: #5f5a52 !important;
}

#firm-experience .firm-timeline {
  color: #171717 !important;
}

#firm-experience .firm-timeline-line {
  background: #b8b1a5 !important;
}

#firm-experience .firm-timeline-point,
#firm-experience .firm-timeline-point:hover,
#firm-experience .firm-timeline-point:focus-visible,
#firm-experience .firm-timeline-point.is-active {
  color: #171717 !important;
}

#firm-experience .firm-timeline-point.is-active > span:first-child {
  color: #600000 !important;
}

#firm-experience .firm-timeline-point i {
  border-color: #777066 !important;
  background: #EAE5DA !important;
}

#firm-experience .firm-timeline-point i::after {
  border-color: #600000 !important;
}

#firm-experience .firm-timeline-point.is-active i,
#firm-experience .firm-timeline-point:hover i,
#firm-experience .firm-timeline-point:focus-visible i {
  border-color: #600000 !important;
}

#firm-experience .firm-timeline-point.is-active i {
  background: #600000 !important;
  box-shadow: 0 0 0 .35rem #60000022, 0 0 1.2rem #60000055 !important;
}

#firm-experience .firm-timeline-point.is-complete i {
  border-color: #600000 !important;
  background: #600000 !important;
  box-shadow: none !important;
}

/* Fill every milestone that precedes the currently selected year. */
#firm-experience .firm-timeline-point:has(~ .firm-timeline-point.is-active) i {
  border-color: #600000 !important;
  background: #600000 !important;
  box-shadow: none !important;
}

#firm-experience .firm-timeline-point:hover i,
#firm-experience .firm-timeline-point:focus-visible i {
  box-shadow: 0 0 .8rem #60000044 !important;
}

/* Elementor client logo ticker. */
.elementor-widget-jj-client-ticker {
  width: 100vw !important;
  max-width: 100vw !important;
  align-self: stretch;
  margin-left: calc(50% - 50vw) !important;
}

.jj-client-ticker {
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 4.5rem);
  color: #171717;
  background: #fff;
  width: 100%;
}

.jj-client-ticker__intro {
  width: min(58rem, 90vw);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.jj-client-ticker__intro .eyebrow {
  color: #C29A59 !important;
}

.jj-client-ticker__intro h2 {
  max-width: 48rem;
  margin: .55rem auto 1rem;
  font: 800 clamp(2rem, 4.5vw, 4.7rem)/1 var(--display);
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.jj-client-ticker__intro > p:last-child {
  max-width: 42rem;
  margin: 0 auto;
  color: #4e4743;
  font-size: 1.05rem;
  line-height: 1.7;
}

.jj-client-ticker__viewport {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid #17171722;
}

.jj-client-ticker__track {
  --jj-client-ticker-gap: clamp(2rem, 5vw, 5rem);
  display: flex;
  width: max-content;
  align-items: center;
  gap: var(--jj-client-ticker-gap);
  padding: 1.8rem 0;
  animation: jjClientTicker 34s linear infinite;
}

.jj-client-ticker__logo {
  position: relative;
  display: grid;
  width: clamp(9rem, 15vw, 14rem);
  min-height: 5.5rem;
  height: auto;
  flex: 0 0 clamp(9rem, 15vw, 14rem);
  place-items: center;
  justify-items: center;
  justify-content: center;
  text-align: center;
  padding: .65rem 1.25rem;
  box-sizing: border-box;
  border-right: 0;
}

.jj-client-ticker__logo::after {
  position: absolute;
  top: 15%;
  right: calc(var(--jj-client-ticker-gap) / -2);
  bottom: 15%;
  width: 1px;
  background: #17171722;
  content: '';
}

.jj-client-ticker__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 4.2rem;
  margin-inline: auto;
  justify-self: center;
  object-position: center;
  object-fit: contain;
}

.jj-client-ticker__confidentiality {
  width: min(58rem, 90vw);
  margin: 1.5rem auto 0;
  color: #716a64;
  font-size: .76rem;
  line-height: 1.6;
  text-align: center;
}

@keyframes jjClientTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .jj-client-ticker__track { animation-play-state: paused; }
}

@media (max-width: 768px) {
  .jj-client-ticker__track { --jj-client-ticker-gap: 1.5rem; animation-duration: 27s; }
  .jj-client-ticker__logo { width: 8.5rem; min-height: 4.8rem; flex-basis: 8.5rem; padding-inline: .8rem; }
  .jj-client-ticker__logo img { max-height: 3.7rem; }
}

/* Confidentiality replacement for the former client-logo ticker. */
.jj-confidentiality-section {
  background: #f5f1eb;
}

.elementor-widget-jj-client-ticker:has(.jj-confidentiality-section) {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  box-sizing: border-box;
}

.elementor-widget-jj-client-ticker:has(.jj-confidentiality-section) > .elementor-widget-container {
  width: 100% !important;
  margin-inline: 0 !important;
}

.jj-confidentiality-section__principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(70rem, 90vw);
  margin: 0 auto;
  border-block: 1px solid #17171722;
}

.jj-confidentiality-section__principle {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 6.5rem;
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem);
  border-right: 1px solid #17171722;
}

.jj-confidentiality-section__principle:last-child { border-right: 0; }
.jj-confidentiality-section__principle span {
  color: #b0162b;
  font-family: var(--e-global-typography-primary-font-family, var(--display));
  font-size: var(--e-global-typography-primary-font-size, 1rem);
  font-weight: var(--e-global-typography-primary-font-weight, 800);
  line-height: var(--e-global-typography-primary-line-height, 1);
  letter-spacing: var(--e-global-typography-primary-letter-spacing, normal);
}

.jj-confidentiality-section__principle strong {
  color: #3d2524;
  font-family: var(--e-global-typography-primary-font-family, var(--display));
  font-size: var(--e-global-typography-primary-font-size, 1rem);
  font-weight: var(--e-global-typography-primary-font-weight, 800);
  line-height: var(--e-global-typography-primary-line-height, 1.25);
  letter-spacing: var(--e-global-typography-primary-letter-spacing, normal);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .jj-confidentiality-section__principles { grid-template-columns: 1fr; }
  .jj-confidentiality-section__principle { min-height: 4.5rem; border-right: 0; border-bottom: 1px solid #17171722; }
  .jj-confidentiality-section__principle:last-child { border-bottom: 0; }
}

/* Equipo: remove only the background photograph; keep the foreground cutout. */
.team-page-hero-media {
  background-color: #080808 !important;
  background-image: none !important;
}

.team-page-hero-media > picture > img {
  display: none !important;
}

/* Equipo: use the supplied architectural SVG as the hero background. */
.team-page-hero {
  color: #fff !important;
  background: #600000 !important;
}

.team-page-hero-media {
  background: #600000 url('../images/hero-fondo-lineas.svg?v=2') center center / cover no-repeat !important;
}

.team-page-hero-overlay {
  background: none !important;
}

.team-page-hero h1 {
  color: #fff !important;
}

#firm-experience .firm-timeline-panel {
  border-top-color: #b8b1a5 !important;
  border-bottom-color: #b8b1a5 !important;
}

#firm-experience .firm-timeline-year {
  color: #600000 !important;
}

#firm-experience .firm-timeline-body {
  color: #383838 !important;
}

#firm-experience .firm-timeline-disclaimer {
  color: #5f5a52 !important;
}

@media (max-width: 800px) {
  #firm-experience .firm-timeline-point-detail b {
    color: #171717 !important;
  }

  #firm-experience .firm-timeline-point-detail em {
    color: #5f5a52 !important;
  }
}

.practice-index-page .jj-practice-index-hero .eyebrow {
  color: #C29A59 !important;
}

.practice-index-page .practice-index-cta .eyebrow {
  color: #C29A59 !important;
}

.jj-practice-hero .eyebrow {
  color: #C29A59 !important;
}

.social-page .social-hero .social-eyebrow {
  color: #C29A59 !important;
}

.social-page .social-hero-copy::before {
  background: #C29A59 !important;
}

.social-page .social-story--dark .social-kicker,
.social-page .social-close .social-kicker {
  color: #C29A59 !important;
}

.social-page .social-story--dark h3 {
  color: #C29A59 !important;
}


.legal-page-toc {
  border-left-color: #600000;
}

.practice-index-hero,
.jj-practice-hero,
.practice-area-hero,
.practice-index-cta,
.jj-practice-deck__closing,
.social-cta,
.team-page-hero-cta,
.jj-cookie-banner,
.cmplz-cookiebanner .cmplz-accept {
  background: #600000 !important;
}

.jj-practice-deck__closing .button,
.practice-index-card-link,
.practice-index-card:nth-child(2) .practice-index-card-link {
  color: #600000;
}

.jj-practice-deck__scope-list li,
.jj-practice-deck__scope-list li:hover,
.jj-practice-deck__photo.is-placeholder,
.jj-practice-deck__nav a,
.jj-practice-deck__content details,
.jj-practice-deck__legal details {
  border-color: #600000;
}

.jj-practice-deck__scope-list li:hover {
  background: #600000;
}

.team-page-hero-cta:hover,
.team-page-hero-cta:focus-visible,
.jj-cookie-button--primary:hover,
.jj-cookie-button--primary:focus-visible {
  background: #600000 !important;
  border-color: #600000 !important;
}

.firm-cta-v2 {
  background: #60000061;
}

.firm-monogram-v2 {
  color: #60000026;
}

.firm-hero-copy-v2 {
  background: radial-gradient(circle at 15% 64%, #8F242C26, transparent 35%), linear-gradient(113deg, #560A11 0%, #420309 44%, #681018 76%, #2B0105 100%);
}

.firm-hero-copy-v2::after {
  background: linear-gradient(108deg, transparent 0 56%, #76151D21 56.2% 57%, transparent 57.2% 100%);
}

.practice-index-hero,
.jj-practice-hero {
  background-image: linear-gradient(105deg, #600000 0%, #600000 48%, #600000 100%);
}

.jj-practice-deck__closing {
  background-image: linear-gradient(105deg, #600000, #600000);
}

/* Dropdown de Áreas de práctica: fondo blanco y enlaces legibles. */
.site-header .desktop-nav .sub-menu {
  background: rgba(255, 255, 255, .88) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top-color: #600000 !important;
}

.site-header .desktop-nav .sub-menu a,
.site-header .desktop-nav .sub-menu a:hover,
.site-header .desktop-nav .sub-menu a:focus-visible {
  color: var(--red) !important;
}

.site-header .desktop-nav .sub-menu a::after {
  background: var(--red) !important;
}

/* Responsabilidad Social: esta página tiene reglas propias más específicas. */
.social-page .social-hero,
.social-page .social-health {
  background: #600000 !important;
}

.social-page .social-eyebrow,
.social-page .social-kicker,
.social-page .social-intro h2 em,
.social-page .social-intro-copy strong {
  color: #600000 !important;
}

.social-page .social-health .social-kicker {
  color: #fff !important;
}

.social-page .social-cta,
.social-page .social-video-sound:hover {
  background: #600000 !important;
}

/* La Firma: unificar los tonos vino y rojos restantes. */
body.page-id-4 .firm-document-stage-v2,
body.page-id-4 .firm-tabs-rail-v2,
body.page-id-4 .firm-slanted-tab-v2,
body.page-id-4 .firm-info-panel-v2,
body.page-id-4 .firm-info-title-v2,
body.page-id-4 .firm-info-bottom-v2,
body.page-id-4 .firm-info-rule-v2 {
  color: #600000 !important;
}

body.page-id-4 .firm-slanted-tab-v2.is-active,
body.page-id-4 .firm-info-stat-v2 strong,
body.page-id-4 .firm-info-link-v2,
body.page-id-4 .firm-story-year,
body.page-id-4 .firm-responsibility-lead,
body.page-id-4 .firm-value-row.is-active,
body.page-id-4 .firm-value-row span,
body.page-id-4 .firm-value-row i {
  color: #600000 !important;
}

body.page-id-4 .firm-story-number,
body.page-id-4 .firm-red-panel,
body.page-id-4 .firm-why-red-panel,
body.page-id-4 .firm-cta,
body.page-id-4 .firm-cta-v2 {
  background: #600000 !important;
}

body.page-id-4 .firm-philosophy-image,
body.page-id-4 .firm-timeline-point.is-active i,
body.page-id-4 .firm-timeline-point:hover i,
body.page-id-4 .firm-timeline-point:focus-visible i {
  border-color: #600000 !important;
}

body.page-id-4 .firm-timeline-point.is-active i,
body.page-id-4 .firm-timeline-progress,
body.page-id-4 .firm-timeline-line::before {
  background: #600000 !important;
}

body.page-id-4 .firm-info-link-v2 {
  border-bottom-color: #600000 !important;
}

/* Navbar CTA: the same mustard treatment on every page. */
.site-header .header-cta-menu a,
.site-header .header-cta-menu a:hover,
.site-header .header-cta-menu a:focus-visible,
.site-header .appointment-link,
.site-header .appointment-link:hover,
.site-header .appointment-link:focus-visible {
  color: #600000 !important;
  background: #C29A59 !important;
  background-color: #C29A59 !important;
}

/* GTranslate: place the selector inside the real legal footer bar. */
.site-footer .legal .gtranslate_wrapper {
  display: block !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

.site-footer .legal .gtranslate_wrapper .gt_switcher {
  position: relative !important;
  overflow: visible !important;
  width: auto !important;
  margin: 0 !important;
  font-size: 12px !important;
}

.site-footer .legal .gtranslate_wrapper .gt_switcher .gt_selected,
.site-footer .legal .gtranslate_wrapper .gt_switcher .gt_selected a {
  background: transparent !important;
  color: #f4f0e8 !important;
  border-color: #ffffff33 !important;
}

.site-footer .legal .gtranslate_wrapper .gt_switcher .gt_selected a {
  padding: 3px 7px !important;
}

.site-footer .legal .gtranslate_wrapper .gt_switcher .gt_option {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  background: #191919 !important;
  border-color: #ffffff33 !important;
  top: auto !important;
  bottom: 100% !important;
  margin-bottom: 4px !important;
  z-index: 20 !important;
}

.site-footer .legal .gtranslate_wrapper .gt_switcher .gt_option a {
  color: #f4f0e8 !important;
}

.site-footer .legal .gtranslate_wrapper .gt_switcher .gt_option a:hover {
  background: #600000 !important;
}

/* Equipo: accent and CTA colors for the supplied hero background. */
.team-page-hero h1 .hero-title-accent {
  color: #C29A59 !important;
}

.team-page-hero .team-page-hero-cta,
.team-page-hero .team-page-hero-cta:hover,
.team-page-hero .team-page-hero-cta:focus-visible {
  color: #600000 !important;
  background: #fff !important;
  border-color: #fff !important;
}

/* Equipo: mejorar el contraste de las áreas de competencia de Daniel. */
.team-founder-tags h3 {
  color: #600000 !important;
}

.team-founder-tags li,
.team-founder-tags li:hover {
  color: #600000 !important;
  background: #fff !important;
  border-color: #600000 !important;
}

/* Maestrías: adapta las tarjetas al ancho real disponible sin desbordar. */
.team-founder-details > *,
.team-founder-masters,
.team-founder-masters-card {
  min-width: 0;
}

.team-founder-masters {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.team-founder-masters-card h4,
.team-founder-masters-card p {
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .site-footer .legal .gtranslate_wrapper {
    margin: .4rem auto 0 !important;
  }
}

/* Navbar compacto: mantiene todos los enlaces visibles sin crear un dropdown. */
@media (min-width: 769px) {
  .site-header .desktop-nav > .desktop-menu {
    display: flex;
    align-items: center;
    gap: clamp(.55rem, 1.1vw, 1.4rem);
    white-space: nowrap;
  }

  .site-header .desktop-nav .desktop-menu > .menu-item > a,
  .site-header .desktop-nav .desktop-menu > .menu-item > button {
    font-size: clamp(.62rem, .78vw, .85rem);
    letter-spacing: .035em;
    white-space: nowrap;
  }

  .site-header .brand-logo {
    width: clamp(8rem, 14vw, 13rem);
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .site-header {
    padding-inline: 2.5vw;
  }

  .site-header .desktop-nav {
    margin-right: .5rem;
  }

  .site-header .desktop-nav > .desktop-menu {
    gap: .45rem;
  }

  .site-header .desktop-nav .desktop-menu > .menu-item > a,
  .site-header .desktop-nav .desktop-menu > .menu-item > button {
    font-size: .6rem;
    letter-spacing: .015em;
  }

  .site-header .brand-logo {
    width: 9rem;
  }

  .site-header .header-cta-menu a {
    padding-inline: .65rem;
    font-size: .6rem;
  }
}
