/* ============================================================
   Iseno — design refresh v2
   Loaded AFTER iseno.webflow.css (the mirrored Webflow build stays
   untouched). Same DNA — Montserrat / DM Sans, ink #1a1b1f, dark
   bands, eyebrow labels, the .iline rule — but with a much more
   current feel: bigger editorial type, real card surfaces, depth,
   sticky glass nav, and motion on scroll.
   ============================================================ */

:root {
  --ink: #1a1b1f;
  --ink-deep: #141416;
  --ink-soft: #222;
  --ink-mute: #70717a;
  --paper: #fff;
  --paper-warm: #fafaf8;
  --paper-soft: #f4f4f2;
  --line: #e6e5e2;
  --line-strong: #d8d7d3;
  --line-dark: #313236;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --sec-y: clamp(72px, 10vw, 152px);
  --sec-x: clamp(20px, 6vw, 9%);

  --display: clamp(38px, 5.6vw, 92px);
  --h2: clamp(26px, 2.8vw, 44px);
  --lead: clamp(17px, 1.5vw, 23px);
  --small: clamp(15px, 1.05vw, 17px);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(20, 20, 22, .04), 0 10px 30px rgba(20, 20, 22, .05);
  --shadow-2: 0 2px 4px rgba(20, 20, 22, .06), 0 26px 60px rgba(20, 20, 22, .10);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: var(--small);
  line-height: 1.68;
  letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--paper);
}

::selection {
  background: var(--ink);
  color: #fafafa;
}

/* ============================ type ============================ */
.iheading {
  font-size: var(--display);
  line-height: 1.03;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.iheading.iheadingsmall {
  font-size: var(--h2);
  line-height: 1.14;
  letter-spacing: -.022em;
}

.iheading.iheadingextrasmall,
.iheading.iheadingextrasmall2 {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.35;
  letter-spacing: -.005em;
}

.icontent {
  font-size: var(--lead);
  line-height: 1.62;
  max-width: 60ch;
  letter-spacing: -.005em;
}

.icontent.icontentsmall {
  font-size: var(--small);
  line-height: 1.68;
}

/* section label -> eyebrow with a leading tick */
.ititle {
  position: relative;
  font-size: clamp(11px, .82vw, 13px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  opacity: 1;
  color: var(--ink-mute);
  padding-left: 34px;
  margin-bottom: clamp(12px, 1.4vw, 20px);
}

.ititle::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 22px;
  height: 1px;
  background-color: currentColor;
}

.ititle.ititlewhite {
  color: #fafafa;
  opacity: .6;
}

/* profile page keeps the same eyebrow treatment */
.ititle.ititle-small {
  font-size: clamp(11px, .82vw, 13px);
  letter-spacing: .2em;
  opacity: 1;
  color: var(--ink-mute);
}

/* the signature rule */
.iline {
  width: clamp(56px, 5vw, 104px);
  height: 2px;
  border-radius: 2px;
  margin-top: clamp(22px, 2.6vw, 40px);
  margin-bottom: clamp(8px, 1vw, 18px);
  background-color: var(--ink);
}

.iline.ilinewhite {
  background-color: #fafafa;
  opacity: .4;
}

/* ========================= sections ========================= */
.isection {
  position: relative;
  padding: var(--sec-y) var(--sec-x);
  background-color: var(--paper);
}

.isection.isectiongray {
  background-color: var(--paper-soft);
}

.isection.isectionblack {
  background-color: var(--ink-deep);
  background-image: radial-gradient(120% 90% at 78% 0%, rgba(255, 255, 255, .07), transparent 62%);
}

.section-8 {
  background-color: var(--ink-deep);
  background-image: radial-gradient(100% 80% at 12% 0%, rgba(255, 255, 255, .06), transparent 60%);
  padding: var(--sec-y) var(--sec-x) clamp(40px, 5vw, 76px);
}

.iflexblock {
  grid-row-gap: clamp(16px, 1.8vw, 26px);
}

.icontainer1 {
  margin-top: clamp(30px, 4vw, 60px);
}

.flex-block-13 {
  grid-row-gap: clamp(26px, 3vw, 44px);
}

/* ====================== sticky glass nav ====================== */
.navigation {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(190%) blur(16px);
  backdrop-filter: saturate(190%) blur(16px);
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 22, .07);
  padding: clamp(12px, 1.2vw, 18px) var(--sec-x);
  transition: box-shadow .4s var(--ease), background-color .4s var(--ease);
}

.navigation.is-stuck {
  box-shadow: 0 10px 34px rgba(20, 20, 22, .06);
}

.navigation-item {
  font-size: clamp(14px, .98vw, 15px);
  font-weight: 400;
  opacity: .7;
  position: relative;
  transition: opacity .3s var(--ease);
}

.navigation-item:hover {
  opacity: 1;
}

.navigation-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s var(--ease-out);
}

.navigation-item:hover::after,
.navigation-item.w--current::after {
  transform: scaleX(1);
}

/* contact CTA in the nav -> modern pill */
.button.cc-contact-us {
  background-color: var(--ink);
  border-radius: 999px;
  min-height: 40px;
  padding: 4px 8px 4px 18px;
  gap: 12px;
  transition: background-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}

.button.cc-contact-us .text-block {
  color: #fff;
  padding: 0;
}

.button.cc-contact-us .text-block-26 {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  transition: transform .4s var(--ease-out), background-color .35s var(--ease);
}

.button.cc-contact-us .text-block-26 br {
  display: none;
}

.button.cc-contact-us:hover {
  background-color: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}

.button.cc-contact-us:hover .text-block-26 {
  transform: translateX(2px);
  background-color: rgba(255, 255, 255, .24);
}

/* =========================== hero =========================== */
.hero-intro {
  grid-row-gap: clamp(18px, 2vw, 30px);
}

.hero-intro .iheading {
  font-size: clamp(40px, 7vw, 112px);
  line-height: .98;
}

.hero-intro .iline {
  margin-top: clamp(26px, 3vw, 46px);
}

.scroll-down {
  transition: background-color .4s var(--ease), transform .4s var(--ease);
}

.scroll-down:hover {
  background-color: var(--ink);
  transform: translateY(3px);
}

@media screen and (min-width: 992px) {
  .hero-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-rows: auto auto auto;
    column-gap: clamp(36px, 5vw, 88px);
    row-gap: clamp(18px, 2vw, 28px);
    align-content: start;
    align-items: start;
  }

  .hero-intro > .iheading {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-intro > .icontent {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .hero-intro > .hero-stats {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }

  .hero-intro > .hero-cta {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    align-self: start;
    margin-top: 10px;
  }

  .hero-intro > .iline {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    margin-top: 6px;
  }

  .hero-intro > .scroll-down {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }
}

/* ===================== dark hero ===================== */
.hero-dark {
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(130% 110% at 8% -12%, rgba(255, 255, 255, .11), transparent 55%),
    radial-gradient(95% 95% at 102% 4%, rgba(120, 145, 255, .13), transparent 58%);
  color: #fff;
  padding-top: clamp(84px, 11vw, 172px);
  padding-bottom: clamp(84px, 11vw, 172px);
}

.hero-dark .iheading { color: #fff; }

.hero-dark .icontent { color: rgba(255, 255, 255, .74); }

.hero-dark .iline { background-color: #fff; opacity: .8; }

.hero-dark .ititle,
.hero-dark .ititle.ititle-small { color: rgba(255, 255, 255, .62); }

/* black circle -> white circle with a dark arrow */
.hero-dark .scroll-down { background-color: #fff; }

.hero-dark .scroll-down .text-block-27 { color: var(--ink); }

.hero-dark .image-6 { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }

/* Mission flipped to light: dark hero -> white section gives a real opening */
.isection.isection-light { background-color: #fff; background-image: none; }

.isection.isection-light .iheading.iheadingwhite,
.isection.isection-light .icontent.icontentwhite { color: var(--ink); }

.isection.isection-light .ititle.ititlewhite { color: var(--ink-mute); }

.isection.isection-light .iline.ilinewhite {
  background-color: var(--ink);
  background-image: none;
  opacity: 1;
}

/* ==================== hero stats + cta ==================== */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: 18px;
  margin-top: 4px;
}

.hero-stat-num {
  font-family: Montserrat, sans-serif;
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
}

.hero-stat-label {
  margin-top: 8px;
  font-size: clamp(12px, .9vw, 14px);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .55);
}

.hero-cta {
  justify-self: start;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  border-radius: 999px;
  background-color: #fff;
  color: var(--ink);
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), background-color .35s var(--ease);
}

.hero-cta-arrow { transition: transform .4s var(--ease-out); }

.hero-cta:hover {
  background-color: #f1f1f1;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

.hero-cta:hover .hero-cta-arrow { transform: translateX(3px); }

/* ==================== brand rows as cards ==================== */
.flex-block-13 .icompany {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
  padding: clamp(20px, 2vw, 30px);
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .4s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease-out);
}

.isectiongray .flex-block-13 .icompany {
  background-color: #fff;
}

.flex-block-13 .icompany:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}

.flex-block-13 .div-block-22,
.flex-block-13 .icompanyurl {
  flex: 0 0 auto;
}

.flex-block-13 .icompanyurl {
  width: auto;
  height: auto;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  line-height: 0;
}

.flex-block-13 .icompanyimg {
  width: clamp(78px, 7.5vw, 108px);
  height: clamp(78px, 7.5vw, 108px);
  display: block;
  border-radius: var(--r-md);
  transition: transform .55s var(--ease-out), filter .45s var(--ease);
}

.flex-block-13 .icompany:hover .icompanyimg {
  transform: scale(1.04);
}

.flex-block-13 .link-block {
  align-self: flex-start;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 20px;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.flex-block-13 .link-block .text-block-7 {
  font-size: 15px;
  margin: 0;
}

.flex-block-13 .link-block:hover {
  background-color: var(--ink);
  border-color: var(--ink);
}

.flex-block-13 .link-block:hover .text-block-7 {
  color: #fff;
  opacity: 1;
  transform: none;
}

/* ==================== client / award walls ==================== */
.grid-6 {
  background-color: var(--line);
  background-image: none;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 0;
  grid-column-gap: 1px;
  grid-row-gap: 1px;
}

.grid-6 img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  padding: clamp(22px, 2.6vw, 40px);
  background-color: #fff;
  /* NOTE: no brightness() here — filter also paints the element's own white
     background, so brightness(.9) turned the whole cell grey. contrast() keeps
     pure white at white while still deepening the logos. */
  filter: grayscale(1) contrast(1.15);
  opacity: 1;
  transition: filter .45s var(--ease), opacity .45s var(--ease), background-color .45s var(--ease);
}

.grid-6 img:hover {
  filter: grayscale(0);
  opacity: 1;
  background-color: var(--paper-warm);
  transform: none;
}

.grid-11 img {
  filter: grayscale(1) brightness(1.7);
  opacity: .6;
  transition: filter .45s var(--ease), opacity .45s var(--ease);
}

.grid-11 img:hover {
  filter: none;
  opacity: 1;
  transform: none;
}

/* ========================= stats ========================= */
.grid-stats {
  margin-top: clamp(28px, 3.4vw, 48px);
}

.stat {
  background-color: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.2vw, 30px);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease-out);
}

.isectiongray .stat:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}

.stat-number {
  font-size: clamp(44px, 4.4vw, 66px);
  letter-spacing: -.03em;
}

/* ========================= team ========================= */
.image-6 {
  border-radius: 50%;
  transition: filter .5s var(--ease), transform .5s var(--ease-out);
}

.image-6:hover {
  transform: translateY(-4px);
}

/* ========================= links ========================= */
.link-block-7 .button-txt,
.link-block .text-block-7,
.link-2,
.link-4 {
  transition: opacity .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}

.link-block-7:hover .button-txt {
  opacity: .62;
  transform: translateX(2px);
}

.link-2:hover,
.link-4:hover {
  opacity: .68;
}

/* footer link pills */
.flex-block-11 {
  gap: 14px;
}

.flex-block-11 .link-block-7 {
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 12px 22px;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}

.flex-block-11 .link-block-7:hover {
  background-color: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .38);
}

.flex-block-11 .link-block-7:hover .button-txt {
  opacity: 1;
  transform: none;
}

.section-8 .link-block-7 .button-txt {
  font-size: 15px;
}

/* ======================= a11y / motion ======================= */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

.section-8 a:focus-visible {
  outline-color: #fafafa;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ====================== responsive ====================== */
@media screen and (max-width: 991px) {
  .navigation {
    padding: 14px var(--sec-x);
  }

  .navigation-items {
    border-bottom: 1px solid var(--line);
  }

  .iflexblock {
    max-width: 100%;
  }

  .iline {
    max-width: 100%;
  }

  .flex-block-4,
  .flex-block-12 {
    flex-wrap: wrap;
  }

  .flex-block-13 .icompany {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --sec-x: 20px;
    --sec-y: clamp(52px, 13vw, 76px);
  }

  .navigation {
    padding: 12px 18px;
  }

  .iline {
    width: 48px;
  }

  .ititle {
    padding-left: 30px;
  }

  .flex-block-12 {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    justify-content: flex-start;
  }

  .flex-block-12 .image-6 {
    width: 132px;
    height: 132px;
  }

  .flex-block-4 {
    align-items: flex-start;
  }

  .scroll-down {
    width: 88px;
    height: 88px;
  }

  .grid-6 {
    border-radius: var(--r-md);
  }

  .flex-block-11 .link-block-7 {
    width: 100%;
    justify-content: space-between;
  }
}

/* ================= language switcher ================= */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  letter-spacing: .04em;
}

.lang-link {
  color: inherit;
  text-decoration: none;
  opacity: .5;
  transition: opacity .3s var(--ease);
}

.lang-link:hover {
  opacity: 1;
}

.lang-link.is-active {
  opacity: 1;
  font-weight: 600;
}

.lang-sep {
  opacity: .22;
}

/* ================= policy document ================= */
.policy {
  max-width: 78ch;
}

.policy-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(20px, 2.4vw, 32px);
  margin-bottom: clamp(28px, 3.4vw, 48px);
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-mute);
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  color: var(--ink-mute);
  text-decoration: none;
}

.policy-back:hover {
  color: var(--ink);
}

.policy h3 {
  font-family: Montserrat, sans-serif;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 600;
  letter-spacing: -.01em;
  margin: clamp(30px, 3.4vw, 46px) 0 12px;
}

.policy p,
.policy li {
  color: #3c3d42;
}

.policy p {
  margin: 0 0 14px;
}

.policy ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.policy li {
  margin-bottom: 8px;
}

.policy dl {
  margin: 0 0 18px;
}

.policy dt {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  color: var(--ink);
  margin-top: 14px;
}

.policy dd {
  margin: 4px 0 0;
  color: #3c3d42;
}

.policy .note {
  background-color: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(16px, 1.8vw, 24px);
  margin: 24px 0;
  font-size: 15px;
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: 15px;
}

.policy th,
.policy td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.policy th {
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
}

@media screen and (max-width: 767px) {
  .lang-switch {
    margin-right: 8px;
  }
}

/* ---- nav: keep the language switcher clear of the menu items ----
   .menu stretches to the full nav width in the mirrored CSS, so anything placed
   after it overlapped the last item ("Clientes"/"EN|ES"). Give .menu its natural
   width and let the switcher claim the free space instead. */
.navigation-wrap {
  gap: clamp(10px, 1.4vw, 24px);
}

.menu {
  flex: 0 0 auto;
}

.lang-switch {
  margin-left: auto;
  margin-right: 0;
}

@media screen and (max-width: 991px) {
  .navigation-wrap {
    gap: 10px;
  }

  .lang-switch {
    margin-left: auto;
  }
}

/* ---- policy document title ---- */
.policy-header h1,
.policy-title {
  text-align: left;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -.02em;
  line-height: 1.06;
  margin: 0;
}

.policy a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.policy a:hover {
  opacity: .7;
}

/* ---- profile hero: self-description tagline ---- */
.profile-tagline {
  font-family: Montserrat, sans-serif;
  font-size: clamp(15px, 1.45vw, 21px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.005em;
  color: #fafafa;
  margin: 18px 0 0;
  max-width: 34ch;
}

.profile-tagline .dot {
  color: rgba(255, 255, 255, .32);
  margin: 0 .5em;
}

.profile-tagline-sub {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .62);
  margin: 9px 0 0;
  max-width: 46ch;
}

/* ---- specialisms ---- */
.specialisms {
  margin-top: clamp(32px, 4vw, 56px);
}

.specialisms-label {
  margin-bottom: 16px;
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-pill {
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 9px 16px;
  transition: border-color .35s var(--ease), color .35s var(--ease);
}

.spec-pill:hover {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}
