/* =========================================================================
   TBWA\HONDURAS — Sitio 2026
   Sistema visual basado en tbwa.com (colores, tipografía, escala y motion).
   Escala fluida: valores fijos < 992px, proporcionales al viewport entre
   992px y 1920px, y topados a partir de 1920px (igual que tbwa.com).
   ========================================================================= */

/* ---------- Tipografías oficiales ---------- */
@font-face { font-family: "TBWAGrotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/TBWAGrotesk-Regular.woff2") format("woff2"); }
@font-face { font-family: "TBWAGrotesk"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/TBWAGrotesk-Italic.woff2") format("woff2"); }
@font-face { font-family: "TBWAGrotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/TBWAGrotesk-Medium.woff2") format("woff2"); }
@font-face { font-family: "TBWAGrotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/TBWAGrotesk-Bold.woff2") format("woff2"); }
@font-face { font-family: "ITCGaramondStd"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/ITCGaramondStd-LtNarrow.ttf") format("truetype"); }

/* ---------- Tokens ---------- */
:root {
  --black: #0A0A0D;
  --paper: #EBE8DD;
  --yellow: #FECC00;
  --white: #FFFFFF;
  --dark-grey: #4D4D4D;
  --light-grey: #BDBDBD;
  --legal-grey: #868686;
  --hint: #D0D0D0;
  --error: #E45A3B;

  --sans: "TBWAGrotesk", Helvetica, Arial, sans-serif;
  --serif: "ITCGaramondStd", "Times New Roman", Times, serif;

  /* Escala tipográfica (px móvil → vw desktop → tope 1920) */
  --fs-h1: 48px;
  --fs-h2: 44px;
  --fs-h3: 34px;
  --fs-h4: 28px;
  --fs-h5: 24px;
  --fs-h6: 22px;
  --fs-lead: 40px;
  --fs-leadin: 16px;
  --fs-standard: 16px;
  --fs-small: 14px;
  --fs-label: 11px;
  --fs-nav: 18px;
  --fs-cta: 16px;
  --fs-cta-lg: 40px;

  --header-h: 56px;
  --gutter: 24px;
  --col-gap: 16px;
  --section-pad: 80px;
  --radius: 12px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

@media (min-width: 768px) {
  :root {
    --header-h: 41.333px;
    --fs-nav: 11px;
    --fs-h1: 64px; --fs-h2: 56px; --fs-h3: 40px; --fs-h4: 32px; --fs-h5: 26px; --fs-h6: 24px;
    --fs-lead: 52px; --fs-leadin: 18px; --fs-standard: 17px;
    --col-gap: 20px;
    --section-pad: 100px;
  }
}

@media (min-width: 992px) {
  :root {
    --header-h: 4.1667vw;
    --fs-h1: 5.6944vw;   /* 82px @1440 */
    --fs-h2: 5vw;        /* 72px @1440 */
    --fs-h3: 3.3333vw;   /* 48px @1440 */
    --fs-h4: 2.7778vw;   /* 40px @1440 */
    --fs-h5: 2.2222vw;   /* 32px @1440 */
    --fs-h6: 1.875vw;    /* 27px @1440 */
    --fs-lead: 5vw;      /* 72px @1440 */
    --fs-leadin: 1.6667vw;
    --fs-standard: 1.25vw;  /* 18px @1440 */
    --fs-small: 1.1111vw;   /* 16px @1440 */
    --fs-label: .7639vw;    /* 11px @1440 */
    --fs-nav: .7639vw;
    --fs-cta: 1.3021vw;     /* 18.75px @1440 */
    --fs-cta-lg: 3.9063vw;  /* 56.25px @1440 */
    --col-gap: 1.875vw;     /* 27px @1440 */
    --section-pad: 9.375vw; /* 135px @1440 */
    --radius: .8333vw;
  }
}

@media (min-width: 1920px) {
  :root {
    --header-h: 80px;
    --fs-h1: 109px; --fs-h2: 96px; --fs-h3: 64px; --fs-h4: 53px; --fs-h5: 43px; --fs-h6: 36px;
    --fs-lead: 96px; --fs-leadin: 32px; --fs-standard: 24px; --fs-small: 21px;
    --fs-label: 14.67px; --fs-nav: 14.67px; --fs-cta: 25px; --fs-cta-lg: 75px;
    --col-gap: 36px; --section-pad: 180px; --radius: 16px;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-standard);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.noscroll { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--yellow); color: var(--black); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--yellow); color: var(--black); padding: 10px 14px;
  font-weight: 500; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Tipografía ---------- */
.h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--serif); font-weight: 300; color: inherit; }
.h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -.03em; }
.h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -.03em; }
.h3 { font-size: var(--fs-h3); line-height: 1; letter-spacing: -.02em; }
.h4 { font-size: var(--fs-h4); line-height: 1; letter-spacing: -.02em; }
.h5 { font-size: var(--fs-h5); line-height: 1; }
.h6 { font-size: var(--fs-h6); line-height: 1.15; }

.standard { font-family: var(--sans); font-size: var(--fs-standard); line-height: 1.3; color: var(--dark-grey); }
.small { font-family: var(--sans); font-size: var(--fs-small); line-height: 1.3; color: var(--dark-grey); }
.label { font-family: var(--sans); font-size: var(--fs-label); font-weight: 500; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; }
.eyebrow { font-family: var(--sans); font-size: var(--fs-standard); line-height: 1.3; text-transform: uppercase; color: var(--dark-grey); }
.bg-black .standard, .bg-black .small, .bg-black .eyebrow { color: var(--hint); }

.stack > * + * { margin-top: var(--stack, 15px); }
.stack-lg > * + * { margin-top: 30px; }
@media (min-width: 992px) { .stack-lg > * + * { margin-top: 2.0833vw; } }

/* Texto grande con "lead-in" (ej. LA CONVENCIÓN ES EL ENEMIGO.) */
.lead-block { display: block; }
.lead-block .lead-in {
  font-family: var(--sans); font-size: var(--fs-leadin); line-height: 1.2;
  text-transform: uppercase; margin-bottom: 18px;
}
.lead-block .lead-content { font-family: var(--serif); font-weight: 300; font-size: var(--fs-lead); line-height: 1; letter-spacing: -.03em; }
@media (min-width: 992px) {
  .lead-block .lead-in { float: left; padding-right: 2.6vw; margin: 1.6vw 0 0; }
}

/* Subrayado de brocha amarilla */
.highlight {
  color: inherit; background: none; position: relative; white-space: nowrap;
  padding-bottom: .08em; z-index: 0;
}
.highlight::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; bottom: -.02em; height: .42em; z-index: -1;
  background: var(--yellow);
  -webkit-mask: url("../img/fx/highlight-brush.svg") no-repeat center / 100% 100%;
          mask: url("../img/fx/highlight-brush.svg") no-repeat center / 100% 100%;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .9s var(--ease-in-out) .25s;
}
.highlight.is-in-view::after, .no-js .highlight::after { clip-path: inset(0 0 0 0); }

/* ---------- Layout ---------- */
.container { width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { .container { max-width: 841.6px; } }
@media (min-width: 992px) { .container { max-width: none; width: 80vw; padding: 0; } }
@media (min-width: 1920px) { .container { width: 1536px; } }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; align-items: start; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.grid.align-center { align-items: center; }
.grid.align-end { align-items: end; }

/* columnas: móvil (de 4) */
.m-0 { display: none; } .m-1 { grid-column: span 1; } .m-2 { grid-column: span 2; } .m-3 { grid-column: span 3; } .m-4 { grid-column: span 4; }
@media (min-width: 768px) {
  .t-0 { display: none; } .t-1 { display: block; grid-column: span 1; } .t-2 { display: block; grid-column: span 2; } .t-3 { display: block; grid-column: span 3; }
  .t-4 { display: block; grid-column: span 4; } .t-5 { display: block; grid-column: span 5; } .t-6 { display: block; grid-column: span 6; } .t-7 { display: block; grid-column: span 7; }
  .t-8 { display: block; grid-column: span 8; } .t-12 { display: block; grid-column: span 12; }
}
@media (min-width: 992px) {
  .d-0 { display: none; } .d-1 { display: block; grid-column: span 1; } .d-2 { display: block; grid-column: span 2; } .d-3 { display: block; grid-column: span 3; }
  .d-4 { display: block; grid-column: span 4; } .d-5 { display: block; grid-column: span 5; } .d-6 { display: block; grid-column: span 6; } .d-7 { display: block; grid-column: span 7; }
  .d-8 { display: block; grid-column: span 8; } .d-12 { display: block; grid-column: span 12; }
}

.section { position: relative; padding: var(--section-pad) 0; }
.section.pad-sm { padding: calc(var(--section-pad) * .5) 0; }
.section.pad-top-0 { padding-top: 0; }
.section.pad-bottom-0 { padding-bottom: 0; }
.bg-white { background: var(--white); color: var(--black); }
.bg-paper { background: var(--paper); color: var(--black); }
.bg-black { background: var(--black); color: var(--white); }
.bg-yellow { background: var(--yellow); color: var(--black); }

.spacer-sm { height: 15px; } .spacer { height: 40px; } .spacer-lg { height: 60px; }
@media (min-width: 992px) { .spacer { height: 4.1667vw; } .spacer-lg { height: 6.25vw; } }

/* Rule line (línea fina sobre títulos de sección) */
.rule { height: 1px; background: currentColor; opacity: .9; margin-bottom: 20px; }
@media (min-width: 992px) { .rule { margin-bottom: 1.6667vw; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--header-h);
  background: var(--black); color: var(--white);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: inline-flex; align-items: center; height: 100%; color: var(--white); }
.site-logo svg { height: 14px; width: auto; }
@media (min-width: 768px) { .site-logo svg { height: 9.3px; } }
@media (min-width: 992px) { .site-logo svg { height: .9375vw; } }
@media (min-width: 1920px) { .site-logo svg { height: 18px; } }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 3.75vw; }
.main-nav a {
  display: inline-block; font-family: var(--sans); font-weight: 500; font-size: var(--fs-nav);
  text-transform: uppercase; text-decoration: none; color: var(--white); padding: 3px 0;
  transition: color .3s; white-space: nowrap; letter-spacing: .01em;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--yellow); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* Submenú de "Nuestro trabajo": se abre al pasar el cursor o con el teclado */
.main-nav, .main-nav > ul { height: 100%; }
.main-nav > ul > li { display: flex; align-items: center; }
.main-nav .has-sub { position: relative; }
.main-nav .sub-nav {
  position: absolute; top: 100%; left: -18px; min-width: calc(100% + 36px); padding: 6px 18px 18px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: var(--black);
  border-top: 1px solid rgba(255,255,255,.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .3s var(--ease-out), visibility 0s .25s;
}
.main-nav .has-sub:hover > .sub-nav, .main-nav .has-sub:focus-within > .sub-nav, .main-nav .has-sub.is-open > .sub-nav {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.main-nav .has-sub.is-section > a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.main-nav .sub-nav a { text-decoration: none; }
.main-nav .sub-nav a[aria-current="page"] { color: var(--yellow); text-decoration: none; }
.nav-backslash { width: 1.6667vw; max-width: 32px; min-width: 18px; height: auto; margin-left: -.8vw; }

.menu-toggle { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; margin-right: -4px; }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .i-close { display: none; }
.menu-open .menu-toggle .i-open { display: none; }
.menu-open .menu-toggle .i-close { display: block; }

@media (min-width: 768px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .main-nav ul { gap: 28px; }
}
@media (min-width: 992px) { .main-nav ul { gap: 3.75vw; } }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 190; background: var(--black); color: var(--white);
  padding: 40px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease-in-out); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu ul li { overflow: hidden; }
.mobile-menu a, .mobile-menu .m-parent {
  display: block; font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 1.1; letter-spacing: -.02em;
  text-decoration: none; padding: 6px 0; transform: translateY(100%); transition: transform .6s var(--ease-out), color .3s;
}
.mobile-menu a[aria-current="page"] { color: var(--yellow); }
.menu-open .mobile-menu a, .menu-open .mobile-menu .m-parent { transform: none; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .05s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: .1s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .15s; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: .2s; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: .25s; }
.menu-open .mobile-menu li:nth-child(7) a { transition-delay: .3s; }
.mobile-menu .m-parent { padding-bottom: 2px; }
.mobile-menu li.sub a { font-size: 30px; padding: 3px 0 3px 22px; }
.mobile-menu .label { color: var(--legal-grey); }
@media (min-width: 768px) { .mobile-menu { display: none; } }

main { padding-top: var(--header-h); display: block; }

/* ---------- Botón CTA (texto + flecha + brocha amarilla al hover) ---------- */
.cta {
  position: relative; z-index: 1; display: inline-flex; align-items: center; vertical-align: middle;
  font-family: var(--sans); font-weight: 400; font-size: var(--fs-cta); line-height: 2em;
  text-transform: uppercase; text-decoration: none; color: inherit; padding: 4px 0 3px;
}
@media (min-width: 992px) { .cta { padding: .5208vw 0; } }
.cta::before {
  content: ""; order: 1; flex: none; width: .8em; height: .8em; margin-left: .35em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M22 8 19 11l20 21-20 21 3 3 23-24z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M22 8 19 11l20 21-20 21 3 3 23-24z'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .3s var(--ease-out);
}
.cta[target="_blank"]::before { transform: rotate(-45deg); }
.cta::after {
  content: ""; position: absolute; left: -.15em; right: -.15em; top: 50%; height: 1.3em; z-index: -1; transform: translateY(-50%);
  background: var(--yellow);
  -webkit-mask: url("../img/fx/highlight-brush.svg") no-repeat center / 100% 100%;
          mask: url("../img/fx/highlight-brush.svg") no-repeat center / 100% 100%;
  clip-path: inset(0 100% 0 0); transition: clip-path .3s ease-in-out;
}
.cta:hover::after, .cta:focus-visible::after { clip-path: inset(0 0 0 0); }
.cta:hover::before { transform: translateX(3px); }
.cta[target="_blank"]:hover::before { transform: rotate(-45deg) translate(2px, 0); }
.bg-black .cta::after { background: var(--dark-grey); }
.bg-yellow .cta::after { background: var(--white); }
.cta-lg { font-family: var(--serif); font-weight: 300; font-size: var(--fs-cta-lg); line-height: 1; text-transform: none; padding: 7px 0; letter-spacing: -.02em; }
@media (min-width: 992px) { .cta-lg { padding: .78vw 0; } }
.cta-row { display: flex; }
.cta-row.right { justify-content: flex-end; }
.cta-row.center { justify-content: center; }
/* Botones de navegación: "Regresar" / "Ir al inicio" a la izquierda, siguiente página a la derecha */
.cta.cta-atras::before { order: -1; margin: 0 .35em 0 0; transform: rotate(180deg); }
.cta.cta-atras:hover::before { transform: rotate(180deg) translateX(3px); }
.nav-row { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 40px; }
.nav-row > .cta-lg { margin-left: auto; }
.nav-botones { display: flex; flex-wrap: wrap; gap: 4px 32px; }

/* Botón sólido (formularios) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 34px;
  background: var(--black); color: var(--white); font-family: var(--sans); font-weight: 500; font-size: var(--fs-cta);
  text-transform: uppercase; letter-spacing: .02em; border-radius: 999px; transition: background .3s, color .3s, transform .3s var(--ease-out);
}
.btn:hover { background: var(--yellow); color: var(--black); }
.btn:active { transform: scale(.97); }
.bg-black .btn { background: var(--white); color: var(--black); }
.bg-black .btn:hover { background: var(--yellow); }
.btn[disabled] { opacity: .5; pointer-events: none; }
@media (min-width: 992px) { .btn { min-height: 3.6111vw; padding: 0 2.5vw; } }

/* ---------- Sección con media a pantalla completa (videos del home) ---------- */
.media-cover {
  position: relative; display: block; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  min-height: 420px; overflow: hidden; background: var(--black); color: var(--white); text-decoration: none; isolation: isolate;
}
.media-cover .media, .media-cover video, .media-cover > img, .media-cover .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-cover .media { z-index: -1; }
.media-cover .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,13,0) 55%, rgba(10,10,13,.55) 100%); }
.media-cover .media-copy { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 40px; }
@media (min-width: 992px) { .media-cover .media-copy { padding-bottom: 3.4722vw; } }
.media-cover .media-copy .h5 { margin-bottom: 6px; }
.media-cover.is-link { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .media-cover.is-link, .has-cursor { cursor: none; } }
.media-cover.hero .media::after { display: none; }
.media-cover.bg-paper { background: var(--paper); color: var(--black); }
.media-cover.bg-paper .media::after { display: none; }

/* ---------- Cursor que sigue al mouse ---------- */
.follow-cursor {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%;
  background: var(--white); color: var(--black); display: flex; align-items: center; justify-content: center;
  transform: translate3d(-200px, -200px, 0) scale(0); transition: transform .0s, opacity .3s; opacity: 0;
  font-family: var(--sans); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; text-align: center; line-height: 1.2;
}
.follow-cursor .fc-inner { transform: scale(0); transition: transform .35s var(--ease-out); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.follow-cursor.is-active { opacity: 1; }
.follow-cursor.is-active .fc-inner { transform: scale(1); }
.follow-cursor svg { width: 40%; height: 40%; }
.follow-cursor.is-yellow { background: var(--yellow); }
.follow-cursor.is-black { background: var(--black); color: var(--white); }
.follow-cursor .fc-text { display: none; padding: 0 10px; }
.follow-cursor.show-text svg { display: none; }
.follow-cursor.show-text .fc-text { display: block; }
@media (min-width: 992px) { .follow-cursor { width: 120px; height: 120px; margin: -60px 0 0 -60px; font-size: 15px; } }
@media (hover: none), (pointer: coarse) { .follow-cursor { display: none; } }

/* ---------- Imágenes ---------- */
.img-frame { position: relative; overflow: hidden; }
.img-frame img, .img-frame video { width: 100%; height: 100%; object-fit: cover; }
.ratio-8-9 { aspect-ratio: 8 / 9; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-8-4 { aspect-ratio: 2 / 1; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-4-5 { aspect-ratio: 4 / 5; }

/* ---------- Tarjetas (Work / Noticias) ---------- */
.card {
  position: relative; display: flex; flex-direction: column; border: 1px solid rgba(10,10,13,.55); border-radius: var(--radius);
  overflow: hidden; background: var(--white); color: var(--black); text-decoration: none;
  transition: border-color .3s, transform .5s var(--ease-out);
}
.card:hover { border-color: var(--black); }
.card .card-media { position: relative; overflow: hidden; background: var(--paper); }
.card .card-media img, .card .card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.045); }
.card .card-body { padding: 24px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 992px) { .card .card-body { padding: 2.0833vw 2.0833vw 1.3889vw; gap: .8333vw; } }
.card .card-client { font-family: var(--sans); font-size: var(--fs-small); color: var(--dark-grey); line-height: 1.3; }
.card .card-title { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h5); line-height: 1; }
.card .card-text { font-family: var(--sans); font-size: var(--fs-standard); line-height: 1.3; color: var(--dark-grey); }
.card .card-date { font-family: var(--sans); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; color: var(--dark-grey); letter-spacing: .02em; }
.card .card-title a { text-decoration: none; }
.card .card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card.featured .card-title { font-size: var(--fs-h3); }
.bg-black .card { background: var(--black); color: var(--white); border-color: rgba(255,255,255,.4); }

/* Botón play sobre media */
.play-badge {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; background: var(--white); color: var(--black);
  display: flex; align-items: center; justify-content: center; transition: transform .4s var(--ease-out), background .3s;
}
.play-badge svg { width: 30%; height: 30%; margin-left: 6%; }
.card:hover .play-badge { transform: translate(-50%, -50%) scale(1.08); background: var(--yellow); }
@media (min-width: 992px) { .play-badge { width: 8.3333vw; height: 8.3333vw; max-width: 160px; max-height: 160px; } }
@media (hover: hover) and (pointer: fine) { .has-cursor .play-badge { opacity: 0; } }

/* ---------- Work: listado escalonado ---------- */
.work-head { padding: 60px 0 50px; }
@media (min-width: 992px) { .work-head { padding: 5.5556vw 0 4.8611vw; } }
.work-head .h2 { display: flex; align-items: center; gap: .2em; position: relative; }
.half-black { background: linear-gradient(var(--black) var(--half, 50%), var(--white) var(--half, 50%)); }
.work-featured { --half: 55%; }
.work-featured .card { border-color: rgba(10,10,13,.55); }
.work-featured .card-media { aspect-ratio: 16 / 9; }

.work-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .work-col { display: flex; flex-direction: column; gap: 5vw; }
  .work-col:nth-child(1) { margin-top: 12.5vw; }
  .work-col:nth-child(2) { margin-top: 6.25vw; }
  .work-col:nth-child(3) { margin-top: 0; }
}
@media (max-width: 767px) { .work-col { display: contents; } }
/* Grilla sin escalonado (sección "Históricos") */
@media (min-width: 768px) { .work-grid.is-plano .work-col { margin-top: 0; } }
.work-grid .card-media { aspect-ratio: 8 / 9; }

/* ---------- Banda de logos en movimiento ---------- */
.marquee { position: relative; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-speed, 45s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-band { padding: 46px 0; border-top: 1px solid var(--black); border-bottom: 1px solid var(--black); }
@media (min-width: 992px) { .logo-band { padding: 3.4722vw 0; } }
.logo-band .logo-item { flex: none; display: flex; align-items: center; justify-content: center; height: 64px; width: 150px; margin: 0 26px; }
.logo-band .logo-item img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .85; transition: filter .4s, opacity .4s, transform .4s var(--ease-out); }
.logo-band .logo-item img { transform: scale(var(--escala, 1)); }
.logo-band .logo-item:hover img { filter: none; opacity: 1; transform: scale(calc(var(--escala, 1) * 1.06)); }
@media (min-width: 992px) { .logo-band .logo-item { height: 5vw; width: 11vw; margin: 0 2.2vw; } }
.ticker { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.03em; white-space: nowrap; }
.ticker .marquee-group > span { padding-right: .5em; }
.ticker .sep { color: var(--yellow); padding-right: .5em; }

/* ---------- Disruption ---------- */
.disruption-hero { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.disruption-hero .hero-type { position: relative; z-index: 3; width: 100%; padding-top: 40px; padding-bottom: 60px; }
.disruption-hero .hero-title { display: block; font-weight: 300; }
.disruption-hero .hero-word {
  display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 14.5vw, 280px); line-height: .86; letter-spacing: -.045em;
}
.disruption-hero .hero-word.indent { padding-left: 9vw; }
.disruption-hero .hero-word.right { text-align: right; }
.disruption-hero .reg { font-family: var(--sans); font-size: .16em; vertical-align: top; letter-spacing: 0; margin-left: .1em; position: relative; top: .5em; }
.disruption-hero .line-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.disruption-hero .line-inner { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.disruption-hero.is-in-view .line-inner { transform: none; }
.disruption-hero .hero-word:nth-child(2) .line-inner { transition-delay: .12s; }
.disruption-hero .hero-word:nth-child(3) .line-inner { transition-delay: .24s; }
.no-js .disruption-hero .line-inner { transform: none; }


/* Video enmarcado con play */
.video-frame { display: block; position: relative; border-radius: var(--radius); background: var(--black); }
.video-frame:hover .play-badge { transform: translate(-50%, -50%) scale(1.08); background: var(--yellow); }

/* CTA grande de contacto */
.contact-cta { display: block; text-decoration: none; color: inherit; }
.contact-cta .h2 { display: block; }
.contact-cta:hover .h2:last-child { color: var(--dark-grey); }

.steps { counter-reset: step; display: grid; gap: 40px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); } }
.step { border-top: 1px solid currentColor; padding-top: 20px; }
.step .step-num { font-family: var(--sans); font-size: var(--fs-label); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--yellow); }
.bg-white .step .step-num, .bg-paper .step .step-num { color: var(--dark-grey); }
.step .h4 { margin: 18px 0 14px; }

/* ---------- Nosotros ---------- */
.about-hero { position: relative; min-height: calc(86vh - var(--header-h)); display: flex; align-items: flex-end; padding-bottom: 120px; overflow: hidden; }
@media (min-width: 992px) { .about-hero { padding-bottom: 12vw; } }
.about-hero .h1 { margin-bottom: 16px; }
.about-hero .container { position: relative; z-index: 3; }
.media-cover.short { height: 78vh; height: 78svh; }
.work-featured { padding-bottom: 10px; }
.logo-band .marquee + .marquee { margin-top: 18px; }
@media (min-width: 992px) { .logo-band .marquee + .marquee { margin-top: 1.4vw; } }
.logo-band .logo-item img { mix-blend-mode: multiply; }
.field .input-wrap { position: relative; }
.field textarea { display: block; }

.circles { display: flex; flex-wrap: wrap; justify-content: center; padding: 10px 0; }
.circle {
  --size: 160px;
  position: relative; width: var(--size); height: var(--size); margin: -6px; border-radius: 50%; border: 1px solid var(--black);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; cursor: default;
  transition: background-color .45s var(--ease-out), color .45s, transform .45s var(--ease-out), z-index 0s .45s; z-index: 1; background: transparent;
}
.circle .h5 { font-size: clamp(17px, 1.6667vw, 32px); line-height: 1.05; }
.circle:hover, .circle:focus-visible, .circle.is-active { background: var(--yellow); border-color: var(--yellow); z-index: 3; transform: scale(1.06); transition-delay: 0s; }
@media (min-width: 768px) { .circle { --size: 200px; margin: -8px; } }
@media (min-width: 992px) { .circle { --size: 15.2778vw; margin: -.6944vw; padding: 1.8vw; } }
@media (min-width: 1920px) { .circle { --size: 293px; } }

/* ---------- Noticias ---------- */
.news-head { padding: 70px 0 50px; }
@media (min-width: 992px) { .news-head { padding: 6.25vw 0 3.4722vw; } }
.news-filters { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 30px; }
.news-filters button, .cd-filters button {
  position: relative; z-index: 0; font-family: var(--sans); font-size: 12.5px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em;
  padding: 5px 4px; border-bottom: 1px solid transparent; transition: color .3s;
}
@media (min-width: 992px) { .news-filters button, .cd-filters button { font-size: .868vw; } }
.news-filters button::after, .cd-filters button::after {
  content: ""; position: absolute; inset: 0 -4px; z-index: -1; background: var(--yellow);
  -webkit-mask: url("../img/fx/highlight-brush.svg") no-repeat center / 100% 100%; mask: url("../img/fx/highlight-brush.svg") no-repeat center / 100% 100%;
  clip-path: inset(0 100% 0 0); transition: clip-path .3s ease-in-out;
}
.news-filters button:hover::after, .news-filters button.is-active::after, .cd-filters button:hover::after, .cd-filters button.is-active::after { clip-path: inset(0 0 0 0); }
.news-filters button span, .cd-filters button span { position: relative; }
.news-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 4vw; align-items: start; }
  .news-grid .card { grid-column: span 2; }
  .news-grid .card.is-big { grid-column: span 3; }
}
.news-grid .card .card-media { aspect-ratio: 16 / 9; }
.news-grid .card.is-hidden { display: none; }
.news-empty { padding: 40px 0; display: none; }

/* Artículo */
.article-head { padding: 60px 0 40px; }
@media (min-width: 992px) { .article-head { padding: 5.5556vw 0 3.4722vw; } }
.article-head .back { margin-bottom: 30px; }
.article-head .back .cta::before { order: -1; margin: 0 .35em 0 0; transform: rotate(180deg); }
.article-head .back .cta:hover::before { transform: rotate(180deg) translateX(3px); }
.article-hero { border-radius: var(--radius); overflow: hidden; }
.article-hero img { width: 100%; height: auto; }
.prose { font-family: var(--sans); font-size: var(--fs-standard); line-height: 1.55; color: var(--dark-grey); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); font-weight: 300; color: var(--black); line-height: 1.05; letter-spacing: -.02em; margin-top: 1.6em; }
.prose h2 { font-size: var(--fs-h4); }
.prose h3, .prose h4 { font-size: var(--fs-h5); }
.prose strong, .prose b { color: var(--black); font-weight: 500; }
.prose a { color: var(--black); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius); margin: 2em 0; width: 100%; height: auto; }
.prose figure { margin: 2em 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose iframe.embed-linkedin { aspect-ratio: auto; height: 650px; max-width: 504px; border: 1px solid var(--light-grey); background: var(--white); }
.prose blockquote { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h5); line-height: 1.1; color: var(--black); border-left: 3px solid var(--yellow); padding-left: .8em; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--black); padding-top: 30px; margin-top: 60px; }

/* ---------- Contacto ---------- */
.contact-hero .media img { filter: grayscale(1) contrast(1.05); }
.contact-hero .media::after { background: linear-gradient(180deg, rgba(10,10,13,.1) 30%, rgba(10,10,13,.6) 100%); }
.office { display: grid; gap: 8px; }
.office + .office { margin-top: 36px; }
.office .h5 { margin-bottom: 6px; }
.contact-link { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h4); line-height: 1.1; letter-spacing: -.02em; text-decoration: none; position: relative; z-index: 0; display: inline-block; }
.contact-link::after {
  content: ""; position: absolute; left: -.06em; right: -.06em; bottom: -.04em; height: .45em; z-index: -1; background: var(--yellow);
  -webkit-mask: url("../img/fx/highlight-brush.svg") no-repeat center / 100% 100%; mask: url("../img/fx/highlight-brush.svg") no-repeat center / 100% 100%;
  clip-path: inset(0 100% 0 0); transition: clip-path .35s ease-in-out;
}
.contact-link:hover::after { clip-path: inset(0 0 0 0); }
/* Correo mostrado como texto (sin hipervínculo): sin brocha amarilla ni cursor de enlace */
.contact-link.sin-enlace { cursor: text; }
.contact-link.sin-enlace::after { display: none; }

.form { display: grid; gap: 26px; }
@media (min-width: 768px) { .form .row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); } }
.form .row-3 { display: grid; gap: 26px; }
.field { position: relative; display: block; }
.field label { display: block; font-family: var(--sans); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; color: var(--dark-grey); }
.bg-black .field label { color: var(--hint); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--serif); font-weight: 300; font-size: var(--fs-h5); line-height: 1.2; color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; padding: 8px 0 12px; outline: none;
  transition: border-color .3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: inherit; opacity: .35; }
.field .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.field input:focus ~ .bar, .field textarea:focus ~ .bar { transform: scaleX(1); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field .error-msg { display: none; font-size: 13px; color: var(--error); margin-top: 6px; font-family: var(--sans); }
.field.has-error .error-msg { display: block; }
.form-status { font-family: var(--sans); font-size: var(--fs-standard); min-height: 1.3em; }
.form-status.ok { color: inherit; }
.form-status.err { color: var(--error); }
.hp-field { position: absolute !important; left: -9999px !important; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: #EAE8DD; color: var(--black); padding: 60px 0 45px; }
.footer-top { display: grid; gap: 50px; }
.footer-brand { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.footer-seal { width: auto; height: 66px; }
.footer-tagline { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h5); line-height: 1.05; max-width: 14em; }
.socials { display: flex; flex-wrap: wrap; gap: 26px; }
.socials a { display: inline-flex; width: 25px; height: 25px; color: var(--black); transition: color .3s, transform .3s var(--ease-out); }
.socials a:hover, .socials a:focus-visible { color: var(--dark-grey); transform: translateY(-2px); }
.socials svg { width: 100%; height: 100%; fill: currentColor; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; column-gap: 20px; align-content: start; }
.footer-links a { font-family: var(--sans); font-size: 13px; line-height: 1.2; text-decoration: none; color: var(--black); transition: color .3s; }
.footer-links a:hover { color: var(--dark-grey); }
.footer-contact { display: grid; gap: 6px; font-family: var(--sans); font-size: 13px; line-height: 1.4; color: var(--dark-grey); }
.footer-contact a { color: var(--black); text-decoration: none; }
.footer-contact a:hover { color: var(--dark-grey); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 40px; padding-top: 90px; }
.footer-legal .label { color: var(--black); }
.footer-legal a { color: var(--black); }
.footer-legal a:hover { color: var(--dark-grey); }
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-links { row-gap: 3.2vw; }
}
@media (min-width: 992px) {
  .footer-top { grid-template-columns: 7fr 5fr; min-height: 16.7vw; }
  .footer-links { row-gap: 2.7778vw; }
  .footer-links a, .footer-contact { font-size: .9028vw; }
  .footer-seal { height: 4.5833vw; }
  .socials { gap: 2.7778vw; }
  .socials a { width: 1.7361vw; height: 1.7361vw; min-width: 22px; min-height: 22px; }
  .footer-legal { padding-top: 11.8vw; }
}
@media (min-width: 1920px) { .footer-links a, .footer-contact { font-size: 17px; } }

/* ---------- Lightbox de video ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(10,10,13,.96); display: flex; align-items: center; justify-content: center; padding: 70px 20px 30px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.lightbox video { width: min(100%, calc((100vh - 120px) * 16 / 9)); max-height: calc(100vh - 110px); background: #000; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--black); display: flex; align-items: center; justify-content: center; transition: background .3s; }
.lightbox-close:hover { background: var(--yellow); }
.lightbox-close svg { width: 22px; height: 22px; }

/* ---------- Transición entre páginas (barrido diagonal amarillo) ---------- */
.page-transition {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none; overflow: hidden; visibility: hidden;
}
.page-transition .pt-panel {
  position: absolute; top: -5vh; bottom: -5vh; left: -45vh; width: calc(100vw + 90vh); background: var(--yellow);
  clip-path: polygon(37vh 0, 100% 0, calc(100% - 37vh) 100%, 0 100%);
  transform: translateX(-110%);
}
.page-transition .pt-logo { position: absolute; left: 50%; top: 50%; width: 140px; transform: translate(-50%, -50%); opacity: 0; transition: opacity .2s; }
.page-transition .pt-logo img { display: block; width: 100%; height: auto; transform-origin: 50% 85%; animation: pt-sway 1.6s ease-in-out infinite; }
@keyframes pt-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@media (min-width: 992px) { .page-transition .pt-logo { width: 11.6667vw; max-width: 220px; } }
.page-transition.is-leaving, .page-transition.is-entering { visibility: visible; pointer-events: all; }
.page-transition.is-leaving .pt-panel { animation: pt-in .55s var(--ease-in-out) forwards; }
.page-transition.is-leaving .pt-logo { opacity: 1; transition-delay: .45s; }
.page-transition.is-entering .pt-panel { transform: translateX(0); animation: pt-out .65s var(--ease-in-out) .05s forwards; }
.pt-pending .page-transition { visibility: visible; }
.pt-pending .page-transition .pt-panel { transform: translateX(0); }
@keyframes pt-in { from { transform: translateX(-110%); } to { transform: translateX(0); } }
@keyframes pt-out { from { transform: translateX(0); } to { transform: translateX(110%); } }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--delay, 0s); }
.reveal.is-in-view { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-25px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--delay, .2s); }
.reveal-left.is-in-view { opacity: 1; transform: none; }
/* El recorte va en los hijos: si se recorta el elemento observado, IntersectionObserver lo da por invisible */
.reveal-img > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-in-out); transition-delay: var(--delay, 0s); }
.reveal-img.is-in-view > * { clip-path: inset(0 0 0 0); }
.no-js .reveal, .no-js .reveal-left { opacity: 1; transform: none; }
.no-js .reveal-img > * { clip-path: none; }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .reveal-left { opacity: 1; transform: none; }
  .reveal-img > * { clip-path: none; }
  .marquee-track { animation: none; }
  [data-parallax] { transform: none !important; }
}

/* ---------- Utilidades ---------- */
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.maxw-640 { max-width: 640px; }
.maxw-820 { max-width: 820px; }
.c-yellow { color: var(--yellow); }
.c-grey { color: var(--dark-grey); }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } .hide-desktop { display: none; } }

/* ---------- Elementos gráficos de marca ---------- */
/* Spray animado (GIF) sobre el video principal del Home */
/* Misma caja que tbwa.com: el GIF se ajusta dentro (contain) anclado arriba a la izquierda */
.media-cover > img.hero-spray {
  position: absolute; inset: 0 auto auto -19px; z-index: 2; pointer-events: none;
  height: 100%; width: auto; aspect-ratio: 465 / 646; object-fit: contain; object-position: 0 0;
}
@media (min-width: 768px) { .media-cover > img.hero-spray { width: 270px; height: 375px; aspect-ratio: auto; } }
@media (min-width: 992px) { .media-cover > img.hero-spray { left: 0; width: 321px; height: 445px; } }
@media (min-width: 1440px) { .media-cover > img.hero-spray { width: 465px; height: 646px; } }
@media (min-width: 1920px) { .media-cover > img.hero-spray { width: 619px; height: 859px; } }

/* Spray (spray_03) siempre amarillo en el hero de Disruption */
.hero-spray-03 {
  position: absolute; top: 0; left: 0; z-index: 2; width: 240px; aspect-ratio: 640 / 800; pointer-events: none;
  background: var(--yellow);
  -webkit-mask: url("../img/fx/spray-03.png") no-repeat top left / contain;
          mask: url("../img/fx/spray-03.png") no-repeat top left / contain;
  clip-path: inset(0 0 100% 0); transition: clip-path 1.6s var(--ease-out) .2s;
}
.disruption-hero.is-in-view .hero-spray-03, .no-js .hero-spray-03 { clip-path: inset(0 0 0 0); }
@media (min-width: 992px) { .hero-spray-03 { width: 26vw; max-width: 500px; } }

/* Triángulo del Disruption */
.disruption-triangle { width: 100%; height: auto; }

/* Chica pirata junto a "Nuestro trabajo" */
.work-head .title-img { flex: none; width: 1.5em; height: auto; margin: -.2em .05em -.2em 0; }

/* Banner de Acerca de nosotros + lettering "Honduras" */
.about-hero { display: block; min-height: 0; padding: 0 0 50px; }
.about-banner { position: relative; aspect-ratio: 1910 / 860; overflow: hidden; }
.about-banner .banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-hero .hero-lettering { position: absolute; left: 56%; top: 70%; width: 24%; height: auto; transform: rotate(-6deg); pointer-events: none; }
.about-hero .container { padding-top: 24px; }
@media (min-width: 768px) {
  .about-hero { display: flex; align-items: flex-end; min-height: max(520px, 46vw); padding: 0 0 4vw; }
  .about-banner { position: absolute; inset: 0; aspect-ratio: auto; }
  .about-hero .container { padding-top: 0; }
}

/* Carabela pirata junto a "Quiénes somos" */
.pirate-ship { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; }

/* Círculos de capacidades (sólo texto) */
.circle { cursor: default; }

/* Cursor con fusión (blending) en el Home */
.page-home .follow-cursor { mix-blend-mode: difference; }


/* Sello Honduras junto a "Quiénes somos" */
.stamp-honduras { display: block; width: 100%; height: auto; }

/* Hero del Home con el mismo alto que tbwa.com:
   móvil 16:9 · 768–991px 445px · ≥992px 44.9vw (647px a 1440) · ≥1920px 862px */
.media-cover.hero { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .media-cover.hero { aspect-ratio: auto; height: 445.37px; } }
@media (min-width: 992px) { .media-cover.hero { height: 44.8958vw; } }
@media (min-width: 1920px) { .media-cover.hero { height: 862px; } }

/* Íconos junto a los textos del Home */
.home-icon { display: block; width: 100%; height: auto; }
.home-icon-half { width: 50%; margin: 0 auto; }

/* Backslash al inicio de un título (como "Our Capabilities" en tbwa.com) */
.has-overlay { position: relative; isolation: isolate; }
.has-overlay .heading-overlay {
  position: absolute; z-index: -1; left: -.6em; top: 0; width: 1.25em; height: 1.6em; pointer-events: none;
  background: url("../img/marca/backslash-distressed.png") no-repeat 50% 0 / contain;
}


/* ---------- Página de caso (estructura de tbwa.com/work/…) ---------- */
.case-hero { position: relative; padding-bottom: var(--section-pad); }
.case-hero-media { height: 56vw; min-height: 240px; overflow: hidden; }
@media (min-width: 992px) { .case-hero-media { height: 43.75vw; max-height: 840px; } }
.case-hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Degradado inferior: el título se monta sobre la foto y debe leerse con cualquier imagen */
.case-hero-media { position: relative; }
.case-hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10, 10, 13, 0) 55%, rgba(10, 10, 13, .85) 100%); }
.case-hero-top { position: absolute; top: 18px; left: 0; right: 0; z-index: 2; }
@media (min-width: 992px) { .case-hero-top { top: 1.7361vw; } }
.cta.case-back { font-size: var(--fs-label); font-weight: 500; color: var(--white); padding: 4px 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.cta.case-back::before { order: -1; margin: 0 .35em 0 0; transform: rotate(180deg); }
.cta.case-back:hover::before { transform: rotate(180deg) translateX(3px); }
.case-hero-copy { position: relative; z-index: 2; margin-top: calc(var(--fs-h1) * -.86); }
.case-hero-copy .h1 { margin-bottom: .1em; }
.case-hero-copy .h3 { line-height: 1.12; }
.case-overview { margin-top: 50px; }
@media (min-width: 992px) { .case-overview { margin-top: 5.3472vw; } }
.case-overview .standard { color: var(--hint); }

.case-video { position: relative; aspect-ratio: 16 / 9; background: var(--black); overflow: hidden; }
.case-video + .case-video { margin-top: 24px; }
@media (min-width: 992px) { .case-video + .case-video { margin-top: 1.6667vw; } }
.case-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-video.is-playing video { object-fit: contain; }
/* Video vertical (9:16): no se estira al ancho de la página; se centra y no pasa del 82% del alto de la pantalla */
.case-video[data-vertical] { width: min(100%, calc(82vh * var(--ar, .5625))); margin-inline: auto; }
.case-play {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(180deg, rgba(10, 10, 13, 0) 40%, rgba(10, 10, 13, .45) 100%); color: var(--white); cursor: pointer;
}
.case-play .play-badge { position: static; transform: none; }
.case-play:hover .play-badge, .case-play:focus-visible .play-badge { transform: scale(1.08); background: var(--yellow); }
.case-play .label { letter-spacing: .08em; }
.case-video.is-playing .case-play { display: none; }

.data-bite .data-value { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h1); line-height: 1; letter-spacing: -.03em; color: var(--yellow); margin-bottom: 14px; }
.data-bite .data-value sup { font-size: .45em; vertical-align: top; position: relative; top: .25em; margin-left: .05em; }

/* Navegación entre casos: proyecto anterior / siguiente */
.case-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 10px 0 50px; }
@media (max-width: 767px) {
  /* En celular "Ir al anterior" e "Ir al siguiente" van en la misma línea, más pequeños, con su texto de caso debajo */
  .case-nav-grid { gap: 16px; }
  .case-nav-grid .cta-lg { font-size: clamp(16px, 5.1vw, 22px); white-space: nowrap; }
  .case-nav-meta { font-size: 12px; line-height: 1.3; margin-top: 2px; }
}
@media (min-width: 992px) { .case-nav-grid { padding: .6944vw 0 4.1667vw; } }
.case-nav-item { display: flex; flex-direction: column; align-items: flex-start; }
.case-nav-item.next { align-items: flex-end; text-align: right; }
.case-nav-meta { font-family: var(--sans); font-size: var(--fs-small); color: var(--dark-grey); margin-top: 6px; }

/* Línea corta bajo "El Reto" / "La Solución" (como en tbwa.com: 71px a 1440, 1px) */
.rule.rule-narrow { width: 48px; opacity: 1; margin-bottom: 23px; }
.stack > .rule.rule-narrow { margin-top: 23px; }
.stack > .rule.rule-narrow + * { margin-top: 0; }
@media (min-width: 992px) {
  .rule.rule-narrow { width: 4.9306vw; margin-bottom: 1.5972vw; }
  .stack > .rule.rule-narrow { margin-top: 1.5972vw; }
}

/* En móvil las columnas de "Nuestro trabajo" se disuelven: las tarjetas siguen el orden de los datos */
.work-grid .card { order: var(--orden, 0); }

/* ---------- Botón "Regresar" flotante (siempre visible al hacer scroll) ---------- */
.btn-regresar {
  position: fixed; left: clamp(16px, 3vw, 48px); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 150;
  display: inline-flex; align-items: center; gap: .5em; padding: 11px 20px 11px 14px; border-radius: 999px;
  background: var(--yellow); color: var(--black); text-decoration: none;
  font-family: var(--sans); font-size: 12px; font-weight: 500; line-height: 1; text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 6px 22px rgba(10, 10, 13, .28);
  transition: background-color .3s, color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.btn-regresar::before {
  content: ""; flex: none; width: .75em; height: .75em; background: currentColor; transform: rotate(180deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M22 8 19 11l20 21-20 21 3 3 23-24z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M22 8 19 11l20 21-20 21 3 3 23-24z'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .3s var(--ease-out);
}
.btn-regresar:hover, .btn-regresar:focus-visible { background: var(--black); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(10, 10, 13, .35); }
.btn-regresar:hover::before, .btn-regresar:focus-visible::before { transform: rotate(180deg) translateX(3px); }
@media (min-width: 992px) { .btn-regresar { font-size: 13px; padding: 13px 24px 13px 17px; bottom: 24px; } }
/* Espacio al final del pie de página para que el botón no tape la línea legal */
.site-footer { padding-bottom: 100px; }

/* ---------- Cifras (Acerca de nosotros: TBWA Worldwide y TBWA Honduras) ---------- */
.stats { display: grid; gap: 36px 24px; }
@media (min-width: 768px) { .stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat-num { font-family: var(--serif); font-weight: 300; font-size: calc(var(--fs-h1) * 1.9); line-height: 1; letter-spacing: -.03em; margin-bottom: 10px; }
.bg-black .stat-num { color: var(--yellow); }
.stat-label { font-family: var(--sans); font-size: var(--fs-standard); line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; }
.stat-sub { font-family: var(--sans); font-size: var(--fs-small); line-height: 1.3; color: var(--dark-grey); margin-top: 8px; }
.bg-black .standard strong { color: var(--white); font-weight: 700; }
.stat-stamp { align-self: center; max-width: 260px; }
@media (min-width: 768px) { .stat-texto { grid-column: 2 / span 2; } }

/* Goteo del Home (drip_marker_01): entra 5 s después del spray, de arriba hacia abajo con borde suave */
.media-cover > img.hero-drip {
  position: absolute; inset: 0 auto auto 0; z-index: 2; pointer-events: none;
  width: auto; height: 100%; aspect-ratio: 653 / 1400; object-fit: cover; object-position: 0 0;
  opacity: 0;
  -webkit-mask: linear-gradient(180deg, #000 0, #000 33.33%, transparent 40%) 0 100% / 100% 300% no-repeat;
          mask: linear-gradient(180deg, #000 0, #000 33.33%, transparent 40%) 0 100% / 100% 300% no-repeat;
  transition: -webkit-mask-position 0s, mask-position 0s, opacity 0s;
}
.media-cover > img.hero-drip.is-dripping {
  opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0;
  transition: -webkit-mask-position 3.2s cubic-bezier(.3,.55,.35,1), mask-position 3.2s cubic-bezier(.3,.55,.35,1), opacity .6s ease-out;
}
.no-js .media-cover > img.hero-drip { opacity: 1; -webkit-mask: none; mask: none; }
@media (prefers-reduced-motion: reduce) { .media-cover > img.hero-drip.is-dripping { transition: none; } }

/* Sello de la guara (Home): un poco más arriba que el centro del bloque de texto */
.home-guara { position: relative; top: calc(-1 * clamp(20px, 3vw, 56px)); }

/* Spray del footer (spray_02, en #FFFFFF): esquina superior derecha, subido para que se vea sólo la parte baja
   de la mancha (filas 739–906 de 1057; debajo de la fila 906 la imagen es transparente) */
.footer-spray { position: absolute; top: 0; right: 0; z-index: 0; width: clamp(240px, 30vw, 560px); aspect-ratio: 866 / 167; overflow: hidden; pointer-events: none; }
.footer-spray img { position: absolute; left: 0; top: calc(-442.51% - 6px); width: 100%; height: auto; }
.site-footer > .container { position: relative; z-index: 1; }

/* Crayón amarillo (crayon_01) detrás del título "Históricos". Va al fondo de la sección: el texto y las tarjetas
   (también las de la fila de arriba, por eso esa sección sube de capa y deja ver el fondo blanco) quedan por encima.
   Se corre a la izquierda de la palabra sin salirse de la pantalla. Su tamaño no depende del título (usa --fs-h5). */
.sec-crayon { position: relative; isolation: isolate; }
.sec-sobre-crayon { position: relative; z-index: 1; background: transparent; }
.sec-crayon h2 { letter-spacing: normal; } /* mismo interletrado que el título del reel */
.crayon-wrap { position: relative; display: inline-block; }
.crayon-wrap .heading-crayon {
  position: absolute; z-index: -1; left: max(calc(-4.7 * var(--fs-h5)), calc(-1 * var(--gutter))); top: 50%; width: calc(15 * var(--fs-h5)); aspect-ratio: 1022 / 1334; pointer-events: none;
  transform: translateY(-57%);
  background: url("../img/marca/crayon-01.png") no-repeat 50% 50% / contain;
}
@media (min-width: 992px) { .crayon-wrap .heading-crayon { left: max(calc(-4.7 * var(--fs-h5)), -10vw); } }

/* Spray amarillo (spray_07) en el lado superior derecho de la sección TBWA Honduras.
   Capas: línea (abajo) < spray < textos, cifras y sello (arriba) */
.sec-spray { position: relative; overflow: hidden; }
.sec-spray-img { position: absolute; top: -4vw; right: -3vw; z-index: 1; width: clamp(240px, 26vw, 460px); pointer-events: none; }
.sec-spray-img img { width: 100%; height: auto; }
.sec-spray > .container > :not(.rule) { position: relative; z-index: 2; }

/* ---------- Contenido digital ---------- */
.cd-head { position: relative; overflow: hidden; padding-bottom: 70px; background: #EAE8DD; color: var(--black); }
.cd-head .container { position: relative; z-index: 1; }
.cd-head .stat-num { color: var(--yellow); }
/* crossbones_03 a la izquierda del título (el de Campañas es más ancho; éste es vertical) */
.cd-head .title-img { width: auto; height: 1.45em; margin: -.2em .12em -.2em 0; }
/* backslash_spray_02 (blanco) pegado al borde inferior de la sección, a la derecha, detrás del texto */
.cd-spray { position: absolute; z-index: 0; bottom: 0; right: 3vw; width: clamp(200px, 26vw, 420px); pointer-events: none; }
.cd-spray img { width: 100%; height: auto; max-width: none; }
@media (max-width: 767px) { .cd-spray { right: -10vw; width: 46vw; } }
.cd-filters { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 26px 0 0; }
/* Titular: la tipografía serif sólo tiene peso ligero (en negrita se vería falsa); el énfasis es un marcador amarillo plano */
.cd-lead-big, .cd-lead-sub { display: block; font-size: var(--fs-h2); line-height: 1; letter-spacing: -.03em; }
.cd-lead-sub { margin-top: .12em; }
.cd-lead strong { font-weight: 300; background: linear-gradient(transparent 64%, var(--yellow) 64%, var(--yellow) 94%, transparent 94%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cd-filters button { transition: color .3s; }

/* Carrusel (mismo comportamiento que el de Leadership de tbwa.com): tarjetas inclinadas 18°, la del centro más grande
   con el nombre de la marca debajo, las vecinas medianas y el resto como cintas angostas. Las posiciones las calcula main.js. */
/* Scroll scrubbing: la sección negra mide el escenario + el recorrido (--cd-run); el escenario se queda fijo y las piezas
   pasan de estar dispersas a formar el carrusel mientras se hace scroll (main.js, "esparcir") */
.cd-scrub { position: relative; --cd-run: 200vh; height: calc(100vh - var(--header-h) + var(--cd-run)); height: calc(100svh - var(--header-h) + var(--cd-run)); }
@media (max-width: 767px) { .cd-scrub { --cd-run: 170vh; } }
.cd-escenario {
  position: sticky; top: var(--header-h); display: flex; flex-direction: column; justify-content: center; overflow: hidden; overflow: clip;
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
}
.cd-scrub .cd-carousel { margin-top: 0; }
/* Los filtros viven en el escenario fijo: se pueden usar mientras se ve el carrusel */
.cd-escenario > .container { position: relative; z-index: 300; }
.cd-escenario .cd-filters { margin: 0 0 clamp(14px, 2.2vw, 34px); }
.cd-escenario .cd-filters button:hover, .cd-escenario .cd-filters button.is-active { color: var(--black); }
/* Mientras las piezas se ordenan no se ven los filtros; aparecen cuando el carrusel está armado */
.cd-escenario .cd-filters { transition: opacity .4s; }
.cd-escenario.is-scrub .cd-filters { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility 0s .25s; }
.cd-carousel.is-scrub .lc-card, .cd-carousel.is-scrub .lc-media, .cd-carousel.is-scrub .lc-media img, .cd-carousel.is-scrub .lc-media::after { transition: none !important; }
.cd-carousel.is-scrub .lc-card { pointer-events: none; }
.cd-carousel.is-scrub .lc-caption { opacity: 0 !important; transition: none !important; }
.cd-carousel.is-scrub .lc-arrow, .cd-carousel.is-scrub .lc-dots { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .cd-scrub { height: auto; }
  .cd-escenario { position: static; height: auto; padding: 48px 0; }
}
.no-js .cd-scrub { height: auto; }
.no-js .cd-escenario { position: static; height: auto; padding: 48px 0; }
.cd-carousel { position: relative; width: 100%; }
.cd-carousel .items { position: relative; width: 100%; height: 92vw; padding-bottom: calc(11vw + 24px); box-sizing: content-box; }
@media (min-width: 576px) { .cd-carousel .items { height: 36vw; padding-bottom: calc(4.95vw + 28px); } }
.lc-card {
  position: absolute; top: 0; left: 50%; z-index: 1;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .7s cubic-bezier(.22, 1, .36, 1);
}
.lc-card.lc-no-transition, .lc-card.lc-no-transition .lc-media, .lc-card.lc-no-transition .lc-media img, .lc-card.lc-no-transition .lc-media video { transition: none !important; }
.lc-media {
  position: relative; display: block; overflow: hidden; cursor: pointer; background: #17171b;
  transform: skewX(var(--sk, 18deg)); transform-origin: center center;
  transition: width .7s cubic-bezier(.22, 1, .36, 1), height .7s cubic-bezier(.22, 1, .36, 1);
}
.lc-media img, .lc-media video {
  position: absolute; left: 50%; top: 50%; height: 100%; max-width: none; object-fit: cover;
  transform: translate(-50%, -50%) skewX(calc(var(--sk, 18deg) * -1)); transform-origin: center center;
  transition: width .7s cubic-bezier(.22, 1, .36, 1);
}
/* Velo oscuro sobre las piezas que no están al centro: resalta la pieza central (se aclara al pasar el mouse) */
.lc-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--black); opacity: var(--velo, .6);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1);
}
.lc-card.is-center .lc-media::after { opacity: 0; }
.lc-card.lc-no-transition .lc-media::after { transition: none !important; }
@media (hover: hover) and (pointer: fine) { .lc-card:not(.is-center) .lc-media:hover::after { opacity: .3; transition-duration: .3s; } }
.lc-caption {
  position: absolute; left: 11vw; top: calc(100% + 12px); width: 80vw; opacity: 0; pointer-events: none;
  transition: opacity .2s cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 576px) { .lc-caption { left: 4vw; width: 34vw; } }
/* En el celular el nombre de la marca va siempre centrado bajo la pieza central */
@media (max-width: 575px) { .lc-caption { left: 50%; width: 84vw; transform: translateX(-50%); text-align: center; } }
.lc-card.is-center .lc-caption { opacity: 1; transition: opacity .3s cubic-bezier(.22, 1, .36, 1) .5s; }
.lc-name { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h4); line-height: 1; letter-spacing: -.02em; color: var(--white); }
.lc-desc { padding-top: 11px; font-family: var(--sans); font-size: 13px; line-height: 1.2; text-transform: uppercase; color: #D9D9D9; }
@media (min-width: 992px) { .lc-desc { font-size: 1.0417vw; } }
.lc-arrow {
  position: absolute; z-index: 200; bottom: 8px; width: 11vw; height: 11vw; padding: 0; box-sizing: border-box; cursor: pointer;
  border: 1px solid var(--white); border-radius: 50%; background-color: rgba(255,255,255,0);
  transition: background-color .3s ease-in-out, border-color .3s ease-in-out, opacity .4s;
}
.lc-arrow::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 32%; height: 32%; transform: translate(-50%, -50%); background-color: var(--white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 64 64%27%3E%3Cpath d=%27M23.236 54L41.4648 35.8899C44.1837 33.1891 44.1837 28.8109 41.4648 26.1101L23.236 8L19.7918 11.4227L38.634 31L19.4951 50.2836L23.236 54Z%27/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 64 64%27%3E%3Cpath d=%27M23.236 54L41.4648 35.8899C44.1837 33.1891 44.1837 28.8109 41.4648 26.1101L23.236 8L19.7918 11.4227L38.634 31L19.4951 50.2836L23.236 54Z%27/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background-color .3s ease-in-out;
}
.lc-arrow:hover, .lc-arrow:focus-visible { background-color: var(--yellow); border-color: var(--yellow); }
.lc-arrow:hover::before, .lc-arrow:focus-visible::before { background-color: var(--black); }
.lc-prev { left: 8%; } .lc-next { right: 8%; }   /* celular: las flechas no van pegadas a la orilla */
.lc-prev::before { transform: translate(-50%, -50%) scaleX(-1); }
@media (min-width: 576px) {
  .cd-carousel { --dots-w: min(340px, 30vw); }
  .lc-arrow { width: 4.95vw; height: 4.95vw; }
  .lc-prev { left: calc(50% - var(--dots-w) / 2 - 4.95vw - 18px); } .lc-next { right: calc(50% - var(--dots-w) / 2 - 4.95vw - 18px); }
}
.cd-carousel.is-solo .lc-arrow { display: none; }
.lc-dots { position: absolute; left: 0; right: 0; bottom: calc(8px + 5.5vw - 1px); z-index: 40; display: flex; justify-content: center; width: calc(100% - 2 * (8% + 11vw + 14px)); margin: 0 auto; transition: opacity .4s; }
@media (min-width: 576px) { .lc-dots { bottom: calc(8px + 2.475vw - 1px); width: var(--dots-w); } }
.lc-dot { flex: 1 1 0; max-width: 25px; height: 2px; background-color: rgba(255,255,255,.4); transition: background-color .3s ease-in-out; }
.lc-dot.is-active { background-color: var(--white); }
.no-js .cd-carousel .items { height: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; padding: 0 var(--gutter); }
.no-js .lc-card { position: static; }
.no-js .lc-media { transform: none; width: 100%; aspect-ratio: 1; }
.no-js .lc-media img { position: static; transform: none; width: 100%; }
.no-js .lc-caption { position: static; opacity: 1; width: auto; padding-top: 8px; }

/* Visor de piezas: imagen o video grande + nombre de la marca */
.cd-lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(10,10,13,.96); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 70px 16px 28px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
}
.cd-lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.cd-stage { display: flex; align-items: center; justify-content: center; width: 100%; }
.cd-stage img, .cd-stage video {
  max-width: 100%; width: auto; height: auto; border-radius: var(--radius); background: #000;
  max-height: calc(100vh - 190px); max-height: calc(100svh - 190px);
}
.cd-caption { text-align: center; display: flex; flex-direction: column; gap: 6px; min-height: 2.6em; }
.cd-marca { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h5); line-height: 1; }
.cd-desc:empty { display: none; }
.cd-desc { font-family: var(--sans); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); }
.cd-nav {
  position: absolute; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--black);
  display: flex; align-items: center; justify-content: center; transition: background .3s;
}
.cd-nav:hover { background: var(--yellow); }
.cd-nav svg { width: 22px; height: 22px; }
.cd-prev { left: 16px; } .cd-next { right: 16px; }
.cd-prev svg { transform: scaleX(-1); }
@media (min-width: 768px) {
  .cd-lightbox { padding: 70px 96px 28px; }
  .cd-nav { top: 50%; bottom: auto; transform: translateY(-50%); }
  .cd-prev { left: 24px; } .cd-next { right: 24px; }
}

/* Detrás de cámaras (página de caso): carrusel 3D a todo el ancho, como la galería "coverflow" de Motion */
.case-bts { overflow: hidden; }
.bts-carousel { --h: clamp(220px, 30vw, 420px); }
.bts-stage { position: relative; height: calc(var(--h) + 64px); overflow: hidden; perspective: 1700px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.bts-stage.is-dragging { cursor: grabbing; }
.bts-stage:focus-visible { outline: 2px solid var(--yellow); outline-offset: -4px; }
.bts-track { position: absolute; top: 32px; left: 0; display: flex; gap: 24px; width: max-content; transform-style: preserve-3d; will-change: transform; }
.bts-track .bts-card { flex: none; position: relative; height: var(--h); width: auto; aspect-ratio: var(--ar); margin: 0; overflow: hidden; background: var(--black); will-change: transform, opacity; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bts-card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.bts-card:not(.is-active) { cursor: pointer; }
.bts-card:not(.is-active) .case-play { pointer-events: none; }
.bts-controls { display: flex; align-items: center; justify-content: center; gap: 28px; padding-top: 28px; }
.bts-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--black); border-radius: 50%; background: transparent; color: var(--black); cursor: pointer; transition: background .3s, border-color .3s, opacity .3s, transform .3s var(--ease-out); }
.bts-btn svg { display: block; width: 22px; height: 22px; }
.bts-flip { display: grid; transform: scaleX(-1); }
.bts-btn:hover:not(:disabled), .bts-btn:focus-visible { background: var(--yellow); border-color: var(--yellow); transform: scale(1.06); }
.bts-btn:disabled { opacity: .28; cursor: default; }
.bts-count { min-width: 5.5em; text-align: center; font-family: var(--sans); font-size: var(--fs-small); letter-spacing: .12em; }

/* Salto de línea que sólo se aplica en celular (títulos largos de los casos) */
.solo-movil { display: none; }
@media (max-width: 767px) { .solo-movil { display: inline; } }

/* Reels (página de caso): tarjetas verticales que abren el reproductor con sonido */
.reels-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 768px) { .reels-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reel-card { position: relative; display: block; aspect-ratio: var(--ar); overflow: hidden; background: var(--black); border-radius: var(--radius); }
.reel-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.reel-card:hover img, .reel-card:focus-visible img { transform: scale(1.04); }
.reel-card .play-badge { width: 22%; height: auto; aspect-ratio: 1; max-width: 80px; max-height: none; }
.reel-card:hover .play-badge, .reel-card:focus-visible .play-badge { transform: translate(-50%, -50%) scale(1.08); background: var(--yellow); }
/* El reproductor flotante adapta su tamaño a videos verticales */
.lightbox video.is-vertical { width: auto; height: calc(100vh - 110px); max-width: 100%; max-height: calc(100vh - 110px); }

/* Videos de campañas del Home: misma altura que las secciones con media de tbwa.com (como "The Golden Zone"):
   móvil 16:9 · 768–991px 445px · ≥992px 44.8958vw (647px a 1440) · ≥1920px 862px */
.media-cover.is-link { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .media-cover.is-link { aspect-ratio: auto; height: 445.37px; } }
@media (min-width: 992px) { .media-cover.is-link { height: 44.8958vw; } }
@media (min-width: 1920px) { .media-cover.is-link { height: 862px; } }
/* Los logos de las marcas suelen estar arriba: el video se alinea por el borde superior y se recorta por abajo */
.media-cover.is-link video { object-position: 50% 0; }

/* Ancla (tbwa_anchor_03) a la izquierda de "Experiencia de marca": vertical, como el crossbones de Contenido digital */
.exp-head .title-img { width: auto; height: 1.45em; margin: -.2em .12em -.2em 0; }

/* spray_07 (amarillo) grande a la derecha del encabezado de Experiencia de marca, como el spray de Contenido digital */
.exp-spray { position: absolute; z-index: 0; top: 50%; right: -2vw; width: clamp(280px, 38vw, 620px); transform: translateY(-50%); pointer-events: none; }
.exp-spray img { width: 100%; height: auto; max-width: none; display: block; }
@media (max-width: 767px) { .exp-spray { top: auto; bottom: -14vw; right: -22vw; width: 78vw; transform: none; } }
/* Menos aire entre el encabezado de Experiencia de marca y la primera tarjeta */
.exp-head + .section { padding-top: calc(var(--section-pad) * .5); }
