/* UNLIMIT WORKS · web v2 (KODEX Visual, 06/11/2026)
   Marca tomada del PDF corporativo: rojo #ED1C24, negro #231F20, Bebas Neue. */

:root {
  --red: #ED1C24;
  --red-deep: #B5121A;
  --ink: #0B0B0B;
  --char: #141414;
  --char-2: #1B1B1B;
  --line: #2A2A2A;
  --paper: #FFFFFF;
  --mist: #F1F1F1;
  --text: #1A1A1A;
  --muted: #8C8C8C;
  --muted-dark: #5E5E5E;
  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }

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

/* ── Cuerda: línea roja que baja con el scroll (firma del folleto) ── */
.rope {
  position: fixed; top: 0; left: clamp(10px, 2.2vw, 34px);
  width: 3px; height: 100vh; z-index: 40; pointer-events: none;
  background: linear-gradient(to bottom, rgba(237,28,36,.18), rgba(237,28,36,.06));
}
.rope::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%;
  background: var(--red);
  transform-origin: top; transform: scaleY(var(--rope, 0));
}
@media (max-width: 860px) { .rope { display: none; } }

/* ── Tipografía ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.display {
  font-family: var(--display); font-weight: 400; letter-spacing: .01em;
  line-height: .9; margin: 0; text-transform: uppercase;
}
.h2 { font-size: clamp(48px, 7vw, 96px); }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.7; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border: 2px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

/* ── Navegación ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-solid { background: rgba(11,11,11,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.brand img { width: 38px; height: auto; }
.brand-name { font-family: var(--display); font-size: 27px; letter-spacing: .04em; line-height: 1; display: block; }
.brand-name b { color: var(--red); font-weight: 400; }
.brand-sub { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: 30px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { min-height: 44px; padding: 0 18px; font-size: 12px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 76px 0 0 0; z-index: 49; background: var(--ink);
  display: flex; flex-direction: column; padding: 24px var(--gutter);
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
}
.mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--display); font-size: 44px; color: #fff; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 28px; font-family: var(--sans); font-size: 14px; border: 0; }
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
}

/* ── Hero ── */
.hero {
  position: relative; color: #fff; background: var(--ink);
  padding: 140px 0 0; overflow: hidden;
}
.hero::before { /* trama sutil */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(64px, 8.4vw, 128px); margin: 20px 0 24px; }
.hero h1 .r { color: var(--red); display: block; }
.hero .lead { color: rgba(255,255,255,.72); max-width: 520px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-photos { position: relative; aspect-ratio: 4 / 5; max-width: 520px; justify-self: end; width: 100%; }
.hero-photos figure { position: absolute; margin: 0; overflow: hidden; background: var(--char); }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; }
.hp-main { inset: 0 0 12% 16%; }
.hp-main::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.hp-sub { left: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; border: 6px solid var(--ink); }
.hp-tag {
  position: absolute; right: 0; bottom: 4%; z-index: 2;
  background: var(--red); color: #fff; padding: 10px 16px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}

.marquee { position: relative; margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span {
  font-family: var(--display); font-size: clamp(30px, 4vw, 48px); line-height: 1; padding: 22px 0;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); white-space: nowrap;
}
.marquee span i { font-style: normal; color: var(--red); -webkit-text-stroke: 0; margin: 0 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Credenciales ── */
.creds { background: var(--char); color: #fff; }
.creds-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred { padding: 38px 28px; border-right: 1px solid var(--line); }
.cred:last-child { border-right: 0; }
.cred strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 4vw, 52px); line-height: 1; color: #fff; }
.cred strong em { font-style: normal; color: var(--red); }
.cred span { display: block; margin-top: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ── Secciones ── */
.section { padding: clamp(88px, 11vw, 150px) 0; }
.light { background: var(--paper); color: var(--text); }
.mist { background: var(--mist); color: var(--text); }
.dark { background: var(--ink); color: #fff; }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about h2 { margin: 18px 0 30px; }
.about h2 .r { color: var(--red); }
.about p { color: #3D3D3D; margin: 0 0 18px; }
.about blockquote {
  margin: 34px 0 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--red);
  font-family: var(--display); font-size: clamp(28px, 3vw, 38px); line-height: 1.05; color: var(--ink);
}
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.about-photo::before { content: ""; position: absolute; top: -18px; right: -18px; width: 42%; height: 46%; background: var(--red); z-index: -1; }
.about-photo { z-index: 0; }
.about-photo figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }

/* Servicios */
.svc-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.svc-head h2 { margin-top: 18px; }
.svc-head p { max-width: 420px; color: rgba(255,255,255,.62); margin: 0; }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); margin: 0; padding: 0; list-style: none; counter-reset: svc; }
.svc {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.svc::after { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--red); transition: width .5s var(--ease); }
.svc:hover::after { width: 100%; }
.svc-n { font-family: var(--display); font-size: 22px; color: var(--red); line-height: 1.2; }
.svc h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.6vw, 34px); line-height: 1; margin: 0; letter-spacing: .01em; }
.svc p { grid-column: 2; margin: 4px 0 0; color: rgba(255,255,255,.6); font-size: 15px; }

/* Por qué cuerdas */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #DADADA; margin-top: 56px; border: 2px solid #DADADA; }
.why { background: var(--paper); padding: 40px 32px 44px; }
.why b { display: block; font-family: var(--display); font-weight: 400; font-size: 64px; line-height: 1; color: var(--red); }
.why h3 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; margin: 18px 0 12px; }
.why p { margin: 0; color: #4A4A4A; font-size: 15px; }
.why-intro { max-width: 640px; color: #4A4A4A; margin: 22px 0 0; }

/* Registro de obra */
.gal-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.gal-head h2 { margin-top: 18px; }
.gal-note { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); display: flex; align-items: center; gap: 10px; }
.gal-note::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.gallery { columns: 3 280px; column-gap: 14px; }
.shot { break-inside: avoid; margin: 0 0 14px; position: relative; overflow: hidden; cursor: zoom-in; background: #ddd; }
.shot img { width: 100%; transition: transform .8s var(--ease), filter .5s; filter: saturate(.92); }
.shot:hover img { transform: scale(1.04); filter: saturate(1.05); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transform: translateY(6px); opacity: .92; transition: .4s var(--ease);
}
.shot:hover figcaption { transform: none; opacity: 1; }
.shot button { all: unset; display: block; cursor: zoom-in; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,5,.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; max-width: min(92vw, 1100px); width: auto; object-fit: contain; }
.lightbox p { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: rgba(255,255,255,.8); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.lb-btn { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; width: 52px; height: 52px; font-size: 30px; line-height: 1; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* IRATA */
.irata { position: relative; overflow: hidden; }
.irata-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.irata-badge { border: 2px solid var(--red); padding: 36px 34px; position: relative; }
.irata-badge small { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.irata-badge strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(96px, 12vw, 150px); line-height: .85; margin: 14px 0 10px; }
.irata-badge span { display: block; color: rgba(255,255,255,.7); font-size: 14px; }
.irata h2 { margin: 18px 0 24px; }
.irata-points { list-style: none; margin: 32px 0 0; padding: 0; }
.irata-points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.irata-points li:last-child { border-bottom: 1px solid var(--line); }
.irata-points svg { width: 28px; height: 28px; color: var(--red); margin-top: 2px; }
.irata-points h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.irata-points p { margin: 0; color: rgba(255,255,255,.62); font-size: 15px; }
.irata .lead { color: rgba(255,255,255,.72); margin: 0; }

/* Cotizar */
.quote { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.quote::before {
  content: "U.W."; position: absolute; right: -2vw; bottom: -6vw; font-family: var(--display);
  font-size: 34vw; line-height: 1; color: rgba(0,0,0,.08); pointer-events: none;
}
.quote-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.quote .eyebrow { color: #fff; }
.quote h2 { margin: 18px 0 24px; }
.quote .lead { color: rgba(255,255,255,.88); margin: 0 0 30px; }
.contact-line { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.contact-line a { font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: .02em; }
.contact-line span { color: rgba(255,255,255,.8); }
.form { background: var(--ink); padding: clamp(26px, 3.4vw, 40px); display: grid; gap: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.form h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; }
.field { display: grid; gap: 7px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); background: var(--char);
  color: #fff; font-size: 16px; border-radius: 0; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { width: 100%; margin-top: 6px; }
.form-note { margin: 0; font-size: 12px; color: var(--muted); }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 72px 0 32px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.foot-logo { width: 150px; }
.footer h4 { margin: 0 0 16px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 12px; color: var(--muted); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,0,0,.35);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* Aparición */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }
.hero .rv { transition-duration: 1.1s; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero { padding-top: 112px; }
  .hero-grid, .about-grid, .irata-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero-photos { justify-self: start; max-width: 460px; }
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .cred:nth-child(2) { border-right: 0; }
  .cred:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .svc-list { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .about-photo::before { top: -12px; right: -12px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 19vw; }
  .cred { padding: 26px 18px; }
  .svc { grid-template-columns: 44px 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact-line a { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .shot img, .svc::after { transition: none; }
}
