/* Terán & Co. — lenguaje visual de inmilenio.com: DM Sans, blanco y negro. */
:root {
  --navy: #0d0e11;
  --dark: #1c1d20;
  --text: #4a4b4f;
  --muted: #8a8b8e;
  --stone: #f5f4f1;
  --line: rgba(0,0,0,.08);
  --white: #ffffff;
  --serif: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1376px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; color: var(--navy); }

/* ---------- Header (transparente sobre la portada, blanco al bajar) ---------- */
header.site { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: var(--white); transition: background .3s, color .3s, box-shadow .3s; }
header.site.solid, body.inner header.site { background: var(--white); color: var(--navy); box-shadow: 0 1px 0 var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--serif); font-size: 27px; font-weight: 400; letter-spacing: -.01em; }
nav.main { display: flex; align-items: center; gap: 30px; }
nav.main a { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.25; text-align: center; padding: 6px 0; border-bottom: 1px solid transparent; }
nav.main a:hover, nav.main a.on { border-color: currentColor; }
nav.main .sep { width: 1px; height: 22px; background: currentColor; opacity: .35; }
nav.main .lang { font-weight: 400; }
.menu-btn { display: none; background: none; border: 0; color: inherit; font: 600 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }

/* ---------- Portada ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; max-height: 960px; display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(70, 70, 70, .45); }
.hero h1 { position: relative; z-index: 1; font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: clamp(46px, 6vw, 83px); line-height: 1.04; max-width: 17ch; margin: 0 auto; padding: 0 24px; }

/* ---------- Bloques ---------- */
.block { padding: 112px 0; }
.block.stone { background: var(--stone); }
.statement { max-width: 980px; margin: 0 auto; text-align: center; font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: clamp(30px, 3.3vw, 44px); line-height: 1.14; letter-spacing: -.02em; color: var(--navy); }
.statement + .sub { max-width: 640px; margin: 28px auto 0; text-align: center; font-size: 18px; }

h2.title { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: clamp(32px, 3.3vw, 44px); line-height: 1.14; letter-spacing: -.02em; color: var(--navy); }

/* Negocios: tres columnas como en la portada de Rothschild */
.biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.biz article { display: flex; flex-direction: column; }
.biz .ph { aspect-ratio: 4/3; overflow: hidden; background: var(--stone); }
.biz .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.biz article:hover .ph img { transform: scale(1.04); }
.biz h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: clamp(32px, 3vw, 44px); line-height: 1.14; letter-spacing: -.02em; color: var(--navy); margin: 32px 0 16px; }
.biz p { font-size: 17px; }
.biz .fact { margin-top: 28px; background: var(--stone); padding: 32px; }
.biz .fact small { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); margin-bottom: 8px; }
.biz .fact span { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: 26px; line-height: 1.2; color: var(--navy); }
.biz .actions { margin-top: 28px; }

.btn { display: inline-block; padding: 13px 26px; background: var(--navy); color: var(--white); border: .8px solid var(--navy); font-size: 15px; text-transform: uppercase; letter-spacing: .02em; transition: background .2s, color .2s; }
.btn:hover { background: var(--white); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white); }

/* Imagen a sangre con texto */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.split .ph { position: relative; }
.split .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split .txt { background: var(--navy); color: #d5dae2; padding: 96px 72px; display: flex; flex-direction: column; justify-content: center; }
.split .txt h2 { color: var(--white); }
.split .txt p { margin-top: 24px; font-size: 18px; max-width: 520px; }
.split .txt ul { list-style: none; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.2); max-width: 520px; }
.split .txt li { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.2); display: grid; grid-template-columns: 140px 1fr; gap: 16px; font-size: 16px; }
.split .txt li b { color: var(--white); font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; padding-top: 2px; }

/* Perspectivas (equivale a "Insights") */
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.head-row a { font-size: 15px; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 2px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { border-top: 1px solid var(--navy); padding-top: 24px; display: flex; flex-direction: column; min-height: 240px; }
.card .tag { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.card h4 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); margin: 14px 0 12px; }
.card p { font-size: 16px; }

/* Liderazgo */
.leader { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
.portrait { aspect-ratio: 4/5; background: var(--stone); border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 24px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); position: relative; }
.portrait::before { content: ""; position: absolute; inset: 0; background: url(/img/monograma.svg) center / 96px no-repeat; opacity: .12; }
.leader .role { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.leader h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.02em; color: var(--navy); margin: 12px 0 24px; }
.leader p { font-size: 18px; max-width: 560px; }
.leader .btn { margin-top: 36px; }

/* Contacto */
.cta { text-align: center; }
.cta h2 { margin-bottom: 16px; }
.cta p { font-size: 18px; margin-bottom: 36px; }

/* Pie */
footer { background: var(--navy); color: #c5ccd7; font-size: 15px; }
footer .top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 80px 0 56px; }
footer .brand { color: var(--white); }
footer h5 { color: var(--white); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; }
footer li { list-style: none; margin-bottom: 10px; }
footer a:hover { color: var(--white); text-decoration: underline; }
footer .bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 24px 0 40px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; }
.mock { margin-top: 16px; font-size: 13px; color: #8d99ab; }

/* ---------- Páginas interiores ---------- */
body.inner main { padding-top: 88px; }
.page-hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.crumbs a { text-decoration: underline; }
.page-hero h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: clamp(46px, 6vw, 83px); line-height: 1.04; letter-spacing: -.02em; color: var(--navy); }
.page-hero p { margin-top: 16px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.bio { display: grid; grid-template-columns: 4fr 8fr; gap: 80px; }
.bio dl { border-top: 1px solid var(--navy); }
.bio dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 16px; }
.bio dd { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: 22px; color: var(--navy); padding: 2px 0 16px; border-bottom: 1px solid var(--line); }
.prose { max-width: 720px; font-size: 18px; line-height: 1.6; }
.prose p + p { margin-top: 20px; }
.prose strong { color: var(--navy); font-weight: 600; }
.refs { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.refs ol { padding-left: 20px; margin-top: 8px; }

/* Personalidad de la organización: listas numeradas, línea de tiempo y enlaces cruzados */
.lede { max-width: 980px; font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: clamp(28px, 3vw, 40px); line-height: 1.18; letter-spacing: -.02em; color: var(--navy); }
.two { display: grid; grid-template-columns: 4fr 8fr; gap: 80px; }
.two h2.title { position: sticky; top: 128px; align-self: start; }
.tenets { list-style: none; border-top: 1px solid var(--navy); }
.tenets li { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.tenets .n { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: 26px; color: var(--muted); }
.tenets h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.02em; color: var(--navy); margin-bottom: 10px; }
.tenets p { font-size: 17px; max-width: 640px; }
.timeline { list-style: none; border-left: 1px solid var(--navy); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 56px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--white); border: 1px solid var(--navy); }
.timeline .tag { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.timeline h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.02em; color: var(--navy); margin: 8px 0 10px; }
.timeline p { font-size: 17px; max-width: 640px; }
.timeline a, .prose a, .tenets a { color: var(--navy); border-bottom: 1px solid currentColor; }
.facts { border-top: 1px solid var(--navy); }
.facts div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 3px; }
.facts dd { font-size: 17px; color: var(--navy); }
.facts dd a { border-bottom: 1px solid currentColor; }
a.card { transition: border-color .2s; }
a.card:hover h4 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card .more { margin-top: auto; padding-top: 20px; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; color: var(--navy); }
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote p { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: clamp(30px, 3.3vw, 44px); line-height: 1.16; letter-spacing: -.02em; color: var(--navy); }
.quote cite { display: block; margin-top: 24px; font-style: normal; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  nav.main { display: none; position: absolute; top: 88px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); color: var(--navy); padding: 8px 20px 20px; box-shadow: 0 8px 16px rgba(0,0,0,.06); }
  nav.main.open { display: flex; }
  nav.main a { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); }
  nav.main .sep { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .block { padding: 80px 0; }
  .biz, .cards { grid-template-columns: 1fr; gap: 56px; }
  .split { grid-template-columns: 1fr; }
  .split .ph { min-height: 300px; }
  .split .txt { padding: 64px 20px; }
  .split .txt li { grid-template-columns: 1fr; gap: 4px; }
  .leader, .bio, .two { grid-template-columns: 1fr; gap: 40px; }
  .two h2.title { position: static; }
  .tenets li { grid-template-columns: 40px 1fr; gap: 12px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .timeline li { padding-left: 28px; }
  .head-row { flex-direction: column; align-items: flex-start; }
  footer .top { grid-template-columns: 1fr 1fr; }
  .hero { height: 88vh; min-height: 520px; }
}
@media (max-width: 520px) {
  .brand span { font-size: 23px; }
  footer .top { grid-template-columns: 1fr; }
}

/* ===== v11 · Lenguaje inmilenio.com (DM Sans, blanco y negro, imágenes de borde a borde) ===== */
body { font-weight: 400; color: var(--text); }
.lede, .quote p, .bio dd, .tenets .n { font-weight: 300 !important; letter-spacing: -.01em !important; }

/* Encabezado */
header.site .wrap { max-width: none; padding: 0 48px; height: 80px; }
.brand { gap: 12px; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--sans); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.brand .logo-w { display: none; }
body.home header.site:not(.solid) .brand .logo-n { display: none; }
body.home header.site:not(.solid) .brand .logo-w { display: block; }
nav.main { gap: 28px; }
nav.main a { font-size: 13px; font-weight: 400; letter-spacing: .02em; text-transform: none; }
header.site:not(.solid) nav.main a { color: rgba(255,255,255,.75); }
body.inner header.site nav.main a, header.site.solid nav.main a { color: var(--muted); }
nav.main a:hover { color: inherit; }
nav.main .only-m { display: none; }
.hdr-right { display: flex; align-items: center; gap: 20px; }
.btn-hdr { font-size: 13px; font-weight: 500; padding: 10px 20px; background: #fff; color: var(--navy); white-space: nowrap; transition: background .2s, color .2s; }
header.site.solid .btn-hdr, body.inner .btn-hdr { background: var(--navy); color: #fff; }
.btn-hdr:hover { background: var(--dark); color: #fff; }

/* Portada */
.hero.hero-l { place-items: center start; text-align: left; height: 100vh; max-height: none; background: radial-gradient(ellipse at 75% 25%, #2a2c31 0%, #141518 50%, #08090b 100%); }
.hero.hero-l:not(:has(video))::after { display: none; }
.hero.hero-l .hero-txt { width: 100%; max-width: none; padding: 0 48px; position: relative; z-index: 1; animation: rise 1.2s ease-out both; }
.h-eyebrow { font-size: 11px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.7); margin: 0 0 24px; display: flex; align-items: center; gap: 14px; }
.h-eyebrow::before { content: ""; width: 30px; height: 1px; background: rgba(255,255,255,.4); }
.hero.hero-l h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(64px, 9.5vw, 128px); line-height: .92; letter-spacing: -.03em; color: #fff; margin: 0 0 24px; padding: 0; max-width: none; }
.outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.45); }
.h-sub { font-size: 15px; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); margin: 0 0 52px; }
.h-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.btn-light, .btn-dark { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 14px 32px; transition: background .25s, color .25s; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--muted); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; margin-top: 36px; }
.btn-dark:hover { background: var(--dark); }
.btn-outline-light { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 2px; }
.btn-outline-light:hover { color: #fff; border-color: rgba(255,255,255,.7); }
.h-scroll { position: absolute; z-index: 2; right: 48px; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: .35; color: #fff; }
.h-scroll .line { width: 1px; height: 48px; background: linear-gradient(to bottom, transparent, #fff); animation: pulse 2.2s ease-in-out infinite; }
.h-scroll .txt { font-size: 9px; letter-spacing: .32em; text-transform: uppercase; writing-mode: vertical-rl; }
@keyframes pulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Secciones */
.sec { padding: 120px 0; }
.sec .wrap, footer .wrap { max-width: none; padding: 0 48px; }
.sec.off { background: var(--stone); }
.sec.dark { background: var(--navy); color: rgba(255,255,255,.6); }
.sec-flush { padding-bottom: 0; }
.s-eyebrow { font-size: 11px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.s-eyebrow::before { content: attr(data-n) "  —"; color: var(--muted); font-weight: 300; }
.s-eyebrow:not([data-n])::before { content: none; }
.s-eyebrow.light { color: #fff; }
.s-title { font-family: var(--sans); font-weight: 700; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -.025em; color: var(--dark); }
.sec.dark .s-title { color: #fff; }
.s-title.big { font-size: clamp(48px, 6.5vw, 96px); line-height: .95; }
.s-lead { margin-top: 24px; max-width: 64ch; font-size: 16px; font-weight: 300; line-height: 1.7; }
.pc-k { display: block; font-size: 10px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.link-d { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 3px; }

/* 01 Identidad */
.decl { display: grid; grid-template-columns: 260px 1fr; gap: 96px; align-items: start; }
.decl-side p:not(.s-eyebrow) { font-size: 14px; font-weight: 300; line-height: 1.7; }
.decl-title { font-family: var(--sans); font-weight: 700; font-size: clamp(40px, 5.2vw, 80px); line-height: 1; letter-spacing: -.03em; color: var(--dark); }
.outline-d { color: transparent; -webkit-text-stroke: 1px rgba(13,14,17,.45); }

/* Paneles de imagen a todo el ancho (divisiones y perspectivas) */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #fff; margin-top: 56px; }
.sec.dark .panels { background: rgba(255,255,255,.12); }
.panel { position: relative; height: 520px; overflow: hidden; display: block; color: #fff; background: var(--navy); }
.p-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.42) saturate(0) contrast(1.05); transition: transform .9s cubic-bezier(.16,1,.3,1), filter .6s; }
.panel:hover .p-bg { transform: scale(1.05); filter: brightness(.58) saturate(.15); }
.p-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.05) 60%); }
.p-c { position: absolute; inset: 0; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; z-index: 1; }
.p-num { font-size: 11px; font-weight: 300; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: auto; }
.panel h3 { font-family: var(--sans); font-weight: 700; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 12px; max-width: 16ch; }
.panel p { font-size: 13px; font-weight: 300; line-height: 1.65; color: rgba(255,255,255,.6); max-width: 34ch; margin-bottom: 24px; }
.p-cta { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); transition: gap .3s, color .3s; margin-top: 12px; }
.p-cta .ln { width: 24px; height: 1px; background: currentColor; transition: width .3s; }
.panel:hover .p-cta { color: #fff; gap: 16px; }
.panel:hover .p-cta .ln { width: 38px; }

/* 03 Principios */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pcards article { padding: 44px 40px 48px 0; }
.pcards article + article { padding-left: 40px; border-left: 1px solid var(--line); }
.pcards h4 { font-family: var(--sans); font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -.015em; color: var(--dark); margin-bottom: 14px; }
.pcards p { font-size: 14px; font-weight: 300; line-height: 1.7; }

/* Bloques imagen / texto de borde a borde */
.bleed { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; margin-top: 56px; }
.bleed + .bleed { margin-top: 0; }
.bleed.rev .bleed-img { order: 2; }
.bleed-img { background-size: cover; background-position: center; filter: saturate(0); min-height: 420px; display: flex; align-items: flex-end; padding: 40px 48px; }
.bleed-img.dark { background: var(--dark); filter: none; }
.bleed-img.dark span { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.bleed-txt { background: #fff; padding: 80px 48px; display: flex; flex-direction: column; justify-content: center; }
.sec.off .bleed-txt { background: #fff; }
.bleed-txt h3 { font-family: var(--sans); font-weight: 700; font-size: clamp(36px, 3.6vw, 56px); line-height: 1; letter-spacing: -.03em; color: var(--dark); margin-bottom: 18px; }
.bleed-txt p { font-size: 16px; font-weight: 300; line-height: 1.7; max-width: 48ch; margin-bottom: 28px; }
.bleed-txt .link-d, .bleed-txt .btn-dark { align-self: flex-start; }
.portrait-ph { background: linear-gradient(160deg, #2a2c31, #0d0e11) !important; }
#liderazgo .bleed { margin-top: 0; }
#liderazgo { padding-top: 0; }

/* 05 Sectores (oscuro) */
.nlist { list-style: none; margin-top: 56px; border-top: 1px solid rgba(255,255,255,.1); }
.nlist li { display: grid; grid-template-columns: 72px 300px 1fr 24px; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.1); transition: padding .3s; }
.nlist li:hover { padding-left: 12px; }
.nlist .n { font-size: 11px; font-weight: 300; letter-spacing: .2em; color: rgba(255,255,255,.4); }
.nlist b { font-family: var(--sans); font-weight: 700; font-size: 24px; letter-spacing: -.015em; color: #fff; }
.nlist span:not(.n) { font-size: 14px; font-weight: 300; }
.nlist i { font-style: normal; color: rgba(255,255,255,.4); }

/* 06 Presencia */
.presence { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: end; }
.places { list-style: none; border-top: 1px solid var(--navy); }
.places li { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.places b { font-family: var(--sans); font-weight: 700; font-size: 32px; letter-spacing: -.02em; color: rgba(13,14,17,.25); }
.places span { font-size: 13px; font-weight: 300; color: var(--muted); }
.places li.on b { color: var(--dark); }
.places li.on span { color: var(--text); }

/* 09 Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: end; }
.clist { border-top: 1px solid var(--navy); }
.clist div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.clist dt { font-size: 10px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.clist dd { font-size: 17px; color: var(--dark); }
.clist a:hover { text-decoration: underline; }

/* Pie */
footer { background: var(--navy); color: rgba(255,255,255,.55); }
footer .brand span { font-size: 18px; }
.foot-tag { margin-top: 18px; max-width: 30ch; font-size: 14px; font-weight: 300; }
footer h5 { font-weight: 500; letter-spacing: .2em; font-size: 11px; }

/* Aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero-txt { animation: none; } }

@media (max-width: 1100px) {
  .btn-hdr { display: none; }
  nav.main .only-m { display: block; }
  nav.main a { color: var(--navy) !important; }
  .panels { grid-template-columns: 1fr; }
  .panel { height: 400px; }
}
@media (max-width: 900px) {
  header.site .wrap, .sec .wrap, footer .wrap, .hero.hero-l .hero-txt { padding-left: 20px; padding-right: 20px; }
  .sec { padding: 80px 0; }
  .sec-flush { padding-bottom: 0; }
  .decl, .presence, .contact { grid-template-columns: 1fr; gap: 40px; }
  .pcards { grid-template-columns: 1fr; }
  .pcards article, .pcards article + article { padding: 32px 0; border-left: 0; }
  .pcards article + article { border-top: 1px solid var(--line); }
  .bleed { grid-template-columns: 1fr; min-height: 0; }
  .bleed.rev .bleed-img { order: 0; }
  .bleed-img { min-height: 300px; padding: 24px 20px; }
  .bleed-txt { padding: 56px 20px; }
  .nlist li { grid-template-columns: 44px 1fr; }
  .nlist li span:not(.n) { grid-column: 2; }
  .nlist i { display: none; }
  .clist div { grid-template-columns: 1fr; gap: 4px; }
  .h-scroll { right: 20px; }
  .panel { height: 340px; }
}

/* ===== v12 · Landing institucional trilingüe ===== */
.lang { display: flex; align-items: center; gap: 2px; }
.lang button { background: none; border: 0; cursor: pointer; font: 500 12px var(--sans); letter-spacing: .08em; padding: 6px 8px; color: inherit; opacity: .55; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.lang button:hover { opacity: 1; }
.lang button[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--sans); letter-spacing: 0; font-size: 13px; }
header.site:not(.solid) .lang { color: #fff; }
header.site.solid .lang { color: var(--navy); }

.decl { grid-template-columns: 260px 1fr; }
.decl .s-lead { margin-top: 32px; font-size: 18px; }

.colist { list-style: none; margin-top: 56px; border-top: 1px solid var(--navy); }
.colist li > a, .colist li.muted { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding .3s; }
.colist li > a:hover { padding-inline-start: 14px; }
.colist b { font-family: var(--sans); font-weight: 700; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.02em; color: var(--dark); }
.colist span { font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.colist i { font-style: normal; font-size: 13px; color: var(--navy); }
.colist li.muted b { color: rgba(13,14,17,.25); }

footer .foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 40px 0; font-size: 13px; }

/* Árabe: fuente propia, sin espaciado entre letras (rompe la unión de las letras) y de derecha a izquierda */
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .s-title, html[lang="ar"] .decl-title, html[lang="ar"] .btn-light, html[lang="ar"] .btn-hdr { font-family: "IBM Plex Sans Arabic", var(--sans); }
html[lang="ar"] [data-i18n], html[lang="ar"] .s-eyebrow, html[lang="ar"] .h-eyebrow, html[lang="ar"] .h-sub, html[lang="ar"] .pc-k, html[lang="ar"] .p-cta, html[lang="ar"] .clist dt, html[lang="ar"] .colist span { letter-spacing: 0 !important; text-transform: none; }
html[lang="ar"] .hero.hero-l h1 { line-height: 1.2; }
html[lang="ar"] .decl-title, html[lang="ar"] .s-title { line-height: 1.35; }
[dir="rtl"] .hero.hero-l { place-items: center end; text-align: right; }
[dir="rtl"] .arr { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .p-c, [dir="rtl"] .bleed-txt, [dir="rtl"] .sec { text-align: right; }
[dir="rtl"] .bleed-img { order: 2; }
[dir="rtl"] .clist div, [dir="rtl"] .colist li > a { direction: rtl; }
[dir="rtl"] .clist dd a, [dir="rtl"] .colist b, [dir="rtl"] .colist i { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 1100px) { .lang button { padding: 6px 5px; } }
@media (max-width: 900px) {
  .decl { grid-template-columns: 1fr; }
  .colist li > a, .colist li.muted { grid-template-columns: 1fr; gap: 6px; }
  footer .foot-row { flex-direction: column; align-items: flex-start; }
  [dir="rtl"] .bleed-img { order: 0; }
}

/* ===== v13 · Ejes de negocio en una palabra + menos aire ===== */
.axgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); margin-top: 40px; }
.ax { background: var(--navy); padding: 28px 28px 32px; min-height: 190px; display: flex; flex-direction: column; color: rgba(255,255,255,.6); transition: background .3s; }
a.ax:hover { background: #17181c; }
.ax-n { font-size: 11px; font-weight: 300; letter-spacing: .3em; color: rgba(255,255,255,.35); margin-bottom: 28px; }
.ax h3 { font-family: var(--sans); font-weight: 700; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: .06em; color: #fff; margin-bottom: 10px; word-break: break-word; }
.ax p { font-size: 14px; font-weight: 300; line-height: 1.55; }
.ax-more { margin-top: auto; padding-top: 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.ax-cta { background: #fff; color: var(--text); }
.ax-cta h3 { color: var(--navy); letter-spacing: .02em; }
a.ax-cta:hover { background: var(--stone); }
html[lang="ar"] .ax h3 { letter-spacing: 0; font-size: clamp(20px, 1.9vw, 26px); }

/* Menos espacio entre secciones */
.sec { padding: 80px 0; }
.sec-flush { padding-bottom: 0; }
#leadership { padding-top: 0; }
.s-title.big { font-size: clamp(40px, 5vw, 72px); }
.decl { gap: 64px; }
.decl-title { font-size: clamp(32px, 3.8vw, 58px); line-height: 1.05; }
.decl .s-lead { margin-top: 20px; }
.colist { margin-top: 36px; }
.colist li > a, .colist li.muted { padding: 22px 0; }
.bleed { min-height: 420px; margin-top: 0; }
.bleed-txt { padding: 56px 48px; }
.bleed-img { min-height: 340px; }
.contact { gap: 64px; }
.clist div { padding: 16px 0; }
.h-sub { margin-bottom: 40px; }

@media (max-width: 1100px) { .axgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .sec { padding: 64px 0; }
  .bleed-txt { padding: 44px 20px; }
}
@media (max-width: 520px) { .axgrid { grid-template-columns: 1fr; } .ax { min-height: 0; } }

/* ===== v14 · Historia ===== */
.history { background: #08090b; color: rgba(255,255,255,.62); text-align: center; padding: 104px 0; }
.history .wrap { max-width: 820px; margin: 0 auto; }
.history .seal { width: 44px; height: 44px; margin: 0 auto 28px; opacity: .9; }
.hist-eb { justify-content: center; }
.hist-body p { font-size: clamp(17px, 1.4vw, 20px); font-weight: 300; line-height: 1.8; margin-top: 22px; }
.hist-body .hist-lead { font-size: clamp(26px, 2.6vw, 38px); font-weight: 300; line-height: 1.3; letter-spacing: -.01em; color: #fff; margin-top: 8px; }
.hist-sign { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hist-sign::before { content: ""; width: 40px; height: 1px; background: rgba(255,255,255,.35); margin-bottom: 18px; }
.hist-sign b { font-weight: 700; font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: #fff; }
.hist-sign span { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.45); }
html[lang="ar"] .hist-sign b { letter-spacing: .12em; }
html[lang="ar"] .history { text-align: center; }

/* ===== v15 · Isotipo solo rama, hero limpio, historia en poema, áreas con imagen ===== */
.brand img { width: auto; height: 32px; }
footer .brand img { height: 30px; }

.hero.hero-c { display: grid; place-items: center; text-align: center; height: 100vh; max-height: none; background: radial-gradient(ellipse at 50% 40%, #222428 0%, #111214 55%, #070809 100%); }
.hero.hero-c::after { display: none; }
.hero-mark { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 28px; animation: rise 1.6s ease-out both; }
.hero-mark img { height: clamp(84px, 10vw, 128px); width: auto; opacity: .95; }
.hero-word { font-weight: 500; font-size: clamp(13px, 1.1vw, 15px); letter-spacing: .6em; padding-left: .6em; color: rgba(255,255,255,.85); }
.hero.hero-c .h-scroll { left: 50%; right: auto; transform: translateX(-50%); bottom: 36px; }
/* En portada el logo del encabezado aparece solo al bajar */
body.home header.site:not(.solid) .brand { opacity: 0; pointer-events: none; }
.brand { transition: opacity .4s; }

.poem { margin-top: 12px; }
.poem .stanza { font-size: clamp(18px, 1.6vw, 23px); font-weight: 300; line-height: 1.75; color: rgba(255,255,255,.72); margin-top: 30px; font-style: italic; }
.poem .stanza:first-child { font-size: clamp(26px, 2.6vw, 38px); font-style: normal; color: #fff; line-height: 1.3; }
.poem .stanza:last-child span:last-child { color: #fff; font-style: normal; font-weight: 400; }
html[lang="ar"] .poem .stanza { font-style: normal; line-height: 2; }
.motto { margin: 64px auto 0; max-width: 640px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.14); }
.motto blockquote { font-size: clamp(20px, 2vw, 28px); font-weight: 500; line-height: 1.35; color: #fff; letter-spacing: -.01em; }
.motto figcaption { margin-top: 16px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.45); }
html[lang="ar"] .motto figcaption { letter-spacing: 0; }

.ax { position: relative; overflow: hidden; min-height: 230px; }
.ax > *:not(.ax-bg) { position: relative; z-index: 1; }
.ax-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: brightness(.38) saturate(.45) contrast(1.05); transition: transform .9s cubic-bezier(.16,1,.3,1), filter .6s; }
.ax-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,9,11,.85) 0%, rgba(8,9,11,.15) 70%); }
.ax:hover .ax-bg { transform: scale(1.05); filter: brightness(.5) saturate(.6) contrast(1.05); }
.ax p { color: rgba(255,255,255,.72); }
.colist li.noln { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .colist li.noln { grid-template-columns: 1fr; gap: 6px; } }

/* ===== v16 · Títulos en peso ligero (Daniel 18-nov: "bold pero no tanto") ===== */
.s-title, .decl-title, .colist b, .bleed-txt h3, .panel h3, .pcards h4, .nlist b, .places b, .page-hero h1, h2.title { font-weight: 400; letter-spacing: -.02em; }
.decl-title { font-weight: 300; line-height: 1.12; }
.s-title.big { font-weight: 300; }
.ax h3 { font-weight: 500; }
.hero-word { font-weight: 400; }
.hero .hero-mark img { position: static; inset: auto; width: auto; height: clamp(84px, 10vw, 128px); object-fit: contain; }
.motto figcaption { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 28px; }
.motto figcaption::before { content: ""; width: 40px; height: 1px; background: rgba(255,255,255,.35); margin-bottom: 14px; }
.motto figcaption b { font-weight: 500; font-size: 14px; letter-spacing: .32em; color: #fff; }
.motto figcaption span { font-size: 11px; letter-spacing: .28em; color: rgba(255,255,255,.45); }
html[lang="ar"] .motto figcaption b { letter-spacing: .12em; }

/* ===== v20 · AXES de borde a borde (sin márgenes laterales) ===== */
#axes .axgrid { margin: 40px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.12); gap: 1px; }
#axes .ax { padding: 32px 40px 36px; min-height: 260px; }
@media (max-width: 900px) { #axes .ax { padding: 28px 20px 30px; } }

/* ===== v21 · The Group = mapa de continentes en puntos, de borde a borde ===== */
.sec.world { padding: 72px 0 64px; overflow: hidden; }
.world-map { margin-top: 24px; width: 100%; }
.world-map img { display: block; width: 100%; height: auto; opacity: .2; }
.world-line { text-align: center; margin-top: 28px; font-size: 12px; font-weight: 400; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .world-line { letter-spacing: 0; padding-left: 0; font-size: 15px; }

/* ===== v22 · 9 ejes (3 x 3) + ajustes de celular y tablet ===== */
#axes .axgrid.ax9 { grid-template-columns: repeat(3, 1fr); }
#axes .ax9 .ax { min-height: 300px; }
@media (max-width: 1100px) { #axes .axgrid.ax9 { grid-template-columns: repeat(3, 1fr); } #axes .ax9 .ax { min-height: 240px; padding: 26px 22px 28px; } }
@media (max-width: 700px) { #axes .axgrid.ax9 { grid-template-columns: 1fr; } #axes .ax9 .ax { min-height: 200px; } }
@media (max-width: 600px) {
  .history { padding: 72px 0; }
  .history .wrap { padding: 0 22px; }
  .poem .stanza { font-size: 16px; line-height: 1.7; margin-top: 24px; }
  .poem .stanza br { display: none; }
  .poem .stanza span { display: block; }
  .poem .stanza:first-child { font-size: 24px; }
  .motto { margin-top: 44px; }
  .motto blockquote { font-size: 22px; }
  .sec.world { padding: 56px 0 44px; }
  .world-line { font-size: 10px; letter-spacing: .35em; }
  .s-title { font-size: 34px; }
  .hero-word { letter-spacing: .45em; }
  .lang button { padding: 6px 4px; font-size: 11px; }
  .hdr-right { gap: 12px; }
}

/* ===== v23 · Mapa más bajo, sin rótulos ===== */
.sec.world { padding: 56px 0; }
.world-map { margin: 0 auto; max-width: min(980px, 88vw); }
.world-map img { opacity: .22; }
@media (max-width: 600px) { .sec.world { padding: 36px 0; } .world-map { max-width: 94vw; } }

/* ===== v24 · Sin numeración de secciones; mapa aún más bajo ===== */
.sec.world { padding: 40px 0; }
.world-map { max-width: min(640px, 86vw); }
@media (max-width: 600px) { .sec.world { padding: 28px 0; } .world-map { max-width: 90vw; } }
.ax-n { visibility: hidden; }
.sec.world, .sec.world:first-child { padding: 0 !important; }
@media (max-width: 600px) { .sec.world { padding: 0 !important; } }

/* ===== v27 · Compañías por eje ===== */
.colist.byaxis li > a, .colist.byaxis li.noln, .colist.byaxis li.muted { grid-template-columns: 200px 1fr 1fr auto; }
.colist.byaxis em { font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--dark); }
.colist.byaxis li.muted em { color: rgba(13,14,17,.25); }
html[lang="ar"] .colist.byaxis em { letter-spacing: 0; font-size: 14px; }
@media (max-width: 900px) { .colist.byaxis li > a, .colist.byaxis li.noln, .colist.byaxis li.muted { grid-template-columns: 1fr; gap: 6px; } }
.colist.byaxis li > a, .colist.byaxis li.noln, .colist.byaxis li.muted { grid-template-columns: 1fr 1fr auto; }
.colist .axl { font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--dark); text-transform: uppercase; }
.colist .axl span { letter-spacing: inherit; }
html[lang="ar"] .colist .axl { letter-spacing: 0; font-size: 14px; }
@media (max-width: 900px) { .colist.byaxis li > a, .colist.byaxis li.noln, .colist.byaxis li.muted { grid-template-columns: 1fr; } }

/* ===== v29 · Mapa opción A: a todo el ancho, recortado (predomina el hemisferio norte) ===== */
.world-band { position: relative; height: clamp(220px, 24vw, 360px); }
.world-band::before { content: ""; position: absolute; inset: 0; background: url(/img/mapa-mundo.svg) center 18% / 100% auto no-repeat; opacity: .22; }
@media (max-width: 600px) { .world-band { height: 180px; } .world-band::before { background-size: 170% auto; background-position: 40% 20%; } }

/* ===== v30 · Hero con video de fondo (post: sin brillo ni color) y logo iluminado ===== */
.hero.hero-c video.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  filter: brightness(.42) saturate(.35) contrast(1.08); opacity: 0; transition: opacity 1.6s ease; }
.hero.hero-c video.bg.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(8,9,11,.15) 0%, rgba(8,9,11,.55) 60%, rgba(8,9,11,.85) 100%); }
.hero-mark { z-index: 2; }
.hero-mark img { filter: drop-shadow(0 0 2px rgba(255,255,255,.55)) drop-shadow(0 0 22px rgba(255,255,255,.28)); opacity: 1; }
.hero-word { color: #fff; text-shadow: 0 0 14px rgba(255,255,255,.35), 0 1px 2px rgba(0,0,0,.6); }
.hero.hero-c .h-scroll { z-index: 2; }

/* ===== v31 · Logo nítido: sin resplandor en los bordes; la luz va detrás, como foco ===== */
.hero-mark img { filter: none; opacity: 1; image-rendering: auto; }
.hero-word { text-shadow: none; color: #fff; }
.hero-mark { isolation: isolate; }
.hero-mark::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: 520px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, rgba(255,255,255,.04) 35%, rgba(255,255,255,0) 70%); pointer-events: none; }

/* ===== v32 · Menú estilo Borja Clinic (vidrio, enlaces finos, cajón en celular) con DM Sans y B&N ===== */
header.site { display: none; }
.tn { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 76px; padding: 0 72px; display: flex; align-items: center; gap: 40px;
  -webkit-backdrop-filter: saturate(1.8) blur(14px); backdrop-filter: saturate(1.8) blur(14px); transition: background .35s, border-color .35s, color .35s; border-bottom: 1px solid transparent; }
.tn.on-dark { background: rgba(8,9,11,.18); border-bottom-color: rgba(255,255,255,.10); color: #fff; }
.tn.on-light { background: rgba(255,255,255,.82); border-bottom-color: rgba(13,14,17,.08); color: var(--navy); }
.tn:not(.scrolled).on-dark { background: transparent; }
.tn-brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.tn-brand img { height: 30px; width: auto; }
.tn-brand span { font-weight: 500; font-size: 17px; letter-spacing: .14em; }
.tn.on-dark .tn-logo-b, .tn.on-light .tn-logo-w { display: none; }
body.home .tn:not(.scrolled) .tn-brand { opacity: 0; pointer-events: none; }
.tn-brand { transition: opacity .4s; }
.tn-links { list-style: none; display: flex; gap: 34px; margin-left: auto; }
.tn-link { font-size: 15px; font-weight: 300; letter-spacing: .01em; opacity: .78; transition: opacity .2s; }
.tn-link:hover { opacity: 1; }
.tn-right { display: flex; align-items: center; gap: 18px; }
.tn .lang { color: inherit; }
.tn .lang button { font-weight: 400; }
.tn-burger { display: none; width: 34px; height: 34px; background: none; border: 0; cursor: pointer; position: relative; color: inherit; }
.tn-burger span { position: absolute; left: 6px; right: 6px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.tn-burger span:first-child { top: 13px; } .tn-burger span:last-child { top: 20px; }
.tn-burger[aria-expanded="true"] span:first-child { top: 16.5px; transform: rotate(45deg); }
.tn-burger[aria-expanded="true"] span:last-child { top: 16.5px; transform: rotate(-45deg); }
.tn-drawer { position: fixed; inset: 76px 0 0 0; z-index: 59; background: #fff; padding: 12px 20px 32px; display: flex; flex-direction: column;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility .3s; overflow-y: auto; }
.tn-drawer.open { opacity: 1; transform: none; visibility: visible; }
.tn-drawer a { font-size: 28px; font-weight: 300; letter-spacing: -.01em; color: var(--dark); padding: 22px 0; border-bottom: 1px solid rgba(13,14,17,.08); }
body.no-scroll { overflow: hidden; }
html[lang="ar"] .tn-link, html[lang="ar"] .tn-drawer a { font-family: "IBM Plex Sans Arabic", var(--sans); letter-spacing: 0; }
html[lang="ar"] .tn-brand span { letter-spacing: .14em; }
[dir="rtl"] .tn-links { margin-left: 0; margin-right: auto; }
@media (max-width: 1100px) { .tn { padding: 0 32px; } }
@media (max-width: 900px) {
  .tn { padding: 0 20px; height: 68px; }
  .tn-drawer { inset: 68px 0 0 0; }
  .tn-links { display: none; }
  .tn-burger { display: block; }
  .tn-right { margin-left: auto; gap: 10px; }
  [dir="rtl"] .tn-right { margin-left: 0; margin-right: auto; }
}
.ext { display: inline-block; width: .72em; height: .72em; vertical-align: .02em; margin-left: .25em; }
[dir="rtl"] .ext { transform: scaleX(-1); margin-left: 0; margin-right: .25em; }
.tn, .tn.on-dark, .tn.on-light { border-bottom: 0 !important; box-shadow: none !important; }
