/* =========================================================
   ICARUS — home
   ========================================================= */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/inter.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/inter-tight.woff2) format("woff2"); }

:root {
  /* Marca ICARUS */
  --accent: #FFD400;          /* CTA / Primary (tokens.json) */
  --accent-hover: #ffe55c;
  --ink-brand: #0c2127;       /* tono del isotipo */

  --dark: #111111;
  --dark-2: #1c1c1c;
  --cream: #efede8;
  --cream-2: #f7f6f2;
  --ink-on-dark: #f5f5f3;
  --ink-on-light: #141414;
  --gray-d: #9a9a96;
  --gray-l: #62666b;
  --hair-d: rgba(245, 245, 243, .14);
  --hair-l: rgba(20, 20, 20, .14);

  --ease: cubic-bezier(.25, .8, .25, 1);
  --radius-panel: clamp(26px, 3.2vw, 46px);
  --gutter: clamp(16px, 4vw, 48px);

  --t-display: clamp(34px, 4.6vw, 64px);
  --t-h2: clamp(30px, 3.4vw, 46px);
  --t-lead: clamp(24px, 2.4vw, 34px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--ink-on-dark);
  font-family: "Inter", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: "Inter Tight", "Inter", Arial, sans-serif; font-weight: 500; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.t-display { font-size: var(--t-display); line-height: 1.04; }
.t-h2 { font-size: var(--t-h2); line-height: 1.08; }
.t-lead-title { font-size: var(--t-lead); line-height: 1.12; }
.muted { color: var(--gray-l); }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray-l); margin-bottom: 18px;
}
.eyebrow.on-dark { color: rgba(245, 245, 243, .72); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent; border-radius: 100px;
  padding: 11px 20px; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn-accent { background: var(--accent); color: #111; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.link-btn { background: none; border: 0; padding: 0; text-align: left; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   HEADER
   ========================================================= */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: 17px; pointer-events: none; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); }
.nav > * { pointer-events: auto; }
.brand img { height: 22px; width: auto; transition: filter .3s var(--ease); }
.header.on-light .brand img { filter: invert(1); }
.nav-pill {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 5px;
  background: rgba(30, 30, 30, .55); border: 1px solid var(--hair-d);
  border-radius: 100px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-pill a {
  padding: 8px 14px; border-radius: 100px; font-size: 14px; text-decoration: none;
  color: rgba(245, 245, 243, .86); transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-pill a:hover, .nav-pill a.active { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair-d); background: rgba(30, 30, 30, .55); backdrop-filter: blur(14px); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--dark);
  display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 90px var(--gutter) 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font-family: "Inter Tight", Arial, sans-serif; font-size: 36px; letter-spacing: -.03em; text-decoration: none; }
.mobile-menu .btn { align-self: flex-start; }
.mm-mail { color: var(--gray-d); text-decoration: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #000; padding-bottom: clamp(42px, 6vh, 72px); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.72) 100%); }
.hero-inner { position: relative; z-index: 2; }
.hero-title { font-size: var(--t-display); line-height: 1.04; max-width: 13.5em; font-weight: 500; text-wrap: balance; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: clamp(48px, 10vh, 110px); }
.proof-stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14.5px; color: rgba(245,245,243,.86); }
.proof-stats strong { color: var(--accent); font-weight: 600; }
.proof-stats .sep { opacity: .4; }
.proof-sub { margin-top: 6px; font-size: 13.5px; color: rgba(245,245,243,.6); }
.logos { flex: 0 1 56%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos-track { display: flex; align-items: center; width: max-content; animation: slide 28s linear infinite; }
.logos-track img { margin-right: clamp(36px, 5vw, 70px); height: 26px; width: auto; opacity: .8; filter: brightness(0) invert(1); }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,245,243,.6); text-decoration: none; }

@keyframes slide { to { transform: translateX(-50%); } }

/* =========================================================
   PANELES CLAROS + SERVICIOS
   ========================================================= */
.panel-light {
  position: relative; z-index: 2;
  background: var(--cream); color: var(--ink-on-light);
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  margin-top: calc(var(--radius-panel) * -1);
}
.services { padding: clamp(56px, 7vw, 110px) 0 clamp(90px, 10vw, 150px); }
.svc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.svc-intro h2 { margin-bottom: clamp(26px, 3vw, 40px); }
.svc-intro p { color: var(--gray-l); max-width: 30em; margin-bottom: 18px; font-size: 15.5px; }

.svc-item { border-bottom: 1px solid var(--hair-l); padding: 18px 2px; }
.svc-item:first-child { padding-top: 2px; }
.svc-item:last-child { border-bottom: 0; }
.svc-head { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; padding: 0; text-align: left; }
.svc-title { font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -.025em; line-height: 1.14; }
.svc-arrow { font-size: 15px; color: var(--gray-l); transition: transform .35s var(--ease), color .35s var(--ease); }
.svc-item.open .svc-arrow { transform: rotate(90deg); color: var(--ink-on-light); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.svc-tags span { font-size: 12px; border: 1px solid var(--hair-l); border-radius: 100px; padding: 4px 10px; color: var(--gray-l); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.svc-body > p { overflow: hidden; color: var(--gray-l); font-size: 15px; max-width: 34em; }
.svc-item.open .svc-body { grid-template-rows: 1fr; }
.svc-item.open .svc-body > p { padding-top: 14px; }

/* ---------- Casos ---------- */
.works { margin-top: clamp(80px, 9vw, 130px); }
.works-head { margin-bottom: clamp(26px, 3vw, 40px); }
.works-head .muted { margin-top: 12px; }
.works-rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none; cursor: grab;
}
.works-rail::-webkit-scrollbar { display: none; }
.works-rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.work-card {
  flex: 0 0 clamp(284px, 26vw, 360px); height: clamp(400px, 36vw, 470px);
  scroll-snap-align: start; border-radius: 24px; position: relative; overflow: hidden;
  background: #1a1a1a center/cover no-repeat; color: #fff;
  text-decoration: none;
  display: flex; flex-direction: column; justify-content: space-between; padding: 26px;
  transition: transform .35s var(--ease);
}
.work-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,.62), rgba(8,8,8,.1) 40%, rgba(8,8,8,.8)); }
.work-card > * { position: relative; }
.work-card:hover { transform: translateY(-6px); }
.work-client { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.work-title { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.14; }
.work-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.work-stat strong { display: block; font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(30px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.work-stat span { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.work-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 55%; }
.work-tags span { font-size: 11px; padding: 4px 9px; border-radius: 100px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); }

/* =========================================================
   MÉTODO (panel amarillo)
   ========================================================= */
.metodo {
  position: relative; z-index: 3; background: var(--accent); color: #111;
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  margin-top: calc(var(--radius-panel) * -1);
  padding: clamp(62px, 8vw, 118px) 0 clamp(90px, 10vw, 150px);
  box-shadow: 0 -16px 46px -24px rgba(0,0,0,.32);
}
.mtd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: clamp(56px, 8vw, 110px); }
.mtd-head p { margin-top: 16px; max-width: 32em; color: rgba(17,17,17,.72); }
.mtd-link { font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(18px, 1.6vw, 22px); text-decoration: none; white-space: nowrap; border-bottom: 1px solid rgba(17,17,17,.35); padding-bottom: 2px; }
.mtd-link:hover { border-color: #111; }
.mtd-cats { display: grid; grid-template-columns: repeat(4, 1fr); }
.mtd-cat { padding: 6px clamp(18px, 1.9vw, 30px) 4px; border-left: 1px solid rgba(17,17,17,.22); }
.mtd-cat:first-child { border-left: 0; padding-left: 0; }
.mtd-cat:nth-child(2) { transition-delay: .08s; }
.mtd-cat:nth-child(3) { transition-delay: .16s; }
.mtd-cat:nth-child(4) { transition-delay: .24s; }
.mtd-num { font-size: 12px; letter-spacing: .12em; color: rgba(17,17,17,.55); }
.mtd-cat h3 { font-size: clamp(24px, 2.2vw, 32px); text-transform: uppercase; letter-spacing: -.01em; margin: 10px 0 18px; }
.mtd-kick { font-weight: 600; margin-bottom: 10px; }
.mtd-cat p:last-child { font-size: 15px; color: rgba(17,17,17,.75); }

/* =========================================================
   MANIFIESTO
   ========================================================= */
.manifiesto {
  overflow-x: clip;
  position: relative; z-index: 4; background: var(--dark);
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  margin-top: calc(var(--radius-panel) * -1);
  padding: clamp(80px, 10vw, 150px) 0 clamp(110px, 12vw, 170px);
}
.mnf-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.mnf-text h2 { margin-bottom: 28px; }
.mnf-text p { color: var(--gray-d); max-width: 30em; font-size: 17px; }
.mnf-sign { margin-top: 30px; font-family: "Inter Tight", Arial, sans-serif; text-transform: uppercase; letter-spacing: .18em; font-size: 13px !important; color: var(--accent) !important; }
.mnf-img { margin: 0; border-radius: 24px; aspect-ratio: 4 / 5; }
.mnf-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; filter: grayscale(1) contrast(1.05); }

/* =========================================================
   DIAGNÓSTICO
   ========================================================= */
.diag { z-index: 5; padding: clamp(70px, 9vw, 130px) 0 clamp(80px, 9vw, 130px); border-radius: var(--radius-panel); margin-bottom: clamp(40px, 5vw, 70px); }
.diag-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.diag .muted { margin: 18px 0 32px; max-width: 32em; }
.diag-list { list-style: none; margin: 0; padding: 0; }
.diag-list li { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--hair-l); font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(17px, 1.5vw, 20px); letter-spacing: -.015em; }
.diag-list li:first-child { border-top: 1px solid var(--hair-l); }
.diag-list span { flex: 0 0 2.4em; font-family: "Inter", Arial, sans-serif; font-size: 12px; color: var(--gray-l); letter-spacing: .1em; }

/* =========================================================
   MARQUEE + FOOTER
   ========================================================= */
.marquee { overflow: hidden; border-top: 1px solid var(--hair-d); border-bottom: 1px solid var(--hair-d); padding: 14px 0; }
.marquee-track { display: flex; width: max-content; animation: slide 40s linear infinite; font-size: 14px; color: rgba(245,245,243,.8); white-space: nowrap; }
.marquee-track span, .marquee-track i { margin-right: 28px; }
.marquee-track i { font-style: normal; color: var(--accent); }

.footer { padding: clamp(56px, 6vw, 90px) 0 28px; }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-claim p { font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 24px; }
.foot-cols h4 { font-size: 14.5px; margin-bottom: 16px; }
.foot-cols a, .foot-cols .link-btn { display: block; font-size: 14px; color: var(--gray-d); text-decoration: none; margin-bottom: 9px; transition: color .2s var(--ease); }
.foot-cols a:hover, .foot-cols .link-btn:hover { color: #fff; }
.foot-logo { width: 100%; max-width: 1100px; height: auto; margin: clamp(64px, 9vw, 130px) 0 clamp(36px, 4vw, 56px); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--hair-d); font-size: 12.5px; color: var(--gray-d); }
.foot-bottom nav { display: flex; gap: 20px; margin-left: auto; }
.foot-bottom a { text-decoration: none; }
.foot-bottom a:hover { color: #fff; }
.to-top { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair-d); display: grid; place-items: center; font-size: 16px; }

/* =========================================================
   MODAL CONTACTO
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); animation: fade .3s var(--ease); }
.modal-pop {
  position: relative; width: min(640px, 100%); max-height: calc(100svh - 32px); overflow-y: auto;
  background: var(--cream-2); color: var(--ink-on-light); border-radius: 26px;
  padding: clamp(26px, 4vw, 44px); animation: pop .4s var(--ease);
}
.modal-pop h2 { font-size: clamp(28px, 3vw, 38px); }
.modal-pop > .muted { margin: 10px 0 26px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair-l); background: none; font-size: 22px; line-height: 1; }
.contact-form { display: grid; gap: 14px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; color: var(--gray-l); }
.contact-form input:not([type="checkbox"]), .contact-form textarea {
  font: inherit; font-size: 15px; color: var(--ink-on-light); background: #fff;
  border: 1px solid var(--hair-l); border-radius: 12px; padding: 11px 14px; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--ink-on-light); outline-offset: 0; }
.contact-form .check { display: flex; align-items: center; gap: 8px; }
.contact-form .btn { justify-self: start; margin-top: 6px; }
.form-msg { font-size: 13.5px; min-height: 1.2em; }
.form-msg.error { color: #b3261e; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav-pill { display: none; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  .hero-foot { flex-direction: column; align-items: stretch; gap: 30px; }
  .logos { flex-basis: auto; }
  .scroll-hint { display: none; }
  .svc-grid, .mnf-grid, .diag-grid { grid-template-columns: 1fr; }
  .mtd-head { flex-direction: column; gap: 24px; }
  .mtd-cats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .mtd-cat:nth-child(3) { border-left: 0; padding-left: 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-claim { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .nav-right > .btn { display: none; }
  .brand img { height: 19px; }
  .mtd-cats { grid-template-columns: 1fr; }
  .mtd-cat { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid rgba(17,17,17,.22); padding-top: 22px; }
  .mtd-cat:first-child { border-top: 0; padding-top: 6px; }
  .f-row { grid-template-columns: 1fr; }
  .foot-bottom { flex-wrap: wrap; }
  .foot-bottom nav { margin-left: 0; }
  .work-tags { display: none; }
}

/* =========================================================
   MANIFIESTO (manifiesto.html)
   ========================================================= */
.mf-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.mf-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }

.mf-intro { padding: clamp(140px, 18svh, 208px) 0 clamp(36px, 5vw, 72px); }
.mf-grid { display: grid; grid-template-columns: .94fr 1.06fr; gap: clamp(32px, 4.5vw, 72px); align-items: start; }
.mf-lead-col { position: sticky; top: clamp(96px, 14svh, 140px); padding-top: clamp(24px, 4vw, 52px); }
.mf-title {
  font-size: clamp(64px, 11vw, 168px); line-height: .9; letter-spacing: -.045em;
  margin: 0 0 clamp(22px, 2.6vw, 38px);
  transform: scale(var(--s, 1)); transform-origin: left top; will-change: transform;
}
.mf-title .dot { color: var(--accent); }
.mf-lead-sub { font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.4; color: var(--gray-d); max-width: 32ch; margin: 0 0 clamp(20px, 2.4vw, 32px); }
.mf-quote { margin: 0; font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(19px, 2.1vw, 26px); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; max-width: 22em; }
.mf-quote .dim { color: var(--gray-d); }

.mf-points { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 68px); padding: clamp(24px, 4vw, 52px) 0 clamp(20px, 4vw, 48px); }
.mf-point { max-width: 540px; opacity: .22; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.mf-point.in { opacity: 1; transform: none; }
.mf-point h2 { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 8px; text-wrap: balance; }
.mf-point p { font-size: 14.5px; line-height: 1.6; color: var(--gray-d); max-width: 46ch; }
.mf-point em { color: var(--accent); font-style: normal; letter-spacing: .02em; }
.mf-point:last-child h2 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.15; }

.mf-video { padding: clamp(16px, 2.4vw, 40px) 0 clamp(60px, 7vw, 110px); }
.mf-video .container { display: flex; justify-content: center; }
.mf-video-inner {
  position: relative; width: 100%; max-width: 1320px; aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 1.6vw, 24px); overflow: hidden; background: #000;
  transform: scale(var(--vs, .42)); transform-origin: center center; will-change: transform;
  border: 1px solid var(--hair-d); box-shadow: 0 40px 120px -50px rgba(0,0,0,.7); cursor: pointer;
}
.mf-video-el { width: 100%; height: 100%; object-fit: cover; }
.mf-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(60px, 6vw, 78px); height: clamp(60px, 6vw, 78px); border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: opacity .3s var(--ease), background .3s var(--ease);
}
.mf-play:hover { background: rgba(255,212,0,.85); color: #111; }
.mf-play svg { width: 26px; height: 26px; }
.mf-video-cap {
  position: absolute; left: clamp(16px, 2vw, 28px); bottom: clamp(14px, 2vw, 24px);
  display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: rgba(255,255,255,.85);
}
.mf-video-cap strong { font-family: "Inter Tight", Arial, sans-serif; font-weight: 500; font-size: clamp(16px, 1.6vw, 22px); color: #fff; }
.mf-video-inner.is-vimeo { cursor: default; }
.mf-video-inner.is-vimeo .mf-play, .mf-video-inner.is-vimeo .mf-video-cap, .mf-video-inner.is-vimeo .mf-video-el { display: none; }
.vimeo-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Botón «Ver vídeo» del hero + lightbox */
.btn-video {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 6px 16px 6px 6px;
  background: rgba(20,20,20,.45); border: 1px solid var(--hair-d); border-radius: 100px; color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 14px; font-weight: 500;
  transition: background .25s var(--ease);
}
.btn-video:hover { background: rgba(20,20,20,.7); }
.btn-video-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #111; display: grid; place-items: center; }
.btn-video-ic svg { width: 14px; height: 14px; margin-left: 2px; }
.btn-video-dur { color: rgba(245,245,243,.6); font-weight: 400; }
.video-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: clamp(16px, 4vw, 60px); }
.video-modal[hidden] { display: none; }
.video-modal .modal-overlay { background: rgba(0,0,0,.88); }
.video-frame { position: relative; width: min(1320px, 100%, calc((100svh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: clamp(10px, 1.4vw, 20px); overflow: hidden; background: #000; animation: pop .4s var(--ease); }
.video-close { position: fixed; top: 18px; right: 18px; color: #fff; border-color: var(--hair-d); background: rgba(20,20,20,.6); }

.mnf-more { display: inline-flex; gap: 8px; margin-top: 30px; font-family: "Inter Tight", Arial, sans-serif; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--hair-d); padding-bottom: 2px; }
.mnf-more:hover { border-color: var(--accent); }

@media (max-width: 900px) {
  .mf-grid { grid-template-columns: 1fr; gap: clamp(26px, 7vw, 42px); }
  .mf-lead-col { position: static; padding-top: 0; }
  .mf-title { transform: none; }
  .mf-point { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-title, .mf-video-inner { transform: none; }
  .mf-point { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   EQUIPO (equipo.html)
   ========================================================= */
.tm-intro { padding: clamp(140px, 18svh, 208px) 0 clamp(90px, 10vw, 150px); }
.tm-title { font-size: clamp(64px, 11vw, 168px); line-height: .9; letter-spacing: -.045em; margin-bottom: clamp(36px, 5vw, 64px); }
.tm-title .dot, .tm-note-claim + * .dot { color: var(--accent); }
.tm-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.tm-lead { font-family: "Inter Tight", Arial, sans-serif; font-size: var(--t-lead); line-height: 1.15; letter-spacing: -.02em; }
.tm-intro-grid p:not(.tm-lead) { color: var(--gray-d); max-width: 36em; }
.tm-where { margin-top: 18px; font-size: 13px; letter-spacing: .06em; }
.tm-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(48px, 6vw, 80px); }
.tm-index a { display: inline-flex; gap: 10px; align-items: baseline; padding: 10px 16px; border: 1px solid var(--hair-d); border-radius: 100px; font-size: 14px; text-decoration: none; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.tm-index a span { font-size: 11px; color: var(--gray-d); letter-spacing: .08em; }
.tm-index a:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.tm-index a:hover span { color: rgba(17,17,17,.6); }

/* Paneles por práctica: se apilan con esquinas redondeadas, como en la home */
.tm-practice {
  position: relative; border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  margin-top: calc(var(--radius-panel) * -1);
  padding: clamp(64px, 8vw, 120px) 0 clamp(96px, 11vw, 160px);
  box-shadow: 0 -16px 46px -24px rgba(0,0,0,.32);
  scroll-margin-top: 70px;
}
.tm-practice:nth-of-type(2) { z-index: 2; } .tm-practice:nth-of-type(3) { z-index: 3; }
.tm-practice:nth-of-type(4) { z-index: 4; } .tm-practice:nth-of-type(5) { z-index: 5; }
.tm-practice:nth-of-type(6) { z-index: 6; } .tm-practice:nth-of-type(7) { z-index: 7; }
.tm-dark { background: var(--dark-2); color: var(--ink-on-dark); }
.tm-light { background: var(--cream); color: var(--ink-on-light); }
.tm-accent { background: var(--accent); color: #111; }

.tm-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.tm-head { position: sticky; top: 110px; }
.tm-num { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; opacity: .6; }
.tm-head h2 { margin-bottom: 22px; text-wrap: balance; }
.tm-head p:last-child { max-width: 32em; font-size: 15.5px; opacity: .78; }
.tm-head em { font-style: normal; font-weight: 600; opacity: 1; }
.tm-dark .tm-head em { color: var(--accent); }

.lead-card { display: grid; grid-template-columns: 150px 1fr; gap: 26px; padding: 26px; border-radius: 24px; background: rgba(255,255,255,.05); border: 1px solid var(--hair-d); }
.tm-light .lead-card { background: var(--cream-2); border-color: var(--hair-l); }
.tm-accent .lead-card { background: rgba(255,255,255,.35); border-color: rgba(17,17,17,.14); }
.lead-mono {
  aspect-ratio: 3 / 4; border-radius: 16px; display: grid; place-items: end start; padding: 14px;
  font-family: "Inter Tight", Arial, sans-serif; font-size: 34px; font-weight: 500; letter-spacing: -.03em;
  background: linear-gradient(160deg, #2a2a2a, #0d0d0d); color: var(--accent); position: relative; overflow: hidden;
}
.lead-mono::after { content: ""; position: absolute; right: -30%; top: -20%; width: 90%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,212,0,.35); }
.tm-accent .lead-mono { background: linear-gradient(160deg, #1d1d1d, #000); }
.lead-role { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: 8px; }
.lead-info h3 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 12px; }
.lead-info p:last-child { font-size: 14.5px; line-height: 1.6; opacity: .78; }
.lead-info h3 + p, .lead-info h3 ~ p { font-size: 14.5px; line-height: 1.6; opacity: .78; margin-bottom: 12px; }
.lead-info h3 ~ p:last-child { margin-bottom: 0; }

.tm-group { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin: 40px 0 14px; font-family: "Inter", Arial, sans-serif; }
.member-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.member-grid--wide { grid-template-columns: 1fr; }
.member { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; border: 1px solid var(--hair-d); transition: transform .3s var(--ease), background .3s var(--ease); }
.tm-light .member { border-color: var(--hair-l); background: var(--cream-2); }
.tm-accent .member { border-color: rgba(17,17,17,.14); background: rgba(255,255,255,.3); }
.member:hover { transform: translateY(-3px); }
.member strong { display: block; font-family: "Inter Tight", Arial, sans-serif; font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.member span:not(.mono) { display: block; font-size: 13px; opacity: .65; }
.member--bio { align-items: flex-start; }
.member--bio p { margin-top: 10px; font-size: 14px; line-height: 1.6; opacity: .78; }
.mono {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; background: #0f0f0f; color: var(--accent);
}

.tm-close { margin-top: 40px; font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.tm-close small { display: block; margin-top: 10px; font-family: "Inter", Arial, sans-serif; font-size: 14.5px; letter-spacing: 0; line-height: 1.55; opacity: .7; }

/* Nota del fundador */
.tm-note {
  position: relative; z-index: 8; background: var(--dark);
  border-radius: var(--radius-panel) var(--radius-panel) 0 0; margin-top: calc(var(--radius-panel) * -1);
  padding: clamp(80px, 10vw, 150px) 0 clamp(110px, 12vw, 170px);
}
.tm-note-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.tm-note-claim { font-family: "Inter Tight", Arial, sans-serif; font-size: var(--t-display); line-height: 1.02; letter-spacing: -.035em; color: var(--accent); }
.tm-note-text p { font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; letter-spacing: -.012em; margin-bottom: 22px; color: rgba(245,245,243,.86); }
.tm-note-text em { font-style: normal; color: #fff; border-bottom: 1px solid var(--accent); }
.tm-sign { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--hair-d); }
.tm-sign strong { display: block; font-weight: 500; }
.tm-sign span:not(.mono) { font-size: 13px; color: var(--gray-d); }
.page-team .diag { position: relative; z-index: 9; margin-top: 0; }

@media (max-width: 900px) {
  .tm-intro-grid, .tm-grid, .tm-note-grid { grid-template-columns: 1fr; }
  .tm-head { position: static; }
}
@media (max-width: 600px) {
  .lead-card { grid-template-columns: 1fr; }
  .lead-mono { aspect-ratio: auto; height: 120px; }
  .member-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CASO (casos/<slug>/index.html)
   ========================================================= */
.cs-hero { padding: clamp(130px, 17svh, 190px) 0 0; overflow-x: clip; }
.cs-crumb { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-d); margin-bottom: 26px; }
.cs-crumb a { text-decoration: none; }
.cs-crumb a:hover { color: var(--accent); }
.cs-title { font-size: clamp(38px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.035em; max-width: 17ch; }
.cs-sub { margin-top: 20px; font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(19px, 2vw, 26px); letter-spacing: -.02em; color: var(--gray-d); max-width: 26ch; }
.cs-audience { margin-top: 26px; display: inline-block; padding: 8px 16px; border: 1px solid var(--hair-d); border-radius: 100px; font-size: 13.5px; color: rgba(245,245,243,.8); }
.cs-abstract { margin-top: clamp(32px, 4vw, 48px); max-width: 62ch; font-size: 16.5px; line-height: 1.65; color: rgba(245,245,243,.82); }
.cs-facts { display: flex; flex-wrap: wrap; gap: 1px; margin: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 60px); background: var(--hair-d); border: 1px solid var(--hair-d); border-radius: 18px; overflow: hidden; }
.cs-facts > div { flex: 1 1 190px; background: var(--dark); padding: 18px 20px; }
/* Tablet y menos: Cliente y Sector arriba, Servicios (el último) debajo a todo el ancho */
@media (max-width: 1024px) { .cs-facts > div:last-child { flex-basis: 100%; } }
.cs-facts dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-d); margin-bottom: 8px; }
.cs-facts dd { margin: 0; font-family: "Inter Tight", Arial, sans-serif; font-size: 15.5px; letter-spacing: -.01em; }
.cs-cover { border-radius: clamp(14px, 1.6vw, 24px); margin: 0 auto; width: min(1320px, calc(100% - 2 * var(--gutter))); height: clamp(240px, 36vw, 520px); }
.cs-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(14px, 1.6vw, 24px); }

.cs-quote-open { padding: clamp(70px, 9vw, 130px) 0; }
.cs-quote-open blockquote { margin: 0; font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(24px, 3.2vw, 46px); line-height: 1.14; letter-spacing: -.03em; max-width: 20ch; text-wrap: balance; }
.cs-quote-by { margin-top: 22px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.cs-block { position: relative; z-index: 2; border-radius: var(--radius-panel) var(--radius-panel) 0 0; margin-top: calc(var(--radius-panel) * -1); padding: clamp(64px, 8vw, 118px) 0 clamp(72px, 9vw, 130px); scroll-margin-top: 70px; }
.cs-dark { background: var(--dark-2); }
.cs-block + .cs-block { box-shadow: 0 -16px 46px -24px rgba(0,0,0,.32); }
.cs-head { margin-bottom: clamp(36px, 4.5vw, 60px); }
.cs-head .muted { margin-top: 14px; max-width: 46ch; }
.cs-dark .muted { color: var(--gray-d); }
.cs-two { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.cs-two + .cs-two { margin-top: clamp(56px, 7vw, 96px); }
.cs-text p { margin-bottom: 18px; font-size: 16px; line-height: 1.68; opacity: .82; max-width: 62ch; }
.cs-text em { font-style: normal; font-weight: 600; opacity: 1; }
.cs-list { margin: 8px 0 0; padding: 0; list-style: none; }
.cs-list li { padding: 14px 0; border-top: 1px solid var(--hair-l); font-size: 15.5px; line-height: 1.6; opacity: .85; max-width: 62ch; }
.cs-dark .cs-list li { border-color: var(--hair-d); }
.cs-list strong { opacity: 1; }

.cs-solution { padding: clamp(70px, 9vw, 130px) 0; }
.cs-solution-line { font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(26px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -.03em; max-width: 24ch; text-wrap: balance; }

.cs-work { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.cs-work li { padding-top: 20px; border-top: 1px solid var(--hair-l); }
.cs-dark .cs-work li { border-color: var(--hair-d); }
.cs-work-num { font-size: 12px; letter-spacing: .12em; color: var(--gray-l); }
.cs-work h3 { margin: 10px 0 12px; font-size: clamp(19px, 1.8vw, 23px); }
.cs-work p { font-size: 15px; line-height: 1.62; opacity: .78; }

.cs-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.cs-timeline li { padding-top: 18px; border-top: 1px solid var(--hair-d); }
.cs-timeline span { display: block; font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; color: var(--accent); margin-bottom: 10px; }
.cs-timeline p { font-size: 15px; line-height: 1.6; color: var(--gray-d); }

/* Flex en vez de grid: la última fila se estira y no quedan celdas vacías (grises) sea cual sea el número de métricas */
.cs-metrics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1px; background: var(--hair-l); border: 1px solid var(--hair-l); border-radius: 20px; overflow: hidden; }
.cs-metrics li { flex: 1 1 210px; background: var(--cream); padding: 26px 22px; }
/* Con 4 métricas: 2 + 2, o las 4 en fila en pantallas anchas (nunca 3 + 1) */
.cs-metrics:has(> li:nth-child(4):last-child) li { flex-basis: calc(50% - 1px); }
@media (min-width: 1100px) { .cs-metrics:has(> li:nth-child(4):last-child) li { flex-basis: calc(25% - 1px); } }
@media (max-width: 560px) { .cs-metrics:has(> li:nth-child(4):last-child) li { flex-basis: 100%; } }
.cs-metrics strong { display: block; font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(32px, 3.2vw, 46px); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.cs-metrics span { display: block; margin-top: 12px; font-size: 14.5px; line-height: 1.45; }
.cs-metrics small { display: block; margin-top: 12px; font-size: 11.5px; letter-spacing: .04em; color: var(--gray-l); }
.cs-method { margin-top: 28px; max-width: 70ch; font-size: 14.5px; line-height: 1.65; color: var(--gray-l); }

.cs-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); }
.cs-split h3 { font-size: clamp(20px, 1.9vw, 25px); margin-bottom: 18px; }
.cs-split ul { list-style: none; margin: 0; padding: 0; }
.cs-split li { padding: 12px 0; border-top: 1px solid var(--hair-d); font-size: 15px; opacity: .82; }

.cs-testimonial { padding: clamp(70px, 9vw, 130px) 0; }
.cs-testimonial blockquote { margin: 0; font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(21px, 2.6vw, 34px); line-height: 1.22; letter-spacing: -.025em; max-width: 26ch; text-wrap: balance; }
.cs-author { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.cs-author strong { display: block; font-weight: 500; }
.cs-author span:not(.mono) { font-size: 13px; color: var(--gray-d); }

.page-case .diag { z-index: 6; margin-top: 0; }

@media (max-width: 900px) {
  .cs-two, .cs-split { grid-template-columns: 1fr; }
  .cs-title { max-width: none; }
}

/* ---------- Portada con pila en profundidad (efecto 3D al pasar el ratón) ---------- */
[data-depth-stack] { position: relative; perspective: 1400px; }
.cs-stack .cs-layer { border-radius: inherit; }
.cs-stack { position: absolute; inset: 0; z-index: 1; transform-style: preserve-3d; pointer-events: none; }
.cs-stack .cs-layer {
  position: absolute; inset: 0; background: center/cover no-repeat;
  opacity: 0; will-change: transform, opacity, filter;
  transition: opacity .7s var(--ease), filter .7s var(--ease);
}
/* En reposo, la foto en color; al distorsionarse (ratón encima), en blanco y negro */
.cs-cover.is-live img { filter: none; transition: filter .7s var(--ease); }
.cs-cover.is-on img { filter: grayscale(1) contrast(1.04); }
[data-depth-stack].is-on .cs-layer { opacity: var(--o, .5); }
.mnf-img.is-on .cs-layer { opacity: calc(var(--o, .5) * .6); }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .cs-cover.is-live img { filter: none; }
  .cs-stack { display: none; }
}

/* ---------- Textura de marca (2 apariciones por caso) ----------
   Dos capas del mismo patrón, ancladas abajo y centradas: una nítida que
   aparece por abajo y otra desenfocada que se disuelve hacia arriba. */
.cs-solution, #aprendimos { position: relative; overflow: clip; }
.cs-solution > .container, #aprendimos > .container { position: relative; z-index: 1; }

.cs-solution::before, .cs-solution::after,
#aprendimos::before, #aprendimos::after {
  content: ""; position: absolute; bottom: 0; left: 50%; translate: -50% 0;
  width: min(1440px, 100%); aspect-ratio: 1823 / 836;
  background: url(../assets/brand/pattern.svg) no-repeat center bottom / 100% auto;
  pointer-events: none; z-index: 0;
}
/* capa nítida: entra desde abajo */
.cs-solution::before, #aprendimos::before {
  opacity: .24;
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 85%);
          mask-image: linear-gradient(to bottom, transparent 30%, #000 85%);
}
/* capa desenfocada: se disuelve hacia arriba */
.cs-solution::after, #aprendimos::after {
  opacity: .16; filter: blur(7px);
  -webkit-mask-image: linear-gradient(to bottom, #000 5%, transparent 65%);
          mask-image: linear-gradient(to bottom, #000 5%, transparent 65%);
}
/* sobre fondo claro, el trazo se invierte a negro */
#aprendimos::before { filter: invert(1); opacity: .14; }
#aprendimos::after { filter: invert(1) blur(7px); opacity: .10; }

@media (max-width: 900px) {
  .cs-solution::before, .cs-solution::after, #aprendimos::before, #aprendimos::after { opacity: .08; }
}

/* ---------- Ilustraciones geométricas en los huecos del caso ----------
   El SVG se usa como máscara y se pinta con currentColor: blanco sobre
   fondo oscuro, negro sobre claro. Se cambia el dibujo con --illus. */
.cs-illus {
  position: absolute; pointer-events: none; z-index: 0; background: currentColor;
  -webkit-mask: var(--illus) center / contain no-repeat;
          mask: var(--illus) center / contain no-repeat;
  opacity: .42;
}
.cs-quote-open { position: relative; }
.cs-quote-open .cs-illus { right: var(--gutter); top: 50%; translate: 0 -50%; width: min(560px, 38%); max-height: 78%; aspect-ratio: var(--ratio, 3 / 2); }
.cs-testimonial { position: relative; }
.cs-testimonial .cs-illus { right: var(--gutter); top: 50%; translate: 0 -50%; width: min(460px, 32%); max-height: 80%; aspect-ratio: var(--ratio, 1); }
#hoy .cs-illus { left: var(--gutter); bottom: clamp(40px, 6vw, 90px); width: min(420px, 30%); aspect-ratio: var(--ratio, 3 / 1); opacity: .6; }
.cs-illus.is-accent { background: var(--accent); }
@media (max-width: 900px) { .cs-illus { display: none; } }

/* ---------- Navegación entre casos (anterior / siguiente) ----------
   Barra fija abajo que aparece al pasar la portada y se esconde al llegar al pie.
   El fondo es un degradado con blur que se desvanece hacia arriba. La crea js/main.js. */
.case-nav {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding: 56px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  pointer-events: none;
  opacity: 0; translate: 0 24px;
  transition: opacity .45s var(--ease), translate .45s var(--ease);
}
.case-nav.is-visible { opacity: 1; translate: 0 0; }
.case-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(17, 17, 17, .5), rgba(17, 17, 17, 0));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent);
          mask-image: linear-gradient(to top, #000 35%, transparent);
}
.case-nav a {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px; max-width: min(46vw, 380px);
  padding: 10px 18px; border-radius: 100px; text-decoration: none; color: #fff;
  background: rgba(30, 30, 30, .6); border: 1px solid var(--hair-d);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.case-nav a:hover { background: rgba(30, 30, 30, .85); border-color: rgba(245, 245, 243, .3); }
.case-nav a:hover .case-nav-arrow { color: var(--accent); }
.case-nav-next { margin-left: auto; text-align: right; }
.case-nav-arrow { font-size: 16px; transition: color .25s var(--ease); }
.case-nav-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.case-nav-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-d); }
.case-nav-name { font-family: "Inter Tight", Arial, sans-serif; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
  .case-nav a { padding: 9px 14px; gap: 8px; }
  .case-nav-name { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .case-nav { transition: none; translate: none; } }

/* ---------- Portada de caso: logo del cliente al pasar el ratón ----------
   Aparece nítido en el centro mientras la foto se desenfoca (cambio de foco).
   El logo es una máscara pintada en blanco; detrás, un eco amarillo desenfocado
   que llega con retraso. js/main.js lo crea a partir de data-logo. */
.cs-logo {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: grid; place-items: center;
}
.cs-logo::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  opacity: 0; transition: opacity .6s var(--ease);
}
.cs-logo-main, .cs-logo-ghost {
  grid-area: 1 / 1; width: calc(min(34%, 340px) * var(--logo-scale, 1)); height: calc(34% * var(--logo-scale, 1));
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
  opacity: 0;
  transition: opacity .55s var(--ease), filter .7s var(--ease), scale .7s var(--ease);
}
.cs-logo-main { background: #fff; filter: blur(14px); scale: 1.12; }
.cs-logo-ghost { background: var(--accent); filter: blur(10px); scale: 1.05; }
.cs-cover.is-on .cs-logo::before { opacity: 1; }
.cs-cover.is-on .cs-logo-main { opacity: 1; filter: blur(0); scale: 1; transition-delay: .08s; }
.cs-cover.is-on .cs-logo-ghost { opacity: .55; filter: blur(3px); scale: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) { .cs-logo { display: none; } }

/* =========================================================
   PÁGINAS LEGALES (aviso-legal.html, privacidad.html, cookies.html)
   ========================================================= */
.legal-hero { padding-bottom: clamp(90px, 11vw, 150px); }
.legal-hero .cs-title { max-width: none; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.legal-nav a { padding: 8px 16px; border-radius: 100px; border: 1px solid var(--hair-d); font-size: 14px; text-decoration: none; color: rgba(245, 245, 243, .86); transition: background .25s var(--ease), color .25s var(--ease); }
.legal-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.legal-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #111; }

.legal-body { max-width: 74ch; }
.legal-body h2 { font-size: clamp(21px, 2vw, 26px); line-height: 1.2; margin: 52px 0 16px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.7; color: #2b2b2b; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 1.2em; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-body a:hover { text-decoration-color: var(--accent); }
.legal-id { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0 0 18px; padding: 24px 26px; border: 1px solid var(--hair-l); border-radius: 18px; }
.legal-id dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-l); padding-top: 3px; }
.legal-id dd { margin: 0; font-size: 15.5px; line-height: 1.55; }
.legal-table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--hair-l); border-radius: 16px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--hair-l); }
.legal-table th { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-l); font-weight: 500; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-note { font-size: 14px; color: var(--gray-l); }
@media (max-width: 600px) {
  .legal-id { grid-template-columns: 1fr; gap: 2px 0; padding: 20px; }
  .legal-id dd { margin-bottom: 12px; }
}

/* Campo trampa del formulario (antispam): fuera de la vista, sin foco */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.contact-form .btn:disabled { opacity: .55; cursor: progress; }

/* ---------- Banner de cookies (analítica solo con consentimiento) ---------- */
.cookie-banner {
  position: fixed; z-index: 70; left: var(--gutter); bottom: calc(18px + env(safe-area-inset-bottom));
  width: min(440px, calc(100% - 2 * var(--gutter)));
  padding: 20px 22px; border-radius: 20px;
  background: rgba(24, 24, 24, .92); color: var(--ink-on-dark); border: 1px solid var(--hair-d);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 14px; line-height: 1.55; color: rgba(245, 245, 243, .82); }
.cookie-banner strong { color: #fff; font-weight: 500; }
.cookie-banner a { color: #fff; text-underline-offset: 3px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cookie-btn { justify-content: center; background: transparent; color: #fff; border-color: rgba(245, 245, 243, .35); }
.cookie-btn:hover { background: rgba(255, 255, 255, .1); }
/* Mientras se decide, la navegación entre casos no tapa el banner */
.has-cookie-banner .case-nav { opacity: 0 !important; pointer-events: none; }
.foot-bottom .cookie-settings { color: inherit; font-size: inherit; opacity: inherit; cursor: pointer; }
.foot-bottom .cookie-settings:hover { text-decoration: underline; }
.legal-body code { font-size: .92em; background: rgba(20,20,20,.06); padding: 1px 6px; border-radius: 6px; }

/* Rust, el agente de IA: mismo esquema que una práctica, pero se ve que no es una persona */
.tm-agent .lead-mono { background: repeating-linear-gradient(135deg, #1b1b1b 0 10px, #141414 10px 20px); outline: 1px dashed rgba(255,212,0,.5); outline-offset: -8px; }
.tm-agent .lead-mono::before { content: "IA"; position: absolute; top: 12px; left: 14px; font-size: 11px; font-weight: 600; letter-spacing: .12em; padding: 3px 7px; border-radius: 100px; background: var(--accent); color: #111; }
.tm-agent .mono { background: transparent; border: 1px dashed rgba(255,212,0,.5); } /* círculo como el resto, con borde discontinuo */
.tm-agent .member { align-items: flex-start; } /* descripciones de dos líneas: icono arriba */

/* ---------- Header: degradado con blur al hacer scroll (como la barra de los casos) ----------
   Oscuro sobre paneles oscuros y crema sobre claros, para que el logo siga leyéndose. */
.header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 118px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(17, 17, 17, .62), rgba(17, 17, 17, 0));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
          mask-image: linear-gradient(to bottom, #000 45%, transparent);
  opacity: 0; transition: opacity .4s var(--ease), background .4s var(--ease);
}
.header.is-scrolled::before { opacity: 1; }
.header.on-light::before { background: linear-gradient(to bottom, rgba(239, 237, 232, .78), rgba(239, 237, 232, 0)); }
@media (prefers-reduced-motion: reduce) { .header::before { transition: none; } }
/* Pastilla de Rust en el índice de prácticas: borde discontinuo, como su tarjeta */
.tm-index a.is-agent { border-style: dashed; border-color: rgba(255, 212, 0, .5); }
