/* ===========================
   mystudio — design system v2
   Inter only · pure black/white
   =========================== */

:root {
  /* Color tokens — mono blanco/negro */
  --bg: #FAFAF8;
  --fg: #0A0A0A;
  --muted: #6B6B68;
  --hairline: rgba(10, 10, 10, 0.12);
  --hairline-strong: rgba(10, 10, 10, 0.24);

  /* Type — Inter family only */
  --ff-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ff-label: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Sizes — fluid */
  --fs-hero: clamp(64px, 11vw, 200px);
  --fs-display-1: clamp(48px, 7vw, 120px);
  --fs-display-2: clamp(36px, 5vw, 80px);
  --fs-display-3: clamp(28px, 3.6vw, 56px);
  --fs-eyebrow: 11px;
  --fs-body: 16px;
  --fs-body-lg: 18px;
  --fs-small: 13px;

  /* Spacing rhythm */
  --gutter: clamp(20px, 3vw, 48px);
  --section-py: clamp(80px, 12vw, 200px);

  /* Motion */
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* ===========================
   Layout primitives
   =========================== */

.shell {
  width: 100%;
  padding-inline: var(--gutter);
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.eyebrow {
  font-family: var(--ff-label);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.6;
}

.eyebrow.bare::before {
  display: none;
}

.display {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-style: normal;
}

.display .it {
  font-style: italic;
  font-weight: 500;
}

.kicker {
  font-family: var(--ff-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.body-lg {
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  max-width: 56ch;
}

/* ===========================
   Nav
   =========================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav__brand {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav__links a {
  font-family: var(--ff-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: opacity 0.3s var(--ease);
}

.nav__links a:hover {
  opacity: 0.55;
}

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
}

.nav__meta {
  font-family: var(--ff-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav__dot {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  display: inline-block;
  transition: background 0.4s var(--ease);
}

.nav__dot.is-open {
  background: #2BA84A;
  animation: pulse 2.4s ease-in-out infinite;
}

.nav__dot.is-closed {
  background: #8A8A86;
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@media (max-width: 760px) {
  .nav__meta { display: none; }
  .nav__links { gap: 18px; }
}

/* ===========================
   Sections
   =========================== */

section {
  padding-block: var(--section-py);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.section-head .num {
  font-family: var(--ff-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head h2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-display-2);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section-head h2 .it {
  font-style: italic;
  font-weight: 500;
}

@media (max-width: 760px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===========================
   Hero — Split 50/50
   =========================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.hero__left {
  padding: 132px 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  border-right: 1px solid var(--hairline);
  background: var(--bg);
}

.hero__right {
  position: relative;
  overflow: hidden;
  background: var(--hairline);
}

.hero__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__corner {
  position: absolute;
  bottom: 22px;
  left: 22px;
  font-family: var(--ff-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 12px;
}

.hero__statement {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(44px, 6.8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.hero__statement .it {
  font-style: italic;
  font-weight: 500;
}

.hero__subtitle {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 24ch;
}

.hero__subtitle .it {
  font-style: italic;
  font-weight: 500;
  color: var(--fg);
}

.hero__lede {
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  max-width: 36ch;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.hero__stats {
  text-align: right;
  font-family: var(--ff-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.9;
}

/* Strip de metadata debajo del hero */
.hero-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gutter);
  padding: 30px var(--gutter);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}

.hero-strip .col h3 {
  font-family: var(--ff-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-strip .col p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 34ch;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .hero__left {
    padding: 100px 24px 36px;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }
  .hero__right {
    aspect-ratio: 4 / 5;
    max-height: 70vh;
  }
  .hero-strip {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }
}

/* Marquee strip */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 60px;
  font-family: var(--ff-display);
  font-style: normal;
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  animation: marquee 90s linear infinite;
  padding-left: 60px;
}

.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 60px;
}

.marquee__track span::after {
  content: "/";
  font-style: normal;
  font-weight: 400;
  font-size: 0.85em;
  opacity: 0.35;
  margin-left: 60px;
}

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

/* ===========================
   Showcase / tiles
   =========================== */

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--hairline);
}

.tile__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.tile:hover .tile__img {
  transform: scale(1.03);
}

.tile__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  font-family: var(--ff-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tile__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--fg);
}

/* Column spans */
.span-3 { grid-column-end: span 3; }
.span-4 { grid-column-end: span 4; }
.span-5 { grid-column-end: span 5; }
.span-6 { grid-column-end: span 6; }
.span-7 { grid-column-end: span 7; }
.span-8 { grid-column-end: span 8; }
.span-12 { grid-column-end: span 12; }

.start-2 { grid-column-start: 2; }
.start-3 { grid-column-start: 3; }
.start-4 { grid-column-start: 4; }
.start-5 { grid-column-start: 5; }
.start-6 { grid-column-start: 6; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }
.start-9 { grid-column-start: 9; }

@media (max-width: 900px) {
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 6; }
  .start-2, .start-3, .start-4, .start-5, .start-6, .start-7, .start-8, .start-9 {
    grid-column-start: auto;
  }
}

@media (max-width: 560px) {
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: 1 / -1; }
}

/* ===========================
   Services list
   =========================== */

.services {
  border-top: 1px solid var(--hairline);
}

.service {
  display: grid;
  grid-template-columns: 1fr 1.4fr 80px;
  gap: var(--gutter);
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.service__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.service__title .it {
  font-style: italic;
  font-weight: 500;
}

.service__desc {
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--fg);
  max-width: 50ch;
  padding-top: 14px;
}

.service__arrow {
  align-self: center;
  font-family: var(--ff-display);
  font-size: 28px;
  text-align: right;
  transition: transform 0.4s var(--ease-out);
}

.service:hover .service__arrow { transform: translateX(8px); }

@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; gap: 14px; }
  .service__desc { padding-top: 0; }
  .service__arrow { display: none; }
}

/* ===========================
   BTS / wide image
   =========================== */

.full-bleed { margin-inline: calc(-1 * var(--gutter)); }

.bts { position: relative; }

.bts__img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.bts__caption {
  display: flex;
  justify-content: space-between;
  padding: 16px var(--gutter) 0;
  font-family: var(--ff-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===========================
   Hablemos CTA
   =========================== */

.cta {
  border-top: 1px solid var(--hairline);
  padding: 120px var(--gutter) 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: end;
}

.cta__big {
  font-family: var(--ff-display);
  font-size: clamp(80px, 16vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-style: italic;
  font-weight: 500;
}

.cta__big a {
  display: block;
  position: relative;
}

.cta__big a::after {
  content: "→";
  font-style: normal;
  font-weight: 500;
  font-size: 0.42em;
  display: inline-block;
  margin-left: 0.2em;
  transform: translateY(-0.6em);
  transition: transform 0.5s var(--ease-out);
}

.cta__big a:hover::after { transform: translateY(-0.6em) translateX(0.2em); }

.cta__side {
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cta__side .label {
  font-family: var(--ff-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}

.cta__side .val {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

@media (max-width: 900px) {
  .cta { grid-template-columns: 1fr; }
  .cta__side { padding-bottom: 0; }
}

/* ===========================
   Footer
   =========================== */

footer.foot {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

footer.foot .links { display: flex; gap: 22px; }

footer.foot a:hover { color: var(--fg); }

@media (max-width: 700px) {
  footer.foot {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ===========================
   Page heading
   =========================== */

.page-head {
  padding: 160px var(--gutter) 40px;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gutter);
  align-items: end;
}

.page-head h1 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.page-head h1 .it {
  font-style: italic;
  font-weight: 500;
}

.page-head .lede {
  font-size: var(--fs-body-lg);
  max-width: 50ch;
  padding-bottom: 18px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .page-head { grid-template-columns: 1fr; }
}

/* ===========================
   Scroll reveal
   =========================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

/* ===========================
   Utility
   =========================== */

.divider {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

.tag {
  font-family: var(--ff-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-block;
}

/* ===========================
   Hero CTA pill
   =========================== */

.hero__cta {
  font-family: var(--ff-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--fg);
  width: max-content;
  transition: gap 0.3s var(--ease);
}

.hero__cta::after {
  content: "→";
  font-size: 14px;
}

.hero__cta:hover {
  gap: 14px;
}

/* ===========================
   Testimonios
   =========================== */

.testimonios {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gutter);
}

.testimonios blockquote {
  border-left: 1px solid var(--hairline-strong);
  padding-left: 22px;
}

.testimonios blockquote p {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.testimonios blockquote cite {
  font-family: var(--ff-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

@media (max-width: 900px) {
  .testimonios { grid-template-columns: 1fr; gap: 40px; }
}

/* ===========================
   Clientes / Trabajamos con
   =========================== */

.clientes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 3vw, 40px) clamp(40px, 6vw, 80px);
  align-items: center;
  padding: 40px 0;
}

.clientes__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.clientes__item img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.25;
  transition: opacity 0.3s var(--ease);
}

.clientes__item:hover img {
  opacity: 0.6;
}

.clientes__mas {
  text-align: center;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  font-family: var(--ff-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 900px) {
  .clientes { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .clientes { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================
   Mobile refinements
   =========================== */

@media (max-width: 760px) {
  :root {
    --section-py: clamp(60px, 12vw, 120px);
    --gutter: 20px;
  }

  .hero__statement {
    font-size: clamp(48px, 12vw, 88px);
    max-width: 12ch;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero__stats { text-align: left; }

  .page-head {
    padding-top: 110px;
    padding-bottom: 28px;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .cta {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .cta__big {
    font-size: clamp(72px, 18vw, 140px);
  }

  .service {
    padding: 28px 0;
  }

  .service__title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .service__desc {
    font-size: 16px;
    padding-top: 8px;
  }

  .bts__img {
    aspect-ratio: 4 / 3;
  }

  .bts__caption {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 14px 16px;
  }
  .nav__brand {
    font-size: 16px;
  }
  .nav__links {
    gap: 14px;
  }
  .nav__links a {
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .marquee__track {
    font-size: clamp(20px, 6vw, 30px);
    gap: 36px;
    padding-left: 36px;
  }
  .marquee__track span {
    gap: 36px;
  }
  .marquee__track span::after {
    margin-left: 36px;
  }
}
