/* ==========================================================================
   KAPUTT — Brand Content & Performance
   One-page site. Paleta de ring de boxeo: negro cálido, blanco hueso, rojo
   de esquina, dorado de reflectores (tomado del video del hero).
   ========================================================================== */

@font-face { font-display: swap; }

:root{
  --bg:        #0b0b0a;
  --bg-soft:   #121110;
  --fg:        #ece9e1;
  --fg-dim:    #8f8c84;
  --red:       #e13a1f;
  --red-dim:   #7a2013;
  --gold:      #c99a46;
  --line:      rgba(236,233,225,0.14);
  --line-strong: rgba(236,233,225,0.28);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Libre Franklin", system-ui, sans-serif;

  --wrap: 1320px;
  --pad: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.16,.84,.44,1);
}

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

html{
  background: var(--bg);
  scroll-behavior: smooth;
}

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

::selection{ background: var(--red); color: var(--fg); }

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow-hidden{ /* utility: visually hidden, for a11y section labels */
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ------------------------------ Nav -------------------------------- */

.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: linear-gradient(to bottom, rgba(11,11,10,0.75), rgba(11,11,10,0));
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease);
}

.nav.is-scrolled{
  background: rgba(11,11,10,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__logo{ display:block; width: 108px; }
.nav__logo img{ width: 100%; height: auto; }

.nav__links{
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.95rem;
  font-weight: 400;
}

.nav__links a{
  position: relative;
  padding: 4px 0;
}
.nav__links a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transition: right .3s var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after{ right: 0; }

.nav__cta{
  display: none;
}

@media (min-width: 720px){
  .nav__cta{
    display: inline-flex;
    align-items: center;
    gap: .5em;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.88rem;
  }
  .nav__cta:hover{ border-color: var(--red); color: var(--red); }
}

@media (max-width: 640px){
  .nav__links{ gap: 16px; font-size: 0.85rem; }
}

/* ------------------------------ Hero -------------------------------- */

.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media{
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media video,
.hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero__scrim{
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(6,6,5,0.96) 0%, rgba(6,6,5,0.55) 38%, rgba(6,6,5,0.28) 62%, rgba(6,6,5,0.55) 100%);
}

.hero__body{
  position: relative;
  padding: clamp(120px,20vh,220px) var(--pad) clamp(56px,8vh,96px);
}

.hero__title{
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.92;
  font-size: clamp(3rem, 10vw, 8.4rem);
  max-width: 16ch;
}

.hero__star{
  display: inline-block;
  width: clamp(48px, 7.2vw, 92px);
  height: auto;
  margin-left: 0.18em;
  vertical-align: top;
  transform-origin: 50% 52%;
  animation: kaputt-spin 10s linear infinite;
}

@keyframes kaputt-spin{
  to{ transform: rotate(360deg); }
}

.hero__subtitle{
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  letter-spacing: 0.01em;
  color: var(--fg);
  max-width: 30ch;
  border-left: 3px solid var(--red);
  padding-left: 16px;
}

.hero__scroll{
  position: absolute;
  right: var(--pad);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--fg-dim);
  writing-mode: vertical-rl;
}

.hero__scroll::before{
  content: "";
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--fg-dim), transparent);
}

@media (max-width: 640px){
  .hero__scroll{ display: none; }
}

/* --------------------------- Section shell --------------------------- */

section{
  position: relative;
  padding: clamp(72px, 12vh, 140px) 0;
}

.rope{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  position: relative;
}
.rope::before, .rope::after{
  content: "";
  position: absolute;
  top: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.rope::before{ left: var(--pad); }
.rope::after{ right: var(--pad); }

.section__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section__title{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  margin: 0;
  line-height: 1;
}

.section__number{
  font-family: var(--font-display);
  color: var(--fg-dim);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  white-space: nowrap;
}

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

/* --------------------------- Intro (post-hero) ------------------------- */

.intro{ background: var(--bg); }

.intro__text{
  text-align: center;
}

.intro__text p{
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.65;
  max-width: none;
  margin: 0 auto 1.3em;
  color: var(--fg);
}

.intro__text strong{
  font-weight: 600;
  color: var(--fg);
}

.intro__text .callout{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 auto 0.7em;
  max-width: none;
}

/* --- Sección Qué Hacemos --- */
.que-hacemos {
  padding: 80px 0;
}

.que-hacemos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.que-hacemos__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.que-hacemos__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--accent, #fff); /* Ajustar según tus variables de color */
}

.que-hacemos__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.que-hacemos__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.que-hacemos__text {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* Responsivo para móviles y tablets */
@media (max-width: 900px) {
  .que-hacemos__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ------------------------------ Nosotros ------------------------------ */

.nosotros{ background: var(--bg); }

.lineup{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 860px){
  .lineup{
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
}

.lineup__item{
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.lineup__item:last-child{
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px){
  .lineup__item{
    border-top: none;
    padding: 36px clamp(20px, 2.6vw, 40px);
  }
  .lineup__item:last-child{
    border-bottom: none;
  }
  .lineup__item:not(:first-child){
    border-left: 1px solid var(--line);
  }
}

.lineup__name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin: 0 0 2px;
}

.lineup__role{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--red);
  margin: 0 0 10px;
}

.lineup__bio{
  margin: 0;
  max-width: 44ch;
  color: var(--fg-dim);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ------------------------------ Trabajos ------------------------------ */

.trabajos{ background: var(--bg-soft); }

.cliente{
  margin-bottom: clamp(40px, 6vw, 64px);
}
.cliente:last-child{ margin-bottom: 0; }

.cliente__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0 var(--pad);
}

.cliente__name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  margin: 0;
}

.cliente__nav{
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cliente__nav button{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s, background .25s, transform .15s;
}
.cliente__nav button:hover{
  border-color: var(--red);
  background: var(--red);
}
.cliente__nav button:active{ transform: scale(.94); }
.cliente__nav svg{ width: 16px; height: 16px; }

.cliente__track{
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px var(--pad) 10px;
  scrollbar-width: none;
}
.cliente__track::-webkit-scrollbar{ display: none; }

.cliente__track img{
  scroll-snap-align: start;
  height: clamp(230px, 34vw, 400px);
  width: auto;
  flex-shrink: 0;
  border-radius: 2px;
  background: #1a1917;
  cursor: zoom-in;
  transition: opacity .2s var(--ease);
}
.cliente__track img:hover{ opacity: .85; }

/* ------------------------------ Contacto ------------------------------ */

.contacto{
  background: var(--bg);
  text-align: center;
}

.contacto__title{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 1.02;
  margin: 0 auto 20px;
  max-width: 16ch;
}

.contacto__sub{
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--fg-dim);
  max-width: 46ch;
  margin: 0 auto clamp(32px, 5vw, 48px);
}

.btn-whatsapp{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--red);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  padding: 18px 34px;
  border-radius: 999px;
  transition: background .25s var(--ease), transform .15s var(--ease);
}
.btn-whatsapp:hover{ background: #ff4b2b; }
.btn-whatsapp:active{ transform: scale(.97); }
.btn-whatsapp svg{ width: 22px; height: 22px; flex-shrink: 0; }

.contacto__meta{
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--fg-dim);
}

/* ------------------------------- Footer ------------------------------- */

footer{
  background: var(--bg);
  padding: clamp(56px, 9vh, 96px) 0 40px;
}

.footer__line{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  text-align: center;
  line-height: 1.15;
  margin: 0 0 40px;
}

.footer__bottom{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--fg-dim);
  font-size: 0.82rem;
}

.footer__bottom img{ width: 100px; height: auto; opacity: .8; }

.footer__logo {
  height: 2.2rem; /* O el tamaño equivalente a tu subtítulo/tipografía */
  width: auto;
  display: block;
}


/* ------------------------------ Lightbox ------------------------------ */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,6,5,0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
  padding: clamp(20px, 6vw, 64px);
}

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

.lightbox__figure{
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox__img{
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 2px;
  opacity: 0;
  transform: scale(.97);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.lightbox.is-open .lightbox__img{
  opacity: 1;
  transform: none;
}

.lightbox__caption{
  color: var(--fg-dim);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox__close,
.lightbox__arrow{
  position: fixed;
  border: 1px solid var(--line-strong);
  background: rgba(11,11,10,0.6);
  color: var(--fg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.lightbox__close:hover,
.lightbox__arrow:hover{
  border-color: var(--red);
  background: var(--red);
}
.lightbox__close:active,
.lightbox__arrow:active{ transform: scale(.94); }

.lightbox__close{
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  width: 44px; height: 44px;
}
.lightbox__close svg{ width: 18px; height: 18px; }

.lightbox__arrow{
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
}
.lightbox__arrow svg{ width: 20px; height: 20px; }
.lightbox__arrow--prev{ left: clamp(10px, 3vw, 28px); }
.lightbox__arrow--next{ right: clamp(10px, 3vw, 28px); }

@media (max-width: 640px){
  .lightbox__arrow{ width: 40px; height: 40px; }
  .lightbox__arrow--prev{ left: 8px; }
  .lightbox__arrow--next{ right: 8px; }
}
