/* Somos Paddock — paleta y tipografía según lámina de marca */
:root {
  --asfalto: #0C0C0D;
  --carbono: #1D1E21;
  --rojo: #E2231A;
  --rojo-profundo: #7A0F12;
  --acero: #8C8F95;
  --concreto: #D3D1CC;
  --tiza: #F1F0EC;

  --f-text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --cut: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--asfalto);
  color: var(--tiza);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 76px; }

h1, h2, .case__num {
  font-family: var(--f-text);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6.2vw, 4.9rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0; }

.label {
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 18px;
}
.label--tiza { color: var(--tiza); margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--tiza); color: var(--asfalto); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--tiza); outline-offset: 3px; }
.sec--light :focus-visible { outline-color: var(--asfalto); }

/* Grilla técnica de fondo */
.grid-bg {
  background-image:
    linear-gradient(rgba(241, 240, 236, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 240, 236, .045) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  background: var(--rojo);
  color: var(--tiza);
  font: 700 .95rem/1 var(--f-text);
  font-stretch: 112%;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--tiza); color: var(--asfalto); }
.btn--ghost { background: var(--carbono); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .82rem; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 13, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(241, 240, 236, .08);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo img { height: 34px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a:not(.btn) {
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--concreto); padding: 8px 0;
}
.nav__menu a:not(.btn):hover { color: var(--tiza); box-shadow: 0 2px 0 var(--rojo); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--tiza); margin: 6px 0; transition: transform .2s, opacity .2s; }

/* HERO */
.hero { position: relative; overflow: hidden; }
.hero__in { position: relative; padding-block: clamp(72px, 13vh, 150px) clamp(64px, 10vh, 110px); }
.hero h1 { max-width: 12ch; }
.hero__lead { max-width: 34em; margin-top: 28px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--concreto); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__facts {
  list-style: none; padding: 0; margin: clamp(48px, 8vh, 84px) 0 0;
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  font-size: .95rem; color: var(--concreto);
}
.hero__facts span { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .15em; color: var(--rojo); margin-right: 10px; }

.hero__stripes { position: absolute; inset: 0 0 0 auto; width: 44%; pointer-events: none; }
.hero__stripes i { position: absolute; inset: 0; }
.hero__stripes i:first-child { background: var(--rojo-profundo); clip-path: polygon(56% 0, 82% 0, 44% 100%, 18% 100%); }
.hero__stripes i:last-child { background: var(--rojo); clip-path: polygon(74% 0, 100% 0, 100% 100%, 36% 100%); }

/* Banda de carrera */
.strip {
  height: 26px;
  background:
    repeating-linear-gradient(102deg,
      var(--rojo) 0 34px, var(--asfalto) 34px 52px,
      var(--rojo-profundo) 52px 74px, var(--asfalto) 74px 96px,
      var(--rojo) 96px 108px, var(--asfalto) 108px 140px);
}

/* Clientes: carrusel continuo */
.clients { background: var(--carbono); padding-block: clamp(40px, 6vw, 60px); }
.clients .label { color: var(--acero); margin-bottom: 30px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.clients__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; width: max-content; }
.clients__list li { padding-inline: clamp(28px, 4.5vw, 60px); flex: none; }
.clients__list a { display: block; opacity: .85; transition: opacity .2s; }
.clients__list a:hover { opacity: 1; }
.clients__list img { height: var(--h); width: auto; max-width: none; }
.marquee.is-running .clients__list { animation: marquee var(--dur, 30s) linear infinite; }
.marquee.is-running:hover .clients__list { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1faa53; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  transition: background .2s, transform .2s;
}
.wa-float:hover { background: #17893f; transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }

/* Secciones */
.sec { padding-block: clamp(72px, 11vw, 132px); position: relative; }
.sec--carbon { background: var(--carbono); }
.sec--light { background: var(--tiza); color: var(--carbono); }
.sec__head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 60px); }
.sec__sub { margin-top: 20px; color: var(--concreto); font-size: 1.1rem; max-width: 36em; }
.sec--light .sec__sub { color: #4a4c52; }
.sec--light .label { color: #b3140f; }
.sec--light .manifesto__txt { color: #4a4c52; }
.sec--light .manifesto__txt p:first-child { color: var(--carbono); }

/* Manifiesto */
.manifesto__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.manifesto__txt { display: grid; gap: 20px; font-size: 1.15rem; color: var(--concreto); border-left: 3px solid var(--rojo); padding-left: clamp(20px, 3vw, 36px); }
.manifesto__txt p:first-child { color: var(--tiza); font-weight: 600; font-size: 1.3rem; line-height: 1.4; }

/* Servicios: dos modalidades */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.plan {
  background: var(--carbono);
  padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column;
  border-top: 4px solid #3a3c41;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.plan--main { border-top-color: var(--rojo); }
.plan__tag { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--acero); margin-bottom: 22px; }
.plan--main .plan__tag { color: var(--rojo); }
.plan h3 { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.08; margin-bottom: 16px; text-wrap: balance; }
.plan__lead { color: var(--concreto); margin-bottom: 26px; }
.plan__list { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 14px; }
.plan__list li { position: relative; padding-left: 26px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--rojo); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.btn--line { background: transparent; box-shadow: inset 0 0 0 2px var(--tiza); clip-path: none; }
.cards__note { margin-top: 28px; color: var(--acero); }

/* Plataformas */
.stack { border-top: 1px solid rgba(241, 240, 236, .14); }
.stack__row {
  display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid rgba(241, 240, 236, .14);
}
.stack__row h3 { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; display: flex; align-items: center; gap: 16px; }
.stack__row h3 span { font-family: var(--f-mono); font-weight: 500; font-size: .76rem; color: var(--rojo); letter-spacing: .1em; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips img { width: 18px; height: 18px; }
.chips__logo img { width: auto; height: 30px; }
.chips li {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--asfalto); padding: 12px 16px; color: var(--tiza);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

/* Caso */
.case { padding-block: 0; }
.case__in {
  max-width: none;
  padding-block: clamp(56px, 8vw, 96px) clamp(72px, 10vw, 120px);
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  background:
    linear-gradient(rgba(241, 240, 236, .04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(241, 240, 236, .04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(160deg, var(--rojo-profundo) 0%, #2a0d0f 38%, var(--asfalto) 68%);
}
.case__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(48px, 8vw, 96px); }
.case__num { font-size: clamp(5.5rem, 21vw, 15rem); line-height: .82; margin-bottom: 18px; margin-left: -.04em; }
.case__title { font-size: clamp(1.4rem, 3.4vw, 2.6rem); max-width: 14em; }
.rule { display: block; width: 120px; height: 7px; background: var(--rojo); margin: 34px 0 26px; clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.case__txt { color: var(--concreto); max-width: 30em; font-size: 1.1rem; }

/* Para quién */
.who__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.who__list li {
  font-stretch: 112%; font-weight: 700; font-size: clamp(1rem, 1.7vw, 1.3rem);
  padding: 16px 24px; background: var(--carbono); border-left: 3px solid var(--rojo);
}

/* Preguntas frecuentes */
.faq__list { border-top: 3px solid var(--carbono); max-width: 56rem; }
.faq details { border-bottom: 1px solid var(--concreto); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0;
  font-stretch: 112%; font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: 500 1.6rem/1 var(--f-mono); color: #b3140f;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #4a4c52; padding: 0 48px 24px 0; max-width: 44em; }

/* Contacto */
.contact { overflow: hidden; }
.contact__stripe { position: absolute; top: 0; right: 0; width: 150px; height: 300px; background: var(--rojo); clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%); }
.contact__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; position: relative; }
.contact__data { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
.contact__data li { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact__data span { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--acero); }
.contact__data a { text-decoration-color: var(--rojo); text-underline-offset: 4px; }

.form { background: var(--carbono); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.field { display: grid; gap: 8px; grid-column: 1 / -1; }
.field--half { grid-column: auto; }
.form > :not(.field) { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; }
.field label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--concreto); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-text); color: var(--tiza);
  background: var(--asfalto); border: 1px solid #3a3c41; border-radius: 0; padding: 14px 14px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rojo); }
.form .btn { justify-self: start; }
.form__err { color: #ff8a80; font-size: .95rem; }
.form__ok { color: var(--tiza); border-left: 3px solid #1faa53; padding-left: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Footer */
.foot { padding-block: 44px; background: var(--asfalto); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.foot__in img { height: 40px; width: auto; }
.foot__tag { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; }
.foot__tag em { font-style: normal; color: var(--rojo); }
.foot__copy { color: var(--acero); font-size: .88rem; width: 100%; border-top: 1px solid rgba(241, 240, 236, .1); padding-top: 22px; }

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee.is-running .clients__list { animation: none; }
  .marquee { overflow-x: auto; }
}

/* Responsive */
@media (max-width: 1000px) {

  .stack__row { grid-template-columns: 1fr; gap: 18px; }
  .hero__stripes { width: 34%; opacity: .9; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--asfalto); border-bottom: 1px solid rgba(241, 240, 236, .1);
    padding: 8px var(--gutter) 24px; display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 16px 0; border-bottom: 1px solid rgba(241, 240, 236, .08); }
  .nav__menu .btn { margin-top: 20px; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero__stripes { display: none; }
  .hero__facts { flex-direction: column; }
  .manifesto__in, .contact__in { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .contact__stripe { width: 70px; height: 150px; }
  .wa-float { right: 14px; width: 54px; height: 54px; }
  .clients__list img { height: calc(var(--h) * .8); }
  .field--half { grid-column: 1 / -1; }
  .contact__data li { grid-template-columns: 1fr; gap: 4px; }
  .form .btn { justify-self: stretch; }
}
