/* ============================================================
   JONO FILMS — Sistema de diseño
   Monocromático · tipografía grande · micro-labels en mono.
   Inspirado en la dirección visual de estudios premium (Mugen).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  /* Fondos — negro puro, sin tinte cálido */
  --bg-primary: #070708;
  --bg-elevated: #131315;
  --bg-warm-elevated: #18181b;

  /* Textos */
  --text-primary: #FFFFFF;
  --text-body: #D6D6D9;
  --text-secondary: #98989e;
  --text-tertiary: #6c6c72;
  --text-muted: #47474c;

  /* Acento — tomado directo del logo (flama), no inventado */
  --accent-primary: #E4572E;
  --accent-hover: #EA7B5B;
  --accent-bg: #2B1008;
  --on-accent: #1A1512;

  /* Bordes */
  --border-subtle: #1c1c1f;
  --border-default: #2a2a2e;
  --border-accent: #E4572E;

  /* Tipografía */
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Escala */
  --size-kicker: 14px;
  --size-h6: 14px;
  --size-p: 16px;
  --size-h5: 18px;
  --size-h4: clamp(20px, 2.4vw, 24px);
  --size-h3: clamp(26px, 4vw, 38px);
  --size-h2: clamp(32px, 5.6vw, 56px);
  --size-h1: clamp(40px, 7.6vw, 78px);

  --container: 1240px;
  --gutter: 28px;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--size-p);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
input, textarea, select{ font-family: inherit; font-size: inherit; }
h1,h2,h3,h4,h5,h6,p{ margin: 0; }

/* ---------- Type ---------- */
.kicker{
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--size-kicker);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.kicker::before{ content: '['; color: var(--text-muted); }
.kicker::after{ content: ']'; color: var(--text-muted); }
.kicker.center{ justify-content: center; }

h1, .h1{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--size-h1);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-transform: none;
}
h2, .h2{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-h2);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-transform: none;
}
h3, .h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-h3);
  line-height: 1.15;
  color: var(--text-primary);
  text-transform: none;
}
h4, .h4{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-h4);
  line-height: 1.25;
  color: var(--text-primary);
  text-transform: none;
}
.deck{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--size-h5);
  color: var(--text-secondary);
  line-height: 1.55;
}
.body-s{ font-size: var(--size-h6); color: var(--text-tertiary); }
p{ color: var(--text-body); }
.text-secondary{ color: var(--text-secondary); }
.text-tertiary{ color: var(--text-tertiary); }
.text-accent{ color: var(--accent-primary); }

/* ---------- Layout ---------- */
.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section{ padding: 96px 0; }
section.tight{ padding: 64px 0; }
@media (max-width: 720px){
  section{ padding: 64px 0; }
  section.tight{ padding: 44px 0; }
}
.section-head{ max-width: 680px; margin-bottom: 56px; }
.section-head .kicker{ margin-bottom: 18px; }
.section-head h2{ margin-bottom: 18px; }
.divider{ height: 1px; background: var(--border-subtle); border: none; margin: 0; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 16px 30px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--accent-primary);
  color: var(--on-accent);
}
.btn-primary:hover{ background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary{
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn-secondary:hover{ border-color: var(--text-primary); }
.btn-ghost{
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 15px;
  padding: 0;
  gap: 8px;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 2px;
  border-radius: 0;
}
.btn-ghost:hover{ border-color: var(--text-primary); gap: 12px; }
.btn-row{ display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,15,16,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.brand{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img{ flex-shrink: 0; }
.brand img{ height: 48px; width: auto; }
.brand span{
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-transform: uppercase;
}
.header-social{ display: none; align-items: center; gap: 16px; }
@media (min-width: 640px){ .header-social{ display: flex; } }
.header-social a{ color: var(--text-tertiary); display: flex; }
.header-social a:hover{ color: var(--accent-primary); }
.header-social svg{ width: 18px; height: 18px; }
.nav-main{ display: flex; align-items: center; gap: 40px; }
.nav-main a{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}
.nav-main a:hover{ color: var(--text-primary); }
.nav-main a.active{ color: var(--accent-primary); border-bottom: 1px solid var(--accent-primary); }
.nav-right{ display: flex; align-items: center; gap: 28px; }
.lang-switch{ display: flex; gap: 6px; font-size: 12px; letter-spacing: .06em; color: var(--text-tertiary); }
.lang-switch span.active{ color: var(--accent-primary); }
.nav-main .lang-switch a{ font: inherit; font-size: 12px; letter-spacing: inherit; padding: 0; color: inherit; transition: color .2s ease; }
.nav-main .lang-switch a:hover{ color: var(--text-primary); }
.nav-main .nav-cta{ display: none; }
.nav-right .nav-cta{ display: none; }
@media (min-width: 1180px){ .nav-right .nav-cta{ display: inline-flex; } }
@media (max-width: 1179px){ .nav-main .nav-cta{ display: inline-flex; } }
.btn.nav-cta{ padding: 11px 20px; font-size: 12px; }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  width: 32px; height: 24px;
  position: relative;
}
.nav-toggle span{
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--text-primary); transition: all .25s ease;
}
.nav-toggle span:nth-child(1){ top: 0; }
.nav-toggle span:nth-child(2){ top: 11px; }
.nav-toggle span:nth-child(3){ top: 22px; }
.nav-toggle.open span:nth-child(1){ transform: translateY(11px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-11px) rotate(-45deg); }

@media (max-width: 1179px){
  .nav-main{
    position: fixed;
    top: 96px; left: 0; right: 0;
    height: calc(100vh - 96px);
    height: calc(100dvh - 96px);
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 20px var(--gutter) 40px;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    z-index: 99;
  }
  .nav-main.open{ transform: translateX(0); }
  .nav-main a{
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 22px;
    font-family: var(--font-display);
    text-transform: uppercase;
  }
  .nav-main .nav-cta{ display: inline-flex; margin-top: 24px; }
  .lang-switch{ margin-top: 24px; }
  .nav-toggle{ display: block; }
}

/* ---------- Hero ---------- */
.hero{
  padding: 200px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero > .wrap{ position: relative; z-index: 1; }
.hero-page{ padding: 176px 0 72px; }
.hero .kicker{ margin-bottom: 24px; }
.brand-watermark{
  position: absolute; z-index: 0; pointer-events: none;
  right: -90px; top: -70px; width: 560px; opacity: .05;
}
@media (max-width: 900px){ .brand-watermark{ width: 320px; right: -60px; top: -30px; } }
.cta-close .brand-watermark{
  left: 50%; top: 50%; right: auto; bottom: auto;
  width: 460px; transform: translate(-50%, -50%);
}
.hero h1{ max-width: 900px; }
.hero .deck{
  margin-top: 22px;
  max-width: 620px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-body);
}
.hero p.subhead{
  margin-top: 16px;
  max-width: 560px;
  color: var(--text-secondary);
}
.hero .btn-row{ margin-top: 40px; }
.hero .btn-row .btn{ padding: 13px 24px; }

.hero-media{
  margin-top: 64px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  aspect-ratio: 16/8;
  background: var(--bg-elevated);
}
.hero-media img{ width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reframe / pivote blocks ---------- */
.pivot{
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.pivot .wrap{ max-width: 900px; text-align: center; }
.pivot .kicker{ justify-content: center; margin-bottom: 28px; }
.pivot h2{ margin-bottom: 26px; }
.pivot p{ color: var(--text-secondary); font-size: 18px; max-width: 680px; margin: 0 auto; }

/* ---------- Methodology steps ---------- */
.steps{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border-subtle); border: 1px solid var(--border-subtle); }
.step{ background: var(--bg-primary); padding: 44px 36px; }
.step .num{ font-family: var(--font-display); font-size: 44px; color: var(--accent-primary); opacity: .5; margin-bottom: 18px; }
.step h3{ font-size: 22px; margin-bottom: 14px; }
.step p{ color: var(--text-secondary); font-size: 15px; }
@media (max-width: 860px){ .steps{ grid-template-columns: 1fr; } }

.step-full{ display: grid; grid-template-columns: 120px 1fr; gap: 40px; padding: 56px 0; border-top: 1px solid var(--border-subtle); }
.step-full:last-of-type{ border-bottom: 1px solid var(--border-subtle); }
.step-full .num{ font-family: var(--font-display); font-size: 72px; color: var(--accent-primary); opacity: .45; line-height: 1; }
.step-full .pivot-line{ font-family: var(--font-display); text-transform: uppercase; font-size: clamp(20px,3vw,28px); color: var(--text-primary); margin-bottom: 20px; }
.step-full .desc{ color: var(--text-body); max-width: 760px; margin-bottom: 32px; font-size: 17px; }
.layer-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.layer{ background: var(--bg-elevated); border: 1px solid var(--border-subtle); padding: 26px; }
.layer .lbl{ font-family: var(--font-body); font-weight: 600; color: var(--accent-primary); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; display:block; }
.layer p{ font-size: 14.5px; color: var(--text-secondary); }
.phase-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px; }
.deliverable{
  background: var(--bg-warm-elevated);
  border: 1px solid var(--border-accent);
  border-left-width: 3px;
  padding: 24px 28px;
}
.deliverable .lbl{ color: var(--accent-primary); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; display:block; margin-bottom: 8px; }
.deliverable p{ color: var(--text-body); font-size: 15px; }
@media (max-width: 780px){
  .step-full{ grid-template-columns: 1fr; gap: 16px; }
  .layer-grid, .phase-grid{ grid-template-columns: 1fr; }
}

/* ---------- Portfolio: editorial list (home) ---------- */
.portfolio-list{ border-top: 1px solid var(--border-subtle); }
.portfolio-row{
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background .2s ease;
}
.portfolio-row:hover{ background: var(--bg-elevated); }
.portfolio-row .num{ font-family: var(--font-display); font-size: 26px; color: var(--text-muted); }
.portfolio-row:hover .num{ color: var(--accent-primary); }
.portfolio-row .info h3{ font-size: 21px; margin-bottom: 6px; }
.portfolio-row .info p{ color: var(--text-secondary); font-size: 14.5px; }
.portfolio-row .go{ color: var(--accent-primary); font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 640px){
  .portfolio-row{ grid-template-columns: 40px 1fr; }
  .portfolio-row .go{ grid-column: 2; }
}

/* ---------- Portfolio: bento collage (trabajo index) ----------
   Las 7 categorías conviven en un solo espacio cuadrado, en tamaños
   distintos, con algunas esquinas invadiendo el espacio de otras a
   propósito — como un mood board. En pantallas chicas se apilan. */
.bento{
  position: relative;
  width: 100%;
  max-width: 980px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.bento-tile{
  position: absolute;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
  transition: z-index 0s, box-shadow .25s ease;
}
.bento-tile:hover{ z-index: 30 !important; box-shadow: 0 20px 46px rgba(0,0,0,.65), 0 0 0 1px var(--accent-primary); }
.bento-tile img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bento-tile:hover img{ transform: scale(1.05); }
.bento-tile .overlay{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7,7,8,.94) 0%, rgba(7,7,8,.2) 60%, rgba(7,7,8,.05) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
}
.bento-tile .overlay .idx{ font-family: var(--font-mono); color: var(--accent-primary); font-size: 12px; margin-bottom: 6px; }
.bento-tile .overlay h3{ font-size: clamp(15px,2vw,22px); margin-bottom: 4px; line-height: 1.1; }
.bento-tile .overlay p{ color: var(--text-secondary); font-size: 13px; max-width: 340px; }

/* posiciones — porcentajes del cuadrado contenedor */
.pos-1{ left: 0%;   top: 0%;   width: 58%; height: 58%; z-index: 1; }
.pos-2{ left: 54%;  top: 0%;   width: 46%; height: 38%; z-index: 2; }
.pos-3{ left: 66%;  top: 34%;  width: 34%; height: 34%; z-index: 3; }
.pos-4{ left: 0%;   top: 54%;  width: 40%; height: 46%; z-index: 2; }
.pos-5{ left: 36%;  top: 62%;  width: 32%; height: 38%; z-index: 3; }
.pos-6{ left: 64%;  top: 64%;  width: 36%; height: 36%; z-index: 2; }
.pos-7{ left: 40%;  top: 40%;  width: 22%; height: 22%; z-index: 5; }
.pos-6 .overlay{ padding-left: calc(11% + 20px); } /* libera el borde que tapa .pos-5 */
.pos-7 .overlay p{ display: none; }
.pos-7 .overlay{ padding: 14px; }
.pos-7 .overlay h3{ font-size: 14px; }

@media (max-width: 760px){
  .bento{ position: static; width: auto; max-width: none; aspect-ratio: auto; display: flex; flex-direction: column; gap: 16px; }
  .bento-tile{ position: static !important; width: 100% !important; height: 260px !important; }
  .pos-6 .overlay{ padding-left: 22px; }
  .pos-7{ height: 200px !important; }
  .pos-7 .overlay p{ display: block; }
  .pos-7 .overlay h3{ font-size: clamp(17px,4vw,22px); }
}

/* ---------- Category page hero ---------- */
.cat-hero{
  position: relative;
  padding: 200px 0 90px;
  overflow: hidden;
}
.cat-hero .bg{
  position: absolute; inset: 0;
  z-index: 0;
}
.cat-hero .bg img{ width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.cat-hero .bg::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,16,.55) 0%, var(--bg-primary) 92%);
}
.cat-hero .wrap{ position: relative; z-index: 1; }
.cat-hero .kicker{ margin-bottom: 24px; }

/* ---------- Project grid (category page) ---------- */
.project-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card{
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  border-radius: 3px;
}
.project-card .thumb{ position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-warm-elevated); }
.project-card .thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .thumb img{ transform: scale(1.04); }
.project-card .thumb .idx{
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-primary);
  background: rgba(7,7,8,.65); backdrop-filter: blur(4px);
  padding: 4px 8px; border-radius: 3px; line-height: 1;
}
.project-card .body{ padding: 22px 24px; }
.project-card .body .tag{ color: var(--text-tertiary); font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.project-card .body h3{ font-size: 19px; margin: 10px 0 8px; }
.project-card .body p{ color: var(--text-secondary); font-size: 14px; }
.project-card.placeholder .thumb{
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--bg-warm-elevated), var(--bg-warm-elevated) 12px, var(--bg-elevated) 12px, var(--bg-elevated) 24px);
}
.project-card.placeholder .thumb span{
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-tertiary); font-size: 13px; border: 1px solid var(--border-default);
  padding: 10px 18px; background: rgba(15,15,16,.6);
}
@media (max-width: 900px){ .project-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .project-grid{ grid-template-columns: 1fr; } }

.project-card .thumb.video-embed{ position: relative; aspect-ratio: 16/9; background-color: #000; background-size: cover; background-position: center; }
.project-card .thumb.video-embed iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Hoja de contactos (categorías de Trabajo) ---------- */
.contact-sheet{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 28px; }
.cs-item{ margin: 0; cursor: pointer; outline-offset: 6px; }
.cs-item .mono{ font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); letter-spacing: .02em; white-space: nowrap; }
.cs-item .fr{ position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-elevated); }
.cs-item .fr img{ width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s ease, transform .8s ease; }
.cs-item:hover .fr img, .cs-item:focus-visible .fr img{ filter: none; transform: scale(1.04); }
.cs-item .fr::before, .cs-item .fr::after{
  content: ''; position: absolute; width: 22px; height: 22px; border: 1px solid var(--accent-primary);
  opacity: 0; transition: opacity .3s ease; z-index: 2; pointer-events: none;
}
.cs-item .fr::before{ left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.cs-item .fr::after{ right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.cs-item:hover .fr::before, .cs-item:hover .fr::after, .cs-item:focus-visible .fr::before, .cs-item:focus-visible .fr::after{ opacity: 1; }
.cs-item figcaption{ display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-default); }
.cs-photo figcaption, .cs-video figcaption{ justify-content: flex-end; }
.cs-item figcaption b{ font-family: var(--font-display); font-weight: 600; color: var(--text-primary); font-size: 15px; }
.cs-video .play{ position: absolute; left: 14px; bottom: 14px; width: 34px; height: 34px; border: 1px solid var(--accent-primary); border-radius: 50%; background: rgba(7,7,8,.6); z-index: 2; }
.cs-video .play::after{ content: ''; position: absolute; left: 13px; top: 9px; border-left: 10px solid var(--accent-primary); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.cs-video.is-playing{ cursor: default; }
.cs-video.is-playing .fr::before, .cs-video.is-playing .fr::after{ display: none; }
.cs-video .fr iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px){ .contact-sheet{ grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }
@media (max-width: 560px){ .contact-sheet{ grid-template-columns: 1fr; } }
@media (hover: none){ .cs-item .fr img{ filter: none; } }   /* en pantallas táctiles no hay hover: se muestran a color */

/* Visor de fotos */
.lightbox{ position: fixed; inset: 0; z-index: 300; background: rgba(7,7,8,.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px 64px; }
.lightbox img{ max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .lb-cap{ position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: var(--text-secondary); font-size: 12.5px; }
.lightbox button{ position: absolute; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; padding: 12px 18px; opacity: .75; transition: opacity .2s ease, color .2s ease; }
.lightbox button:hover{ opacity: 1; color: var(--accent-primary); }
.lb-close{ top: 10px; right: 14px; }
.lb-nav{ top: 50%; transform: translateY(-50%); font-size: 54px !important; }
.lb-prev{ left: 8px; } .lb-next{ right: 8px; }
@media (max-width: 640px){ .lightbox{ padding: 56px 12px 56px; } .lb-nav{ display: none; } }

/* ---------- Video block ---------- */
.video-block{
  position: relative;
  aspect-ratio: 16/9;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-default);
  border-radius: 3px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.video-block::before{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,7,8,.1) 0%, rgba(7,7,8,.55) 100%);
  transition: background .25s ease;
}
.video-block:hover::before{ background: linear-gradient(180deg, rgba(7,7,8,.05) 0%, rgba(7,7,8,.4) 100%); }
.video-block.is-playing::before{ display: none; }
.video-block iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.video-block .video-cta{ position: relative; z-index: 1; text-align: center; padding: 20px; }
.video-block .video-cta .label{
  font-family: var(--font-mono); letter-spacing: .02em;
  color: var(--text-primary); font-size: 13.5px;
  background: rgba(7,7,8,.55); backdrop-filter: blur(6px);
  padding: 9px 18px; border-radius: 100px; display: inline-block;
}
.video-block.no-video{ cursor: default; }
.video-block.no-video .video-cta .label{ color: var(--text-tertiary); }
.video-block.no-video:hover::before{ background: linear-gradient(180deg, rgba(7,7,8,.1) 0%, rgba(7,7,8,.55) 100%); }
.video-block .play-dot{
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--accent-primary);
  background: rgba(7,7,8,.35); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  transition: transform .2s ease;
}
.video-block:hover .play-dot{ transform: scale(1.08); }
.video-block.no-video .play-dot{ border-color: var(--border-default); }
.video-block.no-video .play-dot::after{ border-left-color: var(--text-tertiary); }
.video-block .play-dot::after{
  content: ''; width: 0; height: 0;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  border-left: 14px solid var(--accent-primary); margin-left: 4px;
}

/* ---------- Sectors ---------- */
.sector-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); }
.sector-tile{ background: var(--bg-primary); padding: 40px 30px; display: flex; align-items: center; justify-content: space-between; transition: background .2s ease; }
.sector-tile:hover{ background: var(--bg-elevated); }
.sector-tile span{ font-family: var(--font-display); font-size: 17px; color: var(--text-body); text-transform: uppercase; letter-spacing: .02em; }
.sector-tile .n{ color: var(--text-muted); font-family: var(--font-display); font-size: 13px; }
@media (max-width: 780px){ .sector-grid{ grid-template-columns: 1fr; } }

/* ---------- Clients ---------- */
/* Logos en blanco sobre el fondo negro del sitio. Los que ya tienen versión
   blanca (assets/img/clients-white/) se muestran tal cual; el resto usa un
   filtro que los vuelve blancos. */
.clients-grid{
  display: flex; flex-wrap: wrap; justify-content: center;   /* la última fila queda centrada */
  gap: 14px;
}
.client-tile{
  position: relative;
  flex: 0 0 calc((100% - 3 * 14px) / 4);
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 24px 20px;
  min-height: 112px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, transform .2s ease;
}
.client-tile:hover{ border-color: var(--text-tertiary); transform: translateY(-3px); }
.client-tile img{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  max-width: 78%; max-height: 56px; object-fit: contain;
  opacity: .9; transition: opacity .35s ease;
}
.client-tile:hover img{ opacity: 1; }
.client-tile img.to-white{ filter: brightness(0) invert(1); }
/* Logo real a color: oculto hasta que se pasa el cursor (en táctil, siempre a color) */
.client-tile img.logo-color{ opacity: 0; }
.client-tile:hover img.logo-white{ opacity: 0; }
.client-tile:hover img.logo-color{ opacity: 1; }
@media (hover: none){
  .client-tile img.logo-white{ opacity: 0; }
  .client-tile img.logo-color{ opacity: 1; }
}
@media (max-width: 900px){ .client-tile{ flex-basis: calc((100% - 2 * 14px) / 3); } }
@media (max-width: 620px){ .client-tile{ flex-basis: calc((100% - 14px) / 2); } }

/* ---------- Testimonials ---------- */
.testimonial-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card{
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  border-radius: 4px; padding: 32px 28px; display: flex; flex-direction: column;
}
.testimonial-card .quote-mark{
  font-family: var(--font-display); font-size: 40px; color: var(--accent-primary);
  line-height: 1; margin-bottom: 8px; display: block;
}
.testimonial-card .quote{ color: var(--text-body); font-size: 15.5px; line-height: 1.6; flex: 1; margin-bottom: 22px; }
.testimonial-card .who{ border-top: 1px solid var(--border-subtle); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.testimonial-card .name{ font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text-primary); }
.testimonial-card .role{ font-family: var(--font-mono); font-size: 12.5px; color: var(--text-tertiary); }
@media (max-width: 900px){ .testimonial-grid{ grid-template-columns: 1fr; } }

/* ---------- Perspectivas (articles) ---------- */
.article-list{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card{
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  border-radius: 4px; overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s ease;
}
.article-card:hover{ border-color: var(--accent-primary); }
.article-card .thumb{ aspect-ratio: 4/3; overflow: hidden; background: var(--bg-warm-elevated); }
.article-card .thumb img{ width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s ease, transform .8s ease; }
.article-card:hover .thumb img{ filter: none; transform: scale(1.04); }
@media (hover: none){ .article-card .thumb img{ filter: none; } }
.article-card .body{ padding: 28px 26px; display: flex; flex-direction: column; flex: 1; }
.article-card .idx{ font-family: var(--font-mono); font-size: 12px; color: var(--accent-primary); margin-bottom: 10px; }
.article-card .date{ font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.article-card h3{ font-size: 19px; margin-bottom: 10px; line-height: 1.25; }
.article-card p{ color: var(--text-secondary); font-size: 14px; flex: 1; margin-bottom: 18px; }
.article-card .read-more{ font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--text-primary); }
.article-hero-image{ aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; border: 1px solid var(--border-default); margin-bottom: 40px; }
.article-hero-image img{ width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px){ .article-list{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .article-list{ grid-template-columns: 1fr; } }

/* ---------- Cards generic ---------- */
.card-grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card{ background: var(--bg-elevated); border: 1px solid var(--border-subtle); padding: 32px; }
.card .lbl{ color: var(--accent-primary); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; display:block; }
.card h4{ font-size: 18px; margin-bottom: 12px; }
.card p{ color: var(--text-secondary); font-size: 14.5px; }
@media (max-width: 860px){ .card-grid-3{ grid-template-columns: 1fr; } }

/* ---------- Transparency (funciona/no funciona) ---------- */
.transparency-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border-subtle); border: 1px solid var(--border-subtle); margin-bottom: 40px; }
.transparency-col{ background: var(--bg-primary); padding: 40px; }
.transparency-col.good{ border-top: 3px solid var(--accent-primary); }
.transparency-col.bad{ border-top: 3px solid #4a4a4a; }
.transparency-col h4{ font-size: 15px; margin-bottom: 22px; text-transform: uppercase; letter-spacing: .04em; }
.transparency-col.good h4{ color: var(--accent-primary); }
.transparency-col.bad h4{ color: var(--text-tertiary); }
.transparency-col ul{ display: flex; flex-direction: column; gap: 16px; }
.transparency-col li{ font-size: 14.5px; color: var(--text-secondary); padding-left: 22px; position: relative; }
.transparency-col.good li::before{ content: '✓'; position: absolute; left: 0; color: var(--accent-primary); }
.transparency-col.bad li::before{ content: '✕'; position: absolute; left: 0; color: var(--text-muted); }
.transparency-close{ text-align: center; color: var(--text-secondary); font-size: 16px; max-width: 620px; margin: 0 auto; font-style: italic; }
@media (max-width: 780px){ .transparency-grid{ grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.partner-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.partner-card{ background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 4px; overflow: hidden; }
.partner-card .avatar{
  width: 100%; aspect-ratio: 4/3;
  background: var(--bg-warm-elevated); border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--text-muted); font-size: 48px;
}
.partner-card .avatar{ overflow: hidden; }
.partner-card .avatar img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(1) contrast(1.05); transition: filter .5s ease, transform .8s ease; }
.partner-card .avatar:hover img{ filter: none; transform: scale(1.03); }
@media (hover: none){ .partner-card .avatar img{ filter: none; } }   /* en pantallas táctiles se muestran a color */
.partner-card .info{ padding: 24px 28px; border-bottom: 1px solid var(--border-subtle); }
.partner-card h3{ font-size: 20px; margin-bottom: 6px; }
.partner-card .role{ color: var(--text-tertiary); font-family: var(--font-mono); font-size: 12.5px; text-transform: none; letter-spacing: 0; display: block; }
.partner-card p{ padding: 24px 28px; color: var(--text-secondary); font-size: 15px; }
.partner-card p + p{ padding-top: 0; }
@media (max-width: 780px){ .partner-grid{ grid-template-columns: 1fr; } }

.role-list{ display: flex; flex-wrap: wrap; gap: 12px; }
.role-chip{
  border: 1px solid var(--border-default); color: var(--text-secondary);
  padding: 10px 18px; font-size: 13.5px; border-radius: 20px;
}

/* ---------- Contact ---------- */
.contact-grid{ display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; gap: 48px; } }

.form-field{ margin-bottom: 22px; }
.form-field label{
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 10px;
}
.form-field input, .form-field textarea, .form-field select{
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: 2px;
  font-size: 15px;
  transition: border-color .2s ease;
}
.form-field select{ appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-tertiary) 50%), linear-gradient(135deg, var(--text-tertiary) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  outline: none; border-color: var(--accent-primary);
}
.form-field textarea{ min-height: 120px; resize: vertical; }
.form-row-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px){ .form-row-2{ grid-template-columns: 1fr; } }
.form-note{ font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.cf-turnstile{ margin: 24px 0 20px; }
.form-success{
  display: none;
  background: var(--bg-warm-elevated);
  border: 1px solid var(--border-accent);
  border-left-width: 3px;
  padding: 24px 28px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-body);
}
.form-success.show{ display: block; }
.form-error{
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-left-width: 3px;
  padding: 24px 28px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-body);
}
.form-error.show{ display: block; }
.btn[disabled]{ opacity: .6; cursor: default; }

.contact-info-block{ padding: 26px 0; border-top: 1px solid var(--border-subtle); }
.contact-info-block:last-child{ border-bottom: 1px solid var(--border-subtle); }
.contact-info-block .lbl{ font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-primary); margin-bottom: 10px; display: block; }
.contact-info-block .val{ font-size: 16px; color: var(--text-body); }
.contact-info-block .val a:hover{ color: var(--accent-primary); }

/* ---------- FAQ ---------- */
.faq-item{ border-top: 1px solid var(--border-subtle); }
.faq-item:last-child{ border-bottom: 1px solid var(--border-subtle); }
.faq-q{
  width: 100%; text-align: left; background: none; border: none; color: var(--text-primary);
  padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--font-display); text-transform: uppercase; font-size: 16px; letter-spacing: .01em;
}
.faq-q .plus{ font-family: var(--font-body); font-size: 22px; color: var(--accent-primary); transition: transform .25s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus{ transform: rotate(45deg); }
.faq-a{ max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p{ padding: 0 0 26px; color: var(--text-secondary); font-size: 15px; max-width: 720px; }

/* ---------- CTA close ---------- */
.cta-close{
  background: var(--bg-warm-elevated);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-close .wrap{ max-width: 680px; position: relative; z-index: 1; }
.cta-close .kicker{ justify-content: center; margin-bottom: 24px; }
.cta-close h2{ margin-bottom: 20px; }
.cta-close .deck{ margin-bottom: 36px; }
.cta-close .btn-row{ justify-content: center; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--bg-elevated); border-top: 1px solid var(--border-subtle); padding: 72px 0 28px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .brand{ margin-bottom: 18px; }
.footer-brand p{ color: var(--text-tertiary); font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col .lbl{ font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 20px; display: block; }
.footer-col ul{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a{ color: var(--text-body); font-size: 14.5px; }
.footer-col a:hover{ color: var(--accent-primary); }
.footer-bottom{
  border-top: 1px solid var(--border-subtle); padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p{ color: var(--text-muted); font-size: 13px; }
.footer-bottom a{ color: var(--text-muted); font-size: 13px; }
.footer-bottom a:hover{ color: var(--accent-primary); }
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Misc ---------- */
.split{ display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px){ .split{ grid-template-columns: 1fr; gap: 36px; } }
.split img{ border-radius: 3px; border: 1px solid var(--border-default); }
.prose > * + *{ margin-top: 20px; }
.prose p{ color: var(--text-body); font-size: 16.5px; line-height: 1.7; }
.prose h3{ font-size: 21px; margin-top: 40px; }
.prose ul{ list-style: none; margin: 0; padding: 0; }
.prose li{ position: relative; padding-left: 24px; color: var(--text-body); font-size: 16.5px; line-height: 1.6; }
.prose li + li{ margin-top: 10px; }
.prose li::before{ content: '—'; position: absolute; left: 0; color: var(--accent-primary); }
.center-text{ text-align: center; }
.mx-auto{ margin-left: auto; margin-right: auto; }
.mt-56{ margin-top: 56px; }
.eyebrow-note{
  display: inline-block; margin-top: 28px; color: var(--text-muted); font-size: 13px;
  border-top: 1px solid var(--border-subtle); padding-top: 18px;
}
.badge-index{ font-family: var(--font-display); color: var(--text-muted); font-size: 13px; letter-spacing: .06em; }

.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--accent-primary); color: var(--bg-primary);
  padding: 12px 20px; z-index: 999; font-weight: 600;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* ---------- Celular: encabezado y logo proporcionales (no afecta escritorio) ---------- */
@media (max-width: 640px){
  .site-header .wrap{ height: 64px; }
  .site-header .brand img{ height: 44px; }
  .footer-brand .brand img{ height: 52px; }
  .nav-main{ top: 64px; height: calc(100vh - 64px); height: calc(100dvh - 64px); }
  .hero{ padding-top: 120px; }
  .hero-page{ padding-top: 108px; }
  .cat-hero{ padding-top: 120px; }
}
@media (max-width: 1179px){
  .nav-main a.btn-primary{ color: var(--on-accent); border-bottom: 0; width: auto; }
}

/* ---------- Celular: mosaico de Trabajo (2 columnas, tamaños distintos; no afecta escritorio) ---------- */
@media (max-width: 760px){
  .bento{ display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 88px; grid-auto-flow: dense; gap: 10px; }
  .bento .bento-tile{ position: relative !important; left: auto !important; top: auto !important; width: auto !important; height: auto !important; z-index: auto; }
  .bento .bento-tile img{ position: absolute; inset: 0; }
  .bento .overlay{ padding: 12px; }
  .bento .overlay .idx{ font-size: 11px; margin-bottom: 4px; }
  .bento .overlay h3{ font-size: 15px; }
  .bento .overlay p{ display: none; }
  .bento .bento-tile:nth-child(1){ grid-column: span 2; grid-row: span 3; }
  .bento .bento-tile:nth-child(1) .overlay{ padding: 18px; }
  .bento .bento-tile:nth-child(1) .overlay h3{ font-size: 24px; }
  .bento .bento-tile:nth-child(1) .overlay p{ display: block; font-size: 13px; }
  .bento .bento-tile:nth-child(2){ grid-row: span 2; }
  .bento .bento-tile:nth-child(3){ grid-row: span 3; }
  .bento .bento-tile:nth-child(4){ grid-row: span 3; }
  .bento .bento-tile:nth-child(5){ grid-row: span 2; }
  .bento .bento-tile:nth-child(6){ grid-row: span 2; }
  .bento .bento-tile:nth-child(7){ grid-row: span 2; }
}

/* ---------- Selector de idioma en la barra superior (solo donde hay menú desplegable) ---------- */
.lang-switch-bar{ display: none; }
@media (max-width: 1179px){
  .nav-main .lang-switch{ display: none; }
  .lang-switch-bar{ display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 0; }
  .lang-switch-bar a{ color: var(--text-secondary); padding: 10px 0; }
  .lang-switch-bar a:hover{ color: var(--text-primary); }
  .nav-right{ gap: 18px; }
}

/* ---------- Videos: marco 16:9 (sin franjas blancas al reproducir), en cualquier tamaño de pantalla ---------- */
.cs-video .fr{ aspect-ratio: 16 / 9; background: #000; }
.cs-video .fr iframe{ background: #000; }
.cs-open{ display: none; }
@media (max-width: 900px){
  .cs-item .cs-open, .video-block + .cs-open{ display: inline-block; margin-top: 10px; color: var(--accent-primary); font-size: 12px; letter-spacing: .02em; padding: 6px 0; }
}

/* Video propio (celular/tablet): reproductor nativo dentro del marco */
.cs-video .fr video, .video-block video{ position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; z-index: 2; }

/* Categorías de Trabajo: el título de sección solo queda para lectores de pantalla; la cuadrícula empieza justo tras la descripción */
.sr-only{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cat-hero + section.tight{ padding-top: 0; }
