/* ============================================================
   TRANSPORTS CATSUD — Dirección A · Editorial / Confianza
   Sitio real, multipágina, responsive.
   Paleta de marca (navy / azul logo / naranja) sobre papel crema.
   Tipografías: Schibsted Grotesk (títulos), Hanken Grotesk (texto),
   Space Mono (etiquetas), Archivo (wordmark).
   ============================================================ */

:root {
  --ink: #11203a;
  --ink-soft: #3a4763;
  --paper: #f6f2ea;
  --paper-2: #efe9dd;
  --paper-card: #fffdf9;
  --line: #ddd4c4;
  --line-soft: #e7e2d6;
  --muted: #6a6555;
  --amber: var(--color-accent-amber, #ffb547);
  --accent: var(--color-accent, #ff7a1a);
  --accent-hover: var(--color-accent-hover, #e56a10);
  --wrap: 1180px;
  --gutter: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.dir-a {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.dir-a img { display: block; max-width: 100%; }
.dir-a h1, .dir-a h2, .dir-a h3, .dir-a h4, .dir-a p { margin: 0; }
.dir-a a { color: inherit; text-decoration: none; }
.serif-display, .dir-a h1, .dir-a h2, .dir-a h3 { font-family: "Schibsted Grotesk", sans-serif; }

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

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: "Space Mono", monospace; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.2em; color: #9a6a23; display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--accent); }
.eyebrow.center { justify-content: center; }

/* ---------- Wordmark lockup ---------- */
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; letter-spacing: -0.01em; }
.wordmark .wm-top {
  font-family: "Hanken Grotesk", sans-serif; font-weight: 700; font-size: calc(var(--wm, 28px) * 0.4);
  line-height: 1; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent);
  margin-left: 2px; margin-bottom: 3px;
}
.wordmark .wm-main {
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: var(--wm, 28px); line-height: 1;
  font-style: italic; letter-spacing: -0.02em; color: var(--color-brand-blue, #2d5ca6);
}
.wordmark .wm-main .d { color: var(--accent); }
.wordmark.light .wm-main { color: #fff; }

/* Logo de marca (imagen real) */
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; height: 46px; width: auto; }
@media (max-width: 560px) { .brand-logo { height: 38px; } }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--accent); color: #fff; padding: 15px 28px; border-radius: 100px;
  font-weight: 700; font-size: 15px; font-family: "Hanken Grotesk", sans-serif; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: none;
  box-shadow: 0 14px 26px -12px rgba(255,122,26,.6); transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-hover); box-shadow: 0 18px 32px -12px rgba(255,122,26,.7); }
.btn-ghost {
  color: var(--ink); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; white-space: nowrap;
}
.btn-ghost i { color: var(--accent); }
.btn-dark {
  background: var(--ink); color: #fff; padding: 13px 26px; border-radius: 100px; font-weight: 600;
  font-size: 14px; display: inline-flex; align-items: center; gap: 9px; transition: background .2s, transform .2s; white-space: nowrap;
}
.btn-dark:hover { background: var(--accent); transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid var(--ink); color: var(--ink); padding: 13px 26px; border-radius: 100px; font-weight: 600;
  font-size: 14px; display: inline-flex; align-items: center; gap: 9px; transition: all .2s; white-space: nowrap;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 50; background: rgba(246,242,234,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px -16px rgba(11,31,59,.32);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 16px 40px -16px rgba(11,31,59,.4); background: rgba(246,242,234,.94); }
.head-inner { max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a.nav-link { position: relative; font-weight: 600; font-size: 15px; color: var(--ink-soft); padding: 4px 0; transition: color .2s; white-space: nowrap; }
.nav a.nav-link::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--accent); transition: width .25s ease; }
.nav a.nav-link:hover { color: var(--ink); }
.nav a.nav-link:hover::after, .nav a.nav-link.active::after { width: 100%; }
.nav a.nav-link.active { color: var(--ink); }
.nav .cta-pill {
  background: var(--ink); color: #fff; padding: 11px 22px; border-radius: 100px; font-weight: 600;
  font-size: 14px; transition: background .2s, transform .2s;
}
.nav .cta-pill:hover { background: var(--accent); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); font-size: 22px; padding: 6px; }

/* mobile drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 60; background: var(--paper); transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; padding: 26px var(--gutter); }
.mobile-nav.open { transform: none; }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-close { background: none; border: none; font-size: 26px; color: var(--ink); cursor: pointer; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; }
.mobile-nav-links a { font-family: "Schibsted Grotesk", sans-serif; font-weight: 700; font-size: 30px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-nav-links a.active { color: var(--accent); }
.mobile-nav-foot { margin-top: auto; font-family: "Space Mono", monospace; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.mobile-nav-foot a { color: var(--ink-soft); }

/* ============================================================
   REVEAL (scroll-in)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
  .reveal.d3 { transition-delay: .24s; }
}

/* ============================================================
   HERO (home)
   ============================================================ */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; padding: 72px 0 84px; align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 68px); line-height: 0.99; letter-spacing: -0.03em; margin: 22px 0 0; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero .lead { font-size: 18.5px; line-height: 1.6; color: #4a5266; max-width: 470px; margin-top: 24px; }
.hero .actions { display: flex; gap: 16px; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-photo { border-radius: 8px 8px 90px 8px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 40px 70px -36px rgba(11,31,59,.55); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: -26px; bottom: 44px; background: var(--ink); color: #fff; border-radius: 16px; padding: 18px 22px; box-shadow: 0 24px 40px -20px rgba(11,31,59,.6); }
.hero-badge .n { font-family: "Schibsted Grotesk", sans-serif; font-weight: 800; font-size: 34px; line-height: 1; color: var(--amber); }
.hero-badge .l { font-size: 12.5px; color: #c3cad8; margin-top: 4px; }
.hero-tag-vert { position: absolute; top: 22px; right: -14px; writing-mode: vertical-rl; font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #b6ab95; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.stats-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px var(--gutter); border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .n { font-family: "Schibsted Grotesk", sans-serif; font-weight: 800; font-size: clamp(34px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.02em; }
.stat .l { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.sec-head h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.025em; max-width: 600px; line-height: 1.02; margin-top: 16px; }
.sec-head .sub { font-size: 15.5px; color: #6a7286; max-width: 300px; line-height: 1.55; }
.sec-head-center { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.sec-head-center .eyebrow { justify-content: center; }
.sec-head-center h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.025em; line-height: 1.02; margin-top: 16px; }
.sec-head-center p { font-size: 16.5px; color: #6a7286; margin-top: 14px; line-height: 1.6; }

/* ============================================================
   SERVICES — cards (home / preview)
   ============================================================ */
.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.serv-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px 32px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.serv-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(11,31,59,.4); border-color: var(--line-soft); }
.serv-ico { width: 50px; height: 50px; border-radius: 12px; background: var(--ink); color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 22px; transition: transform .3s; }
.serv-card:hover .serv-ico { transform: rotate(-6deg) scale(1.06); }
.serv-num { font-family: "Space Mono", monospace; font-size: 13px; color: var(--accent); font-weight: 700; }
.serv-card h3 { font-size: 23px; font-weight: 700; margin: 14px 0 10px; }
.serv-card p { font-size: 14.5px; line-height: 1.6; color: #5c6477; }

/* ============================================================
   SERVICE DETAIL ROWS (servicios page)
   ============================================================ */
.serv-detail { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.serv-detail:first-of-type { border-top: none; }
.serv-detail.flip .serv-detail-media { order: -1; }
.serv-detail-media { border-radius: 8px 90px 8px 8px; overflow: hidden; aspect-ratio: 5/4; box-shadow: 0 36px 60px -34px rgba(11,31,59,.5); }
.serv-detail.flip .serv-detail-media { border-radius: 90px 8px 8px 8px; }
.serv-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.serv-detail .serv-num { font-size: 13px; }
.serv-detail h3 { font-weight: 800; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; margin: 14px 0 16px; line-height: 1.05; }
.serv-detail .hook { font-size: 17px; line-height: 1.55; color: var(--ink); font-weight: 600; margin-bottom: 12px; }
.serv-detail .body { font-size: 15.5px; line-height: 1.65; color: #5c6477; text-align: justify; }
.serv-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.serv-list li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.55; color: #5c6477; }
.serv-list li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; background: var(--color-accent-light, #fff0e6); color: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.serv-list .lt { font-weight: 700; color: var(--ink); }

/* ============================================================
   PILLARS / VALUES
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: var(--paper-card); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; transition: transform .3s, box-shadow .3s; }
.pillar:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(11,31,59,.4); }
.pillar-ico { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--amber)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 20px; box-shadow: 0 12px 24px -12px rgba(255,122,26,.6); }
.pillar h4 { font-family: "Schibsted Grotesk", sans-serif; font-size: 21px; font-weight: 700; }
.pillar p { font-size: 14.5px; line-height: 1.6; color: #5c6477; margin-top: 10px; }

/* ============================================================
   ABOUT (story grid)
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-text { align-self: center; }
.about-media { position: relative; border-radius: 8px 8px 8px 60px; overflow: hidden; aspect-ratio: 16/11; box-shadow: 0 36px 60px -34px rgba(11,31,59,.5); }
.about-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.about-text h3 { font-family: "Schibsted Grotesk", sans-serif; font-size: 22px; font-weight: 700; margin: 26px 0 10px; }
.about-text p { font-size: 15.5px; line-height: 1.7; color: #4a5266; margin-top: 12px; }
.about-text p strong { color: var(--ink); }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.about-images img { width: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 28px 50px -34px rgba(11,31,59,.5); }
.about-images img:first-child { aspect-ratio: 3/4; border-radius: 8px 8px 60px 8px; margin-top: 28px; }
.about-images img:last-child { aspect-ratio: 4/5; border-radius: 8px 60px 8px 8px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { padding: 64px 0 24px; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 52px; align-items: center; }
.page-hero h1 { font-weight: 800; font-size: clamp(38px, 5vw, 60px); line-height: 1.0; letter-spacing: -0.03em; margin-top: 20px; }
.page-hero .lead { font-size: 18px; line-height: 1.6; color: #4a5266; max-width: 480px; margin-top: 22px; }
.page-hero-media { border-radius: 8px 8px 8px 90px; overflow: hidden; aspect-ratio: 5/4; box-shadow: 0 40px 70px -38px rgba(11,31,59,.55); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-family: "Space Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* Quiénes Somos — masthead centrado sin foto */
.qs-hero { text-align: center; }
.qs-hero-inner { max-width: 880px; margin: 0 auto; }
.qs-hero h1 { margin-top: 18px; }
.qs-hero .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.qs-hero .actions { display: flex; gap: 16px; margin-top: 30px; justify-content: center; flex-wrap: wrap; }
.qs-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 60px; }
.qs-fact { padding: 26px 28px; border-right: 1px solid var(--line); text-align: left; }
.qs-fact:last-child { border-right: none; }
.qs-fact .k { font-family: "Space Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); display: block; }
.qs-fact .v { font-family: "Schibsted Grotesk", sans-serif; font-weight: 700; font-size: 18px; margin-top: 7px; display: block; color: var(--ink); }
@media (max-width: 700px) {
  .qs-facts { grid-template-columns: 1fr; }
  .qs-fact { border-right: none; border-bottom: 1px solid var(--line); text-align: center; }
  .qs-fact:last-child { border-bottom: none; }
}

/* ============================================================
   CLIENTS marquee + certifications
   ============================================================ */
.clients { padding: 72px 0 80px; }
.marquee { display: flex; overflow: hidden; width: 100%; user-select: none; margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row { display: flex; flex-shrink: 0; align-items: center; gap: 0; white-space: nowrap; animation: marq 30s linear infinite; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.client { display: inline-flex; align-items: center; gap: 12px; padding: 0 38px; height: 88px; color: var(--ink-soft); }
.client img { height: 44px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.client:hover img { filter: none; opacity: 1; }
.client-ph { display: inline-flex; align-items: center; gap: 12px; font-family: "Schibsted Grotesk", sans-serif; font-weight: 700; font-size: 18px; color: #8a8470; }
.client-ph i { font-size: 22px; color: var(--accent); }
.certs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: 720px; margin: 48px auto 0; }
.cert { display: flex; align-items: center; gap: 18px; background: var(--paper-card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; }
.cert i { width: 50px; height: 50px; border-radius: 12px; background: var(--ink); color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; }
.cert .ct { font-family: "Schibsted Grotesk", sans-serif; font-weight: 800; font-size: 20px; display: block; }
.cert .cs { font-size: 13px; color: var(--muted); }

/* ============================================================
   GALLERY (servicios)
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; box-shadow: 0 20px 40px -28px rgba(11,31,59,.45); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 14px; bottom: 12px; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.gallery-item:hover::after { opacity: 1; transform: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 9000; background: rgba(8,14,26,.95); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92%; max-height: 86vh; object-fit: contain; border-radius: 12px; box-shadow: 0 40px 80px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 22px; right: 30px; width: 50px; height: 50px; background: rgba(255,255,255,.1); border: none; border-radius: 50%; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   NEXTGEN panel
   ============================================================ */
.nextgen { padding: 40px 0 88px; }
.nextgen-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; box-shadow: 0 30px 60px -42px rgba(11,31,59,.4); }
.nextgen-logos { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 24px; }
.nextgen-logos img { width: 100%; height: auto; }
.nextgen-content h2 { font-weight: 800; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; margin: 14px 0 14px; line-height: 1.08; }
.nextgen-intro { font-size: 15px; line-height: 1.65; color: #4a5266; }
.nextgen-intro strong { color: var(--ink); }
.nextgen-details { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.nextgen-item { display: flex; gap: 14px; }
.nextgen-item i { color: var(--accent); font-size: 17px; margin-top: 2px; }
.nextgen-item strong { display: block; font-size: 14.5px; color: var(--ink); }
.nextgen-item span { font-size: 13.5px; color: #5c6477; line-height: 1.55; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.contact-form { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field .input-wrap { position: relative; display: flex; align-items: center; }
.field .input-wrap.area { align-items: flex-start; }
.field .input-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), var(--amber)); color: #fff; border-radius: 10px; font-size: .9rem; box-shadow: 0 4px 12px rgba(255,122,26,.3); }
.field .input-wrap.area .input-ico { top: 14px; transform: none; }
.field input, .field textarea { width: 100%; padding: 15px 18px 15px 62px; border-radius: 14px; border: 2px solid #e2dccf; background: #fffdf9; font-family: "Hanken Grotesk", sans-serif; font-size: .95rem; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,26,.15); }
.field.error input, .field.error textarea { border-color: var(--color-danger, #ef4444); background: #fef4f2; }
.field .err { display: none; color: var(--color-danger-text, #dc2626); font-size: .82rem; margin-top: 6px; }
.field.error .err { display: block; }
.form-ok { margin-top: 4px; padding: 13px 16px; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.4); border-radius: 12px; color: #0f7a3d; font-size: .9rem; display: none; align-items: center; gap: 8px; }
.form-ok.show { display: flex; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.info-card h3 { font-family: "Schibsted Grotesk", sans-serif; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.info-card h3 i { color: var(--accent); }
.info-row { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: #4a5266; padding: 6px 0; }
.info-row .ri { width: 34px; height: 34px; border-radius: 9px; background: var(--color-accent-light, #fff0e6); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.info-row a:hover { color: var(--accent); }
.info-photo { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.info-photo img { width: 100%; height: 180px; object-fit: cover; }
.info-map { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.info-map iframe { width: 100%; height: 230px; border: 0; display: block; filter: grayscale(0.15); }
.info-map .map-link { position: absolute; right: 12px; bottom: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; padding: 9px 15px; border-radius: 100px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 24px -10px rgba(11,31,59,.6); transition: background .2s, transform .2s; }
.info-map .map-link i { color: var(--amber); }
.info-map .map-link:hover { background: var(--accent); transform: translateY(-1px); }
.info-map .map-link:hover i { color: #fff; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { margin: 0 auto; }
.cta-inner { background: var(--ink); border-radius: 24px; padding: 60px; display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.cta-inner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,122,26,.35), transparent 65%); pointer-events: none; }
.cta-inner h2 { font-weight: 800; font-size: clamp(28px, 3.2vw, 40px); color: #fff; letter-spacing: -0.025em; line-height: 1.04; position: relative; }
.cta-inner p { color: #aab4c6; margin-top: 12px; font-size: 16px; position: relative; max-width: 460px; }
.cta-inner .btn-primary { position: relative; flex-shrink: 0; }

/* callback mini-form (banda CTA oscura) */
.callback-form { flex-shrink: 0; position: relative; z-index: 1; }
.cb-row { display: flex; gap: 10px; }
.callback-form input { background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.25); border-radius: 100px; padding: 14px 22px; color: #fff; font-family: "Hanken Grotesk", sans-serif; font-size: 15px; outline: none; min-width: 210px; transition: border-color .2s, background .2s; }
.callback-form input::placeholder { color: rgba(255,255,255,.55); }
.callback-form input:focus { border-color: var(--accent); background: rgba(255,255,255,.16); }
.callback-form.error input { border-color: #ff8a8a; }
.cb-err { display: none; margin-top: 10px; color: #ff9a9a; font-size: 13px; }
.callback-form.error .cb-err { display: block; }
.cb-ok { display: none; margin-top: 12px; color: #8ff0b8; font-size: 14px; align-items: center; gap: 8px; }
.cb-ok.show { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot { background: var(--ink); color: #c3cad8; margin-top: 88px; padding: 64px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; }
.foot-brand .wordmark { --wm: 26px; }
.foot-brand .wordmark .wm-main { color: #fff; }
.foot-brand p { font-size: 14px; line-height: 1.65; color: #9aa6ba; margin-top: 18px; max-width: 360px; }
.foot-social { display: flex; gap: 12px; margin-top: 20px; }
.foot-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; color: #c3cad8; transition: all .2s; }
.foot-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.foot-col h4 { font-family: "Schibsted Grotesk", sans-serif; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { font-size: 14px; color: #9aa6ba; transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-bottom p { font-size: 13px; color: #7e8aa0; }
.foot-bottom-links { display: flex; gap: 22px; }
.foot-bottom-links a { font-size: 13px; color: #9aa6ba; display: inline-flex; align-items: center; gap: 7px; }
.foot-bottom-links a:hover { color: var(--accent); }

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.wa-fab { position: fixed; right: 26px; bottom: 26px; z-index: 70; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 14px 30px -8px rgba(18,140,126,.6); transition: transform .2s; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: wa-pulse 2.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .wa-fab::before { animation: none; } }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ============================================================
   LEGAL / PROSE
   ============================================================ */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; padding-top: 8px; padding-bottom: 24px; }
.legal-toc { position: sticky; top: 100px; }
.legal-toc .toc-label { font-family: "Space Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 14px; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.legal-toc a { display: block; font-size: 13.5px; color: var(--ink-soft); padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.legal-toc a:hover, .legal-toc a.active { color: var(--accent); border-left-color: var(--accent); }
.legal { max-width: 760px; }
.legal .legal-meta { font-family: "Space Mono", monospace; font-size: 12px; color: var(--muted); letter-spacing: .04em; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.legal section { padding: 26px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 100px; }
.legal section:last-child { border-bottom: none; }
.legal h2 { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 12px; }
.legal h2 .legal-n { font-family: "Space Mono", monospace; font-size: 14px; color: var(--accent); font-weight: 700; }
.legal h3 { font-family: "Schibsted Grotesk", sans-serif; font-weight: 700; font-size: 18px; margin: 22px 0 8px; }
.legal p { font-size: 15.5px; line-height: 1.72; color: #43506a; margin-top: 14px; }
.legal p:first-of-type { margin-top: 16px; }
.legal a { color: var(--accent); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--ink); }
.legal ul.legal-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.legal ul.legal-list li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.65; color: #43506a; }
.legal ul.legal-list li::before { content: "\2713"; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; background: var(--color-accent-light, #fff0e6); color: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.legal ul.legal-list li strong { color: var(--ink); }
.legal .todo { background: #fff0e6; border-bottom: 1px dashed var(--accent); padding: 0 4px; border-radius: 3px; color: #9a5a12; font-weight: 600; }
.legal .data-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; margin-top: 18px; }
.legal .data-card .data-row { display: flex; gap: 14px; padding: 9px 0; font-size: 14.5px; color: #43506a; border-bottom: 1px solid var(--line-soft); }
.legal .data-card .data-row:last-child { border-bottom: none; }
.legal .data-card .data-row .dk { flex: 0 0 150px; color: var(--muted); font-weight: 600; }
.legal .data-card .data-row .dv { color: var(--ink); }
.legal table.cookie-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.legal table.cookie-table th { text-align: left; font-family: "Space Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 14px; border-bottom: 2px solid var(--line); }
.legal table.cookie-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); color: #43506a; vertical-align: top; line-height: 1.5; }
.legal table.cookie-table td strong { color: var(--ink); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 65; max-width: 760px; margin: 0 auto;
  background: rgba(255,253,249,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; box-shadow: 0 24px 50px -24px rgba(11,31,59,.5);
  display: flex; align-items: center; gap: 22px; transform: translateY(140%); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cookie-banner.show { transform: none; }
.cookie-banner p { font-size: 14px; line-height: 1.55; color: #43506a; margin: 0; }
.cookie-banner p strong { color: var(--ink); }
.cookie-banner a { color: var(--accent); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions button { cursor: pointer; font-family: "Hanken Grotesk", sans-serif; font-weight: 700; font-size: 13.5px; border-radius: 100px; padding: 11px 20px; white-space: nowrap; transition: all .2s; border: none; }
.cookie-actions .ck-accept { background: var(--accent); color: #fff; box-shadow: 0 10px 20px -10px rgba(255,122,26,.6); }
.cookie-actions .ck-accept:hover { background: var(--accent-hover); transform: translateY(-1px); }
.cookie-actions .ck-reject { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); }
.cookie-actions .ck-reject:hover { border-color: var(--ink); color: var(--ink); }

/* form sending state */
.contact-form.sending .btn-primary { opacity: .7; pointer-events: none; }
.field .ok-tick { color: var(--color-success, #25d366); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  :root { --gutter: 28px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 64px; }
  .hero-figure { max-width: 460px; }
  .hero-badge { left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { min-height: 0; aspect-ratio: 16/10; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .nextgen-card { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .serv-detail { grid-template-columns: 1fr; gap: 32px; padding: 44px 0; }
  .serv-detail.flip .serv-detail-media { order: 0; }
  .serv-detail-media, .serv-detail.flip .serv-detail-media { border-radius: 8px 60px 8px 8px; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 44px; }
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .legal-toc { display: none; }
}
@media (max-width: 860px) {
  .nav .nav-link, .nav .cta-pill { display: none; }
  .nav-toggle { display: inline-flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .serv-grid, .pillars { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-head .sub { max-width: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .section { padding: 60px 0; }
  .about-images { grid-template-columns: 1fr; }
  .about-images img:first-child { margin-top: 0; }
  .certs { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .nextgen-card { padding: 26px; }
  .cta-inner { padding: 32px; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions button { flex: 1; }
  .legal h2 { font-size: 21px; }
  .cb-row { flex-direction: column; }
  .callback-form input { width: 100%; min-width: 0; }
  .callback-form .btn-primary { justify-content: center; }
}

/* ============================================================
   HERO VIDEO BACKGROUND (Option B - Fullscreen)
   ============================================================ */
.hero.hero-video {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80vh;
  padding: 120px 0;
  overflow: hidden;
  background: #0b1f3b;
  margin-top: 0;
}
.hero-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-video-bg, .hero-video-mobile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video-mobile {
  display: none;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 20, 38, 0.92) 15%, rgba(8, 20, 38, 0.6) 60%, rgba(8, 20, 38, 0.3) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}
.hero-text {
  max-width: 680px;
  color: #ffffff;
}
.hero-text .eyebrow {
  color: var(--amber);
}
.hero-text .eyebrow::before {
  background: var(--amber);
}
.hero-text h1 {
  font-weight: 800;
  font-size: clamp(38px, 5.8vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 18px 0 0;
}
.hero-text h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--amber);
}
.hero-text .lead {
  font-size: 19px;
  line-height: 1.6;
  color: #d1d8e5;
  max-width: 580px;
  margin-top: 22px;
}
.hero-text .actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-text .btn-ghost {
  color: #ffffff;
}
.hero-text .btn-ghost:hover {
  color: var(--amber);
}

@media (max-width: 768px) {
  .hero-video-bg {
    display: none;
  }
  .hero-video-mobile {
    display: block;
  }
  .hero.hero-video {
    min-height: 90vh;
    padding: 80px 0;
  }
}

