@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 650;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-SemiBoldItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #07111f;
  --surface: #101f32;
  --surface-2: #0d1b2c;
  --ring: rgba(255, 255, 255, 0.12);
  --text: #f7fafc;
  --muted: #b8c3ce;
  --brand: #8fc85c;
  --brand-700: #8fc85c;
  --nav-bg: rgba(12, 24, 38, 0.72);
  --nav-border: rgba(255, 255, 255, 0.12);
  --nav-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --nav-pill-bg: rgba(255, 255, 255, 0.08);
  --page-bg: var(--bg);
  --header-h: 118px;
  --z-nav: 9999;
}

:root[data-theme="light"] {
  --bg: #eef2f2;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ring: rgba(16, 31, 50, 0.1);
  --text: #111927;
  --muted: #66717e;
  --brand: #8fc85c;
  --brand-700: #8fc85c;
  --nav-bg: rgba(248, 250, 251, 0.72);
  --nav-border: rgba(255, 255, 255, 0.76);
  --nav-shadow: 0 13px 35px rgba(31, 43, 55, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --nav-pill-bg: rgba(255, 255, 255, 0.62);
}

@media (max-width: 767px) {
  :root {
    --header-h: 98px;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

#bs-page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--page-bg);
}

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

.bs-navbar {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  width: 100%;
  pointer-events: none;
}

.bs-nav-spacer {
  width: 100%;
  height: var(--header-h);
}

.bs-nav-inner {
  width: min(calc(100% - 48px), 1240px);
  min-height: 78px;
  margin: 0 auto;
  padding: 11px 13px 11px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  background: var(--nav-bg);
  box-shadow: var(--nav-shadow);
  pointer-events: auto;
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
}

.brand-group {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-group a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 212px;
  max-width: 40vw;
  height: auto;
  display: block;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: var(--nav-pill-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-link.is-active::before {
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(143, 200, 92, 0.75);
  content: "";
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.wa-btn,
.bs-mobile-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  background: #101f32;
  color: #ffffff;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wa-btn {
  min-height: 54px;
  padding: 0 25px;
  box-shadow: 0 12px 28px rgba(16, 31, 50, 0.18);
  font-size: 14px;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.wa-btn:hover {
  background: #172b43;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(16, 31, 50, 0.22);
}

.arrow,
.bs-mobile-wa .arrow {
  color: var(--brand);
}

.theme-toggle {
  position: relative;
  width: 92px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(11, 20, 33, 0.96), rgba(22, 38, 58, 0.96));
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 22px rgba(16, 31, 50, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle .theme-icon {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .theme-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.18) 58%, rgba(255, 255, 255, 0.08) 100%), linear-gradient(180deg, #f2f4f3, #cfd5d4);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.theme-toggle.is-dark .theme-thumb {
  transform: translateX(42px);
}

.theme-toggle.is-light .theme-icon.sun,
.theme-toggle.is-dark .theme-icon.moon {
  color: #172233;
  opacity: 1;
}

.theme-toggle.is-light .theme-icon.moon,
.theme-toggle.is-dark .theme-icon.sun {
  color: rgba(255, 255, 255, 0.72);
  opacity: .86;
}

:root[data-theme="dark"] .theme-toggle .theme-thumb {
  transform: translateX(42px);
}

:root[data-theme="light"] .theme-toggle .theme-icon.sun,
:root[data-theme="dark"] .theme-toggle .theme-icon.moon {
  color: #172233;
  opacity: 1;
}

:root[data-theme="light"] .theme-toggle .theme-icon.moon,
:root[data-theme="dark"] .theme-toggle .theme-icon.sun {
  color: rgba(255, 255, 255, 0.72);
  opacity: .86;
}

.mobile-btn {
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(16, 31, 50, 0.08);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.mobile-btn span:not(.sr-only) {
  width: 16px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-btn.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-btn.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bs-mobile-panel {
  width: min(calc(100% - 48px), 1200px);
  margin: 10px auto 0;
  display: none;
  overflow: hidden;
  border: 1px solid var(--nav-border);
  border-radius: 28px;
  background: var(--nav-bg);
  box-shadow: var(--nav-shadow);
  pointer-events: auto;
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
}

.bs-mobile-panel.is-open {
  display: block;
}

.bs-mobile-panel-inner {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.bs-mobile-panel .nav-link {
  min-height: 46px;
  justify-content: flex-start;
  padding: 0 16px;
  font-size: 13px;
}

.bs-mobile-wa {
  min-height: 48px;
  margin-top: 4px;
  padding: 0 18px;
  font-size: 13px;
}

.bs-heroX {
  --hero-text: var(--text, #f7fafc);
  --hero-muted: var(--muted, #b8c3ce);
  --hero-brand: var(--brand, #8fc85c);
  --hero-brand-strong: var(--brand-700, #8fc85c);
  --hero-line: var(--ring, rgba(255, 255, 255, .12));
  --hero-dark: #101f32;
  --hero-dark-2: #0d1a2a;
  --hero-view: calc(100svh - var(--header-h, 0px));
  color: var(--hero-text);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.bs-heroX section {
  position: relative;
  min-height: clamp(520px, var(--hero-view), 860px);
  display: flex;
  align-items: center;
  padding: clamp(44px, 7svh, 96px) 0;
}

.bs-hero-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 56px);
  position: relative;
  z-index: 1;
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(34px, 6vw, 92px);
}

.hero-image {
  flex: 0 0 clamp(340px, 36vw, 500px);
  height: clamp(590px, 82svh, 820px);
  max-height: calc(var(--hero-view) - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 0;
}

.hero-image img {
  width: auto;
  max-width: min(58vw, 820px);
  height: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  transform: translateX(-4%);
  transform-origin: center;
  filter: contrast(1.04) brightness(1.01);
}

.hero-image .hero-photo {
  display: none;
}

:root[data-theme="dark"] .hero-image .hero-photo-dark,
:root[data-theme="light"] .hero-image .hero-photo-light {
  display: block;
}

.hero-text {
  flex: 1 1 0;
  max-width: 720px;
  min-width: 0;
}

.name {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: -.045em;
  font-size: clamp(3.1rem, 5.2vw, 5.6rem);
  line-height: .96;
  color: var(--hero-text);
  text-wrap: balance;
  white-space: nowrap;
}

.name span {
  display: inline;
}

.name .hello {
  font-weight: 300;
  opacity: .92;
}

.name .welcome {
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  font-style: normal;
  font-weight: 900;
  letter-spacing: -.07em;
  margin-left: .12em;
}

.role {
  margin-top: 20px;
  min-height: 1px;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  color: var(--hero-brand);
}

.lead {
  margin-top: 24px;
  max-width: 54ch;
  color: var(--hero-muted);
  font-size: clamp(1.02rem, 1.22vw, 1.18rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.lead strong {
  color: var(--hero-text);
  font-weight: 700;
}

.lead .accent {
  color: var(--hero-brand);
  font-weight: 750;
}

.cta {
  margin-top: 36px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 9px 8px 26px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: linear-gradient(150deg, #1b2d43, #0d1a2a);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 31, 50, .24), inset 0 1px 0 rgba(255, 255, 255, .13);
  font-size: 14px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(150deg, #223751, #101f32);
}

.cta .cta-arrow {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #8fc85c;
  color: #0b0f14;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 8px 18px rgba(143, 200, 92, .25);
  font-size: 17px;
  line-height: 1;
  font-weight: 850;
}

.clientmarq {
  width: min(720px, 100%);
  margin-top: 34px;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
}

.clientmarq::before,
.clientmarq::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 46px;
  pointer-events: none;
}

.clientmarq::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.clientmarq::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.logo-marq {
  position: relative;
  overflow: hidden;
  min-height: 76px;
  display: flex;
  align-items: center;
}

.logo-track {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  will-change: transform;
  animation: bs-logo-marq-left 52s linear infinite;
}

.logo-marq.reverse .logo-track {
  animation-name: bs-logo-marq-right;
  animation-duration: 56s;
}

@keyframes bs-logo-marq-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes bs-logo-marq-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--slot, 190px);
  height: 76px;
  flex: 0 0 auto;
  opacity: .68;
  transition: opacity 180ms ease, transform 180ms ease;
}

.client-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.client-logo img {
  max-width: var(--logo-w, 168px);
  max-height: var(--logo-h, 54px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: none;
  transform: scale(var(--logo-scale, 1));
  transform-origin: center;
}

.client-logo.logo-kosmosis { --slot: 222px; --logo-w: 202px; --logo-h: 54px; --logo-scale: 1; }
.client-logo.logo-sdlv { --slot: 390px; --logo-w: 350px; --logo-h: 54px; --logo-scale: 1; }
.client-logo.logo-gs { --slot: 330px; --logo-w: 296px; --logo-h: 54px; --logo-scale: 1; }
.client-logo.logo-fabian { --slot: 290px; --logo-w: 260px; --logo-h: 54px; --logo-scale: 1; }
.client-logo.logo-auria { --slot: 250px; --logo-w: 192px; --logo-h: 72px; --logo-scale: 2.05; }
.client-logo.logo-angeles { --slot: 296px; --logo-w: 266px; --logo-h: 54px; --logo-scale: 1; }
.client-logo.logo-comunica { --slot: 318px; --logo-w: 286px; --logo-h: 54px; --logo-scale: 1; }
.client-logo.logo-fotomaton { --slot: 214px; --logo-w: 176px; --logo-h: 70px; --logo-scale: 1.22; }

:root[data-theme="dark"] .client-logo .logo-dark,
:root[data-theme="light"] .client-logo .logo-light {
  display: block;
}

.logo-spacer {
  width: 38px;
  flex: 0 0 auto;
}

.clientmarq:hover .logo-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .bs-nav-inner {
    width: min(calc(100% - 28px), 1200px);
    min-height: 68px;
    padding: 8px 9px 8px 19px;
  }

  .brand-logo {
    width: 168px;
    max-width: 52vw;
  }

  .nav-links,
  .nav-right .wa-btn {
    display: none;
  }

  .mobile-btn {
    display: inline-flex;
    width: 48px;
    height: 48px;
  }

  .theme-toggle {
    width: 86px;
    height: 48px;
  }

  .theme-toggle .theme-icon {
    width: 43px;
    height: 44px;
  }

  .theme-toggle .theme-thumb {
    width: 40px;
    height: 40px;
  }

  .theme-toggle.is-dark .theme-thumb {
    transform: translateX(38px);
  }

  .bs-mobile-panel {
    width: min(calc(100% - 28px), 1200px);
  }
}

@media (min-width: 981px) and (max-height: 760px) {
  .bs-heroX section {
    min-height: var(--hero-view);
    padding: clamp(18px, 3.2svh, 34px) 0;
  }

  .hero-flex {
    gap: clamp(28px, 4.5vw, 64px);
  }

  .hero-image {
    flex-basis: clamp(315px, 33vw, 450px);
    height: clamp(510px, 76svh, 650px);
    max-height: calc(var(--hero-view) - 48px);
  }

  .hero-image img {
    max-width: min(54vw, 720px);
  }

  .name {
    font-size: clamp(2.8rem, 4.7vw, 4.8rem);
    line-height: .94;
  }

  .lead {
    margin-top: 18px;
    font-size: clamp(.96rem, 1.08vw, 1.08rem);
    line-height: 1.5;
  }

  .cta {
    margin-top: 24px;
    min-height: 52px;
    padding-left: 22px;
  }

  .cta .cta-arrow {
    width: 36px;
    height: 36px;
  }

  .clientmarq {
    margin-top: 22px;
    gap: 4px;
  }

  .logo-marq {
    min-height: 58px;
  }

  .client-logo {
    height: 58px;
  }

  .client-logo img {
    max-width: calc(var(--logo-w, 168px) * .82);
    max-height: calc(var(--logo-h, 54px) * .82);
  }
}

@media (max-width: 980px) {
  .bs-heroX section {
    min-height: auto;
    padding: 42px 0 72px;
  }

  .hero-flex {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .hero-image {
    width: 100%;
    height: clamp(460px, 58svh, 650px);
    max-height: 650px;
    flex: 0 0 auto;
    order: 1;
    margin: 0 auto;
    overflow: hidden;
  }

  .hero-text {
    width: 100%;
    max-width: 760px;
    flex: 0 0 auto;
    order: 2;
    margin: 0 auto;
  }

  .hero-image img {
    width: min(132vw, 760px);
    max-width: 760px;
    height: auto;
    max-height: 100%;
    transform: none;
    opacity: .98;
  }

  .name {
    font-size: clamp(2.25rem, 10vw, 4.8rem);
    line-height: .96;
    white-space: normal;
  }

  .lead {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 4vw, 1.12rem);
    line-height: 1.62;
  }

  .cta {
    max-width: 100%;
    min-height: 56px;
    padding-left: 22px;
    margin-top: 30px;
  }

  .cta .cta-arrow {
    width: 38px;
    height: 38px;
  }

  .clientmarq {
    width: min(620px, 100%);
    margin: 34px auto 0;
  }
}

@media (max-width: 520px) {
  .bs-heroX,
  .bs-heroX section,
  .bs-hero-wrap,
  .hero-flex,
  .hero-text {
    max-width: 100%;
    overflow-x: hidden;
  }

  .bs-hero-wrap {
    padding: 0 18px;
  }

  .bs-heroX section {
    padding: 34px 0 62px;
  }

  .hero-flex {
    gap: 20px;
  }

  .hero-image img {
    width: min(138vw, 620px);
    max-width: 620px;
    max-height: 58svh;
    transform: none;
  }

  .clientmarq {
    width: 100%;
    margin-top: 30px;
  }

  .hero-text {
    margin-top: -4px;
  }

  .name {
    font-size: clamp(2.2rem, 9.6vw, 3.05rem);
    line-height: 1;
  }

  .name .welcome {
    display: block;
    margin-left: 0;
  }

  .lead {
    margin-top: 18px;
    width: min(100%, 330px);
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(.98rem, 4.2vw, 1.06rem);
  }

  .cta {
    width: min(100%, 326px);
    margin-left: auto;
    margin-right: auto;
    justify-content: space-between;
    text-align: left;
    font-size: 13px;
    min-height: 58px;
    margin-top: 28px;
  }

  .client-logo {
    width: calc(var(--slot, 190px) * .72);
    height: 62px;
  }

  .logo-marq {
    min-height: 62px;
  }

  .clientmarq::before,
  .clientmarq::after {
    width: 44px;
  }

  .client-logo img {
    max-width: calc(var(--logo-w, 168px) * .72);
    max-height: calc(var(--logo-h, 54px) * .72);
  }

  .logo-spacer {
    width: 24px;
  }
}

.page-main {
  min-height: calc(100svh - var(--header-h));
  padding: clamp(34px, 5vw, 70px) 0 clamp(64px, 8vw, 110px);
}

.page-container {
  width: min(calc(100% - 48px), 1200px);
  margin: 0 auto;
}

.page-section + .page-section {
  margin-top: clamp(44px, 7vw, 88px);
}

.section-title {
  margin: 0 0 22px;
  color: var(--text);
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.content-card,
.project-card-shell {
  border: 1px solid var(--ring);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  overflow: hidden;
}

.content-card {
  padding: clamp(24px, 4vw, 48px);
}

.section-heading {
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: clamp(1.8rem, 3.3vw, 2.55rem);
  line-height: 1.08;
  font-weight: 900;
}

.section-heading::before {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 2px solid var(--brand);
  border-radius: 8px;
  content: "";
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}

.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--ring);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 3px;
  left: -39px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--surface);
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--ring);
}

.timeline-date {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: .83rem;
}

.timeline-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.18;
  font-weight: 900;
}

.timeline-subtitle {
  margin: 5px 0 14px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 650;
}

.timeline-subtitle a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.clean-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.45;
}

.clean-list li::before {
  position: absolute;
  left: 0;
  color: var(--brand);
  content: "•";
}

.portfolio-btn,
.primary-action,
.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #0b0f14;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.portfolio-btn {
  margin-top: 28px;
  padding: 0 18px;
}

.primary-action,
.contact-action {
  padding: 0 20px;
}

.portfolio-btn:hover,
.primary-action:hover,
.contact-action:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 46px) clamp(32px, 6vw, 72px);
}

.tool-group h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.15;
  font-weight: 900;
}

.check-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.02rem;
}

.check-list li::before {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
  font-size: 11px;
  line-height: 14px;
  text-align: center;
  content: "✓";
}

.contact-card {
  max-width: 1200px;
}

.contact-lead {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.55;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-row {
  min-height: 66px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--ring);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.contact-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--brand) 50%, transparent);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-weight: 900;
}

.contact-icon img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) saturate(100%) invert(72%) sepia(40%) saturate(635%) hue-rotate(44deg) brightness(93%) contrast(87%);
}

.projects-card {
  padding: clamp(22px, 4vw, 48px);
}

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

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ring);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.filter-btn:hover {
  border-color: var(--brand);
  color: var(--text);
}

.filter-btn.is-active {
  border-color: transparent;
  background: var(--brand);
  color: #0b0f14;
}

.projects-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--ring);
  border-radius: 18px;
  display: block;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
  border-color: var(--brand);
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
}

.project-card.is-hidden {
  display: none;
}

.project-card-cover {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(2, 6, 23, .18), rgba(2, 6, 23, .06));
}

.project-card-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 520ms ease;
}

.project-card:hover .project-card-cover img {
  transform: scale(1.05);
}

.project-card-body {
  padding: 22px;
}

.project-card-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 900;
}

.project-card-desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.project-card-cta {
  color: var(--brand);
  font-size: .9rem;
  font-weight: 900;
}

.projects-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--ring);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.projects-note p {
  max-width: 78ch;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.back-row {
  margin-bottom: 20px;
}

.back-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ring);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .02);
  color: var(--text);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.back-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}

.project-title-hero {
  height: var(--project-cover-height, clamp(220px, 31svh, 320px));
  padding: 0 clamp(18px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project-title-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  font-weight: 900;
}

.vsl-page-hero {
  height: var(--project-cover-height, clamp(220px, 31svh, 320px));
  padding: 0 clamp(18px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("assets/projects/vsl/cover-dark.png") center / cover no-repeat;
  text-align: center;
}

:root[data-theme="light"] .vsl-page-hero {
  background-image: url("assets/projects/vsl/cover-light.png");
}

.vsl-page-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.3rem, 5.5vw, 4.15rem);
  line-height: 1.02;
  font-weight: 900;
}

.vsl-page-hero p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-content {
  padding: clamp(24px, 4vw, 48px);
}

.project-lead {
  max-width: 920px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  line-height: 1.45;
  font-weight: 750;
}

.project-lead .mark {
  color: var(--brand);
  font-weight: 900;
}

.pill-list {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  padding: 12px 16px;
  border: 1px solid var(--ring);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 74%, transparent);
  color: var(--text);
  font-size: .9rem;
  font-weight: 900;
  line-height: 1;
}

.media-grid {
  display: grid;
  gap: 18px;
}

.media-grid.portrait {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-grid.landscape {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-column {
  padding: 12px;
  border: 1px solid var(--ring);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.media-column.landscape {
  grid-template-columns: 1fr;
}

.media-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: 0;
  display: block;
  background: #000;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.media-tile.portrait {
  aspect-ratio: 9 / 16;
}

.media-tile.landscape {
  aspect-ratio: 16 / 9;
}

.media-tile:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.media-tile video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
  border-radius: 999px;
  background: rgba(13, 10, 24, .72);
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  backdrop-filter: blur(10px);
}

.vsl-process {
  margin-bottom: clamp(28px, 5vw, 48px);
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--ring);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
}

.vsl-process-label {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vsl-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.vsl-step-number {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #0b0f14;
  font-size: .78rem;
  font-weight: 900;
}

.vsl-step h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.vsl-step p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.design-canvas {
  background: #ffffff;
  color: #0f172a;
  border-radius: 22px;
  overflow: hidden;
}

.design-block {
  padding: clamp(24px, 4vw, 48px);
}

.sdlv-intro-block {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(8px, 2vw, 24px);
}

.design-eyebrow {
  color: #475569;
  font-size: .9rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.design-title {
  max-width: 900px;
  margin: 14px 0 0;
  color: #0f172a;
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  line-height: 1.1;
  font-weight: 900;
}

.design-copy {
  max-width: 760px;
  margin: 20px 0 0;
  color: #475569;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
}

.sdlv-cover-card,
.sdlv-body-card {
  border-radius: 22px;
}

.sdlv-cover-card {
  height: var(--project-cover-height, clamp(220px, 31svh, 320px));
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07191A;
}

.sdlv-logo-cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sdlv-panel {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
}

.design-block .sdlv-panel {
  padding: clamp(20px, 3vw, 34px);
}

.design-block .sdlv-wide-panel {
  padding: 0;
}

.sdlv-portatil-wrap {
  position: relative;
  z-index: 1;
  margin: clamp(-160px, -10vw, -72px) 0 0;
  overflow: hidden;
  background: #e9edeb;
  border-radius: 0;
}

.sdlv-after-portatil-block {
  position: relative;
  z-index: 3;
  margin-top: clamp(-330px, -18vw, -160px);
}

.design-width-img {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
}

.sdlv-two-col {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
}

.sdlv-social-row {
  background: transparent;
}

.sdlv-two-col p {
  max-width: 520px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.45;
}

.sdlv-side-img {
  width: min(78%, 560px);
  margin: 0 auto;
  display: block;
}

.sdlv-wide-img {
  width: min(80%, 950px);
  margin: 0 auto;
  display: block;
}

.sdlv-thumb-lead {
  max-width: 980px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.15rem, 2.1vw, 1.75rem);
  line-height: 1.35;
  font-weight: 650;
}

.sdlv-thumb-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.sdlv-thumb {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.sdlv-divider {
  width: min(520px, 70%);
  height: 2px;
  margin: 4px auto 28px;
  background: #0f172a;
}

.sdlv-tools {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
}

.sdlv-tool {
  height: 64px;
  width: auto;
}

.sdlv-theme-img {
  display: none;
}

:root[data-theme="dark"] .sdlv-theme-dark,
:root[data-theme="light"] .sdlv-theme-light {
  display: block;
}

.sdlv-tools-text {
  max-width: 980px;
  margin: 0 auto;
  color: #0f172a;
  text-align: center;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  line-height: 1.25;
  font-weight: 650;
}

:root[data-theme="dark"] .design-canvas,
:root[data-theme="dark"] .sdlv-panel {
  background: #07191A;
  color: #f7fafc;
}

:root[data-theme="dark"] .design-title,
:root[data-theme="dark"] .sdlv-two-col p,
:root[data-theme="dark"] .sdlv-thumb-lead,
:root[data-theme="dark"] .sdlv-tools-text {
  color: #f7fafc;
}

:root[data-theme="dark"] .design-eyebrow,
:root[data-theme="dark"] .design-copy {
  color: #c8d4d3;
}

:root[data-theme="dark"] .sdlv-divider {
  background: rgba(247, 250, 252, .72);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) + 10);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-player {
  width: min(1120px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.video-modal-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 10, 24, .55);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid.portrait,
  .media-grid.landscape {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-container {
    width: min(calc(100% - 28px), 1200px);
  }

  .tools-grid,
  .projects-grid,
  .vsl-steps,
  .sdlv-two-col,
  .sdlv-thumb-grid {
    grid-template-columns: 1fr;
  }

  .projects-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-column {
    grid-template-columns: 1fr;
  }

  .sdlv-side-img,
  .sdlv-wide-img {
    width: 100%;
  }

  .sdlv-portatil-wrap {
    margin-top: -64px;
  }

  .sdlv-after-portatil-block {
    margin-top: -136px;
  }

  .video-modal-close {
    top: 14px;
    right: 14px;
  }
}
