/* =========================================================
   WILD COMPANY — estilos
   Paleta y tipos según brandbook (Figma)
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Sustituto libre de DRUK. Si tienen la licencia de Druk,
   suban el .woff2 a /fonts y cambien solo esta regla. */
@font-face {
  font-family: "Display";
  src: url("../fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0D0D0C;
  --red: #DB3613;
  --white: #FFFFFF;
  --ink-2: #171715;
  --line: rgba(255,255,255,.14);
  --muted: rgba(255,255,255,.62);

  --f-body: "Archivo", system-ui, sans-serif;
  --f-display: "Display", "Druk", Impact, sans-serif;

  --pad: clamp(20px, 6.25vw, 120px);          /* margen lateral (120px en 1920) */
  --h-section: clamp(38px, 5.47vw, 105px);    /* títulos de sección */
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-body);
  font-size: clamp(16px, 1.17vw, 22.5px);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 clamp(16px, 1.56vw, 30px)/1 var(--f-body);
  padding: .45em .55em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
  white-space: nowrap;
}
.btn--solid { background: var(--red); color: var(--white); }
.btn--solid:hover { background: var(--white); color: var(--ink); }
.btn--outline { border-color: var(--red); border-radius: 50px; font-weight: 600; padding: .4em .75em; }
.btn--outline:hover { background: var(--red); }
.btn--light { background: var(--white); color: var(--ink); font-weight: 600; }
.btn--light:hover { background: var(--ink); color: var(--white); }
.btn--sm { font-size: clamp(15px, 1.56vw, 30px); font-weight: 600; padding: .35em .7em; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px, 1.8vw, 35px) var(--pad) clamp(14px, 1.8vw, 35px) clamp(20px, 2.35vw, 45px);
  transition: background .3s, padding .3s;
}
.header.is-scrolled { background: rgba(13,13,12,.88); backdrop-filter: blur(10px); padding-block: 12px; }
.header__logo img { width: clamp(52px, 6.35vw, 122px); height: auto; transition: width .3s; }
.header.is-scrolled .header__logo img { width: 56px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 1.6vw, 30px); }
.nav a:not(.btn) { font-size: clamp(16px, 1.56vw, 30px); position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { margin-left: clamp(4px, .6vw, 12px); }
.header__burger { display: none; }

/* ---------- Secciones genéricas ---------- */
.section { padding: clamp(60px, 5.5vw, 105px) var(--pad); position: relative; }
.h-section {
  font: 600 var(--h-section)/1.01 var(--f-body);
  margin: 0 0 clamp(32px, 4vw, 80px);
  letter-spacing: -.01em;
  display: flex; align-items: center; gap: .25em; flex-wrap: wrap;
}
.h-stamp { height: .58em; width: auto; }

/* ---------- 1. Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  position: relative; padding: 0 var(--pad);
}
.hero__logo { width: min(50.3vw, 966px); min-width: 260px; height: auto; }
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--red); border-radius: 2px; animation: scroll 1.6s infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 2. Manifiesto ---------- */
.manifest {
  min-height: 100vh;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--pad);
  padding-left: clamp(20px, 9.43vw, 181px);
}
.manifest__title {
  font: 400 clamp(96px, 10.4vw, 200px)/.8 var(--f-display);
  margin: 0 0 clamp(28px, 3.2vw, 60px);
  display: flex; flex-direction: column;
  text-transform: uppercase;
}
.manifest__para { letter-spacing: .14em; }
.manifest__copy { max-width: 414px; text-align: justify; hyphens: auto; margin: 0 0 clamp(24px, 2.6vw, 50px); }
.manifest__stamp { position: relative; justify-self: center; width: min(36vw, 560px); aspect-ratio: 1; }
.stamp-ring { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.stamp-ring text { font: 400 11.5px var(--f-display); letter-spacing: .14em; fill: var(--white); }
.stamp-logo { position: absolute; top: 50%; left: 50%; width: 52%; translate: -50% -50%; rotate: -8deg; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 3. Artistas ---------- */
.artists { padding-inline: 0; }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding: 0 var(--pad); margin-bottom: clamp(20px, 2vw, 40px);
}
.section__head .h-section { margin: 0; }
.carousel__ctrl { display: flex; gap: 15px; flex-shrink: 0; }
.circle-btn {
  width: clamp(44px, 3.07vw, 59px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--white); background: transparent; color: var(--white);
  display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s;
}
.circle-btn svg { width: 45%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.circle-btn:hover { background: var(--white); color: var(--ink); }
.circle-btn:disabled { opacity: .3; pointer-events: none; }

.carousel { position: relative; }
.carousel::before, .carousel::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: var(--pad); z-index: 2; pointer-events: none;
}
.carousel::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.carousel::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.carousel__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--pad); scroll-padding: 0 var(--pad);
}
.carousel__track::-webkit-scrollbar { display: none; }
.artist {
  flex: 0 0 clamp(260px, 29.5vw, 566px); aspect-ratio: 566 / 819;
  position: relative; overflow: hidden; scroll-snap-align: start;
  background: var(--tint, #2a2a28);
}
.artist img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; }
.artist:hover img { transform: scale(1.04); }
.artist::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,12,.75), transparent 35%);
  pointer-events: none;
}
.artist__links { position: absolute; top: 3.7%; left: 7%; display: flex; gap: 10px; z-index: 1; }
.artist__links a {
  width: clamp(36px, 2.5vw, 48px); aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.88); color: var(--ink); transition: background .2s, color .2s;
}
.artist__links a:hover { background: var(--red); color: var(--white); }
.artist__links svg { width: 70%; }
.artist__name {
  position: absolute; left: 7%; bottom: 8%; z-index: 1; margin: 0;
  font: 400 clamp(28px, 2.94vw, 56.5px)/1 var(--f-body);
}
.artist--empty { background: #1c1c1a; display: grid; place-items: center; }
.artist--empty .artist__ph { width: 55%; height: auto; opacity: .25; object-fit: contain; }

/* ---------- 4. Sobre nosotros ---------- */
.about { overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 4vw, 80px); align-items: center; }
.about__sticker { margin-left: calc(var(--pad) * -1.6); rotate: -2deg; }
.about__sticker img { width: 100%; }
.about__body p { margin: 0 0 1.2em; color: var(--muted); max-width: 640px; }
.about__body .about__lead { color: var(--white); font-size: clamp(22px, 1.9vw, 36px); line-height: 1.2; font-weight: 500; }
.about__stats { list-style: none; margin: 2em 0 0; padding: 0; display: flex; gap: clamp(24px, 3vw, 60px); flex-wrap: wrap; }
.about__stats strong { display: block; font: 400 clamp(48px, 4.5vw, 86px)/1 var(--f-display); color: var(--red); }
.about__stats span { font-size: .85em; color: var(--muted); }

/* ---------- 5. Servicios ---------- */
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service {
  padding: clamp(24px, 2.6vw, 50px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: clamp(220px, 17vw, 330px);
  display: flex; flex-direction: column;
  transition: background .3s;
}
.service:hover { background: var(--ink-2); }
.service__num { font: 600 clamp(14px, 1vw, 18px) var(--f-body); color: var(--red); letter-spacing: .1em; }
.service h3 {
  font: 400 clamp(40px, 3.6vw, 70px)/.95 var(--f-display); text-transform: uppercase;
  margin: .9em 0 .35em; transition: color .3s;
}
.service:hover h3 { color: var(--red); }
.service p { margin: 0; color: var(--muted); max-width: 32ch; }
.service--cta { background: var(--red); }
.service--cta:hover { background: var(--red); }
.service--cta:hover h3 { color: var(--white); }
.service--cta h3 { margin-top: 0; }
.service--cta p { color: var(--white); margin-bottom: 1.4em; }
.service--cta .btn { align-self: flex-start; margin-top: auto; font-size: clamp(16px, 1.3vw, 24px); }

/* ---------- 6. Prensa ---------- */
.press__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 5.2vw, 100px); }
.press-card { display: flex; flex-direction: column; align-items: flex-start; }
.press-card__img {
  width: 100%; aspect-ratio: 497 / 354; background: #1c1c1a; display: grid; place-items: center;
  overflow: hidden; margin-bottom: clamp(20px, 3.3vw, 63px);
}
.press-card__img img:not(.ph-logo) { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.press-card:hover .press-card__img img:not(.ph-logo) { transform: scale(1.05); }
.ph-logo { width: 45%; opacity: .2; }
.press-card__meta { font-size: .75em; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: .6em; }
.press-card h3 { font: 700 clamp(19px, 1.44vw, 27.7px)/1.2 var(--f-body); margin: 0 0 1.2em; max-width: 471px; }
.press-card .btn { margin-top: auto; }

/* ---------- 7. Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: grid; gap: 8px; font-size: .85em; color: var(--muted); }
.form small { opacity: .7; }
.form input[type=text], .form input[type=email], .form input[type=url], .form textarea {
  font: inherit; font-size: 1.15em; color: var(--white);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; border-radius: 0; resize: vertical; transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form__chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form__chips legend { font-size: .85em; color: var(--muted); margin-bottom: 10px; }
.form__chips label { display: block; }
.form__chips input { position: absolute; opacity: 0; }
.form__chips span {
  display: inline-block; padding: .4em 1em; border: 1px solid var(--line); border-radius: 50px;
  color: var(--white); cursor: pointer; transition: all .2s; font-size: 1.05em;
}
.form__chips input:checked + span { background: var(--red); border-color: var(--red); }
.form__chips input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.form .btn { justify-self: start; padding-inline: 1.4em; }
.form__status { margin: 0; min-height: 1.4em; font-size: .9em; }
.form__status.ok { color: #7ee08a; }
.form__status.err { color: #ff8a70; }
.hp { position: absolute; left: -9999px; }

.contact__info { display: grid; gap: 34px; padding-top: 6px; }
.contact__info h3 { margin: 0 0 6px; font: 600 .8em var(--f-body); text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.contact__info a, .contact__info p { font-size: 1.15em; margin: 0; word-break: break-word; }
.contact__info a:hover { color: var(--red); }
.socials { display: flex; gap: 12px; }
.socials a { width: 48px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: all .2s; }
.socials a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.socials svg { width: 22px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(50px, 5vw, 100px) var(--pad) 30px;
  display: grid; justify-items: center; gap: 30px; text-align: center;
}
.footer__logo { width: min(420px, 70vw); height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
.footer__nav a:hover { color: var(--red); }
.footer__copy { margin: 10px 0 0; font-size: .8em; color: var(--muted); }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stamp-ring, .hero__scroll span { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .press__grid { grid-template-columns: 1fr 1fr; }
  .press-card:last-child { display: none; }
}

@media (max-width: 860px) {
  /* Menú móvil */
  .header__burger {
    display: grid; gap: 7px; z-index: 2; width: 44px; height: 44px; place-content: center;
    background: none; border: 0; cursor: pointer;
  }
  .header__burger span { width: 28px; height: 2px; background: var(--white); transition: transform .3s; }
  .header.menu-open .header__burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .header.menu-open .header__burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; background: var(--ink);
    flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav a:not(.btn) { font: 400 52px/1 var(--f-display); text-transform: uppercase; }
  .nav .btn { margin: 14px 0 0; font-size: 20px; padding: .6em 1em; }
  .header.menu-open .nav { opacity: 1; pointer-events: auto; }

  .manifest { grid-template-columns: 1fr; padding-left: var(--pad); min-height: 0; padding-top: 100px; }
  .manifest__stamp { width: min(70vw, 340px); justify-self: end; margin-top: -40px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__sticker { margin-left: calc(var(--pad) * -1); margin-right: 10vw; }
  .contact__grid { grid-template-columns: 1fr; }
  .section__head { align-items: center; }
}

@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .service h3 { margin-top: .8em; }
  .press__grid { grid-template-columns: 1fr; gap: 50px; }
  .press-card:last-child { display: flex; }
  .form__row { grid-template-columns: 1fr; }
  .artist { flex-basis: 78vw; }
  .carousel__ctrl { display: none; }
  .manifest__copy { text-align: left; }
}
