:root {

  --ink:        #212121;
  --ink-soft:   #363131;
  --dark:       #363636;
  --accent:     #ffab97;
  --accent-70:  rgb(255 171 151 / .7);
  --peach:      #ffc294;
  --bone:       #ebe8e5;
  --grey:       #f5f5f5;
  --teal:       #8fc2b8;
  --teal-claro: #c2e0e0;
  --white:      #fff;

  --font-display: "Avenue Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body:    "Space Grotesk", ui-sans-serif, system-ui, sans-serif;

  --fs-hero:    128px;
  --fs-banner:  128px;
  --fs-display:  40px;
  --fs-h2:       48px;
  --fs-lead:     36px;
  --fs-row-head: 36px;
  --fs-menu:     32px;
  --fs-hablamos:     128px;
  --fs-hablamos-sub:  48px;
  --fs-mail:          26px;
  --fs-md:       24px;
  --fs-video:    20px;
  --fs-body:     18px;
  --fs-sm:       14px;

  --content:  1180px;
  --gutter:     50px;
  --stage-steps:   3;
  --stage-split:  58%;
  --menu-speed:  .7s;
  --nav-h:      112px;
  --dot:        35px;
  --arrow-on:  #fa8375;
  --arrow-off: #b7b7b7;
  --rule:    1px solid rgb(54 49 49 / .5);
  --measure: 634px;
}

@font-face {
  font-family: "Avenue Mono";
  src: url("../fonts/Avenue_Mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  color: var(--ink);

  background: var(--page-bg, var(--white));
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
u, s { text-decoration-thickness: from-font; }

button {
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

address { font-style: normal; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 59px;
  padding: 0 26px;
  border: 1px solid #222;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: var(--fs-body);
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.btn:hover { color: var(--white); background: var(--ink); }

.dot {
  flex: none;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--dot-bg, var(--accent));
}
.dot--dark { background: var(--ink-soft); }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;

  padding-top: 60px;
  border-bottom: var(--rule);
}

.section-label {
  display: flex;
  gap: 40px;
  min-height: 157px;
}

.section-label:not(:has(.section-title)) {
  padding-right: 40px;
  border-right: var(--rule);
}

.section-title {
  padding-left: 40px;
  border-left: var(--rule);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.09;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.section-intro {
  align-self: flex-end;
  max-width: var(--measure);
  padding-bottom: 40px;
  font-size: var(--fs-lead);
  line-height: 1.09;
  letter-spacing: -.05em;
}

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 4;
  padding-inline: var(--gutter);
  transition: background-color .3s, box-shadow .3s, opacity .3s;
}

.nav.is-solid {
  position: fixed;

  background: var(--nav-bg, var(--grey));
}

.nav.is-solid.is-scrolled { box-shadow: 0 1px 8px rgb(0 0 0 / .1); }

.nav.is-solid.is-animada { animation: nav-entra .25s ease-out; }

@keyframes nav-entra {
  from { transform: translateY(-100%); }
}

.nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.nav-inner {
  max-width: var(--content);
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  min-height: var(--nav-h);
  padding-top: 30px;
  border-bottom: var(--rule);
}

.nav-logo {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  padding: 0 30px 30px 0;
  border-right: var(--rule);
}
.nav-logo img { width: 266px; height: auto; }

.nav-claim {
  align-self: center;
  padding-left: 30px;
}
.nav-claim img { display: block; width: 304px; height: auto; }
body.portada .nav-claim { display: none; }

.nav-toggle { margin-left: auto; padding-bottom: 30px; }
.nav-toggle img { width: 50px; height: auto; transition: transform .2s; }

.nav-toggle[aria-expanded="true"] img { transform: rotate(90deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow-y: auto;

  background: var(--nav-bg, var(--grey));

  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path var(--menu-speed) cubic-bezier(.65, 0, .35, 1),
              visibility var(--menu-speed);
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

.menu-inner {
  display: flex;
  gap: 40px;
  height: calc(var(--nav-h) + 400px);
  padding-top: var(--nav-h);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 300;
}
.menu-col,
.menu-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.menu-col {
  flex: 668 1 0;
  gap: 16px;
  border-right: var(--rule);
}
.menu-info {
  flex: 492 1 0;
  gap: 20px;
  font-size: var(--fs-md);
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: var(--fs-menu);
  line-height: 1.28;
  text-transform: uppercase;
}
.menu-list a {
  display: inline-block;
  transition: opacity .2s;
}

.menu-list a:hover { opacity: .6; }
.menu-list [aria-current] { text-decoration: underline; }

.lang {
  display: flex;
  gap: .8em;
  font-size: var(--fs-menu);
  line-height: 1.28;
  text-transform: uppercase;
}
.lang a {
  opacity: .4;
  transition: opacity .2s;
}
.lang a:hover { opacity: 1; }
.lang a[aria-current] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: .12em;
}

.menu-info a {
  text-decoration: underline;
  text-underline-offset: .12em;
  transition: opacity .2s;
}
.menu-info a:hover { opacity: .6; }

.menu-address {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-style: normal;
}
.menu-address span { font-size: var(--fs-body); }

.menu-legal {
  border-top: var(--rule);
  padding-top: 20px;
  text-transform: uppercase;
}
.menu-legal p + p {
  margin-top: 9px;
  font-size: var(--fs-body);
  text-transform: none;
}

body.menu-open,
body.sin-scroll { overflow: hidden; }

.stage {
  position: relative;
  height: calc(var(--stage-steps) * 100svh);
  background: var(--dark);
}

.stage-view {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.stage-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.layer-hero  { opacity: 1; }
.layer-intro { background: var(--dark); }

.stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
}

.layer-hero .stage-img { transform: scaleX(-1); }

.layer-inner {
  position: relative;
  display: grid;
  grid-template-columns: var(--stage-split) 1fr;
  align-content: start;
  height: 100%;
  padding-block: 150px 60px;
}
.layer-inner > * { grid-column: 2; }

.layer-intro .layer-inner { padding-top: 90px; }

.layer-banner .layer-inner { grid-template-columns: 1fr 1fr; }

.stage-claim {
  position: absolute;
  inset: auto 0 0 0;
  padding-bottom: 60px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--white);
}

.intro-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  font-size: var(--fs-display);
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--white);
}

.intro-text p { opacity: 0; }

.banner-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
  transform: translateY(calc((1 - var(--t, 0)) * 100svh));
}

.banner-title {
  font-family: var(--font-display);
  font-size: var(--fs-banner);
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--white);
}

.about { padding-bottom: 60px; }

.videos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  padding-block: 40px;
}

.video {
  position: relative;
  aspect-ratio: 275 / 489;
  background: var(--grey);
  overflow: hidden;
}

.video-frame { position: absolute; inset: 0; }

.video-frame { position: relative; }

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
}
.video-play img { width: 74px; height: auto; }
.video-frame.is-playing .video-play { display: none; }

.video-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--grey);
}

.video-bar {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(to top, rgb(33 33 33 / .78), rgb(33 33 33 / 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.video-frame.is-playing .video-bar { opacity: 1; pointer-events: auto; }

.vb-botones {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vb-seek {
  appearance: none;
  width: 100%;
  height: 12px;
  background: transparent;
  cursor: pointer;
}
.vb-seek:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

.vb-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right,
      var(--white) calc(var(--p, 0) * 100%),
      rgb(255 255 255 / .35) 0);
}
.vb-seek::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--white);
}
.vb-seek::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgb(255 255 255 / .35);
}
.vb-seek::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--white);
}
.vb-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
}

.video-bar button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  transition: background-color .2s;
}
.video-bar button:hover { background: rgb(255 255 255 / .18); }
.video-bar svg { width: 18px; height: 18px; }

.video-media::-webkit-media-controls,
.video-media::-webkit-media-controls-enclosure { display: none !important; }
.video-media::-moz-pip-button { display: none !important; }

.vb-max { margin-left: auto; }

.video-frame:not(.is-paused) .i-play  { display: none; }
.video-frame.is-paused       .i-pause { display: none; }
.video-frame.is-muted        .i-son   { display: none; }
.video-frame:not(.is-muted)  .i-mudo  { display: none; }
.video-frame:not(.is-max) .i-min { display: none; }
.video-frame.is-max       .i-max { display: none; }

.video-title {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 16px 23px;

  background: rgb(245 245 245 / .90);
  font-size: var(--fs-video);
  font-weight: 300;
  line-height: 1.05;
  transition: opacity .2s;
}

.video.is-playing .video-title { opacity: 0; pointer-events: none; }

.work { padding-bottom: 60px; background: var(--bone); }

.slider-nav { display: flex; padding-block: 10px; }

.slider-prev,
.slider-next {
  color: var(--arrow-on);
  transition: color .2s, transform .25s cubic-bezier(.33, 1, .68, 1);
}

.slider-prev:not(.swiper-button-disabled):hover,
.slider-next:not(.swiper-button-disabled):hover {
  color: var(--accent);
}
.slider-next:not(.swiper-button-disabled):hover { transform: translateX(5px); }
.slider-prev:not(.swiper-button-disabled):hover { transform: scaleX(-1) translateX(5px); }

.slider-prev.swiper-button-disabled,
.slider-next.swiper-button-disabled {
  color: var(--arrow-off);
  pointer-events: none;
  cursor: default;
}

.slider-nav .arrow { height: 85px; width: auto; overflow: visible; }
.slider-prev { transform: scaleX(-1); }

.slider {

  padding-block: 0 40px;
  padding-inline: max(var(--gutter), calc((100% - var(--content)) / 2));
}

.slide {
  flex: none;
  display: flex;
  width: min(900px, 88vw);
  aspect-ratio: 900 / 560;
}

.slide-media {
  position: relative;
  flex: 5;
  padding: 50px;
}
.slide-media--bordered { border: 1px solid var(--dark); }

.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.slide-text {
  position: relative;
  padding: 20px 20px 40px;
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.05;
  background: var(--white);
}

.slide-stats {
  flex: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 20px 30px;
  background: var(--accent);
  text-align: right;
}

.stat {
  padding-block: 10px;
  border-bottom: var(--rule);
}

.stat-num {
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.03em;
}

.stat-label {
  font-size: var(--fs-sm);
  font-weight: 300;
  line-height: 1.4;
}

.stat-text {
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.05;
}

.global { padding-bottom: 60px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-block: 40px;
  border-bottom: var(--rule);
}

.chips .btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.partners-empty {
  padding-block: 20px;
  font-size: var(--fs-md);
  color: var(--ink-soft);
}

.quote {
  max-width: var(--measure);
  padding-block: 40px;
  font-size: var(--fs-lead);
  line-height: 1.2;
}

.partners {
  display: flex;
  gap: 40px;
  padding-top: 20px;
  border-top: var(--rule);
}

.partners-label {
  flex: none;
  padding-block: 20px;
  padding-right: 40px;
  border-right: var(--rule);
  font-size: var(--fs-lead);
  font-weight: 300;
  text-transform: uppercase;
}

.partners-list {
  padding-block: 20px;
  font-size: 1.875rem;
  line-height: 1.25;
}

.footer {
  padding-block: 80px 90px;
  background: var(--footer-bg, var(--accent-70));
  color: var(--ink-soft);
}

.tema-somos {
  --page-bg: var(--bone);
  --footer-bg: var(--teal);
  --dot-bg: var(--teal);
}

.tema-contacto {
  --page-bg:   var(--bone);
  --footer-bg: var(--bone);
  --dot-bg:    var(--ink-soft);
  --nav-bg:    var(--bone);
}

.tema-casos {
  --page-bg:   var(--bone);
  --footer-bg: var(--peach);
}

.foot-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 30px;
  border-bottom: var(--rule);
}
.foot-top img { width: 266px; height: auto; }

.foot-logo { display: block; }

.foot-contact {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-block: 30px;
  font-size: var(--fs-md);
}
.foot-contact a { text-decoration: underline; }

.foot-address { display: flex; flex-direction: column; gap: 3px; }
.foot-address span { font-size: var(--fs-body); }

.foot-main {
  --links: 303px;
  --hueco: 281px;
  display: grid;
  grid-template-columns: var(--links) var(--hueco) 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "nav     legal tagline"
    "empresa legal tagline";
  min-height: 400px;
  border-top: var(--rule);
}

.foot-nav {
  grid-area: nav;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 30px;
  border-right: var(--rule);
  text-transform: uppercase;
}
.foot-nav ul { display: flex; flex-direction: column; gap: 10px; }

.foot-company {
  grid-area: empresa;
  padding-top: 30px;
  border-top: var(--rule);
  border-right: var(--rule);
  font-size: var(--fs-md);
  text-transform: uppercase;
}
.foot-copy {
  font-size: var(--fs-body);
  text-transform: none;
}

.foot-legal {
  grid-area: legal;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding-inline: calc((var(--hueco) - 201px) / 2);
  border-right: var(--rule);
}

.foot-tagline {
  grid-area: tagline;
  align-self: end;
  justify-self: end;
  width: 569px;
  max-width: calc(100% - 25px);
  height: auto;
}

.somos-hero {
  display: flex;
  align-items: flex-end;

  min-height: 634px;
  padding-block: 80px 90px;
  background: var(--teal);
}

.somos-videos,
.somos-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.somos-videos { padding-block: 40px; }

.somos-row {
  padding-block: 40px;
  border-top: var(--rule);
}
.somos-row--cont { border-top: 0; padding-top: 0; }

.row-head {
  background: var(--teal);
  padding: 24px 30px;
  font-size: var(--fs-row-head);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.01em;
}

.row-head--claro { background: var(--teal-claro); }

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / .92);
}
.lightbox[hidden] { display: none; }

.lightbox-slot {
  position: relative;
  height: 90svh;
  aspect-ratio: 1080 / 1920;
  max-width: 92vw;
}

.lightbox-slot .video-media { object-fit: contain; background: none; }

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
}
.lightbox-close svg { width: 24px; height: 24px; }

.hablamos {
  display: flex;
  align-items: flex-end;
  min-height: 720px;
  padding-block: 80px 90px;
}

.hablamos-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 196px;
  padding-bottom: 20px;
  color: var(--ink);
}

.hablamos-title,
.somos-claim {
  font-family: var(--font-display);

  font-weight: 400;
  font-size: var(--fs-hablamos);
  line-height: .9;
  text-transform: uppercase;
}
.hablamos-title {
  text-decoration: underline;
  text-decoration-thickness: .025em;
  text-underline-offset: .08em;
}

.hablamos-sub {
  font-size: var(--fs-hablamos-sub);
  line-height: .95;
  letter-spacing: -.01em;
}

.contacto {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 720px;
}

.contacto-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--dark);
}

.contacto-datos {
  display: flex;
  align-items: center;

  padding: 95px clamp(20px, 9.05vw, 130px);
  background: var(--dark);
  color: var(--white);
}

.contacto-texto {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  overflow-wrap: break-word;
}

.contacto-flecha {
  width: 84px;
  height: auto;
  margin: 18px;
  overflow: visible;
  color: var(--accent);
  transform: rotate(-135deg);
}

.contacto-texto > p { font-size: var(--fs-mail); color: #fffdfa; }
.contacto-texto a { text-decoration: underline; text-underline-offset: .12em; }

.contacto-dir {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-style: normal;
  font-size: 32px;
}
.contacto-dir a { font-size: 40px; }

.casos-head {
  display: flex;
  align-items: flex-end;
  min-height: 634px;
  padding-block: 80px 90px;
  background: var(--peach);
}

.casos { padding-block: 60px 90px; }

.casos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px 40px;
  padding-top: 40px;
}

.caso {
  position: relative;
  aspect-ratio: 728 / 595;
  perspective: 1600px;
  container-type: inline-size;
}
.caso-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1);
}
.caso.is-open .caso-inner { transform: rotateY(180deg); }

.caso-dorso,
.caso-frente {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.caso-dorso {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1.374cqw;
  padding: 4.121cqw;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}
.caso-dorso img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .84;
}

.caso-titulo {
  position: relative;
  padding: 4.121cqw;
  background: var(--white);
  font-weight: 500;
  font-size: 4.396cqw;
  line-height: 1.09;
  letter-spacing: -.05em;
  text-decoration: underline;
  text-underline-offset: .12em;
}
.caso-etiquetas {
  position: relative;
  padding: 2.747cqw;
  background: rgb(235 232 229 / .9);
  font-family: var(--font-display);
  font-size: 1.923cqw;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.caso-frente {
  display: flex;
  transform: rotateY(180deg);
}

.caso-foto {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 6.868cqw;
  background: var(--grey);
  overflow: hidden;
}
.caso-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter: grayscale(1);
}
.caso-texto {
  position: relative;
  width: 100%;
  padding: 2.747cqw;
  background: var(--white);
  font-size: 3.022cqw;
  line-height: 1.05;
}

.caso-cifras {
  flex: none;
  width: 42.95cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.744cqw;
  padding: 2.744cqw 4.117cqw;
  background: var(--peach);
  text-align: right;
}
.cifra {
  display: flex;
  flex-direction: column;
  gap: .686cqw;
  padding-block: 1.372cqw;
  border-bottom: 1px solid var(--ink);
}
.cifra-num {
  font-weight: 300;
  font-size: 6.587cqw;
  line-height: .95;
  letter-spacing: -.03em;
}
.cifra-eti {
  font-weight: 300;
  font-size: 1.923cqw;
  line-height: 1.4;
}

.cifra-frase {
  font-size: 3.297cqw;
  line-height: 1.05;
}

.caso-cerrar {
  display: none;
  position: absolute;
  top: 4.204cqw;
  right: 4.204cqw;
  padding: .6em 1em;
  border-radius: 100px;
  background: rgb(33 33 33 / .8);
  color: var(--white);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  cursor: pointer;
}

@media (min-width: 1440px) {
  :root {
    --fs-mail: 36px;
    --fs-hero:   164px;
    --content:  1200px;
    --gutter:    120px;
  }
}

@media (min-width: 1728px) {
  .foot-main { --hueco: 323px; }

  :root {
    --content: 1500px;
    --gutter:   114px;
    --fs-row-head: 48px;
  }
}

@media (max-width: 1279px) {
  :root { --fs-display: 32px; }
}

@media (max-width: 1023px) {
  :root {
    --fs-hablamos:     96px;
    --fs-hablamos-sub: 40px;
  }

  .casos-head { min-height: 520px; }
  .caso-titulo    { font-size: 19px; }
  .caso-etiquetas { font-size: 10px; }
  .caso-texto     { font-size: 14px; }
  .cifra-eti      { font-size: 10px; }
  .cifra-frase    { font-size: 14px; }

  .hablamos { min-height: 520px; }

  .contacto { grid-template-columns: 1fr; min-height: 0; }
  .contacto-foto { height: 720px; }

  .menu-inner {
    flex-direction: column;
    gap: 40px;
    height: auto;
    padding-bottom: 60px;
  }
  .menu-col {
    justify-content: flex-start;

    padding-top: 60px;
    padding-bottom: 40px;
    border-right: 0;
    border-bottom: var(--rule);
  }
  .menu-info { justify-content: flex-start; }

  :root {
    --fs-hero:    96px;
    --fs-banner:  96px;
    --fs-display: 32px;
    --fs-h2:      40px;
    --fs-lead:    32px;
    --fs-row-head: 32px;
    --fs-video:   16px;
    --gutter:     40px;
    --dot:        20px;
  }

  .section-head { flex-direction: column; gap: 20px; padding-top: 80px; }
  .section-label { min-height: 0; }
  .section-intro { align-self: flex-start; max-width: none; }

  .videos { grid-template-columns: repeat(2, 1fr); }

  .foot-main {
    grid-template-columns: var(--links) 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "nav     tagline"
      "legal   tagline"
      "empresa tagline";
  }
  .foot-legal {
    justify-content: flex-start;
    padding-inline: 0;
    padding-block: 30px;
    border-top: var(--rule);
  }
  .foot-tagline { max-width: calc(100% - 40px); }

  .somos-videos,
  .somos-row { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: 1 / -1; }
  .somos-hero { min-height: 520px; }

  .layer-inner { grid-template-columns: 1fr; padding-block: 130px 60px; }
  .layer-inner > * { grid-column: 1; }
  .banner-text { gap: 20px; }

  .slide { flex-direction: column; aspect-ratio: auto; }
  .slide-media { min-height: 60vw; padding: 30px; }
  .slide-stats { gap: 10px; }

  .partners { flex-direction: column; gap: 0; }
  .partners-label { padding-right: 0; border-right: 0; }
  .partners-list { padding-top: 0; font-size: var(--fs-md); }

}

@media (max-width: 767px) {
  :root {
    --fs-hero:    64px;
    --fs-banner:  64px;
    --fs-display: 28px;
    --fs-h2:      32px;
    --fs-menu:    24px;
    --fs-hablamos:     48px;
    --fs-hablamos-sub: 36px;
    --fs-mail:         20px;
    --fs-lead:    25px;
    --fs-video:   20px;
    --gutter:     20px;
  }

  .videos { grid-template-columns: 1fr; gap: 20px; }

  .somos-videos,
  .somos-row { grid-template-columns: 1fr; gap: 20px; }
  .somos-hero { min-height: 420px; padding-block: 40px 60px; }

  .nav-logo img { width: 180px; }
  .nav-toggle img { width: 34px; }

  .nav-claim { display: none; }

  .hablamos { min-height: 420px; padding-block: 80px 50px; }

  .casos-head { min-height: 420px; padding-block: 80px 50px; }
  .casos { padding-block: 40px 60px; }
  .casos-grid { gap: 10px; }

  .caso { perspective: none; }
  .caso-inner { transform: none !important; transform-style: flat; }
  .caso-dorso,
  .caso-frente { backface-visibility: visible; transform: none; }
  .caso-frente { display: none; }

  .caso-dorso { padding: 12px; gap: 4px; }
  .caso-titulo { padding: 5px; font-size: 10px; }
  .caso-etiquetas {
    align-self: stretch;
    padding: 5px;
    font-size: 7px;
  }

  .caso.is-open { grid-column: 1 / -1; aspect-ratio: auto; }
  .caso.is-open .caso-inner { height: auto; }
  .caso.is-open .caso-dorso { display: none; }

  .caso.is-open .caso-frente {
    display: flex;
    position: static;
    flex-direction: column;
    animation: caso-despliega .35s cubic-bezier(.33, 1, .68, 1) both;
  }
  @keyframes caso-despliega {
    from { opacity: 0; transform: translateY(14px); }
  }
  .caso.is-open .caso-foto {
    min-height: 300px;

    padding: 60px 20px 20px;
    align-items: center;
  }
  .caso.is-open .caso-texto { padding: 14px 14px 22px; font-size: 16px; }
  .caso.is-open .caso-cifras {
    width: 100%;
    gap: 14px;
    padding: 26px 20px;
  }
  .caso.is-open .cifra { gap: 4px; padding-block: 8px; }
  .caso.is-open .cifra-num { font-size: 40px; }
  .caso.is-open .cifra-eti { font-size: 13px; }
  .caso.is-open .cifra-frase { font-size: 18px; }
  .caso.is-open .caso-cerrar { display: block; top: 16px; right: 16px; }
  .contacto-foto { height: 420px; }
  .contacto-datos { padding-block: 20px 60px; }

  .foot-contact { flex-direction: column; gap: 20px; }

  .foot-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "legal"
      "empresa"
      "tagline";
    min-height: 0;
  }
  .foot-nav,
  .foot-legal,
  .foot-company { border-right: 0; }
  .foot-tagline {
    justify-self: start;
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
  }

  .chips { gap: 12px; }
  .slide { width: 88vw; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

  .slider-next:not(.swiper-button-disabled):hover { transform: none; }
  .slider-prev:not(.swiper-button-disabled):hover { transform: scaleX(-1); }
}
