/* ==========================================================================
   medrategas.com — redesign
   --------------------------------------------------------------------------
   tokens:   charcoal #2b2b33 · band #35353F · deep #29292b · light #d8d7d7
             red #ee0016 (single accent) · white · greys #999 / #888
   type:     Yanone Kaffeesatz (display, numbers, headings)
             Inter (body, UI)
   sections: 01 fonts · 02 base · 03 header · 04 hero · 05 bands & textures
             06 how we work · 07 quote · 08 case studies · 09 brands grown
             10 let's talk · 11 footer · 12 lightbox · 13 motion · 14 responsive
   ========================================================================== */

/* ---------- 01 · fonts ---------- */
@font-face { font-family: 'Yanone'; src: url('assets/fonts/yanone-400.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'Yanone'; src: url('assets/fonts/yanone-600.woff2') format('woff2'); font-weight: 600; }
@font-face { font-family: 'Yanone'; src: url('assets/fonts/yanone-700.woff2') format('woff2'); font-weight: 700; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter-400.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter-500.woff2') format('woff2'); font-weight: 500; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter-600.woff2') format('woff2'); font-weight: 600; }

/* ---------- 02 · base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #2b2b33; color: #ffffff;
  font-family: 'Inter', sans-serif; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
.red { color: #ee0016; }
/* promise integrity: the red phrase never splits across lines */
.hero h1 .red, .footer-tag .red { white-space: nowrap; }

/* accessibility: hidden until keyboard-focused */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #ee0016; color: #fff; padding: 12px 20px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

.section { padding: 160px 48px; max-width: 1280px; margin: 0 auto; }
.section-head { margin-bottom: 80px; }
.marker { width: 64px; height: 10px; background: #ee0016; margin-bottom: 28px; }
.kicker {
  color: #ee0016; font-family: 'Yanone', sans-serif; font-weight: 600;
  font-size: 18px; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 8px;
}
.section h2, .brands-band h2 {
  font-family: 'Yanone', sans-serif; font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px); letter-spacing: 1px;
}
.section-sub { margin-top: 20px; color: #999; font-size: 17px; max-width: 760px; line-height: 1.6; }

/* ---------- 03 · header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 48px;
  max-width: 1280px; margin: 0 auto;
}
.header-logo { height: 46px; width: auto; }
.header-social { display: flex; align-items: center; gap: 26px; }
.header-social a {
  color: #888; font-size: 19px; text-decoration: none;
  transition: color .25s;
}
.header-social a:hover { color: #fff; }
.header-right { display: flex; align-items: center; gap: 8px; }
.lang-opt {
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; color: #999; transition: color .25s; text-decoration: none;
}
.lang-opt.active { color: #ee0016; }
.lang-sep { color: #555; font-size: 13px; }

/* ---------- 04 · hero ---------- */
.hero {
  min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; text-align: center;
  padding: 80px 48px 120px;
  max-width: 1280px; margin: 0 auto;
}
.ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-52%);
  width: min(52vw, 520px); aspect-ratio: 1; border-radius: 50%;
  border: 64px solid rgba(238,0,22,0.055);
  display: flex; align-items: center; justify-content: center;
  animation: ringdrift 24s ease-in-out infinite alternate;
}
@keyframes ringdrift {
  from { transform: translate(-50%,-52%) scale(1); }
  to   { transform: translate(-50%,-55%) scale(1.045); }
}
.rdot { width: 24%; aspect-ratio: 1; border-radius: 50%; background: rgba(238,0,22,0.055); }
.hero-inner { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; }
.hero h1 {
  font-family: 'Yanone', sans-serif; font-weight: 700;
  font-size: clamp(52px, 8.5vw, 124px); line-height: 1.02; letter-spacing: 1px;
}
.hero-hook {
  font-family: 'Yanone', sans-serif; font-weight: 400;
  color: #999; font-size: 24px; letter-spacing: 2.5px; margin-top: 52px;
}

/* ---------- 05 · bands & textures ---------- */
.band { background: #35353F; }
.band, .quote-section { position: relative; overflow: hidden; }
.band .section, .quote-section blockquote, .quote-section .qicon { position: relative; z-index: 1; }
.band .section { padding-top: 140px; padding-bottom: 140px; }
.band-talk { background: #29292b; }
.tex { position: absolute; z-index: 0; pointer-events: none; user-select: none; }
.tex-square { right: 0; top: 8%; width: 400px; }
.tex-tri { right: 0; top: 0; width: 420px; filter: brightness(2.2); }
.tex-dots { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 06 · how we work (pillars) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.pillar { position: relative; padding-top: 8px; }
.ghost {
  position: absolute; top: -54px; left: -12px;
  font-family: 'Yanone', sans-serif; font-weight: 700; font-size: 130px;
  color: rgba(238,0,22,0.07); line-height: 1; user-select: none;
}
.pillar h3 {
  font-family: 'Yanone', sans-serif; font-weight: 700; font-size: 30px;
  color: #ffffff; margin-bottom: 18px; position: relative;
}
.picon { font-size: 30px; color: #ee0016; margin-bottom: 22px; display: block; }
.pillar p { color: #999; font-size: 16px; line-height: 1.7; position: relative; }
.pillar:nth-child(2).reveal { transition-delay: .3s; }
.pillar:nth-child(3).reveal { transition-delay: .6s; }

/* ---------- 07 · quote ---------- */
.quote-section { text-align: center; max-width: 880px; }
.qicon { font-size: 38px; color: #ee0016; margin-bottom: 44px; }
blockquote p {
  font-size: clamp(20px, 2.6vw, 28px); line-height: 1.6; font-weight: 500;
}
blockquote cite {
  display: block; margin-top: 36px; font-style: normal;
  color: #999; font-size: 15px; letter-spacing: 0.5px;
}
.quote-social { display: flex; gap: 28px; justify-content: center; margin-top: 24px; }
.quote-social a {
  color: #888; font-size: 20px; text-decoration: none;
  transition: color .25s;
}
.quote-social a:hover { color: #ee0016; }

/* ---------- 08 · case studies ---------- */
.case { display: block; margin-bottom: 140px; position: relative; }
.case:last-child { margin-bottom: 0; }
.case-body { max-width: 680px; margin: 0 auto; width: 100%; }

/* problem · solution · results */
.deep-block { margin: 36px 0 0; }
.deep-block.first { margin-top: 0; }
.deep-block + .case-name { margin-top: 56px; }
.results-inline { margin: 0; }
#brand-storytelling .section-head { margin-bottom: 56px; }
#brand-storytelling .case { margin-bottom: 96px; }
#brand-storytelling .case:last-child { margin-bottom: 0; }
.deep-block + .arc { margin-top: 16px; }
.deep-block h4 {
  font-family: 'Yanone', sans-serif; font-weight: 700; font-size: 24px;
  color: #ffffff; margin-bottom: 12px; letter-spacing: 0.5px;
}
.deep-block h4 i { color: #ee0016; font-size: 19px; margin-right: 12px; }
.deep-block p { color: #999; font-size: 16px; line-height: 1.7; }
.deep-block p .red { font-weight: 700; }

/* brand name + film title */
.case-name { font-family: 'Yanone', sans-serif; font-weight: 700; font-size: 38px; color: #ffffff; letter-spacing: 0.5px; }
.case-name .dash { color: #fff; font-weight: 400; }
.case-name .red { font-size: 0.82em; }
.case-meta { color: #999; font-size: 14px; margin-top: 8px; letter-spacing: 0.5px; }

/* decline → growth arc */
.arc {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
  margin: 44px 0 8px;
}
.case-body > .arc:first-child { margin-top: 0; margin-bottom: 34px; }
.arc-from {
  font-family: 'Yanone', sans-serif; font-weight: 700;
  font-size: 46px; color: #ee0016;
}
.arc-arrow { color: #ffffff; font-size: 22px; transform: translateY(-4px); }
.arc-to {
  font-family: 'Yanone', sans-serif; font-weight: 700;
  font-size: 88px; color: #ffffff; line-height: 1;
}

/* results numbers */
.hero-num {
  font-family: 'Yanone', sans-serif; font-weight: 700;
  font-size: clamp(72px, 8vw, 120px); line-height: 1; margin-top: 28px;
}
.hero-label { font-size: 17px; font-weight: 600; margin-top: 10px; }
.rows { margin-top: 32px; }
.row {
  display: flex; align-items: baseline; gap: 20px;
  padding: 13px 0; border-top: 1px solid #3f4048;
}
.row .num { font-family: 'Yanone', sans-serif; font-weight: 700; font-size: 22px; min-width: 150px; }
.row .what { color: #999; font-size: 14px; }

/* buttons — one element type (<a class="btn">), one fixed box */
.btn {
  display: inline-block; margin-top: 32px; padding: 15px 32px;
  border: 1px solid #ee0016; border-radius: 12px;
  background: #3a3a44; color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.5px;
  transition: background .35s ease, border-color .35s ease, transform .2s ease;
}
.btn:hover {
  background: linear-gradient(90deg, #ee0016 0%, #761010 100%);
  border-color: transparent; transform: translateY(-1px);
}
.btn i { margin-right: 10px; font-size: 13px; }
.case-actions { display: flex; gap: 20px; justify-content: center; margin-top: 44px; }
.case-divider { border: 0; border-top: 1px solid #3f4048; margin-top: 96px; }
.case-actions .btn, .talk-links .btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 126px; height: 54px; padding: 0; text-align: center;
}
.case-actions .btn i, .talk-links .btn i { margin: 0; font-size: 22px; line-height: 1; }

/* ---------- 09 · brands grown (light interlude) ---------- */
.brands-band { background: #d8d7d7; padding: 150px 48px; }
.brands-inner { max-width: 1280px; margin: 0 auto; }
.brands-band .section-head { margin-bottom: 96px; }
.brands-band h2.dark { color: #2b2b33; }
.brand-wall {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 72px 88px; max-width: 1080px; margin: 0 auto;
}
.brand-wall img {
  height: 54px; width: auto; max-width: 190px; object-fit: contain;
  filter: grayscale(1); opacity: 0.72;
  transition: filter .3s, opacity .3s, transform .3s;
}
.brand-wall img:hover { filter: grayscale(0); opacity: 1; transform: translateY(-3px); }

/* ---------- 10 · let's talk ---------- */
.lets-talk { text-align: center; }
.talk-proof {
  font-family: 'Yanone', sans-serif; font-weight: 500;
  color: #fff; font-size: 26px; letter-spacing: 1px; margin-bottom: 28px;
}
.tp-u { position: relative; white-space: nowrap; }
.tp-u::after {
  content: ''; position: absolute; left: 0; bottom: -8px;
  width: 100%; height: 3px; background: #ee0016;
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s ease-out .15s;
}
.tp-u.underlined::after { transform: scaleX(1); }
.lets-talk p { color: #999; font-size: 18px; margin-top: 24px; }
.talk-links { display: flex; gap: 20px; justify-content: center; }

/* ---------- 11 · footer ---------- */
.site-footer {
  border-top: 1px solid #3f4048; padding: 56px 48px 40px;
  text-align: center;
}
.footer-social { display: flex; gap: 28px; justify-content: center; }
.footer-social a {
  color: #888; font-size: 20px; text-decoration: none;
  transition: color .25s;
}
.footer-social a:hover { color: #ee0016; }
.footer-tag {
  margin-top: 36px; font-family: 'Yanone', sans-serif; font-weight: 700;
  font-size: 20px; letter-spacing: 1px;
}
.footer-base {
  margin-top: 36px; display: flex; align-items: center; justify-content: space-between;
  color: #666; font-size: 13px;
}
.footer-icon { height: 26px; width: auto; }
.footer-icon-link { display: inline-block; opacity: .9; transition: opacity .25s, transform .25s; }
.footer-icon-link:hover { opacity: 1; transform: translateY(-2px); }

/* ---------- 12 · lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(18,18,22,0.93);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-frame {
  position: relative; height: min(86vh, 800px); aspect-ratio: 9/16;
  border-radius: 10px; overflow: hidden; background: #000;
  transform: scale(.96); transition: transform .3s ease;
}
.lightbox.open .lb-frame { transform: scale(1); }
.lb-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb-close {
  position: fixed; top: 26px; right: 34px; z-index: 101;
  background: none; border: 0; color: #999; font-size: 34px; line-height: 1;
  cursor: pointer; transition: color .25s;
}
.lb-close:hover { color: #fff; }

/* ---------- 13 · motion ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1.2s ease-out, transform 1.2s ease-out; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 14 · responsive ---------- */
@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; gap: 72px; }
  .case { margin-bottom: 96px; }
  .brand-wall { gap: 52px 60px; }
  .brand-wall img { height: 44px; }
}
@media (max-width: 600px) {
  .section { padding: 96px 24px; }
  .hero { padding: 60px 24px 80px; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 64px); }
  html[lang="es"] .hero h1 { font-size: clamp(34px, 11vw, 64px); }
  .site-header { padding: 20px 24px; }
  .header-logo { height: 34px; }
  .header-social { gap: 18px; }
  .header-social a { font-size: 16px; }
  .tex-square, .tex-tri { width: 240px; }
  .brands-band { padding: 96px 24px; }
  .brand-wall { gap: 40px 44px; }
  .brand-wall img { height: 36px; }
  .row .num { min-width: 110px; }
  .lb-close { top: 16px; right: 20px; }
}
