/**
 * Mallorkinas — Caso de estudio UX/UI.
 * Tipografía Viruca + página clara (fondo blanco) + acentos de marca.
 * @package Viruca
 */

:root {
  --mk-bg: #FFFFFF;
  --mk-surface: #F7F5F2;
  --mk-surface-2: #EFEBE6;
  --mk-ink: #0A0A0A;
  --mk-muted: #77736B;
  --mk-muted-light: #3F3D38;
  --mk-line: rgba(10, 10, 10, 0.10);
  --mk-brand: #71154F;
  --mk-warm: #C59D73;
  --mk-accent: #71154F;
  --mk-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mk-body: 'DM Sans', system-ui, sans-serif;
  --mk-mono: 'JetBrains Mono', monospace;
  --mk-max: 1200px;
  --mk-pad: clamp(20px, 5vw, 80px);
  --mk-ease: cubic-bezier(.16, .8, .28, 1);
  --mk-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body.mk-case-study {
  margin: 0;
  font-family: var(--mk-body);
  font-weight: 400;
  color: var(--mk-muted-light);
  background: var(--mk-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

.mk-case-study h1,
.mk-case-study h2,
.mk-case-study h3 {
  margin: 0;
  font-family: var(--mk-display);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--mk-ink);
}
.mk-case-study p { margin: 0; }
.mk-case-study img,
.mk-case-study video { max-width: 100%; display: block; height: auto; }
.mk-case-study a { color: inherit; text-decoration: none; }
.mk-case-study figure { margin: 0; }

.mk-case-study .wrap {
  width: 100%;
  max-width: var(--mk-max);
  margin: 0 auto;
  padding: 0 var(--mk-pad);
  min-width: 0;
}

.mk-case-study a:focus-visible,
.mk-case-study button:focus-visible {
  outline: 2px solid var(--mk-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reveal */
.mk-case-study .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--mk-ease), transform .8s var(--mk-ease);
}
.mk-case-study .reveal.in { opacity: 1; transform: translateY(0); }

/* Nav */
.mk-case-study .mk-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--mk-pad);
  background: linear-gradient(to bottom, rgba(255, 255, 255, .94), rgba(255, 255, 255, 0));
  color: var(--mk-ink);
  font-size: 13px;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.mk-case-study .mk-nav.scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  padding: 12px var(--mk-pad);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
.mk-case-study .nav-left {
  display: flex; align-items: center; flex-shrink: 0; color: var(--mk-ink);
}
.mk-case-study .nav-left .v-logo-svg,
.mk-case-study .nav-left .mk-nav__logo {
  height: 22px; width: auto; max-width: 120px; display: block;
  filter: invert(1);
}
.mk-case-study .nav-right {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: nowrap; justify-content: flex-end; min-width: 0;
}
.mk-case-study .nav-right .nav-label {
  display: none; opacity: .7; white-space: nowrap;
  font-family: var(--mk-mono); font-size: 11px; letter-spacing: .06em;
  color: var(--mk-muted);
}
@media (min-width: 900px) {
  .mk-case-study .nav-right .nav-label { display: inline; }
}
.mk-case-study .nav-back {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(10, 10, 10, .18);
  border-radius: 100px;
  font-family: var(--mk-body);
  font-size: 13px;
  color: var(--mk-ink);
  transition: border-color .25s, background .25s;
  white-space: nowrap;
}
.mk-case-study .nav-back:hover {
  border-color: var(--mk-ink);
  background: rgba(10, 10, 10, .04);
}

.mk-controls { display: flex; align-items: center; gap: 10px; }
.mk-lang-switcher { display: flex; align-items: center; gap: 6px; }
.mk-lang-btn {
  background: none; border: none; cursor: pointer; padding: 4px 2px;
  color: rgba(10, 10, 10, .35);
  font-family: var(--mk-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .04em; transition: color .15s ease;
}
.mk-lang-btn:hover { color: var(--mk-ink); }
.mk-lang-btn.is-active { color: var(--mk-brand); }
.mk-lang-sep { color: rgba(10, 10, 10, .25); font-size: 12px; }

@media (max-width: 520px) {
  .mk-case-study .mk-controls { display: none; }
  .mk-case-study .nav-back { padding: 7px 12px; font-size: 12px; }
}

/* Eyebrow / num */
.mk-case-study .num,
.mk-case-study .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mk-mono);
  font-size: 11px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mk-muted);
}
.mk-case-study .num::before,
.mk-case-study .kicker::before {
  content: ''; width: 18px; height: 2px;
  background: var(--mk-brand); opacity: .8;
}

/* Hero */
.mk-case-study .hero {
  position: relative;
  padding: 140px 0 0;
  background: var(--mk-bg);
  overflow: hidden;
}
.mk-case-study .hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(113, 21, 79, .08), transparent 42%),
    radial-gradient(circle at 88% 70%, rgba(197, 157, 115, .10), transparent 40%);
  pointer-events: none;
}
.mk-case-study .hero-inner { position: relative; z-index: 2; }
.mk-case-study .hero-title {
  font-size: clamp(56px, 10vw, 140px);
  font-weight: 600;
  line-height: .88;
  letter-spacing: -.06em;
  margin: 20px 0 0;
  max-width: 14ch;
  color: var(--mk-ink);
}
.mk-case-study .hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  align-items: end;
  margin-top: 48px;
}
.mk-case-study .lead {
  font-family: var(--mk-display);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--mk-ink);
  max-width: 34em;
}
.mk-case-study .meta {
  border-top: 1px solid var(--mk-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  padding-top: 16px;
  font-size: 14px;
  color: var(--mk-muted-light);
}
.mk-case-study .meta b {
  display: block;
  font-family: var(--mk-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mk-muted);
  margin-bottom: 6px;
}
.mk-case-study .hero-logo {
  margin: 22px 0 18px;
  opacity: .95;
}
.mk-case-study .digital .body:first-child {
  margin-top: 0;
}
.mk-case-study .mk-hero-logo {
  height: 56px;
  width: auto;
  display: block;
}
.mk-case-study .mk-hero-logo path { fill: var(--mk-brand); }
.mk-case-study .hero-image {
  margin-top: 64px;
  background: var(--mk-surface-2);
  overflow: hidden;
}
.mk-case-study .hero-image img,
.mk-case-study .hero-image video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 53%;
}

/* Sections */
.mk-case-study .sec {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--mk-bg);
}
.mk-case-study .sec--tight { padding-top: 24px; }
.mk-case-study .sec--dark {
  background: var(--mk-surface);
}
.mk-case-study .sec-head {
  display: grid;
  grid-template-columns: .75fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}
.mk-case-study .sec-head h2,
.mk-case-study .role h2,
.mk-case-study .split h2 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.02;
  margin-top: 16px;
}
.mk-case-study .body {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: var(--mk-muted-light);
  max-width: 38em;
  margin-top: 20px;
}
.mk-case-study .body-small {
  font-size: 14px;
  color: var(--mk-muted);
  margin-top: 16px;
  max-width: 36em;
}
.mk-case-study .note {
  color: var(--mk-muted);
  border-left: 2px solid var(--mk-warm);
  padding-left: 18px;
  margin-top: 24px;
  font-size: 14px;
  max-width: 38em;
  line-height: 1.55;
}

/* Intro grid */
.mk-case-study .intro-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}
.mk-case-study .intro-grid .media {
  overflow: hidden;
  border-radius: var(--mk-radius);
  background: var(--mk-surface-2);
}
.mk-case-study .intro-grid img {
  width: 100%;
  height: 640px;
  object-fit: cover;
}
.mk-case-study .intro-grid figcaption {
  font-family: var(--mk-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mk-muted);
  margin-top: 12px;
}

/* Steps */
.mk-case-study .steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 56px;
}
.mk-case-study .steps img {
  aspect-ratio: 1.32 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  width: 100%;
  box-shadow: 0 1px 0 rgba(10, 10, 10, .04);
}
.mk-case-study .steps figcaption {
  font-family: var(--mk-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mk-muted);
  margin-top: 10px;
}

/* Role / UX */
.mk-case-study .role {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 64px;
  align-items: start;
}
.mk-case-study .role-card {
  border-top: 1px solid var(--mk-line);
  padding-top: 18px;
}
.mk-case-study .role-card + .role-card { margin-top: 28px; }
.mk-case-study .role-card .label {
  font-family: var(--mk-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mk-brand);
  margin-bottom: 10px;
}
.mk-case-study .role-card p {
  font-family: var(--mk-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--mk-ink);
  max-width: 32em;
}

/* Split */
.mk-case-study .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.mk-case-study .split .copy { padding-right: clamp(0px, 3vw, 40px); }
.mk-case-study .split .visual {
  background: var(--mk-surface);
  border-radius: var(--mk-radius);
  padding: 24px;
}
.mk-case-study .split .visual img {
  max-height: 760px;
  width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

/* Digital */
.mk-case-study .digital {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.mk-case-study .digital--ecommerce .digital-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: transparent;
  min-height: 0;
  aspect-ratio: auto;
  max-width: none;
  padding: 0;
}
.mk-case-study .digital--ecommerce .digital-image video {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
}
.mk-case-study .digital-copy .num {
  margin-bottom: 14px;
}
.mk-case-study .digital-copy h2 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.02;
  margin: 0 0 20px;
}
.mk-case-study .digital-image {
  background: transparent;
  min-height: 0;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
}
.mk-case-study .digital-image video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.mk-case-study .statement {
  font-family: var(--mk-display);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--mk-ink);
  max-width: 18ch;
  margin: 18px 0 0;
}
.mk-case-study .feature-list {
  display: grid;
  gap: 0;
  margin-top: 40px;
}
.mk-case-study .feature {
  border-top: 1px solid var(--mk-line);
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}
.mk-case-study .feature .name {
  font-family: var(--mk-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mk-muted);
}
.mk-case-study .feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mk-muted-light);
  max-width: 36em;
}

/* Gallery */
.mk-case-study .gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mk-case-study .gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  background: var(--mk-surface);
}
.mk-case-study .gallery .wide { grid-column: span 2; }
.mk-case-study .gallery .wide img { aspect-ratio: 16 / 10; }

/* Statement band */
.mk-case-study .statement-wrap {
  border-top: 1px solid var(--mk-line);
  border-bottom: 1px solid var(--mk-line);
  padding: clamp(72px, 9vw, 110px) 0;
  background: var(--mk-bg);
}
.mk-case-study .statement-wrap .statement {
  max-width: 18ch;
  margin-top: 20px;
}

/* Footer */
.mk-case-study .mk-footer {
  padding: 80px 0 28px;
  background: var(--mk-bg);
}
.mk-case-study .foot-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  padding-bottom: 64px;
}
.mk-case-study .foot-top h3 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: .95;
  margin-top: 16px;
  color: var(--mk-ink);
}
.mk-case-study .btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(10, 10, 10, .28);
  padding: 14px 18px;
  font-family: var(--mk-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 100px;
  color: var(--mk-ink);
  transition: background .25s, border-color .25s, color .25s;
}
.mk-case-study .btn:hover {
  background: var(--mk-brand);
  border-color: var(--mk-brand);
  color: #fff;
}
.mk-case-study .ownership {
  border-top: 1px solid var(--mk-line);
  padding: 18px 0 4px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--mk-muted);
  font-size: 12px;
}
.mk-case-study .ownership > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mk-case-study .ownership strong {
  color: var(--mk-ink);
  font-family: var(--mk-mono);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
}
.mk-case-study .footer-link {
  font-family: var(--mk-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mk-muted);
  border-bottom: 1px solid rgba(10, 10, 10, .2);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.mk-case-study .footer-link:hover {
  color: var(--mk-brand);
  border-color: var(--mk-brand);
}
.mk-case-study .statement-wrap .body {
  margin-top: 24px;
  max-width: 42em;
}
.mk-case-study .digital .body {
  margin-top: 18px;
}

/* Responsive */
@media (max-width: 950px) {
  .mk-case-study .hero-grid,
  .mk-case-study .sec-head,
  .mk-case-study .role,
  .mk-case-study .split,
  .mk-case-study .digital {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .mk-case-study .intro-grid { grid-template-columns: 1fr; }
  .mk-case-study .intro-grid img { height: auto; aspect-ratio: 4 / 5; }
  .mk-case-study .steps { grid-template-columns: repeat(2, 1fr); }
  .mk-case-study .gallery { grid-template-columns: repeat(2, 1fr); }
  .mk-case-study .gallery .wide { grid-column: span 2; }
  .mk-case-study .digital-image {
    max-width: 420px;
    margin: 0 auto;
  }
  .mk-case-study .foot-top { display: block; }
  .mk-case-study .foot-top .btn { margin-top: 28px; }
}

@media (max-width: 580px) {
  .mk-case-study .hero { padding-top: 110px; }
  .mk-case-study .hero-image img,
  .mk-case-study .hero-image video { aspect-ratio: 4 / 5; }
  .mk-case-study .sec { padding: 72px 0; }
  .mk-case-study .steps,
  .mk-case-study .gallery { grid-template-columns: 1fr; }
  .mk-case-study .gallery .wide { grid-column: auto; }
  .mk-case-study .gallery .wide img { aspect-ratio: 4 / 5; }
  .mk-case-study .digital-image {
    max-width: 100%;
  }
  .mk-case-study .feature { grid-template-columns: 1fr; gap: 8px; }
  .mk-case-study .ownership { display: flex; flex-direction: column; align-items: flex-start; }
  .mk-case-study .ownership span { display: block; margin-top: 0; }
  .mk-case-study .mk-hero-logo { height: 40px; }
}
