/* =============================================================
   CAMMOTOR — Ficha técnica industrial (Arquetipo 07 Brutalista, adaptado)
   1. Tokens
   ============================================================= */
:root {
  --bg:        #F7F5F0;   /* papel industrial */
  --bg-2:      #EFEBE1;
  --panel:     #FFFFFF;
  --ink:       #141414;   /* negro grafito */
  --ink-soft:  #2B2B28;
  --ink-mute:  #6B6A64;
  --accent:    #D97B29;   /* ámbar / ocre industrial */
  --accent-2:  #B8631C;
  --accent-3:  #F0A85C;
  --cream:     #F7F5F0;
  --line:      rgba(20,20,20,0.16);
  --line-soft: rgba(20,20,20,0.10);
  --line-hard: #141414;

  --display: "Bebas Neue", Impact, sans-serif;
  --sans: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 76px;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1; letter-spacing: 0.005em; font-family: var(--display); font-weight: 400; text-transform: uppercase; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--ink); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--cream);
  font-family: var(--mono); font-size: .85rem;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.kicker {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-2); font-weight: 600;
  display: inline-flex; align-items: center; gap: .5em;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--accent-2); }
.kicker--light { color: var(--accent-3); }
.kicker--light::before { background: var(--accent-3); }

.section-head { max-width: 720px; margin: 0 auto 3rem; padding: 0 var(--gutter); text-align: left; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-top: .5rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95rem 1.6rem; font-family: var(--mono); font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid var(--ink);
  border-radius: 0; transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
  white-space: nowrap;
}
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.btn--ghost-light { border-color: rgba(247,245,240,.55); color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--ink); }
.btn--nav { border-color: var(--ink); }
.btn--nav:hover { background: var(--ink); color: var(--accent); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.2rem 2.2rem; font-size: .92rem; }

.link-cta {
  display: inline-flex; align-items: center; gap: .4em; margin-top: 1.6rem;
  font-family: var(--mono); font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: .2em;
}
.link-cta span { transition: transform .25s var(--ease-out); }
.link-cta:hover span { transform: translateX(4px); }

/* =============================================================
   4. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 999; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  animation: splashSafety .01s 5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; transition: opacity .5s var(--ease-out); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; } }
.splash__plate {
  border: 1.5px solid var(--accent); padding: 1.6rem 2.6rem; text-align: center;
  display: flex; flex-direction: column; gap: .5rem;
}
.splash__code { font-family: var(--mono); font-size: .75rem; letter-spacing: .3em; color: var(--accent); }
.splash__word { font-family: var(--display); font-size: 2.4rem; color: var(--cream); letter-spacing: .04em; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(247,245,240,.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: var(--nav-h); max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav__brand { display: flex; align-items: baseline; gap: .6rem; }
.nav__word { font-family: var(--display); font-size: 1.5rem; letter-spacing: .03em; }
.nav__code { font-family: var(--mono); font-size: .68rem; color: var(--accent-2); letter-spacing: .08em; }
.nav__links { display: none; gap: 2rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.nav__links a { position: relative; padding-bottom: 4px; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--accent); transition: width .25s var(--ease-out); }
.nav__links a:hover::after { width: 100%; }
.nav__burger { display: flex; flex-direction: column; gap: 5px; width: 26px; }
.nav__burger span { display: block; height: 2px; background: var(--ink); transition: transform .25s var(--ease-out), opacity .25s var(--ease-out); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: flex; flex-direction: column; gap: 0; max-height: 0; overflow: hidden;
  background: var(--bg); border-top: 1px solid transparent; transition: max-height .35s var(--ease-out);
}
.nav__mobile.is-open { max-height: 420px; border-top-color: var(--line); }
.nav__mobile a { padding: 1rem var(--gutter); border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.nav__mobile .btn { margin: 1rem var(--gutter); }

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .nav__mobile { display: none; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; overflow: clip; background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,14,.55) 0%, rgba(14,14,14,.25) 30%, rgba(14,14,14,.55) 68%, rgba(14,14,14,.94) 100%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image:
    linear-gradient(90deg, var(--cream) 1px, transparent 1px),
    linear-gradient(180deg, var(--cream) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__plate {
  position: absolute; top: calc(var(--nav-h) + 1.2rem); left: var(--gutter); z-index: 2;
  display: flex; gap: 0; border: 1.5px solid rgba(247,245,240,.5);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--cream);
}
.hero__plate span { padding: .45rem .7rem; border-right: 1.5px solid rgba(247,245,240,.5); }
.hero__plate span:last-child { border-right: 0; color: var(--accent-3); }

.hero__inner { position: relative; z-index: 2; padding: 0 var(--gutter) 4.5rem; max-width: 1100px; }
.hero__kicker { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-3); margin-bottom: 1.1rem; }
.hero__title { color: var(--cream); font-size: clamp(3rem, 10vw, 7.4rem); line-height: .92; max-width: 14ch; }
.hero__title span { color: var(--accent); }
.hero__sub { color: rgba(247,245,240,.82); font-size: clamp(1rem, 1.6vw, 1.25rem); max-width: 46ch; margin: 1.4rem 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute; bottom: 1.4rem; right: var(--gutter); z-index: 2;
  width: 30px; height: 46px; border: 1.5px solid rgba(247,245,240,.55);
}
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; background: var(--accent); transform: translateX(-50%); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0%,100% { top: 8px; opacity: 1; } 60% { top: 26px; opacity: 0; } 61% { top: 8px; opacity: 0; } }

/* =============================================================
   7. Trust bar
   ============================================================= */
.trust { border-bottom: 1px solid var(--line); background: var(--panel); }
.trust__row {
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.trust__item {
  padding: 2.4rem 1.2rem; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust__item:nth-child(2n) { border-right: 0; }
.trust__num { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--ink); }
.trust__suffix { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--accent); }
.trust__item p { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); margin-top: .4rem; }

@media (min-width: 720px) {
  .trust__row { grid-template-columns: repeat(4, 1fr); }
  .trust__item { border-bottom: 0; }
  .trust__item:nth-child(2n) { border-right: 1px solid var(--line); }
  .trust__item:last-child { border-right: 0; }
}

/* =============================================================
   8. Services
   ============================================================= */
.services { padding: 6.5rem 0 4rem; }
.service {
  position: relative; border-top: 1px solid var(--line-hard); padding: 3.2rem var(--gutter);
  display: grid; gap: 1.4rem; max-width: 1160px; margin: 0 auto;
}
.service:last-of-type { border-bottom: 1px solid var(--line-hard); }
.service__num { font-family: var(--display); font-size: clamp(3rem, 8vw, 6rem); color: var(--line); line-height: 1; }
.service__eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.service__body h3 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: .5rem 0 1rem; }
.service__lede { max-width: 62ch; color: var(--ink-soft); font-size: 1.05rem; }
.service__list { margin-top: 1.4rem; display: grid; gap: .65rem; max-width: 52ch; }
.service__list li { position: relative; padding-left: 1.4rem; font-size: .96rem; color: var(--ink-soft); }
.service__list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.service__plate {
  position: absolute; top: 3.2rem; right: var(--gutter); display: none;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; color: var(--accent-2);
  border: 1.5px solid var(--accent-2); padding: .35rem .6rem;
}
.service__note { max-width: 1160px; margin: 1.6rem auto 0; padding: 0 var(--gutter); font-family: var(--mono); font-size: .74rem; color: var(--ink-mute); }

.service__fig { margin-top: 2rem; max-width: 460px; }
.service__fig img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border: 1px solid var(--line-hard); }
.service__fig figcaption { font-family: var(--mono); font-size: .68rem; color: var(--ink-mute); margin-top: .7rem; letter-spacing: .02em; }

@media (min-width: 720px) {
  .service { grid-template-columns: 140px 1fr; align-items: start; }
  .service__plate { display: block; }
}

/* =============================================================
   9. Process
   ============================================================= */
.process { padding: 4rem 0 5rem; background: var(--bg-2); }
.process__grid {
  max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 3rem;
}
.process__list { display: grid; gap: 0; }
.process__step { border-top: 1px solid var(--line); padding: 1.8rem 0; display: grid; grid-template-columns: 70px 1fr; gap: 1rem; align-items: start; }
.process__list li:last-child { border-bottom: 1px solid var(--line); }
.process__code { font-family: var(--mono); font-weight: 600; color: var(--accent); font-size: .95rem; }
.process__step h3 { font-family: var(--sans); font-weight: 700; text-transform: none; font-size: 1.05rem; letter-spacing: 0; margin-bottom: .3rem; }
.process__step p { color: var(--ink-mute); font-size: .92rem; max-width: 56ch; }

.process__fig img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line-hard); }
.process__fig figcaption { font-family: var(--mono); font-size: .72rem; color: var(--ink-mute); margin-top: .8rem; letter-spacing: .02em; }

@media (min-width: 960px) {
  .process__grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .process__fig img { aspect-ratio: 3/4; }
}
@media (min-width: 1280px) {
  .process__step { grid-template-columns: 90px 1fr 1fr; }
}

/* =============================================================
   10. Why (banda con foto)
   ============================================================= */
.why { position: relative; min-height: 74vh; display: flex; align-items: center; color: var(--cream); overflow: clip; }
.why__media { position: absolute; inset: 0; z-index: 0; }
.why__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.why__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,14,14,.94) 10%, rgba(14,14,14,.72) 45%, rgba(14,14,14,.45) 100%); }
.why__inner { position: relative; z-index: 1; padding: 4.5rem var(--gutter); max-width: 780px; }
.why__title { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: .8rem 0 1.2rem; color: var(--cream); }
.why__lede { color: rgba(247,245,240,.82); max-width: 54ch; font-size: 1.02rem; }
.why__plates { display: grid; gap: 1px; margin-top: 2.4rem; background: rgba(247,245,240,.25); border: 1px solid rgba(247,245,240,.25); grid-template-columns: repeat(3, 1fr); }
.why__plate { background: rgba(14,14,14,.55); padding: 1.2rem .8rem; text-align: center; }
.why__plate strong { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--accent); }
.why__plate span { font-family: var(--mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(247,245,240,.75); }

/* =============================================================
   11. Reviews
   ============================================================= */
.reviews { padding: 6rem 0; }
.reviews__grid { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); columns: 1; column-gap: 1px; background: var(--line); }
.review { background: var(--panel); padding: 2rem 1.8rem; break-inside: avoid; margin-bottom: 1px; display: block; }
.review__rating { color: var(--accent); letter-spacing: .1em; font-size: .9rem; margin-bottom: .8rem; }
.review p:not(.review__rating) { font-size: .98rem; color: var(--ink-soft); }
.review footer { margin-top: 1.2rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-mute); }

@media (min-width: 720px) { .reviews__grid { columns: 2; } }
@media (min-width: 1200px) { .reviews__grid { columns: 3; } }

/* =============================================================
   12. FAQ
   ============================================================= */
.faq { padding: 4rem 0 6rem; background: var(--bg-2); }
.faq__list { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.faq__item { border-top: 1px solid var(--line-hard); padding: 1.5rem 0; }
.faq__list details:last-child { border-bottom: 1px solid var(--line-hard); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer;
  font-size: 1.02rem; font-weight: 600; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ic { position: relative; width: 18px; height: 18px; flex: none; }
.faq__ic::before, .faq__ic::after { content: ""; position: absolute; background: var(--accent); transition: transform .25s var(--ease-out); }
.faq__ic::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq__ic::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq__item[open] .faq__ic::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq__item p { margin-top: 1rem; color: var(--ink-mute); max-width: 64ch; font-size: .96rem; }

/* =============================================================
   13. CTA cierre
   ============================================================= */
.cta { position: relative; background: var(--ink); color: var(--cream); padding: 6.5rem 0 5.5rem; overflow: clip; }
.cta__grid {
  position: absolute; inset: 0; opacity: .1; pointer-events: none;
  background-image: linear-gradient(90deg, var(--cream) 1px, transparent 1px), linear-gradient(180deg, var(--cream) 1px, transparent 1px);
  background-size: 70px 70px;
}
.cta__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.cta__title { color: var(--cream); font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 1rem 0 1.4rem; }
.cta__sub { color: rgba(247,245,240,.78); max-width: 52ch; margin: 0 auto 2.2rem; }
.cta__meta {
  margin-top: 2.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  font-family: var(--mono); font-size: .78rem; color: rgba(247,245,240,.65); letter-spacing: .03em;
}

/* =============================================================
   14. Footer
   ============================================================= */
.foot { background: var(--bg-2); border-top: 1px solid var(--line-hard); }
.foot__top {
  max-width: 1160px; margin: 0 auto; padding: 3.6rem var(--gutter) 2.4rem;
  display: grid; gap: 2.4rem;
}
.foot__word { font-family: var(--display); font-size: 1.7rem; letter-spacing: .03em; }
.foot__brand p { margin-top: .8rem; max-width: 34ch; color: var(--ink-mute); font-size: .9rem; }
.foot__links { display: grid; gap: .6rem; font-family: var(--mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.foot__links a:hover { color: var(--accent-2); }
.foot__contact { display: grid; gap: .6rem; font-family: var(--mono); font-size: .82rem; }
.foot__contact a:hover { color: var(--accent-2); }
.foot__bottom {
  border-top: 1px solid var(--line); max-width: 1160px; margin: 0 auto; padding: 1.4rem var(--gutter) 2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  font-family: var(--mono); font-size: .72rem; color: var(--ink-mute);
}
.foot__bottom a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.foot__bottom a:hover { color: var(--accent-2); border-color: var(--accent-2); }

@media (min-width: 720px) {
  .foot__top { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* =============================================================
   15. Floating WhatsApp
   ============================================================= */
.fab-wa {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 400;
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--ink); border: 1.5px solid var(--ink);
  transition: transform .2s var(--ease-out), background .2s var(--ease-out);
}
.fab-wa:hover { transform: translateY(-3px); background: var(--ink); color: var(--accent); }

/* =============================================================
   16. Responsive extra steps
   ============================================================= */
@media (min-width: 540px) {
  .hero__title { font-size: clamp(3.6rem, 9vw, 7.4rem); }
}
@media (min-width: 1280px) {
  .gutter-lg { padding-inline: 3rem; }
}

/* =============================================================
   17. Reduced motion — only the truly intrusive
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero__scroll span { animation: none; }
  .splash { animation: none; opacity: 0; pointer-events: none; }
}
