:root {
  --ink: #111318;
  --muted: #656b75;
  --line: #dfe2e7;
  --paper: #f4f5f7;
  --white: #ffffff;
  --blue: #173d72;
  --night: #101319;
  --night-soft: #181c23;
  --display: "Manrope", Arial, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
  --shell: min(1440px, calc(100% - 56px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, video { display: block; max-width: 100%; }
::selection { color: var(--white); background: var(--blue); }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; color: #fff; background: var(--blue); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.section-shell { width: var(--shell); margin-inline: auto; }

.site-header { position: sticky; z-index: 30; top: 0; width: 100%; height: 84px; padding-inline: max(28px, calc((100vw - 1440px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(150,155,164,.35); background: rgba(244,245,247,.92); backdrop-filter: blur(12px); transition: transform .35s ease; }
.site-header.header-hidden { transform: translateY(-100%); }
.wordmark { font: 700 18px var(--display); letter-spacing: -.04em; }
.wordmark span { color: var(--blue); }
nav { display: flex; gap: 34px; color: var(--muted); font-size: 14px; }
nav a { position: relative; padding: 8px 0; }
nav a::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--ink); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
nav a:hover { color: var(--ink); }
nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { min-height: 46px; padding: 0 17px; display: inline-flex; gap: 9px; align-items: center; color: #fff; background: var(--ink); font-size: 13px; font-weight: 600; transition: background .25s, transform .25s; }
.header-cta:hover { background: var(--blue); transform: translateY(-1px); }
.header-cta i { font-size: 18px; }

.hero { width: var(--shell); min-height: calc(100vh - 84px); margin: auto; padding: 76px 0 64px; display: grid; place-items: center; text-align: center; }
.hero__content { width: min(100%, 1120px); }
.eyebrow { margin: 0 0 26px; color: #496789; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 6px; height: 6px; margin: 0 10px 1px 0; border-radius: 50%; background: var(--blue); }
.availability { width: fit-content; margin: 0 auto 28px; padding: 7px 11px 7px 8px; display: inline-flex; gap: 7px; align-items: center; border: 1px solid #d2d8df; border-radius: 999px; color: #3e4a59; background: #fff; font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.availability svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; fill: none; stroke: #fff; stroke-width: 2; background: var(--blue); }
h1 { margin: 0; font: 600 clamp(54px, 7.25vw, 112px)/.91 var(--display); letter-spacing: -.07em; }
.hero__role { max-width: 730px; margin: 32px auto 0; color: var(--muted); font: 400 clamp(17px, 1.45vw, 21px)/1.6 var(--body); letter-spacing: -.015em; }
.hero__role strong { color: var(--ink); font-weight: 600; }
.hero__role i { color: var(--blue); font-family: Georgia, serif; font-weight: 400; }
.hero__actions { display: flex; gap: 28px; align-items: center; justify-content: center; margin-top: 34px; }
.button { display: inline-flex; min-height: 54px; padding: 0 22px; gap: 28px; align-items: center; justify-content: center; border: 0; font-size: 14px; font-weight: 600; transition: color .25s, background .25s, transform .25s; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: #fff; background: var(--ink); }
.button--primary:hover { background: var(--blue); }
.button--whatsapp { gap: 10px; }
.button--whatsapp i { font-size: 20px; }
.hero__stats { width: min(100%, 820px); margin: 62px auto 0; padding-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #cfd3d9; text-align: center; }
.hero__stats div { min-width: 0; padding: 0 18px; }
.hero__stats dt { font: 600 clamp(25px, 2.6vw, 38px)/1 var(--display); letter-spacing: -.055em; }
.hero__stats dd { margin: 10px auto 0; color: var(--muted); font-size: 11px; line-height: 1.35; }

.section-dark { color: var(--white); background: var(--night); }
.work-section, .design-section, .about-section { padding: 122px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 58px; }
.section-heading h2, .about-copy h2 { margin: 0; font: 500 clamp(38px, 5vw, 72px)/1.03 var(--display); letter-spacing: -.055em; }
.section-heading > p { width: min(100%, 365px); margin: 0 0 4px; color: #9da3ad; font-size: 15px; line-height: 1.65; }
.section-heading--light > p { color: var(--muted); }

.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 58px 18px; }
.video-card__media { position: relative; width: 100%; padding: 0; overflow: hidden; border: 0; background: #07080a; cursor: pointer; }
.video-card__media::after { position: absolute; inset: 0; background: linear-gradient(transparent 48%, rgba(0,0,0,.58)); content: ""; }
.video-card__media video { width: 100%; aspect-ratio: 9/16; object-fit: cover; pointer-events: none; }
.video-loader { position: absolute; z-index: 2; inset: 0; display: flex; gap: 9px; align-items: center; justify-content: center; color: #b8bec7; background: #0b0d11; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; transition: opacity .35s ease, visibility .35s ease; }
.video-loader i { color: #fff; font-size: 14px; }
.video-card__media.is-ready .video-loader { opacity: 0; visibility: hidden; }
.video-card__media.has-error .video-loader i { animation: none; }
.video-card__media.has-error .video-loader span { font-size: 0; }
.video-card__media.has-error .video-loader span::after { font-size: 9px; content: "No disponible"; }
.media-status, .video-number { position: absolute; z-index: 1; bottom: 18px; }
.media-status { left: 18px; display: flex; gap: 9px; align-items: center; color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.play-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: var(--ink); background: #fff; font-size: 9px; transition: transform .25s, background .25s; }
.video-card__media:hover .play-mark { background: #dbe7f5; transform: scale(1.08); }
.media-status { transition: opacity .2s ease; }
.video-number { right: 18px; color: rgba(255,255,255,.72); font: 500 11px var(--display); }
.video-card__info { width: 100%; padding-top: 19px; display: block; }
.project-client, .project-category { margin: 0; color: #8f96a1; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.project-category { margin-top: 9px; text-align: left; }
.video-card__info h3 { width: 100%; max-width: none; margin: 8px 0 0; color: rgba(255,255,255,.68); font: 500 clamp(18px, 1.65vw, 24px)/1.25 var(--display); letter-spacing: -.035em; }
.project-description { width: 100%; max-width: none; margin: 12px 0 0; color: #9da3ad; font-size: 14px; line-height: 1.55; }

.brand-marquee { padding: 88px 0 78px; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.brand-marquee__heading { margin-bottom: 52px; display: flex; gap: 40px; align-items: end; justify-content: space-between; }
.brand-marquee__heading .eyebrow { margin: 0; }
.brand-marquee__heading h2 { max-width: 620px; margin: 0; font: 500 clamp(25px, 3vw, 42px)/1.15 var(--display); letter-spacing: -.045em; text-align: right; }
.brand-marquee__viewport { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.brand-marquee__track { width: max-content; display: flex; animation: logo-marquee 34s linear infinite; }
.brand-marquee__viewport:hover .brand-marquee__track { animation-play-state: paused; }
.brand-marquee__group { display: flex; align-items: center; }
.brand-logo { width: clamp(128px, 12vw, 176px); height: auto; aspect-ratio: 1 / 1; margin-right: clamp(18px, 3vw, 46px); padding: clamp(16px, 2.2vw, 30px); display: grid; flex: 0 0 auto; place-items: center; background: transparent; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .68; transition: filter .3s, opacity .3s, transform .3s; }
.brand-logo:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.04); }
@keyframes logo-marquee { to { transform: translateX(-50%); } }

.design-section { background: var(--paper); }
.design-grid { columns: 3; column-gap: 18px; }
.design-card { margin: 0 0 18px; break-inside: avoid; }
.design-card__button { position: relative; width: 100%; padding: 0; overflow: hidden; border: 0; background: #e7e8ea; cursor: zoom-in; }
.design-card__button img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.65,.3,1); }
.design-card__view { position: absolute; right: 14px; bottom: 14px; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #fff; background: rgba(12,16,22,.88); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.design-card__view svg { width: 17px; fill: none; stroke: currentColor; }
.design-card__button:hover img { transform: scale(1.025); }
.design-card__button:hover .design-card__view { opacity: 1; transform: none; }

.about-section { color: #fff; background: #15181d; }
.about-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.about-index span { color: #718099; font: 500 12px var(--display); }
.about-index p { margin-top: 14px; color: #a4a9b1; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.about-copy h2 { max-width: 900px; }
.about-lead { max-width: 720px; margin: 52px 0 0; color: #c6cad0; font: 400 clamp(19px, 2vw, 27px)/1.55 var(--display); letter-spacing: -.025em; }
.about-points { max-width: 780px; margin-top: 54px; border-top: 1px solid #373c45; }
.about-points div { padding: 19px 0; display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start; border-bottom: 1px solid #373c45; }
.about-points span { color: #718099; font: 500 10px var(--display); }
.about-points p { margin: 0; color: #aeb3bb; font-size: 15px; line-height: 1.6; }
.services { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 10px; }
.services span { padding: 11px 15px; border: 1px solid #373c45; color: #d8dbe0; font-size: 12px; }

.contact-section { min-height: 740px; display: grid; place-items: center; color: #fff; background: var(--blue); text-align: center; }
.contact-inner { padding: 110px 0 70px; }
.contact-inner .eyebrow { color: #b7cae1; }
.contact-inner h2 { margin: 0; font: 500 clamp(48px, 7.3vw, 108px)/.98 var(--display); letter-spacing: -.065em; }
.contact-inner h2 span { color: #b7cae1; }
.contact-inner > p { max-width: 570px; margin: 34px auto; color: #ccd7e4; line-height: 1.65; }
.contact-inner .button { min-height: 68px; padding: 0 36px; font-size: 16px; }
.contact-inner .button i { font-size: 23px; }
.contact-meta { margin-top: 100px; display: flex; justify-content: space-between; color: #a9bfd8; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

footer { width: var(--shell); min-height: 110px; margin: auto; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
footer p { margin: 0; }
.mobile-whatsapp { display: none; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 820px) {
  :root { --shell: min(100% - 36px, 680px); }
  nav { display: none; }
  .hero { min-height: calc(100vh - 70px); padding: 62px 0; }
  .section-heading, .about-grid { grid-template-columns: 1fr; display: grid; }
  .section-heading > p { margin-top: 10px; }
}

@media (max-width: 600px) {
  :root { --shell: calc(100% - 32px); }
  .site-header { height: 70px; padding-inline: 16px; }
  .header-cta { min-height: 42px; padding: 0 13px; }
  .hero { min-height: calc(100vh - 70px); padding: 46px 0 40px; }
  h1 { font-size: clamp(50px, 15.8vw, 76px); }
  .hero__actions { align-items: center; flex-direction: column; gap: 20px; }
  .hero__stats { margin-top: 48px; padding-top: 22px; }
  .hero__stats div { padding: 0 5px; }
  .hero__stats dt { font-size: clamp(17px, 5vw, 23px); }
  .hero__stats dd { max-width: 92px; margin-top: 8px; font-size: 9px; }
  .work-section, .design-section, .about-section { padding: 84px 0; }
  .section-heading { margin-bottom: 40px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 10px; }
  .video-card__media video { aspect-ratio: 9/16; }
  .video-card__info { grid-template-columns: 1fr; }
  .project-category { text-align: left; }
  .project-description, .project-category { display: none; }
  .video-card__info h3 { margin-top: 7px; font-size: 14px; line-height: 1.3; }
  .project-client { font-size: 8px; }
  .brand-marquee { padding: 66px 0 58px; }
  .brand-marquee__heading { margin-bottom: 36px; display: block; }
  .brand-marquee__heading h2 { max-width: 330px; margin-top: 18px; font-size: 26px; text-align: left; }
  .brand-marquee__track { animation-duration: 26s; }
  .brand-logo { width: clamp(104px, 34vw, 138px); height: auto; aspect-ratio: 1 / 1; margin-right: 12px; padding: 17px; }
  .client-name { min-height: 100px; }
  .design-grid { columns: 1; }
  .design-card { margin-bottom: 12px; }
  .design-card__view { opacity: 1; transform: none; }
  .contact-section { min-height: 680px; }
  .contact-inner .button { min-height: 62px; padding: 0 27px; font-size: 15px; }
  .contact-meta { margin-top: 80px; }
  footer { padding: 34px 0 92px; gap: 24px; align-items: flex-start; flex-direction: column; }
  .mobile-whatsapp { position: fixed; z-index: 24; right: 16px; bottom: 16px; left: auto; display: grid; width: 56px; height: 56px; padding: 0; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); box-shadow: 0 9px 30px rgba(0,0,0,.24); }
  .mobile-whatsapp i { font-size: 23px; }
  .mobile-whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .brand-marquee__viewport { overflow-x: auto; mask-image: none; }
  .brand-marquee__track { animation: none; }
}
