/* ============================================================
   TE LO COMPRO — "El cobre se paga como oro"
   Industrial-editorial · carbón + cobre · Anton/Inter/Space Mono
   ============================================================ */

:root {
  --ink: #16130f;            /* carbón cálido */
  --ink-2: #221d17;
  --paper: #f5efe6;          /* papel cálido */
  --paper-2: #ece3d4;
  --cu: #c97a3d;             /* cobre */
  --cu-light: #e8a06a;
  --cu-dark: #9c5526;
  --cu-grad: linear-gradient(120deg, #e8a06a 0%, #c97a3d 45%, #9c5526 100%);
  --text-on-dark: #f5efe6;
  --text-dim: #a89c8c;
  --text-on-light: #221d17;
  --rule: rgba(201, 122, 61, .35);
  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
  --chamfer: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--text-on-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { width: min(1160px, 92vw); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--cu); color: var(--ink); padding: .5rem 1rem; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- utilidades de marca ---------- */
.tag {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cu);
}
.tag--dark { color: var(--cu-dark); }
.tag--cu { color: var(--cu); }
.cu-text {
  background: var(--cu-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--text-on-light);
  margin: .5rem 0 2.8rem;
  font-weight: 400;
}
.section-title--light { color: var(--text-on-dark); }

/* ---------- botones (chaflán metálico, sin pills) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-weight: 700; font-size: .95rem;
  text-decoration: none; padding: 1rem 1.6rem;
  clip-path: var(--chamfer);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .35s var(--ease-out), color .35s var(--ease-out);
  will-change: transform;
}
.btn--primary { background: var(--cu-grad); color: var(--ink); }
.btn--primary:hover { transform: translateY(-3px); }
.btn--ghost { border: 0; color: var(--text-on-dark); background: transparent; box-shadow: inset 0 0 0 2px var(--rule); }
.btn--ghost:hover { background: rgba(201,122,61,.12); transform: translateY(-3px); }
.btn--call { background: var(--cu-grad); color: var(--ink); padding: .65rem 1.1rem; font-size: .88rem; white-space: nowrap; }
.btn--call:hover { transform: translateY(-2px); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(22,19,15,.0);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.header.is-scrolled { background: rgba(22,19,15,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--rule); }
.header__inner {
  width: min(1280px, 94vw); margin-inline: auto;
  display: flex; align-items: center; gap: 2rem;
  padding: .8rem 0;
}
.header__brand img { width: 200px; height: auto; }
.header__nav { display: flex; gap: 1.6rem; margin-left: auto; }
.header__nav a {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .06em;
  text-decoration: none; color: var(--text-dim);
  transition: color .25s;
  position: relative;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--cu-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.header__nav a:hover { color: var(--text-on-dark); }
.header__nav a:hover::after { transform: scaleX(1); }
.header__burger { display: none; }

/* ---------- hero ---------- */
.hero {
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201,122,61,.18), transparent 60%),
    var(--ink);
}
.hero__inner {
  width: min(1280px, 94vw); margin-inline: auto;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem;
  align-items: end;
  padding: 9rem 0 4rem;
  flex: 1;
}
.hero__text { padding-bottom: 1rem; }
.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.2rem, 8.2vw, 7.2rem);
  line-height: .96; text-transform: uppercase;
  margin: 1.2rem 0 1.6rem;
}
.hero__title span { display: block; }
.hero__sub { max-width: 46ch; color: var(--text-dim); font-size: 1.08rem; }
.hero__sub strong { color: var(--text-on-dark); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__trust { font-family: var(--mono); font-size: .75rem; color: var(--text-dim); margin-top: 1.4rem; letter-spacing: .04em; }
.hero__media { position: relative; }
.hero__media img {
  clip-path: var(--chamfer);
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
  filter: saturate(1.15) contrast(1.05);
}
.hero__media figcaption { margin-top: .8rem; }

/* marquee */
.marquee {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  overflow: hidden; padding: 1rem 0; background: var(--ink-2);
}
.marquee__track {
  display: flex; gap: 2.2rem; width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--display); text-transform: uppercase;
  font-size: 1.25rem; letter-spacing: .05em; color: var(--text-dim); white-space: nowrap;
}
.marquee__track i { color: var(--cu); font-style: normal; font-size: .8rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- qué compramos (papel) ---------- */
.buy { background: var(--paper); color: var(--text-on-light); padding: 6rem 0 5rem; }
.buy__featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin-bottom: 3.5rem;
}
.feature {
  background: var(--ink); color: var(--text-on-dark);
  clip-path: var(--chamfer);
  padding: 2.2rem 2.2rem 2.4rem;
  display: flex; flex-direction: column; gap: 1.1rem;
  position: relative;
}
.feature__head { display: flex; justify-content: space-between; align-items: baseline; }
.feature__num { font-family: var(--display); font-size: 2rem; color: var(--cu); }
.feature__art { width: 100%; height: auto; }
.feature__photo img { clip-path: var(--chamfer); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.feature__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; letter-spacing: .02em; }
.feature p { color: var(--text-dim); }
.feature p strong { color: var(--text-on-dark); }
.feature__link {
  font-family: var(--mono); font-weight: 700; text-decoration: none; color: var(--cu-light);
  margin-top: auto; transition: letter-spacing .3s var(--ease-out), color .25s;
}
.feature__link:hover { letter-spacing: .08em; color: var(--text-on-dark); }

/* ledger rows */
.ledger { list-style: none; border-top: 2px solid var(--text-on-light); }
.ledger__row {
  display: grid; grid-template-columns: 70px 1fr 220px 110px;
  gap: 2rem; align-items: center;
  padding: 1.8rem 0; border-bottom: 1px solid rgba(34,29,23,.25);
  position: relative;
}
.ledger__row::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, rgba(201,122,61,.12), rgba(201,122,61,.04));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.ledger__row:hover::before { transform: scaleX(1); }
.ledger__row > * { position: relative; z-index: 1; }
.ledger__num { font-family: var(--display); font-size: 1.7rem; color: var(--cu-dark); }
.ledger__body h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; margin-bottom: .3rem; }
.ledger__body p { color: #5d5347; max-width: 56ch; }
.ledger__thumb { clip-path: var(--chamfer); aspect-ratio: 22/15; object-fit: cover; }
.ledger__call {
  font-family: var(--mono); font-weight: 700; text-decoration: none; color: var(--cu-dark);
  justify-self: end; transition: letter-spacing .3s var(--ease-out);
}
.ledger__call:hover { letter-spacing: .08em; }

/* ---------- pasos ---------- */
.steps { background: var(--ink); padding: 6rem 0; }
.steps__grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  counter-reset: step;
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
}
.step__num {
  font-family: var(--display); font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1;
  background: var(--cu-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: .8rem;
}
.step h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.35rem; margin-bottom: .4rem; letter-spacing: .02em; }
.step p { color: var(--text-dim); }
.steps__cta { margin-top: 3rem; }

/* ---------- por qué ---------- */
.why { position: relative; padding: 6rem 0; background: var(--ink-2); overflow: hidden; }
.why__bg {
  position: absolute; inset: 0;
  background: url("../assets/img/engranajes.jpg") center/cover no-repeat;
  opacity: .12; mix-blend-mode: luminosity;
}
.why .container { position: relative; }
.why__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--rule);
}
.why__item { padding: 2rem 2.2rem; border: 1px solid var(--rule); margin: -.5px; }
.why__item h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; color: var(--cu-light); margin-bottom: .4rem; letter-spacing: .02em; }
.why__item p { color: var(--text-dim); }

/* ---------- opiniones ---------- */
.reviews { background: var(--paper-2); color: var(--text-on-light); padding: 6rem 0; }
.reviews__quote p {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.12;
  text-transform: uppercase; max-width: 22ch;
  margin: 1rem 0 1.2rem;
}
.reviews__quote cite { font-family: var(--mono); font-style: normal; font-size: .85rem; color: #6b5f50; }
.reviews__more { display: flex; gap: 3rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(34,29,23,.25); }
.reviews__mini { display: flex; flex-direction: column; gap: .2rem; font-family: var(--mono); font-size: .85rem; color: #6b5f50; }
.stars { color: var(--cu-dark); letter-spacing: .2em; }

/* ---------- contacto ---------- */
.contact { background: var(--ink); padding: 6rem 0 5rem; }
.contact__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: start; }
.contact__phone {
  display: block; font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.1;
  text-decoration: none; text-transform: uppercase;
  background: var(--cu-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .25s;
}
.contact__phone:hover { opacity: .8; }
.contact__phone--sec { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--text-on-dark); background: none; -webkit-background-clip: initial; background-clip: initial; }
.contact__list { list-style: none; margin-top: 2rem; display: grid; gap: .9rem; }
.contact__list li { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.contact__list a { color: var(--text-on-dark); text-decoration-color: var(--cu); text-underline-offset: 4px; }
.contact__map { position: relative; }
.contact__map iframe {
  width: 100%; aspect-ratio: 4/3; border: 0;
  clip-path: var(--chamfer);
  filter: grayscale(.4) sepia(.18) contrast(1.02);
}
.contact__maplink { font-family: var(--mono); font-size: .8rem; color: var(--cu-light); display: inline-block; margin-top: .8rem; text-decoration: none; }
.contact__maplink:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.footer { background: #0f0d0a; border-top: 1px solid var(--rule); padding-top: 3.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between; align-items: flex-start; padding-bottom: 2.5rem; }
.footer__cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer__cols p { margin-top: .6rem; color: var(--text-dim); font-size: .92rem; line-height: 1.9; }
.footer__cols a { color: var(--text-on-dark); text-decoration-color: var(--cu); text-underline-offset: 3px; }
.footer__base { border-top: 1px solid rgba(201,122,61,.18); padding: 1.2rem 0; }
.footer__base p { text-align: center; font-family: var(--mono); font-size: .72rem; color: #6b5f50; }

/* ---------- barra móvil ---------- */
.mobilebar { display: none; }

/* ---------- animaciones de entrada ---------- */
.reveal, .reveal-img {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: transform, opacity;
}
.reveal-img { transform: translateY(0) scale(.97); clip-path: inset(0 0 12% 0); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), clip-path 1s var(--ease-out); }
.is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.d1 { transition-delay: .05s; } .d2 { transition-delay: .12s; } .d3 { transition-delay: .19s; }
.d4 { transition-delay: .28s; } .d5 { transition-delay: .36s; } .d6 { transition-delay: .44s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .marquee__track { animation: none; }
  .btn, .ledger__row::before { transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 7.5rem; gap: 2rem; }
  .hero__media { max-width: 480px; }
  .hero__media img { aspect-ratio: 16/10; }
  .buy__featured { grid-template-columns: 1fr; }
  .ledger__row { grid-template-columns: 50px 1fr 110px; }
  .ledger__thumb { display: none; }
}

@media (max-width: 760px) {
  .header__nav { display: none; }
  .header__cta { margin-left: auto; padding: .55rem .8rem; font-size: .8rem; }
  .header__brand img { width: 150px; }
  .header__inner { gap: .8rem; }
  .steps__grid { grid-template-columns: 1fr; gap: 2rem; }
  .why__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .reviews__more { gap: 1.5rem; flex-direction: column; }
  body { padding-bottom: 64px; } /* hueco para la barra móvil */
  .mobilebar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 110;
    height: 60px; border-top: 1px solid var(--rule);
  }
  .mobilebar a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-weight: 700; font-size: .95rem; text-decoration: none;
  }
  .mobilebar__call { background: var(--cu-grad); color: var(--ink); }
  .mobilebar__wa { background: var(--ink-2); color: var(--text-on-dark); }
  .ledger__row { grid-template-columns: 40px 1fr; }
  .ledger__call { grid-column: 2; justify-self: start; }
}
