:root {
  --ink: #0e1e38;
  --ink-soft: #0e1e38;
  --petrol: #0e1e38;
  --petrol-2: #0e1e38;
  --paper: #f4f2ec;
  --paper-2: #e8e6de;
  --white: #ffffff;
  --muted: #69737a;
  --line: rgba(17, 24, 29, 0.16);
  --line-light: rgba(255, 255, 255, 0.2);
  --bronze: #9a7b52;
  --ribbon-h: 30px;
  --header-h: 82px;
  --radius: 0px;
  --shell: min(1280px, calc(100vw - 72px));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Poppins", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open,
body.is-loading,
body.is-leaving { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--petrol); color: var(--white); }

.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 9999;
  padding: 12px 16px;
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus { top: 16px; }

.demo-ribbon {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1500;
  min-height: var(--ribbon-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: var(--ink);
  color: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}
.demo-ribbon-brand { color: var(--bronze); border-bottom: 1px solid currentColor; }

/* Loader and page transitions */
.page-loader,
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  background: var(--petrol);
  color: var(--white);
}
.page-loader { transition: opacity .8s var(--ease), visibility .8s; }
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { width: min(360px, calc(100vw - 64px)); text-align: center; }
.loader-logo {
  width: 86px;
  margin: 0 auto 26px;
  filter: invert(1);
  opacity: 0;
  transform: translateY(18px) scale(.92);
  animation: loaderMark 1s .15s var(--ease) forwards;
}
.loader-name {
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0;
  animation: loaderText .8s .45s var(--ease) forwards;
}
.loader-line { height: 1px; background: rgba(255,255,255,.18); overflow: hidden; }
.loader-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bronze);
  transform: translateX(-100%);
  animation: loaderLine 1.35s .3s var(--ease) forwards;
}
@keyframes loaderMark { to { opacity: 1; transform: none; } }
@keyframes loaderText { to { opacity: 1; } }
@keyframes loaderLine { to { transform: none; } }

.page-transition {
  z-index: 4900;
  transform: translateY(100%);
  pointer-events: none;
  transition: transform .72s var(--ease);
}
.page-transition img { width: 70px; filter: invert(1); opacity: .9; }
body.is-leaving .page-transition { transform: translateY(0); }

/* Cursor */
.cursor-ring {
  position: fixed;
  z-index: 6000;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(154,123,82,.7);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, opacity .2s;
  mix-blend-mode: difference;
}
.cursor-ring.is-visible { opacity: 1; }
.cursor-ring.is-active { width: 52px; height: 52px; background: rgba(255,255,255,.12); }

/* Header */
.site-header {
  position: fixed;
  top: var(--ribbon-h);
  left: 0;
  right: 0;
  z-index: 1400;
  height: var(--header-h);
  color: var(--ink);
  transition: color .35s, background .35s, border-color .35s, transform .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-overlay { color: var(--white); }
.site-header.is-scrolled,
.site-header:not(.is-overlay) {
  background: rgba(244,242,236,.94);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  justify-self: start;
}
.brand img { width: 43px; height: 43px; object-fit: contain; }
.is-overlay:not(.is-scrolled) .brand img { filter: invert(1); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 13px; font-weight: 500; white-space: nowrap; }
.brand-copy small { margin-top: 5px; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; opacity: .68; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 30px; }
.desktop-nav a {
  position: relative;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.desktop-nav a:hover::after,
.desktop-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 14px; }
.header-contact,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--petrol);
  background: var(--petrol);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.header-contact:hover,
.button:hover { background: var(--white); color: var(--petrol); border-color: var(--white); }
.button--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.button--light:hover { background: transparent; color: var(--white); }
.button--outline { background: transparent; color: currentColor; border-color: rgba(255,255,255,.46); }
.button--outline-dark { background: transparent; color: var(--ink); border-color: rgba(17,24,29,.35); }
.button--outline-dark:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: calc(var(--ribbon-h) + var(--header-h)) 0 0;
  z-index: 1300;
  background: var(--paper);
  color: var(--ink);
  padding: 38px 32px 28px;
  opacity: 0;
  transform: translateY(-16px);
  visibility: hidden;
  transition: opacity .35s, transform .35s, visibility .35s;
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: clamp(26px, 8vw, 44px); font-weight: 400; }
.mobile-menu-meta { display: grid; gap: 7px; margin-top: 30px; color: var(--muted); font-size: 13px; }

/* General typography */
.eyebrow {
  display: none !important;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -.045em; }
h1 { font-size: clamp(52px, 7.2vw, 112px); line-height: .94; }
h2 { font-size: clamp(38px, 5.2vw, 72px); line-height: 1; }
h3 { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.12; }
p { color: var(--muted); }
.lead { max-width: 700px; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.65; color: inherit; }
.section { padding: 120px 0; }
.section--compact { padding: 88px 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark p { color: rgba(255,255,255,.67); }
.section--petrol { background: var(--petrol); color: var(--white); }
.section--petrol p { color: rgba(255,255,255,.7); }
.section--stone { background: var(--paper-2); }
.section-title-row { display: grid; grid-template-columns: 1.2fr .7fr; gap: 80px; align-items: end; margin-bottom: 70px; }
.section-title-row p { margin: 0; }
.section-number { color: var(--bronze); font-size: 11px; letter-spacing: .18em; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img,
.hero-media video {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center;
  transform: translateY(var(--parallax-y, 0));
  will-change: transform;
}
.hero-media video {
  display: block;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,13,17,.12), rgba(8,13,17,.82) 82%), linear-gradient(90deg, rgba(8,13,17,.62), transparent 67%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin-inline: auto;
  padding: calc(var(--ribbon-h) + var(--header-h) + 90px) 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .55fr; gap: 70px; align-items: end; }
.hero-title { max-width: 980px; margin-bottom: 28px; }
.hero-title span { display: block; overflow: hidden; }
.hero-title span > i { display: block; font-style: normal; transform: translateY(110%); animation: heroLine 1s 1.05s var(--ease) forwards; }
.hero-title span:nth-child(2) > i { animation-delay: 1.17s; }
@keyframes heroLine { to { transform: none; } }
.hero-kicker { margin-bottom: 18px; color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.hero-copy { max-width: 520px; margin: 0 0 28px; color: rgba(255,255,255,.75); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-side { padding-bottom: 6px; border-left: 1px solid var(--line-light); padding-left: 28px; }
.hero-side strong { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 500; }
.hero-side p { margin: 0; color: rgba(255,255,255,.58); font-size: 12px; }
.hero-scroll { position: absolute; right: 28px; bottom: 72px; z-index: 2; writing-mode: vertical-rl; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; opacity: .65; }
.hero-scroll::after { content: ""; display: inline-block; width: 1px; height: 52px; margin-top: 12px; background: rgba(255,255,255,.5); }

.page-hero { min-height: 78svh; }
.page-hero .hero-content { padding-bottom: 68px; }
.page-hero .hero-title { max-width: 830px; }

/* Reveal system */
[data-reveal] { opacity: 0; transform: translateY(38px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal="left"] { transform: translateX(-46px); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
.image-reveal { position: relative; overflow: hidden; background: var(--paper-2); }
.image-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--paper);
  transform-origin: right;
  transition: transform 1.15s var(--ease);
}
.section--dark .image-reveal::after,
.section--petrol .image-reveal::after { background: var(--ink); }
.image-reveal.is-visible::after { transform: scaleX(0); }
.image-reveal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.image-reveal.is-visible img { transform: scale(1.025); }

/* Home sections */
.intro-grid { display: grid; grid-template-columns: .85fr 1.1fr; gap: 90px; align-items: center; }
.intro-portrait { min-height: 650px; }
.intro-copy h2 { margin-bottom: 32px; }
.intro-copy p { max-width: 650px; }
.intro-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 42px; background: var(--line); border: 1px solid var(--line); }
.intro-meta div { padding: 22px; background: var(--paper); }
.intro-meta strong { display: block; margin-bottom: 4px; font-size: 24px; font-weight: 400; }
.intro-meta span { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.architecture-block {
  position: relative;
  min-height: 85svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.architecture-block img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.architecture-block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(8,13,17,.86)); }
.architecture-copy { position: relative; z-index: 2; padding: 70px 0; display: grid; grid-template-columns: 1.3fr .6fr; gap: 80px; align-items: end; }
.architecture-copy h2 { max-width: 870px; margin-bottom: 0; }
.architecture-copy p { margin: 0; color: rgba(255,255,255,.68); }

.practice-preview { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: stretch; }
.practice-visual { min-height: 760px; }
.practice-list { border-top: 1px solid var(--line); }
.practice-link { display: grid; grid-template-columns: 54px 1fr auto; gap: 20px; align-items: center; min-height: 112px; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease), background .35s; }
.practice-link:hover { padding-inline: 18px; background: var(--white); }
.practice-link span { color: var(--bronze); font-size: 10px; letter-spacing: .12em; }
.practice-link strong { font-size: clamp(20px, 2vw, 30px); font-weight: 400; letter-spacing: -.03em; }
.practice-link small { color: var(--muted); font-size: 11px; }

.history-preview { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.history-photo { min-height: 570px; }
.history-copy h2 { margin-bottom: 28px; }
.history-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 34px 0; }
.history-points div { padding-top: 18px; border-top: 1px solid var(--line-light); }
.history-points strong { display: block; color: var(--white); font-size: 34px; font-weight: 300; }
.history-points span { color: rgba(255,255,255,.56); font-size: 11px; }

.logo-marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--white); }
.logo-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.logo-group { display: flex; align-items: center; gap: 100px; padding: 26px 50px; }
.logo-group img { width: 160px; height: 56px; object-fit: contain; filter: grayscale(1); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

.justice-strip { display: grid; grid-template-columns: 1fr 1fr; min-height: 760px; }
.justice-strip .image-reveal { min-height: 760px; }
.justice-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(32px, 7vw, 110px); background: var(--petrol); color: var(--white); }
.justice-copy p { color: rgba(255,255,255,.67); }

.contact-band { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.contact-band--full { min-height: clamp(470px, 38vw, 610px); display: flex; align-items: stretch; }
.contact-band-card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.contact-band-card-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7,20,27,.88) 0%, rgba(7,20,27,.72) 42%, rgba(7,20,27,.42) 72%, rgba(7,20,27,.28) 100%); }
.contact-band-inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: inherit; }
.contact-band-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; max-width: 610px; padding: 72px 0; }
.contact-band h2 { margin-bottom: 26px; }
.contact-band p { max-width: 500px; color: rgba(255,255,255,.78); }

/* Experience page */
.profile-hero .hero-media img { object-position: center 60%; }
.bio-grid { display: grid; grid-template-columns: .7fr 1.2fr; gap: 90px; align-items: start; }
.bio-sticky { position: sticky; top: calc(var(--ribbon-h) + var(--header-h) + 36px); }
.bio-copy > p { max-width: 760px; font-size: 18px; }
.bio-copy blockquote { margin: 44px 0; padding-left: 26px; border-left: 2px solid var(--bronze); font-size: clamp(25px, 3vw, 42px); line-height: 1.3; font-weight: 300; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 42px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--bronze); font-size: 28px; font-weight: 300; }
.timeline h3 { margin-bottom: 6px; font-size: 24px; }
.timeline p { margin: 0; }

.photo-archive { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: repeat(2, 310px); gap: 14px; }
.photo-archive figure { position: relative; margin: 0; overflow: hidden; }
.photo-archive figure:first-child { grid-row: 1 / 3; }
.photo-archive img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.photo-archive figure:hover img { transform: scale(1.035); }
.photo-archive figcaption { position: absolute; left: 14px; bottom: 12px; padding: 8px 10px; background: rgba(17,24,29,.74); color: var(--white); font-size: 10px; }
.archive-wide { margin-top: 14px; height: 390px; }
.archive-wide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.credentials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.credential { min-height: 260px; padding: 38px; background: var(--paper); }
.credential span { display: block; margin-bottom: 62px; color: var(--bronze); font-size: 10px; letter-spacing: .14em; }
.credential h3 { margin-bottom: 12px; }
.credential p { margin: 0; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.role { padding: 34px; border: 1px solid var(--line-light); }
.role h3 { margin-bottom: 12px; }
.role p { margin: 0; color: rgba(255,255,255,.6); }

/* Derecho page */
.practice-hero .hero-media img,
.practice-hero .hero-media video { object-position: center 20%; }
.service-index { display: grid; grid-template-columns: 320px 1fr; gap: 72px; }
.service-nav { position: sticky; top: calc(var(--ribbon-h) + var(--header-h) + 30px); align-self: start; border-top: 1px solid var(--line); }
.service-nav button { width: 100%; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--muted); cursor: pointer; transition: color .3s, padding .3s; }
.service-nav button.is-active { color: var(--petrol); padding-left: 14px; }
.service-panel { display: none; min-height: 520px; }
.service-panel.is-active { display: block; animation: panelIn .55s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.service-panel h2 { margin-bottom: 28px; }
.service-panel > p { max-width: 760px; }
.service-columns { columns: 2; column-gap: 60px; margin-top: 36px; }
.service-columns li { break-inside: avoid; margin-bottom: 14px; color: var(--muted); }

.tourism-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.tourism-image { min-height: 660px; }
.company-cards { display: grid; gap: 1px; margin-top: 34px; background: var(--line-light); }
.company-card { display: grid; grid-template-columns: 160px 1fr; align-items: center; min-height: 150px; background: var(--ink-soft); padding: 24px; }
.company-card img { width: 120px; height: 60px; object-fit: contain; }
.company-card h3 { margin: 0 0 6px; font-size: 20px; }
.company-card p { margin: 0; color: rgba(255,255,255,.58); font-size: 13px; }

/* Contact page */
.contact-hero .hero-media img { object-position: center 45%; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.contact-media-column { position: sticky; top: calc(var(--ribbon-h) + var(--header-h) + 28px); }
.contact-video-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); }
.contact-video-frame video, .contact-video-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.contact-details { position: static; margin-top: 26px; }
.contact-list { display: grid; margin-top: 40px; border-top: 1px solid var(--line); }
.contact-list a, .contact-list div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.contact-list strong { display: block; margin-top: 5px; font-size: 16px; font-weight: 500; }
.contact-form { padding: 42px; background: var(--white); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { color: var(--muted); font-size: 11px; }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 12px 2px; background: transparent; color: var(--ink); outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--petrol); }
.field textarea { min-height: 120px; resize: vertical; }
.form-status { min-height: 22px; margin: 12px 0 0; font-size: 12px; }
.map-wrap { min-height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.25) contrast(.95); }

/* Footer */
.site-footer { padding: 64px 0 20px; background: var(--ink); color: var(--white); }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; align-items: start; }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; }
.footer-brand img { width: 44px; filter: invert(1); }
.footer-brand strong { display: block; font-size: 14px; font-weight: 500; }
.footer-brand small { display: block; color: rgba(255,255,255,.48); font-size: 10px; margin-top: 4px; }
.footer-nav, .footer-contact { display: grid; gap: 8px; font-size: 12px; color: rgba(255,255,255,.62); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 52px; padding-top: 18px; border-top: 1px solid var(--line-light); color: rgba(255,255,255,.35); font-size: 9px; }
.footer-bottom div { display: flex; gap: 18px; }
.nexbrokers-credit { display: inline-flex; align-items: center; gap: 8px; color: var(--bronze); }
.nexbrokers-credit img { width: 22px; }

/* Legal */
.legal-main { padding: calc(var(--ribbon-h) + var(--header-h) + 90px) 0 100px; }
.legal-main article { max-width: 820px; }
.legal-main h1 { font-size: clamp(44px, 7vw, 80px); }
.legal-main h2 { margin-top: 40px; font-size: 28px; }

/* Responsive */
@media (max-width: 1050px) {
  :root { --shell: min(100% - 48px, 1280px); }
  .desktop-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-actions { grid-column: 2; }
  .header-contact { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .intro-grid, .practice-preview, .history-preview, .tourism-layout, .contact-grid, .bio-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .hero-side { border-left: 0; border-top: 1px solid var(--line-light); padding: 20px 0 0; }
  .intro-portrait, .practice-visual, .tourism-image { min-height: 620px; }
  .architecture-copy { grid-template-columns: 1fr; }
  .justice-strip { grid-template-columns: 1fr; }
  .justice-strip .image-reveal { min-height: 620px; }
  .service-index { grid-template-columns: 1fr; }
  .service-nav { position: static; display: flex; gap: 8px; overflow-x: auto; border: 0; }
  .service-nav button { min-width: 220px; border: 1px solid var(--line); padding: 13px; }
  .service-nav button.is-active { padding-left: 13px; background: var(--white); }
  .contact-media-column, .contact-details, .bio-sticky { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :root { --ribbon-h: 42px; --header-h: 70px; --shell: calc(100% - 32px); }
  .demo-ribbon { font-size: 8px; line-height: 1.4; }
  .brand-copy strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
  .brand-copy small { display: none; }
  .brand img { width: 38px; height: 38px; }
  .menu-toggle { width: 44px; height: 44px; }
  .section { padding: 78px 0; }
  .section--compact { padding: 62px 0; }
  .hero { min-height: 880px; }
  .page-hero { min-height: 720px; }
  .hero-content { padding-bottom: 48px; }
  .hero-title { margin-bottom: 22px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-scroll { display: none; }
  .section-title-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 42px; }
  .intro-portrait, .practice-visual, .tourism-image { min-height: 470px; }
  .intro-meta { grid-template-columns: 1fr; }
  .architecture-block { min-height: 720px; }
  .practice-link { grid-template-columns: 38px 1fr; min-height: 96px; }
  .practice-link small { display: none; }
  .history-points { grid-template-columns: 1fr; }
  .justice-strip .image-reveal { min-height: 500px; }
  .justice-copy { padding: 58px 24px; }
  .contact-band--full { min-height: 520px; }
  .contact-band-inner { align-items: flex-end; }
  .contact-band-copy { max-width: none; padding: 42px 0; }
  .contact-band-card-overlay { background: linear-gradient(180deg, rgba(7,20,27,.34) 0%, rgba(7,20,27,.58) 52%, rgba(7,20,27,.88) 100%); }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .photo-archive { grid-template-columns: 1fr; grid-template-rows: auto; }
  .photo-archive figure, .photo-archive figure:first-child { grid-row: auto; min-height: 310px; }
  .archive-wide { height: 300px; }
  .credentials-grid, .roles { grid-template-columns: 1fr; }
  .service-columns { columns: 1; }
  .company-card { grid-template-columns: 110px 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-video-frame { aspect-ratio: 16 / 11; }
  .contact-video-frame video, .contact-video-frame img { object-position: center 58%; }
  .contact-form { padding: 26px 20px; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: grid; }
  .footer-bottom div { flex-wrap: wrap; }
  .cursor-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .image-reveal::after { display: none; }
}

/* 2026-08-13 refinement pass */
.loader-logo,
.page-transition img {
  filter: none;
}
.loader-name {
  color: var(--white);
}

/* Remove dead space below portrait imagery and keep subjects centered. */
.intro-portrait {
  min-height: 0;
  aspect-ratio: 1 / 1;
}
.intro-portrait img {
  object-position: center center;
}
.history-photo {
  min-height: 0;
  aspect-ratio: 4 / 3;
}
.history-photo img {
  object-position: center center;
}

/* Hotel marquee flows directly into the method section. */
.hotel-marquee-section {
  padding-bottom: 0;
}

/* Method section: full petrol field with the photograph on the right. */
.justice-strip {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: stretch;
  min-height: 760px;
  background: var(--petrol);
}
.justice-strip > * {
  min-width: 0;
}
.justice-copy {
  order: 1;
  background: transparent;
}
.justice-strip .image-reveal {
  order: 2;
  min-height: 760px;
  height: 100%;
  margin: 0;
  align-self: stretch;
  background: var(--petrol);
}
.justice-strip .image-reveal::after {
  background: var(--petrol);
}
.justice-strip .image-reveal img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Align the practice list vertically with its visual. */
.practice-preview {
  align-items: center;
}
.practice-visual {
  min-height: 0;
  height: 680px;
}
.practice-list {
  width: 100%;
}

/* Footer hierarchy. */
.footer-brand img {
  filter: none;
}
.footer-label {
  display: block;
  margin-bottom: 6px;
  color: var(--bronze);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .intro-portrait { min-height: 0; aspect-ratio: 1 / 1; }
  .history-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .practice-visual { min-height: 0; height: 620px; }
  .justice-copy { order: 1; }
  .justice-strip .image-reveal { order: 2; }
}

@media (max-width: 700px) {
  .practice-visual { min-height: 0; height: 470px; }
}

/* 2026-08-14 interactive timeline + rotating legal operations */
.service-timeline-section {
  position: relative;
  overflow: hidden;
}
.service-timeline-heading {
  max-width: 930px;
  margin-bottom: 58px;
  text-align: center;
}
.service-timeline-heading .eyebrow {
  margin-bottom: 14px;
}
.service-timeline-heading h2 {
  max-width: 850px;
  margin-inline: auto;
}
.service-timeline-heading > p:last-child {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted);
}
.timeline-flow-wrap {
  position: relative;
  max-width: 1160px;
}
.timeline-rail {
  position: absolute;
  top: 68px;
  bottom: 68px;
  left: 50%;
  width: 1px;
  background: rgba(17, 24, 29, .18);
  transform: translateX(-50%);
  pointer-events: none;
}
.timeline-rail-progress {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 100%;
  background: var(--petrol);
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}
.timeline-flow {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  align-items: center;
  min-height: 185px;
}
.timeline-card {
  position: relative;
  grid-column: 1;
  width: min(100%, 475px);
  justify-self: end;
  padding: 28px 30px 30px;
  border: 1px solid rgba(17, 24, 29, .14);
  background: rgba(255,255,255,.54);
  opacity: .44;
  transform: translate3d(-22px, 24px, 0) scale(.985);
  transition:
    opacity .58s var(--ease),
    transform .72s var(--ease),
    border-color .45s ease,
    background .45s ease,
    box-shadow .45s ease;
}
.timeline-entry:nth-child(even) .timeline-card {
  grid-column: 3;
  justify-self: start;
  transform: translate3d(22px, 24px, 0) scale(.985);
}
.timeline-card time {
  display: block;
  margin-bottom: 14px;
  color: var(--bronze);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.timeline-card h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 400;
  letter-spacing: -.025em;
}
.timeline-card p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.timeline-marker {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 22px;
  height: 22px;
  justify-self: center;
  border: 1px solid rgba(23, 61, 69, .42);
  border-radius: 50%;
  background: var(--paper-2);
  box-shadow: 0 0 0 7px var(--paper-2);
  transition: border-color .35s ease, background .35s ease, transform .5s var(--ease), box-shadow .5s ease;
}
.timeline-marker i {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(23, 61, 69, .3);
  transform: translate(-50%, -50%);
  transition: background .35s ease, transform .45s var(--ease);
}
.timeline-entry.is-active .timeline-card {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  border-color: rgba(23, 61, 69, .28);
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 44px rgba(17, 24, 29, .055);
}
.timeline-entry.is-active .timeline-marker {
  border-color: var(--petrol);
  background: var(--white);
  transform: scale(1.06);
  box-shadow: 0 0 0 7px var(--paper-2), 0 0 0 8px rgba(23, 61, 69, .08);
}
.timeline-entry.is-active .timeline-marker i {
  background: var(--petrol);
  transform: translate(-50%, -50%) scale(1.25);
}

.asset-operations {
  position: relative;
  overflow: hidden;
  padding: clamp(92px, 10vw, 150px) 0 clamp(88px, 9vw, 136px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.asset-operations-grid {
  display: grid;
  grid-template-columns: .82fr 1.25fr .82fr;
  gap: clamp(45px, 6vw, 96px);
  align-items: center;
  min-height: 300px;
}
.asset-operations-intro {
  align-self: center;
}
.asset-operations-intro .eyebrow {
  margin-bottom: 18px;
}
.asset-operations-intro h2 {
  max-width: 350px;
  margin-bottom: 18px;
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.035em;
}
.asset-operations-intro > p:last-child {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.asset-operation-stage {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.asset-operation-index {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--bronze);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
}
.asset-operation-index em {
  font-style: normal;
  opacity: .45;
}
.asset-operation-stage h3 {
  margin: 0;
  max-width: 610px;
  color: var(--ink);
  font-size: clamp(34px, 4.1vw, 68px);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: -.045em;
  transition: opacity .26s ease, transform .42s var(--ease), filter .35s ease;
}
.asset-operation-detail {
  align-self: center;
}
.asset-operation-detail > p {
  min-height: 76px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  transition: opacity .26s ease, transform .42s var(--ease), filter .35s ease;
}
.asset-operation-button {
  color: var(--ink);
  border-color: rgba(17,24,29,.3);
  background: transparent;
}
.asset-operation-button:hover {
  background: var(--petrol);
  color: var(--white);
  border-color: var(--petrol);
}
.asset-operations.is-changing .asset-operation-stage h3,
.asset-operations.is-changing .asset-operation-detail > p {
  opacity: 0;
  transform: translateY(-18px);
  filter: blur(3px);
}
.asset-operations.is-entering .asset-operation-stage h3,
.asset-operations.is-entering .asset-operation-detail > p {
  animation: assetOperationIn .52s var(--ease) both;
}
.asset-operation-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(17,24,29,.08);
}
.asset-operation-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--petrol);
  transform: scaleX(0);
  transform-origin: left center;
}
.asset-operations.is-running .asset-operation-progress span {
  animation: assetOperationProgress 3s linear both;
}
@keyframes assetOperationIn {
  from { opacity: 0; transform: translateY(22px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes assetOperationProgress { to { transform: scaleX(1); } }

@media (max-width: 1050px) {
  .timeline-entry {
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  }
  .asset-operations-grid {
    grid-template-columns: .8fr 1.1fr;
    gap: 44px 60px;
  }
  .asset-operation-detail {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .service-timeline-heading {
    margin-bottom: 42px;
    text-align: left;
  }
  .service-timeline-heading h2,
  .service-timeline-heading > p:last-child {
    margin-left: 0;
  }
  .timeline-flow-wrap {
    padding-left: 30px;
  }
  .timeline-rail {
    top: 34px;
    bottom: 34px;
    left: 10px;
  }
  .timeline-entry {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0 0 30px;
  }
  .timeline-card,
  .timeline-entry:nth-child(even) .timeline-card {
    grid-column: 1;
    width: 100%;
    justify-self: stretch;
    padding: 22px 22px 24px;
    transform: translate3d(16px, 18px, 0) scale(.99);
  }
  .timeline-marker,
  .timeline-entry:nth-child(even) .timeline-marker {
    grid-column: auto;
    grid-row: auto;
    position: absolute;
    left: -29px;
    top: 34px;
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 6px var(--paper-2);
  }
  .asset-operations {
    padding: 76px 0 72px;
  }
  .asset-operations-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
  }
  .asset-operations-intro h2,
  .asset-operations-intro > p:last-child,
  .asset-operation-stage h3 {
    max-width: none;
  }
  .asset-operation-stage {
    min-height: 150px;
    padding-block: 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .asset-operation-stage h3 {
    font-size: clamp(34px, 10.5vw, 52px);
  }
  .asset-operation-detail {
    grid-column: auto;
  }
  .asset-operation-detail > p {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-card,
  .timeline-marker,
  .asset-operation-stage h3,
  .asset-operation-detail > p { transition: none !important; }
  .asset-operation-progress { display: none; }
}

@media (max-width: 700px) {
  .timeline-marker,
  .timeline-entry:nth-child(even) .timeline-marker { z-index: 3; }
}

/* 2026-08-14: transparent hotel marks + seamless continuous marquee */
.logo-track {
  display: flex;
  width: max-content;
  animation: hotelMarqueeInfinite 28s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.logo-group {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(90px, 8vw, 150px);
  padding: 22px clamp(50px, 5vw, 86px);
}
.logo-group img {
  width: 142px;
  height: 50px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  background: transparent;
}
@keyframes hotelMarqueeInfinite {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-25%, 0, 0); }
}
.company-card img {
  background: transparent;
  filter: none;
}
.contact-hero .hero-media img {
  object-position: center center;
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation-play-state: paused; }
}

/* 2026-08-14 v13: contact hero video + clean contact form column */
.contact-hero .hero-media video.contact-hero-video {
  object-position: center center;
}
.contact-media-column--text-only {
  position: sticky;
  top: calc(var(--ribbon-h) + var(--header-h) + 28px);
}
.contact-media-column--text-only .contact-details {
  margin-top: 0;
}
@media (max-width: 700px) {
  .contact-media-column--text-only { position: static; }
}


/* 2026-08-14 v19: truly seamless hotel-logo marquee */
.logo-marquee {
  overflow: hidden;
}
.logo-track {
  display: flex;
  width: max-content;
  animation: hotelMarqueeInfiniteV19 38s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.logo-sequence {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(105px, 9vw, 175px);
  padding: 22px clamp(58px, 5vw, 92px);
}
.logo-sequence img {
  flex: 0 0 auto;
  width: 132px;
  height: 48px;
  object-fit: contain;
  background: transparent;
  filter: none;
  opacity: 1;
}
@keyframes hotelMarqueeInfiniteV19 {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 700px) {
  .logo-sequence {
    gap: 72px;
    padding: 18px 36px;
  }
  .logo-sequence img {
    width: 112px;
    height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: hotelMarqueeInfiniteV19 38s linear infinite; }
}

/* 2026-08-14 v20: preserve descenders in Experiencia hero title */
.profile-hero .hero-title span {
  padding-bottom: .14em;
  margin-bottom: -.10em;
}
.profile-hero .hero-title span > i {
  line-height: 1.02;
}

/* Archivo fotográfico: versión reducida solicitada */
.photo-archive.photo-archive--single {
  display: flex;
  justify-content: flex-end;
  gap: 0;
}
.photo-archive.photo-archive--single figure {
  width: min(100%, 520px);
  height: 310px;
  flex: 0 0 min(100%, 520px);
}
.photo-archive.photo-archive--single figure:first-child {
  grid-row: auto;
}
@media (max-width: 760px) {
  .photo-archive.photo-archive--single {
    justify-content: stretch;
  }
  .photo-archive.photo-archive--single figure {
    width: 100%;
    flex-basis: 100%;
    height: 280px;
  }
}

/* 2026-08-16 launch pass: legal pages, LinkedIn, map privacy and mobile refinement */
.demo-ribbon-brand { margin-left: 0; }

.footer-social-link {
  width: 24px;
  height: 24px;
  margin-top: 7px;
  display: inline-grid;
  place-items: center;
  opacity: .72;
  transition: opacity .25s ease;
}
.footer-social-link:hover { opacity: 1; }
.footer-social-link img { width: 20px; height: 20px; }

.legal-article > p,
.legal-article li,
.legal-article dd { font-size: 15px; line-height: 1.75; }
.legal-updated { margin-bottom: 18px; color: var(--bronze); font-size: 11px !important; letter-spacing: .12em; text-transform: uppercase; }
.legal-details { margin: 34px 0 8px; border-top: 1px solid var(--line); }
.legal-details > div { display: grid; grid-template-columns: minmax(170px, .35fr) 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.legal-details dt { color: var(--muted); font-size: 12px; }
.legal-details dd { margin: 0; color: var(--ink); }
.legal-table-wrap { width: 100%; margin: 30px 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.legal-table th,
.legal-table td { padding: 16px 18px; border: 1px solid var(--line); vertical-align: top; text-align: left; font-size: 13px; line-height: 1.65; }
.legal-table th { color: var(--ink); background: var(--paper-2); font-weight: 500; }
.legal-table td { color: var(--muted); background: rgba(255,255,255,.34); }

.form-privacy { max-width: 620px; margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.form-privacy a { color: var(--ink); border-bottom: 1px solid currentColor; }

.map-wrap { min-height: 420px; }
.map-consent { min-height: 420px; display: grid; place-items: center; padding: 40px; background: var(--paper); border: 1px solid var(--line); }
.map-consent-inner { width: min(620px, 100%); text-align: center; }
.map-consent-inner strong { display: block; margin-bottom: 14px; color: var(--ink); font-size: clamp(24px, 3vw, 38px); font-weight: 400; letter-spacing: -.035em; }
.map-consent-inner p { margin: 0 auto 22px; max-width: 580px; }
.map-consent-inner > a { display: inline-block; margin-top: 14px; color: var(--muted); font-size: 11px; border-bottom: 1px solid currentColor; }
.map-wrap iframe { display: block; }

@media (max-width: 1050px) {
  .hero-grid { gap: 28px; }
  .service-index { gap: 42px; }
  .contact-grid { gap: 42px; }
  .footer-main { gap: 38px 52px; }
}

@media (max-width: 700px) {
  :root { --ribbon-h: 36px; --header-h: 68px; --shell: calc(100% - 28px); }
  html { scroll-padding-top: calc(var(--ribbon-h) + var(--header-h) + 12px); }
  body { font-size: 15px; line-height: 1.6; }
  .demo-ribbon { min-height: var(--ribbon-h); padding: 5px 12px; font-size: 7.5px; letter-spacing: .12em; line-height: 1.35; white-space: normal; }
  .site-header { height: var(--header-h); }
  .header-inner { gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 34px; height: 34px; }
  .brand-copy strong { max-width: 220px; font-size: 11px; white-space: nowrap; }
  .menu-toggle { width: 42px; height: 42px; }
  .mobile-menu { inset: calc(var(--ribbon-h) + var(--header-h)) 0 0; padding: 26px 20px max(26px, env(safe-area-inset-bottom)); overflow-y: auto; }
  .mobile-menu nav a { padding: 13px 0; font-size: clamp(28px, 10vw, 40px); }
  .mobile-menu-meta { font-size: 12px; overflow-wrap: anywhere; }

  h1 { font-size: clamp(46px, 13.2vw, 66px); line-height: .98; }
  h2 { font-size: clamp(34px, 10.5vw, 52px); line-height: 1.03; }
  h3 { font-size: clamp(22px, 7vw, 30px); }
  .lead { font-size: 17px; line-height: 1.55; }
  .section { padding: 68px 0; }
  .section--compact { padding: 54px 0; }
  .section-title-row { gap: 18px; margin-bottom: 34px; }

  .hero,
  .page-hero { min-height: calc(100svh - var(--ribbon-h)); }
  .hero-content { padding: calc(var(--ribbon-h) + var(--header-h) + 58px) 0 34px; }
  .page-hero .hero-content { padding-bottom: 34px; }
  .hero-title { max-width: none; margin-bottom: 18px; }
  .hero-copy { margin-bottom: 20px; font-size: 14px; line-height: 1.6; }
  .hero-side { padding-top: 16px; padding-left: 0; }
  .hero-side strong { font-size: 13px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { min-height: 44px; padding: 11px 16px; font-size: 11px; }
  .hero-media img,
  .hero-media video { height: 108%; }

  .intro-grid,
  .bio-grid,
  .tourism-layout,
  .contact-grid { gap: 34px; }
  .intro-portrait,
  .practice-visual,
  .tourism-image { min-height: 420px; }
  .intro-meta { margin-top: 28px; }
  .intro-meta div { padding: 16px; }
  .intro-meta strong { font-size: 21px; }

  .architecture-block { min-height: 68svh; }
  .architecture-copy { padding: 42px 0; gap: 24px; }
  .justice-strip { min-height: 0; }
  .justice-strip .image-reveal { min-height: 420px; }
  .justice-copy { padding: 48px 22px; }
  .contact-band--full { min-height: 470px; }
  .contact-band-copy { padding: 42px 0; }

  .timeline li { padding: 22px 0; }
  .timeline time { font-size: 23px; }
  .timeline h3 { font-size: 21px; }
  .credential { min-height: 0; padding: 26px 22px; }
  .credential span { margin-bottom: 32px; }
  .role { padding: 24px 20px; }

  .service-nav { gap: 7px; padding-bottom: 6px; scrollbar-width: thin; }
  .service-nav button { min-width: 196px; min-height: 48px; padding: 12px 14px; font-size: 13px; }
  .service-panel { min-height: 0; }
  .service-panel h2 { margin-bottom: 18px; }
  .service-columns { margin-top: 24px; }
  .company-card { grid-template-columns: 82px 1fr; min-height: 0; padding: 18px 16px; gap: 14px; }
  .company-card img { width: 74px; height: 44px; }
  .company-card h3 { font-size: 17px; }
  .company-card p { font-size: 12px; line-height: 1.55; }

  .asset-operations-grid { gap: 26px; }
  .asset-operation-stage { min-height: 125px; }
  .asset-operation-detail > p { font-size: 12px; line-height: 1.6; }
  .logo-sequence { gap: 58px; padding: 15px 26px; }
  .logo-sequence img { width: 100px; height: 38px; }

  .contact-form { padding: 24px 18px; }
  .field { gap: 6px; margin-bottom: 13px; }
  .field input,
  .field select,
  .field textarea { padding: 10px 2px; }
  .field textarea { min-height: 96px; }
  .contact-list { margin-top: 26px; }
  .contact-list a,
  .contact-list div { padding: 14px 0; }
  .contact-list strong { font-size: 14px; overflow-wrap: anywhere; }
  .map-wrap,
  .map-consent,
  .map-wrap iframe { min-height: 330px; }
  .map-consent { padding: 26px 18px; }
  .map-consent-inner p { font-size: 13px; }

  .site-footer { padding: 42px 0 18px; }
  .footer-main { gap: 26px; }
  .footer-brand img { width: 38px; }
  .footer-brand strong { font-size: 12px; }
  .footer-nav,
  .footer-contact { gap: 7px; font-size: 11px; overflow-wrap: anywhere; }
  .footer-social-link { width: 24px; height: 24px; margin-top: 5px; }
  .footer-bottom { gap: 14px; margin-top: 30px; padding-top: 15px; font-size: 8.5px; }
  .footer-bottom div { gap: 14px; }
  .nexbrokers-credit { justify-self: start; }

  .legal-main { padding: calc(var(--ribbon-h) + var(--header-h) + 54px) 0 72px; }
  .legal-main h1 { font-size: clamp(40px, 13vw, 56px); line-height: 1; }
  .legal-main h2 { margin-top: 32px; font-size: 25px; line-height: 1.15; }
  .legal-article > p,
  .legal-article li,
  .legal-article dd { font-size: 14px; }
  .legal-details > div { grid-template-columns: 1fr; gap: 4px; padding: 13px 0; }
  .legal-table { min-width: 620px; }
  .legal-table th,
  .legal-table td { padding: 13px 14px; font-size: 12px; }
}

@media (max-width: 420px) {
  :root { --shell: calc(100% - 22px); }
  .brand-copy strong { max-width: 190px; font-size: 10.5px; }
  .hero-title { font-size: clamp(42px, 13.5vw, 58px); }
  .page-hero .hero-title { font-size: clamp(40px, 13vw, 56px); }
  .company-card { grid-template-columns: 70px 1fr; padding-inline: 14px; }
  .company-card img { width: 62px; }
  .button,
  .header-contact { min-height: 44px; }
}

/* 2026-08-16 v31: mobile polish requested for Juan Manuel */
@media (max-width: 700px) {
  /* Keep all name/hero descenders visible (Rodriguez, juridica, etc.). */
  .brand-copy {
    line-height: 1.28;
    overflow: visible;
  }
  .brand-copy strong {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.28;
    padding-bottom: .08em;
  }
  .hero-title span,
  .profile-hero .hero-title span {
    overflow: visible;
    padding-bottom: .18em;
    margin-bottom: -.12em;
  }
  .hero-title span > i,
  .profile-hero .hero-title span > i {
    line-height: 1.04;
    padding-bottom: .03em;
  }

  /* Mobile menu only contains navigation links. */
  .mobile-menu-meta { display: none !important; }

  /* Show the complete Justice image instead of cropping it. */
  .practice-visual {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1181 / 2048;
    background: var(--paper);
  }
  .practice-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }
  .practice-visual.is-visible img { transform: none; }

  /* The infinite hotel strip touches the Analizar / Negociar / Defender section. */
  .hotel-marquee-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .hotel-marquee-section .logo-marquee {
    margin-bottom: 0 !important;
  }
  .hotel-marquee-section + .justice-strip {
    margin-top: 0 !important;
  }

  /* Footer: navigation at left, contact + LinkedIn at right. */
  .footer-main {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important;
    column-gap: 24px !important;
    row-gap: 24px !important;
    align-items: start;
  }
  .footer-brand {
    grid-column: 1 / -1 !important;
  }
  .footer-nav {
    grid-column: 1;
    grid-row: 2;
  }
  .footer-contact {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }
  .footer-contact a,
  .footer-contact span {
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .footer-social-link {
    justify-self: start;
    margin-top: 7px;
  }

  /* Center the mobile timeline and let each card pop into place on scroll. */
  .timeline-flow-wrap {
    width: min(100%, 470px);
    margin-inline: auto;
    padding-inline: 4px;
  }
  .timeline-rail {
    top: 24px;
    bottom: 24px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 0;
  }
  .timeline-flow {
    display: grid;
    gap: 18px;
  }
  .timeline-entry {
    position: relative;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto;
    justify-items: center;
    min-height: 0 !important;
    padding: 18px 0 28px;
  }
  .timeline-marker,
  .timeline-entry:nth-child(even) .timeline-marker {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    margin: 0 0 14px !important;
    z-index: 3;
    box-shadow: 0 0 0 7px var(--paper-2);
  }
  .timeline-card,
  .timeline-entry:nth-child(even) .timeline-card {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    width: min(calc(100% - 8px), 430px) !important;
    margin: 0 !important;
    z-index: 2;
    opacity: .16;
    transform: translate3d(0, 34px, 0) scale(.955) !important;
    background: rgba(255,255,255,.96);
    box-shadow: 0 0 0 rgba(14,30,56,0);
    transition:
      opacity .52s var(--ease),
      transform .68s var(--ease),
      border-color .42s ease,
      background .42s ease,
      box-shadow .52s var(--ease) !important;
  }
  .timeline-entry.is-active .timeline-card,
  .timeline-entry:nth-child(even).is-active .timeline-card {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) !important;
    border-color: rgba(14,30,56,.22);
    box-shadow: 0 18px 44px rgba(14,30,56,.10);
  }
  .timeline-entry.is-active .timeline-marker {
    transform: scale(1.12);
  }
}

@media (max-width: 420px) {
  .brand-copy strong {
    max-width: none;
    font-size: 10px;
  }
  .footer-main {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr) !important;
    column-gap: 18px !important;
  }
  .footer-nav,
  .footer-contact {
    font-size: 10px;
  }
}

/* v31 mobile corrections after QA */
@media (max-width: 700px) {
  .hero-title span,
  .profile-hero .hero-title span {
    overflow: hidden;
  }
  .service-timeline-heading {
    text-align: center;
    margin-inline: auto;
  }
  .service-timeline-heading h2,
  .service-timeline-heading > p:last-child {
    margin-left: auto;
    margin-right: auto;
  }
  .timeline-marker,
  .timeline-entry:nth-child(even) .timeline-marker {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 20px;
    height: 20px;
  }
}

/* 2026-08-16 v32: final mobile alignment refinements */
@media (max-width: 700px) {
  /* Keep the Justice photograph visually centered with equal breathing room. */
  .practice-preview {
    justify-items: center;
  }
  .practice-visual {
    width: min(calc(100% - 56px), 420px) !important;
    max-width: 420px;
    margin-inline: auto !important;
    justify-self: center;
  }
  .practice-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  /* The timeline rail must disappear completely behind each card. */
  .timeline-card,
  .timeline-entry:nth-child(even) .timeline-card {
    position: relative;
    z-index: 4;
    background: var(--white) !important;
    isolation: isolate;
  }
  .timeline-marker,
  .timeline-entry:nth-child(even) .timeline-marker {
    z-index: 5;
  }
  .timeline-rail {
    z-index: 0 !important;
  }

  /* Footer bottom row: copyright left, Nexbrokers credit right, legal links below. */
  .footer-bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    column-gap: 18px;
    row-gap: 12px;
  }
  .footer-bottom > span {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .footer-bottom > .nexbrokers-credit {
    grid-column: 2;
    grid-row: 1;
    justify-self: end !important;
    text-align: right;
    white-space: normal;
    max-width: 190px;
    line-height: 1.35;
  }
  .footer-bottom > div {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .practice-visual {
    width: min(calc(100% - 44px), 390px) !important;
  }
  .footer-bottom > .nexbrokers-credit {
    max-width: 150px;
    font-size: 8px;
    gap: 6px;
  }
  .footer-bottom > .nexbrokers-credit img {
    width: 18px;
  }
}

/* 2026-08-18 v33: hard lock against lateral page movement on mobile Safari/Chrome. */
@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }

  body {
    position: relative;
  }

  main,
  .site-header,
  .demo-ribbon,
  .site-footer,
  .page-loader,
  .page-transition,
  .mobile-menu {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .shell,
  .header-inner,
  .hero-grid,
  .intro-grid,
  .bio-grid,
  .tourism-layout,
  .contact-grid,
  .footer-main,
  .footer-bottom,
  .service-index,
  .service-panel,
  .timeline-flow-wrap,
  .timeline-flow,
  .timeline-entry,
  .timeline-card {
    min-width: 0;
    max-width: 100%;
  }

  .logo-marquee,
  .hotel-marquee-section,
  .logo-sequence {
    max-width: 100%;
    overflow: hidden;
  }

  img,
  video,
  iframe,
  svg {
    max-width: 100%;
  }

  /* Horizontal service tabs remain independently scrollable without moving the page. */
  .service-nav {
    max-width: 100%;
    overscroll-behavior-x: contain;
  }
}

/* 2026-08-18 v34: targeted mobile fixes from real-device QA. */
@media (max-width: 700px) {
  /* Keep the method section readable: never squeeze the three-line headline
     into a half-width column on phones. */
  .justice-strip {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
    width: 100%;
  }
  .justice-copy {
    order: 1 !important;
    width: 100%;
    min-width: 0;
    padding: 52px max(22px, calc((100vw - var(--shell)) / 2));
  }
  .justice-copy h2 {
    max-width: 100%;
    margin-right: 0;
    font-size: clamp(44px, 13.2vw, 58px);
    line-height: 1.02;
    letter-spacing: -.045em;
    overflow: visible;
  }
  .justice-copy p {
    max-width: 36rem;
  }
  .justice-strip .image-reveal {
    order: 2 !important;
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
    margin: 0 !important;
  }
  .justice-strip .image-reveal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  /* Real-device fix: center Juan Manuel's square portrait and keep equal
     breathing room on both sides instead of letting it touch the right edge. */
  .intro-grid {
    width: 100%;
    min-width: 0;
  }
  .intro-portrait {
    width: min(calc(100% - 24px), 560px) !important;
    max-width: 560px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    margin: 0 auto !important;
    justify-self: center;
  }
  .intro-portrait img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .intro-portrait.is-visible img {
    transform: none;
  }

  /* Slightly faster loader on phones, while keeping the branded transition. */
  .page-loader {
    transition-duration: .3s;
  }
  .loader-logo {
    animation-duration: .48s;
    animation-delay: .05s;
  }
  .loader-name {
    animation-duration: .42s;
    animation-delay: .12s;
  }
  .loader-line span {
    animation-duration: .58s;
    animation-delay: .08s;
  }
}



/* v36: registered mark only in the site header + stronger mobile portrait centering. */
.registered-mark {
  display: none;
}
.brand-copy .registered-mark {
  display: inline-block;
  margin-left: .08em;
  font-size: .48em;
  font-weight: 600;
  line-height: 0;
  vertical-align: super;
  position: relative;
  top: -.03em;
  letter-spacing: 0;
  color: inherit;
}

@media (max-width: 700px) {
  /* Keep Juan Manuel's portrait visually centered with equal side margins on phones. */
  #contenido .intro-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: var(--shell) !important;
    margin-inline: auto !important;
    justify-items: center;
  }
  #contenido .intro-portrait {
    display: block;
    width: min(100%, 520px) !important;
    max-width: calc(100vw - 40px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    margin: 0 auto 34px !important;
    justify-self: center !important;
    box-sizing: border-box;
    overflow: hidden;
  }
  #contenido .intro-portrait img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center center;
    transform: none !important;
  }
}

/* 2026-08-18 v37: real-device mobile overflow + method split correction. */
@media (max-width: 700px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }

  html {
    overflow-x: clip !important;
  }

  body {
    position: relative;
    min-width: 0 !important;
  }

  #contenido,
  main,
  .site-header,
  .demo-ribbon,
  .site-footer,
  .hero,
  .section,
  .hotel-marquee-section,
  .justice-strip,
  .contact-band {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip !important;
  }

  /* Horizontal reveal transforms can create a scrollable overflow area on iOS. */
  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translate3d(0, 24px, 0) !important;
  }
  [data-reveal].is-visible {
    transform: none !important;
  }

  /* Isolate the infinite logo belt so its max-content track never widens the page. */
  .logo-marquee {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    contain: layout paint;
  }
  .logo-track {
    flex: none;
    will-change: transform;
  }

  /* Preserve the premium split composition, but size it correctly for phones. */
  .justice-strip {
    display: grid !important;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr) !important;
    align-items: stretch !important;
    min-height: 620px !important;
    background: var(--petrol) !important;
  }
  .justice-strip > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .justice-copy {
    order: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 44px 16px 48px max(20px, env(safe-area-inset-left)) !important;
    overflow: hidden !important;
  }
  .justice-copy h2 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 28px !important;
    font-size: clamp(30px, 8.5vw, 38px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.045em !important;
    overflow: visible !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  .justice-copy p {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 28px !important;
    font-size: clamp(12px, 3.35vw, 14px) !important;
    line-height: 1.7 !important;
    overflow-wrap: break-word;
  }
  .justice-copy .button {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 10px !important;
    font-size: 10.5px !important;
    white-space: normal !important;
    text-align: center;
  }
  .justice-strip .image-reveal {
    order: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 620px !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .justice-strip .image-reveal img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    object-fit: cover !important;
    object-position: 52% center !important;
  }
}

@media (max-width: 420px) {
  .justice-strip {
    grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr) !important;
    min-height: 590px !important;
  }
  .justice-copy {
    padding: 38px 13px 42px 18px !important;
  }
  .justice-copy h2 {
    font-size: clamp(28px, 8.1vw, 34px) !important;
    margin-bottom: 24px !important;
  }
  .justice-copy p {
    font-size: 12px !important;
    line-height: 1.62 !important;
    margin-bottom: 24px !important;
  }
  .justice-copy .button {
    font-size: 10px !important;
    padding: 12px 8px !important;
  }
  .justice-strip .image-reveal {
    min-height: 590px !important;
  }
}
