/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #070b14;
  --bg-2: #0d1322;
  --bg-3: #131b30;
  --ink: #f4f5f8;
  --mute: #9aa3b8;
  --red: #e3262e;
  --red-2: #ff4a52;
  --blue: #00459b;
  --line: rgba(244,245,248,.12);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gut: clamp(1.1rem, 4vw, 3.5rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6; font-weight: 300;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; line-height: 1; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--red-2); }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: #fff; color: #000; z-index: 9999; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Components
   ============================================================= */
.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); margin-bottom: 1.2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 1.7rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; transition: transform .5s var(--ease-out), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 40px -10px rgba(227,38,46,.7); }
.btn-red:hover { background: var(--red-2); }
.btn-line { border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--ink); background: rgba(255,255,255,.06); }
.btn-s { padding: .75rem 1.3rem; font-size: .85rem; }

.ph {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px dashed rgba(244,245,248,.2); border-radius: 18px; color: rgba(244,245,248,.28);
}
.ph svg { width: 70%; max-width: 360px; }
.ph::after {
  content: attr(data-ph); position: absolute; left: 1rem; bottom: .8rem;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}

/* =============================================================
   4. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.1rem var(--gut); transition: background .4s, padding .4s var(--ease-out), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(7,11,20,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: .7rem; border-color: var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--red); display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; font-style: italic; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); margin-top: .25rem; }
.nav-links { display: none; gap: 2rem; font-size: .88rem; }
.nav-links a, .mail-big { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: .6rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; transition: background .3s, border-color .3s; }
.nav-cta:hover { background: var(--red); border-color: var(--red); }

/* =============================================================
   5. Hero
   ============================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 8rem var(--gut) 3.5rem; overflow: hidden; isolation: isolate; }
.hero-gradient {
  position: absolute; inset: -10%; z-index: -2;
  background:
    radial-gradient(circle 520px at var(--mx, 70%) var(--my, 40%), rgba(227,38,46,.85) 0%, transparent 60%),
    radial-gradient(circle 700px at calc(var(--mx, 70%) - 18%) calc(var(--my, 40%) + 14%), rgba(0,69,155,.9) 0%, transparent 62%),
    var(--bg);
  filter: blur(34px) saturate(130%);
  transition: background .25s;
}
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
.hero-inner { width: 100%; max-width: 1500px; margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: 1.8rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.hero-title { font-size: clamp(3.6rem, 14.5vw, 13.5rem); line-height: .86; letter-spacing: -0.035em; margin-bottom: clamp(2rem, 5vw, 4rem); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > * { display: inline-block; transform: translateY(105%); animation: rise 1.2s var(--ease-out) forwards; }
.hero-title .line:nth-child(2) > * { animation-delay: .12s; }
.hero-title .line:nth-child(3) > * { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero-foot { display: grid; gap: 1.8rem; align-items: end; }
.hero-sub { max-width: 46ch; font-size: 1.1rem; color: #cfd5e4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-scroll { position: absolute; right: var(--gut); bottom: 3.5rem; display: none; writing-mode: vertical-rl; font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); gap: .8rem; align-items: center; }
.hero-scroll span { width: 1px; height: 60px; background: linear-gradient(var(--ink), transparent); animation: drip 2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =============================================================
   6. Sections
   ============================================================= */
section { position: relative; padding: clamp(4.5rem, 10vw, 9rem) var(--gut); }
.sec-head { max-width: 1500px; margin: 0 auto clamp(2rem, 5vw, 4rem); }
.sec-head h2 { font-size: clamp(2.4rem, 7vw, 6rem); line-height: .95; max-width: 16ch; }
.contact .sec-head h2 { max-width: 20ch; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); padding: 0; border-block: 1px solid var(--line); }
.stat { background: var(--bg); padding: 2rem var(--gut); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; }
.stat b i { color: var(--red-2); }
.stat span { font-size: .8rem; color: var(--mute); }

/* manifesto */
.manifesto { max-width: 1500px; margin-inline: auto; }
.manifesto-text { font-family: var(--serif); font-size: clamp(1.8rem, 4.6vw, 4rem); line-height: 1.08; max-width: 26ch; margin-left: auto; margin-right: 0; letter-spacing: -.01em; }
.manifesto .eyebrow { margin-bottom: 2rem; }

/* fleet */
.fleet-list { list-style: none; padding: 0; max-width: 1500px; margin: 0 auto; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row-head { width: 100%; display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .2rem 1rem; align-items: center; text-align: left; padding: 1.5rem 0; transition: padding .5s var(--ease-out), color .3s; }
.row-num { font-size: .75rem; color: var(--mute); grid-row: 1 / 3; }
.row-name { font-family: var(--serif); font-size: clamp(1.7rem, 5vw, 4.4rem); line-height: 1; transition: transform .6s var(--ease-out), color .3s; }
.row-cat { grid-column: 2; font-size: .8rem; color: var(--mute); }
.row-plus { grid-column: 3; grid-row: 1 / 3; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; position: relative; transition: background .3s, transform .5s var(--ease-out), border-color .3s; }
.row-plus::before, .row-plus::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 1px; background: currentColor; transition: transform .5s var(--ease-out); }
.row-plus::after { transform: rotate(90deg); }
.row-head:hover .row-name { transform: translateX(14px); color: var(--red-2); }
.row.is-open .row-plus { background: var(--red); border-color: var(--red); transform: rotate(180deg); }
.row.is-open .row-plus::after { transform: rotate(0); }
.row.is-open .row-name { color: var(--red-2); }
.row-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.row.is-open .row-body { grid-template-rows: 1fr; }
.row-inner { overflow: hidden; display: grid; gap: 1.5rem; min-height: 0; }
.row.is-open .row-inner { padding-bottom: 2rem; }
.row-inner .ph { aspect-ratio: 16/9; }
.row-info p { max-width: 48ch; margin-bottom: 1.2rem; color: #cfd5e4; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chips li { font-size: .75rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); }

/* services */
.svc-grid { max-width: 1500px; margin: 0 auto; display: grid; gap: 1.2rem; }
.svc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; transition: transform .6s var(--ease-out), border-color .3s, box-shadow .6s var(--ease-out); }
.svc:hover { transform: translateY(-8px); border-color: rgba(227,38,46,.6); box-shadow: 0 30px 60px -30px rgba(227,38,46,.5); }
.svc-n { font-size: .8rem; color: var(--red-2); }
.svc h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.svc p { color: #cfd5e4; }
.svc-ph { aspect-ratio: 4/3; margin-top: auto; }

/* safety */
.safety { background: var(--bg-2); border-block: 1px solid var(--line); }
.proc { list-style: none; counter-reset: p; padding: 0; max-width: 1500px; margin: 0 auto; }
.proc li { counter-increment: p; display: grid; gap: .4rem; padding: 1.8rem 0; border-top: 1px solid var(--line); position: relative; padding-left: 3.4rem; }
.proc li::before { content: "0" counter(p); position: absolute; left: 0; top: 1.9rem; font-size: .8rem; color: var(--red-2); }
.proc b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.8rem); }
.proc span { color: var(--mute); max-width: 52ch; }

/* clients */
.clients { max-width: 1500px; margin-inline: auto; }
.clients-list { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 3.4rem); line-height: 1.25; color: rgba(244,245,248,.88); }
.clients-list i { color: var(--red-2); font-style: normal; margin-inline: .2em; }

/* quotes */
.q-grid { max-width: 1500px; margin: 0 auto; display: grid; gap: 1.2rem; }
.q { background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: 24px; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.q blockquote { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.2; }
.q blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--red-2); }
.q figcaption { font-size: .82rem; color: var(--mute); }
.q figcaption b { color: var(--ink); font-weight: 500; }

/* contact */
.contact { background: radial-gradient(900px 500px at 85% 0%, rgba(227,38,46,.25), transparent 60%), var(--bg); }
.contact-grid { max-width: 1500px; margin: 0 auto; display: grid; gap: 3rem; }
.mail-big { display: inline-block; font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 2.6rem); line-height: 1.1; margin-bottom: 2rem; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out), color .3s; }
.mail-big:hover { background-size: 100% 1px; color: var(--red-2); }
.contact-info dl { display: grid; gap: 1.2rem; }
.contact-info dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.contact-info dd a:hover { color: var(--red-2); }
.form { display: grid; gap: 1rem; background: rgba(13,19,34,.7); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.form label { display: grid; gap: .4rem; font-size: .78rem; color: var(--mute); }
.form small { opacity: .7; }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; transition: border-color .3s, box-shadow .3s; color-scheme: dark; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red-2); box-shadow: 0 0 0 4px rgba(227,38,46,.18); }
.two { display: grid; gap: 1rem; }
.form button { justify-self: start; }
.form-note { font-size: .75rem; color: var(--mute); }

/* footer */
.footer { padding: 3rem var(--gut) 2rem; overflow: hidden; border-top: 1px solid var(--line); }
.footer-big { font-family: var(--serif); font-size: clamp(5rem, 28vw, 26rem); line-height: .8; letter-spacing: -.04em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(244,245,248,.2); margin-bottom: 2rem; user-select: none; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .78rem; color: var(--mute); }
.footer-row a:hover { color: var(--ink); text-decoration: underline; }

.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; padding: .8rem 1.2rem; border-radius: 999px; background: #25d366; color: #05210f; font-weight: 600; font-size: .85rem; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6); transition: transform .5s var(--ease-out); }
.wa-float:hover { transform: translateY(-4px) scale(1.04); }

/* cursor */
.cursor { position: fixed; top: 0; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; z-index: 9999; opacity: 0; transition: opacity .25s var(--ease-out), width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor.is-big { width: 56px; height: 56px; margin: -28px 0 0 -28px; }

/* =============================================================
   7. Reveals — visible by default; JS arms them
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) { .two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .svc-grid, .q-grid { grid-template-columns: repeat(3, 1fr); }
  .row-inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem; }
  .hero-foot { grid-template-columns: 1fr auto; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .hero-scroll { display: flex; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .proc li { grid-template-columns: 1fr 1fr; align-items: baseline; padding-left: 4rem; }
  .proc li::before { top: 2.2rem; }
}
@media (hover: none) { .cursor { display: none; } }

/* =============================================================
   9. Reduced-motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .hero-scroll span { animation: none; }
}

/* imágenes reales */
.ph.has-img { border-style: solid; border-color: var(--line); background: radial-gradient(60% 70% at 50% 60%, rgba(227,38,46,.22), transparent 70%), linear-gradient(160deg, var(--bg-3), var(--bg-2)); }
.ph.has-img::after { display: none; }
.ph.has-img img { width: 88%; height: auto; max-height: 90%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.55)); transition: transform .8s var(--ease-out); }
.row.is-open .ph.has-img img { animation: drive 1s var(--ease-out); }
@keyframes drive { from { transform: translateX(-12%); opacity: 0; } to { transform: none; opacity: 1; } }
.svc-ph.has-img img { width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none; }
.svc-ph.has-img { border: 0; }
.svc:hover .svc-ph img { transform: scale(1.06); }

/* =============================================================
   10. Fotografía real · Ciudad Blanca
   ============================================================= */
.brand-logo { display: block; background: #fff; border-radius: 12px; padding: .3rem .7rem; box-shadow: 0 8px 30px -10px rgba(0,0,0,.6); }
.brand-logo img { height: 34px; width: auto; transition: height .4s var(--ease-out); }
.nav.is-solid .brand-logo img { height: 28px; }

.hero-photo { position: absolute; inset: 0; z-index: -3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(.9) contrast(1.05); transform: scale(1.06); animation: heroZoom 24s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(7,11,20,.55) 0%, rgba(7,11,20,.15) 35%, rgba(7,11,20,.78) 80%, var(--bg) 100%); }
.hero-gradient { mix-blend-mode: soft-light; opacity: .95; z-index: -2; filter: blur(30px) saturate(150%); }

.ph.has-img { padding: 0; }
.ph.has-img img { width: 100%; height: 100%; max-height: none; max-width: none; object-fit: cover; filter: none; }

/* fondos con foto */
.contact { overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .25; filter: grayscale(.3); }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg), rgba(7,11,20,.5) 40%, var(--bg)); }

.credits { max-width: 1500px; margin: 0 auto 2rem; font-size: .75rem; color: var(--mute); }
.credits summary { cursor: pointer; width: max-content; }
.credits ul { list-style: none; padding: 0; margin-top: .8rem; display: grid; gap: .3rem; }
.credits a { text-decoration: underline; }


/* fix: foto de flota llena su marco */
.row-inner .ph.has-img { position: relative; width: 100%; aspect-ratio: 16/10; min-height: 220px; }
.row-inner .ph.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* fondos de sección que insinúan Arequipa */
.manifesto, .services, .safety, .clients, .quotes { isolation: isolate; }
.manifesto { max-width: none; }
.manifesto > *:not(.bgp) { max-width: 1500px; margin-inline: auto; }
.clients { max-width: none; }
.clients > *:not(.bgp) { max-width: 1500px; margin-inline: auto; }
.services, .quotes, .safety, .manifesto, .clients { overflow: hidden; }
.bgp { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bgp img { width: 100%; height: 100%; object-fit: cover; opacity: .2; filter: grayscale(.35) contrast(1.05); }
.bgp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 28%, transparent 72%, var(--bg) 100%); }
.safety .bgp::after { background: linear-gradient(180deg, var(--bg-2) 0%, transparent 28%, transparent 72%, var(--bg-2) 100%); }
.bgp-right img { -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 85%); mask-image: linear-gradient(90deg, transparent 15%, #000 85%); }
.bgp-left img { -webkit-mask-image: linear-gradient(270deg, transparent 15%, #000 85%); mask-image: linear-gradient(270deg, transparent 15%, #000 85%); }
.bgp-full img { opacity: .14; }

/* =============================================================
   11. Contenido completo · enfoque minería
   ============================================================= */
.wrap { max-width: 1500px; margin-inline: auto; position: relative; }
.big { font-size: clamp(2.4rem, 7vw, 6rem); line-height: .95; margin-bottom: clamp(1.8rem, 4vw, 3.2rem); max-width: 18ch; }
.lead { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink); line-height: 1.45; }
.link { display: inline-block; margin-top: 1rem; font-size: .9rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .3s; }
.link:hover { color: var(--red-2); }
.nosotros, .equipo, .clients, .services, .quotes { isolation: isolate; overflow: hidden; position: relative; }
.hero-photo img { object-position: 50% 62%; filter: saturate(.85) contrast(1.05) brightness(.8); }

.ticks { list-style: none; padding: 0; display: grid; gap: .8rem; margin: 1.2rem 0; }
.ticks li { position: relative; padding-left: 1.7rem; color: #cfd5e4; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--red); border-radius: 2px; transform: rotate(45deg); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* a quién servimos */
.aud { display: grid; gap: 1px; padding: 0; background: var(--line); }
.aud-c { background: var(--bg); padding: clamp(2rem, 5vw, 4rem) var(--gut); }
.aud-c h2 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); margin-bottom: 1rem; max-width: 18ch; }
.aud-c p:not(.eyebrow) { color: #cfd5e4; max-width: 48ch; }

/* nosotros */
.nos-grid { display: grid; gap: 2.5rem; }
.nos-txt p { margin-bottom: 1rem; color: #cfd5e4; max-width: 62ch; }
.nos-txt p.lead { color: var(--ink); margin-bottom: 1.4rem; }
.mv { display: grid; gap: 1rem; align-content: start; }
.mv-c { background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: 22px; padding: 1.8rem; }
.mv-c h3 { font-size: 2rem; color: var(--red-2); margin-bottom: .6rem; }
.mv-c p { color: #cfd5e4; }
.mv-n { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.25; padding: .6rem .4rem; }
.mv-n b { font-weight: 400; color: var(--red-2); font-style: italic; }

/* servicios */
.svc p { font-size: .95rem; }
.iso { max-width: 1500px; margin: 1.2rem auto 0; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.8rem; align-items: center; }
.iso-t { display: grid; gap: 1rem; justify-items: start; }
.iso-t h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.iso-t p { color: #cfd5e4; max-width: 56ch; }
.iso-t b { color: var(--ink); font-weight: 500; }
.iso-img { justify-self: center; width: min(220px, 60%); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); transition: transform .6s var(--ease-out); }
.iso-img:hover { transform: rotate(-2deg) scale(1.04); }
.iso-img img { width: 100%; height: auto; }

/* equipo */
.eq-top { display: grid; gap: 1.5rem; margin-bottom: 2rem; align-items: end; }
.eq-top .lead { max-width: 60ch; }
.eq-p { width: 160px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); justify-self: start; }
.eq-p img { width: 100%; height: auto; }
.eq-cols { display: grid; gap: 1rem; }
.eq-c { background: rgba(13,19,34,.72); border: 1px solid var(--line); border-radius: 22px; padding: 1.8rem; }
.eq-c h3 { font-size: 1.9rem; margin-bottom: .8rem; }
.eq-c p { color: #cfd5e4; margin-bottom: .9rem; }
.eq-c .ticks { margin-bottom: 0; }

/* clientes y proyectos */
.proj { list-style: none; padding: 0; counter-reset: none; border-top: 1px solid var(--line); }
.pj { display: grid; gap: .5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.pj-y { font-size: .85rem; letter-spacing: .1em; color: var(--red-2); text-transform: uppercase; }
.live { font-style: normal; font-size: .65rem; background: rgba(74,222,128,.14); color: #4ade80; border: 1px solid rgba(74,222,128,.4); padding: .1rem .5rem; border-radius: 999px; margin-left: .5rem; letter-spacing: .08em; }
.pj-m h3 { font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.05; }
.pj-m h3 em { font-size: .7em; }
.pj-c { display: block; font-size: .85rem; color: var(--mute); margin-top: .35rem; }
.pj p { color: #cfd5e4; max-width: 62ch; }
.pj p b { color: var(--ink); font-weight: 500; }
.logos { list-style: none; padding: 0; margin-top: 3rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.logos li { background: #fff; border-radius: 14px; display: grid; place-items: center; padding: .5rem; aspect-ratio: 3/1; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.logos li:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -20px rgba(227,38,46,.6); }
.logos img { width: 100%; height: 100%; object-fit: contain; }

/* contacto */
.people { display: grid; gap: 1rem; margin-bottom: 1.6rem; }
.people > div { border-left: 2px solid var(--red); padding-left: 1rem; display: grid; }
.people span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.people b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.people a { color: var(--red-2); }
.people small { color: var(--mute); }
.contact-info .btn { margin-top: 1.5rem; }
.map { max-width: 1500px; margin: clamp(2rem, 5vw, 4rem) auto 0; position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: clamp(300px, 45vw, 460px); border: 0; display: block; }
.map .btn { position: absolute; right: 1rem; bottom: 1rem; background: rgba(7,11,20,.85); backdrop-filter: blur(8px); }

@media (min-width: 720px) {
  .aud { grid-template-columns: 1fr 1fr; }
  .nos-grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .iso { grid-template-columns: 1fr 240px; }
  .eq-top { grid-template-columns: 1fr 200px; }
  .eq-p { width: 100%; justify-self: end; }
  .eq-cols { grid-template-columns: repeat(3, 1fr); }
  .pj { grid-template-columns: 170px 1fr 1.2fr; gap: 2rem; align-items: start; padding: 2rem 0; }
  .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .logos { grid-template-columns: repeat(5, 1fr); }
}

/* =============================================================
   12. Sección ISO 39001 destacada
   ============================================================= */
.isosec { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, #0b1630 0%, #0a0f1f 55%, #1a0a10 100%); border-block: 1px solid var(--line); }
.iso-glow { position: absolute; inset: -20% -10% -20% 30%; z-index: -2; background: radial-gradient(50% 50% at 60% 50%, rgba(227,38,46,.45), transparent 70%), radial-gradient(40% 40% at 30% 70%, rgba(0,69,155,.55), transparent 70%); filter: blur(50px); animation: isoDrift 14s ease-in-out infinite alternate; }
@keyframes isoDrift { to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }
.iso-giant { position: absolute; left: 50%; top: 50%; z-index: -1; transform: translate(-50%, -50%); font-family: var(--serif); font-size: clamp(9rem, 38vw, 34rem); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(244,245,248,.1); white-space: nowrap; user-select: none; pointer-events: none; }
.iso-wrap { display: grid; gap: 2.5rem; align-items: center; }
.iso-tag { display: inline-flex; align-items: center; gap: .7rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; background: rgba(227,38,46,.18); border: 1px solid rgba(227,38,46,.55); padding: .45rem 1rem .45rem .6rem; border-radius: 999px; margin-bottom: 1.4rem; }
.seal { width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(from 0deg, var(--red), #ff8a8f, var(--red)); position: relative; animation: spin 8s linear infinite; }
.seal::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0b1630; }
@keyframes spin { to { transform: rotate(360deg); } }
.isosec h2 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: .95; max-width: 14ch; margin-bottom: 1.4rem; }
.iso-lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #dfe4f0; max-width: 52ch; margin-bottom: 1.6rem; }
.iso-pts { list-style: none; padding: 0; display: grid; gap: .9rem; margin-bottom: 2rem; max-width: 52ch; }
.iso-pts li { display: grid; border-left: 2px solid var(--red); padding-left: 1rem; }
.iso-pts b { font-weight: 500; }
.iso-pts span { font-size: .85rem; color: var(--mute); }
.btn-dl { padding: 1.15rem 2rem; font-size: 1rem; animation: dlPulse 2.6s ease-out infinite; }
.btn-dl svg { transition: transform .5s var(--ease-out); }
.btn-dl:hover svg { transform: translateY(3px); }
@keyframes dlPulse { 0% { box-shadow: 0 10px 40px -10px rgba(227,38,46,.7), 0 0 0 0 rgba(227,38,46,.5); } 70% { box-shadow: 0 10px 40px -10px rgba(227,38,46,.7), 0 0 0 16px rgba(227,38,46,0); } 100% { box-shadow: 0 10px 40px -10px rgba(227,38,46,.7), 0 0 0 0 rgba(227,38,46,0); } }
.iso-n { margin-top: .9rem; font-size: .75rem; color: var(--mute); }

.cert { position: relative; display: block; justify-self: center; width: min(340px, 78%); border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 50px 80px -30px rgba(0,0,0,.8), 0 0 0 8px rgba(255,255,255,.04), 0 0 90px -10px rgba(227,38,46,.45); transform: rotate(3deg); transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out); background: #fff; }
.cert:hover { transform: rotate(0deg) scale(1.04); }
.cert img { width: 100%; height: auto; display: block; }
.cert-ribbon { position: absolute; z-index: 2; top: 14px; left: -38px; transform: rotate(-35deg); width: 150px; text-align: center; background: var(--red); color: #fff; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; padding: .35rem 0; font-weight: 600; }
.cert-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); animation: shine 5s ease-in-out 1.5s infinite; pointer-events: none; mix-blend-mode: soft-light; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.nav-links .nav-iso { color: #fff; font-weight: 500; }
.nav-links .nav-iso::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: .45rem; vertical-align: middle; }
.stat-iso { display: block; transition: background .3s; }
.stat-iso:hover { background: #12192b; }
.stat-iso span { color: var(--red-2); }

@media (min-width: 900px) {
  .iso-wrap { grid-template-columns: 1.2fr .8fr; gap: 5rem; }
  .cert { width: min(400px, 100%); justify-self: end; }
}

/* alineación al contenedor de 1500px */
.stats { display: block; padding: 0 var(--gut); background: var(--bg); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-inline: 1px solid var(--line); }
.stat { padding: 2rem 1.5rem; }
.aud { display: block; padding: clamp(2.5rem, 6vw, 5rem) var(--gut); background: var(--bg); }
.aud-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.aud-c { padding: clamp(1.8rem, 4vw, 3.2rem); }
@media (min-width: 720px) {
  .stats { grid-template-columns: none; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .aud { grid-template-columns: none; }
  .aud-grid { grid-template-columns: 1fr 1fr; }
}

/* equipo: persona recortada, grande y con fade en las piernas */
.eq-head { display: grid; gap: 1rem; align-items: end; margin-bottom: 0; }
.eq-hl .big { margin-bottom: 1.4rem; }
.eq-hl .lead { max-width: 60ch; }
.eq-p { width: min(300px, 70%); margin: 0 auto; border: 0; border-radius: 0; background: none; overflow: visible; position: relative; z-index: 0; }
.eq-p img { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 97%); mask-image: linear-gradient(180deg, #000 62%, transparent 97%); }
.eq-cols { position: relative; z-index: 1; margin-top: -3.5rem; }
@media (min-width: 720px) {
  .eq-head { grid-template-columns: 1fr minmax(300px, 34%); gap: 2rem; }
  .eq-p { width: 100%; margin: 0; }
}
.eq-cols { margin-top: 0; }
@media (min-width: 720px) { .eq-head { margin-bottom: 2rem; } .eq-p { margin-bottom: -2rem; } }

/* persona al 50% */
.eq-p { width: min(150px, 38%); }
@media (min-width: 720px) {
  .eq-head { grid-template-columns: 1fr minmax(150px, 17%); }
  .eq-p { width: 100%; margin-bottom: -1.5rem; }
}
.fleet { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.equipo { padding-top: clamp(2rem, 4vw, 3.5rem); }

/* =============================================================
   13. Header claro con fade hacia la portada
   ============================================================= */
.nav { color: #0b1220; padding: .9rem var(--gut) 3.4rem; background: linear-gradient(180deg, #fff 0%, #fff 48%, rgba(255,255,255,.85) 66%, rgba(255,255,255,0) 100%); border-bottom: 0; pointer-events: none; transition: background .4s, padding .4s var(--ease-out), box-shadow .4s; }
.nav > * { pointer-events: auto; }
.nav.is-solid { padding: .55rem var(--gut); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 30px -14px rgba(7,11,20,.45); border-bottom: 0; }
.brand-logo { background: none; border-radius: 0; padding: 0; box-shadow: none; }
.brand-logo img { height: 68px; width: auto; transition: height .4s var(--ease-out); }
.nav.is-solid .brand-logo img { height: 52px; }
.nav-links a { color: #0b1220; font-weight: 500; }
.nav-links .nav-iso { color: #0b1220; }
.nav-links a::after { background: var(--red); }
.nav-cta { color: #0b1220; border: 1px solid rgba(11,18,32,.35); font-weight: 500; }
.nav-cta:hover { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 959px) { .brand-logo img { height: 56px; } .nav.is-solid .brand-logo img { height: 46px; } }
.nav-links a, .nav-cta { white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1239px) { .nav-links { gap: 1.1rem; font-size: .8rem; } .nav-cta { padding: .5rem .9rem; font-size: .8rem; } }

/* franja blanca sólida */
.nav { padding: .8rem var(--gut); background: #fff; pointer-events: auto; border-bottom: 1px solid rgba(11,18,32,.08); box-shadow: 0 10px 30px -18px rgba(7,11,20,.6); }
.nav.is-solid { padding: .5rem var(--gut); background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* evita que se corten los descendentes (g, y, p) en el titular */
.hero-title .line { padding-bottom: .24em; margin-bottom: -.18em; }

/* =============================================================
   14. Menú hamburguesa (móvil y tablet)
   ============================================================= */
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(11,18,32,.25); background: #fff; position: relative; flex: none; pointer-events: auto; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #0b1220; border-radius: 2px; transition: transform .4s var(--ease-out), opacity .2s, top .4s var(--ease-out); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav.is-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
@media (max-width: 959px) {
  .nav { justify-content: flex-start; gap: .7rem; }
  .brand { margin-right: auto; }
  .nav-toggle { display: block; }
  .nav-cta { padding: .55rem 1rem; font-size: .85rem; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fff; padding: .4rem var(--gut) 1.2rem; box-shadow: 0 24px 40px -18px rgba(7,11,20,.55); border-top: 1px solid rgba(11,18,32,.08); max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav.is-open .nav-links { display: flex; animation: menuIn .35s var(--ease-out); }
  .nav-links a { padding: 1rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(11,18,32,.08); }
  .nav-links a::after { display: none; }
  .nav-links .nav-iso::before { margin-right: .6rem; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 400px) { .brand-logo img { height: 46px; } .nav.is-solid .brand-logo img { height: 40px; } .nav-cta { padding: .5rem .8rem; } }

/* cifras: 5 cuadros que se reparten el ancho */
.stats-grid { display: flex; flex-wrap: wrap; grid-template-columns: none; }
.stats-grid .stat { flex: 1 1 160px; padding: 1.8rem 1.4rem; }
@media (min-width: 1100px) { .stats-grid .stat { flex-basis: 190px; } }
.stat b { font-size: clamp(2.2rem, 4vw, 3.6rem); white-space: nowrap; }
.footer-row a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 720px) { .pj { grid-template-columns: 210px 1fr 1.2fr; } }
.pj-y .live { display: inline-block; margin: .35rem 0 0 .5rem; white-space: nowrap; }
.cert { cursor: default; -webkit-user-select: none; user-select: none; }
.cert img { -webkit-user-drag: none; pointer-events: none; }
.iso-n { max-width: 52ch; }
