/* ACOPA. REFINED. — estilos de producción
   Tokens y valores según Entregables/ESPECIFICACIONES.md (31 ago 2026). */

:root {
  --font-sans: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --c-bg: #000000;
  --c-text: #ffffff;
  --c-body-black: #d6d6d6;
  --c-body-photo: #c2c2c2;
  --c-body-secondary: #a8a8a8;
  --c-closing-body: #c9c9c9;
  --c-mono-label: #7c7c7c;
  --c-footer: #6e6e6e;
  --c-border: #1c1c1c;
  --c-btn-border: #3a3a3a;
  --c-hero-divider: #262626;
  --c-frame-bg: #0a0a0a;

  --container-max: 1500px;
  --pad-x: clamp(20px, 4vw, 64px);
  --pad-y: clamp(80px, 12vh, 160px);
  --pad-y-closing: clamp(100px, 20vh, 220px);
  --gap-block: clamp(40px, 6vh, 72px);
}

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

html { background: var(--c-bg); }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

p { margin: 0; text-wrap: pretty; }

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: var(--pad-y) 0; }

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--c-mono-label);
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad-x);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo-link { display: flex; align-items: center; }

.logo-img { height: 22px; width: auto; display: block; }

.header-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--c-mono-label);
  text-transform: uppercase;
}

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

.hero {
  position: relative;
  min-height: clamp(620px, 100vw, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.5;
  filter: grayscale(0.35) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 var(--pad-x) clamp(48px, 8vh, 96px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-content h1 {
  font-weight: 600;
  font-size: clamp(52px, 12.5vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.01em;
}

.hero-divider {
  width: 100%;
  height: 1px;
  background: var(--c-hero-divider);
}

.hero-content p {
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--c-body-black);
  max-width: 46ch;
}

/* ---------- 01 — The concept ---------- */

.concept-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-block);
  margin-top: 24px;
}

.concept-intro h2 {
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.concept-intro .body-lg {
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--c-body-black);
}

.pillars-grid {
  margin-top: var(--gap-block);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
}

@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  position: relative;
  min-height: 320px;
  background: var(--c-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
}

.pillar-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pillar:not(.pillar-01) .pillar-bg {
  opacity: 0.82;
  filter: grayscale(0.05) contrast(1.06) brightness(1.12);
}

.pillar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.28) 30%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

.pillar-number,
.pillar h3,
.pillar p {
  position: relative;
  z-index: 1;
}

.pillar-number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--c-text);
}

.pillar h3 {
  font-weight: 500;
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.pillar p {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-body-photo);
}

.concept-footer {
  margin-top: var(--gap-block);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-footer);
  text-transform: uppercase;
}

/* ---------- 02 — The technology ---------- */

.tech-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gap-block);
  align-items: center;
}

.tech-block + .tech-block { margin-top: var(--gap-block); }

.tech-media {
  height: clamp(320px, 52vh, 620px);
  background: var(--c-frame-bg);
  overflow: hidden;
}

.tech-media img,
.tech-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-media.contain {
  height: auto;
  aspect-ratio: 1360 / 1240;
}

.tech-media.contain img {
  object-fit: cover;
}

.tech-text h2 {
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.005em;
}

.tech-text p {
  margin-top: 20px;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--c-body-black);
}

.tech-bullets {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.tech-bullets li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-body-secondary);
  text-transform: uppercase;
}

.tech-close {
  margin-top: calc(var(--gap-block) * 1.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.tech-close .phrase {
  font-weight: 500;
  font-size: clamp(22px, 3vw, 42px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.tech-close .locations {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-mono-label);
  text-transform: uppercase;
}

/* ---------- 03 — The film ---------- */

.film-text h2 {
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.film-text p {
  margin-top: 20px;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--c-body-black);
}

.film-video {
  margin-top: var(--gap-block);
  aspect-ratio: 16 / 9;
  background: var(--c-frame-bg);
  border: 1px solid var(--c-border);
}

.film-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 04 — The collection ---------- */

.collection-intro h2 {
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.collection-intro p {
  margin-top: 20px;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--c-body-black);
}

.products-grid {
  margin-top: var(--gap-block);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
}

.product-card {
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
}

.product-photo {
  aspect-ratio: 3 / 2;
  background: var(--c-frame-bg);
  overflow: hidden;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-body h3 {
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: 0.06em;
}

.product-spec {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-mono-label);
  text-transform: uppercase;
}

.product-body p.desc {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-body-secondary);
  flex: 1;
}

/* ---------- Buttons ---------- */

.btn-shop {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid var(--c-btn-border);
  background: transparent;
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-shop:hover,
.btn-shop:focus {
  background: var(--c-text);
  color: #000;
  border-color: var(--c-text);
}

.btn-shop:focus {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 0 40px;
  background: #fff;
  color: #000;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background 160ms ease;
}

.btn-cta:hover,
.btn-cta:focus {
  background: var(--c-closing-body);
}

/* ---------- Cierre ---------- */

.closing {
  position: relative;
  padding: var(--pad-y-closing) 0;
  overflow: hidden;
  text-align: center;
}

.closing-media {
  position: absolute;
  inset: 0;
}

.closing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.32;
  filter: grayscale(0.4);
}

.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    80% 70% at 50% 50%,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.closing .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.closing h2 {
  font-weight: 600;
  font-size: clamp(44px, 9vw, 150px);
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.closing p {
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--c-closing-body);
  max-width: 46ch;
}

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

.site-footer {
  padding: 32px var(--pad-x);
  text-align: center;
  border-top: 1px solid var(--c-border);
}

.site-footer p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-footer);
  text-transform: uppercase;
}
