:root {
  --ink: #102418;
  --muted: #5a6b60;
  --yellow: #ffe600;
  --yellow-deep: #f0d500;
  --green: #0b3d1f;
  --green-deep: #072816;
  --bar: #061a10;
  --fog: #eef3ef;
  --line: #d5e0d8;
  --white: #ffffff;
  --wa: #1f8f4e;
  --danger: #8d2b2b;
  --ok: #1d6b45;
  --shadow: 0 18px 44px rgba(6, 26, 16, 0.22);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2.35rem, 5.2vw, 4.1rem);
  line-height: 0.96;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 1.05;
  margin-bottom: 0.55rem;
}
h3 { font-size: 1.25rem; line-height: 1.15; margin-bottom: 0.35rem; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--yellow);
  color: var(--green-deep);
  padding: 8px 12px;
  z-index: 50;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.topbar {
  background: var(--bar);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
}
.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
.topbar-wa {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--white);
}
.topbar-wa svg { width: 18px; height: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
  gap: 4px;
}
.brand img {
  height: 58px;
  width: auto;
  max-width: min(240px, 58vw);
  object-fit: contain;
  background: var(--yellow);
  padding: 4px 8px;
}
.brand-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.nav a[aria-current="page"] { color: var(--green); }
.nav a:hover { color: var(--green); }
.nav-call { display: none; }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.02em;
}
.btn-orange { background: var(--yellow); color: var(--green-deep); }
.btn-orange:hover { background: var(--yellow-deep); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-line { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.85); }
.btn:hover { transform: translateY(-1px); }

.hero {
  position: relative;
  min-height: calc(100vh - 134px);
  color: var(--white);
  display: grid;
  align-items: end;
  text-align: left;
  padding: 140px 0 92px;
  overflow: hidden;
  background: #04140c;
}
.hero-video, .hero-shade { position: absolute; inset: 0; }
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #04140c;
  transform: scale(1.04);
  animation: drift 28s ease-in-out infinite alternate;
}
.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 20, 12, 0.88) 0%, rgba(4, 20, 12, 0.55) 48%, rgba(4, 20, 12, 0.28) 100%),
    linear-gradient(180deg, rgba(4, 20, 12, 0.25) 0%, rgba(4, 20, 12, 0.72) 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  justify-self: start;
}
@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.8%, -1.2%, 0); }
}
@keyframes ken {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-2%, -1%, 0); }
}
.kicker {
  display: inline-block;
  color: var(--green-deep);
  background: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 16px;
  padding: 7px 12px;
}
.hero .kicker { color: var(--green-deep); }
.page-hero .kicker { color: var(--green-deep); }
.lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 38rem;
  margin-bottom: 0;
}
.section .lead, .panel .lead, .prose .lead, .intro-grid .lead { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: left;
  padding: 88px 0 72px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 0;
  background:
    linear-gradient(100deg, rgba(4, 20, 12, 0.88), rgba(4, 20, 12, 0.55)),
    url("../img/ruta.jpg") center / cover no-repeat;
  animation: ken 18s ease-in-out infinite alternate;
}
.page-hero .wrap { position: relative; z-index: 1; max-width: 760px; margin-left: max(0px, calc((100% - var(--max)) / 2 + 20px)); width: min(760px, calc(100% - 40px)); }
.page-hero .lead { margin-bottom: 0; }

.section { padding: 86px 0; }
.section-head { max-width: 40rem; margin-bottom: 28px; }
.paper { background: var(--fog); }

.intro-grid, .split, .contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.contact-grid { align-items: start; }
.intro-photo { margin: 0; position: relative; }
.intro-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.intro-photo::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -14px;
  bottom: -14px;
  width: 38%;
  height: 28%;
  background: var(--yellow);
}
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; }
.ticks li { padding-left: 18px; position: relative; }
.ticks li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border: 1px solid var(--green);
  position: absolute;
  left: 0;
  top: 0.55em;
}
.ticks strong { display: block; margin-bottom: 2px; }
.intro-more { margin: 22px 0 0; }
.more { color: var(--green); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); }

.steps, .facts, .gallery { display: grid; gap: 22px; }
.steps { grid-template-columns: repeat(3, 1fr); }
.step { padding: 0; border-top: 3px solid var(--yellow); padding-top: 18px; }
.step span {
  display: block;
  color: var(--green);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.step p { color: var(--muted); }

.facts { grid-template-columns: 1fr 1fr; }
.fact, .panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
}
.fact strong { display: block; margin-bottom: 4px; color: var(--green); }
.service { padding-top: 8px; border-left: 4px solid var(--yellow); }
.service + .service { margin-top: 22px; }
.panel p { color: var(--muted); }

.gallery { grid-template-columns: 1fr 1fr; }
.shot { margin: 0; background: var(--white); border: 1px solid var(--line); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot figcaption { padding: 14px 16px 16px; font-weight: 700; }
.note { color: var(--muted); font-size: 0.92rem; }

.cta-band {
  background: var(--green);
  color: var(--white);
  text-align: left;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -4% -30% auto;
  width: 42%;
  height: 140%;
  background: var(--yellow);
  transform: rotate(18deg);
  opacity: 0.95;
}
.cta-band .wrap { position: relative; z-index: 1; max-width: 34rem; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.92); margin-bottom: 0; }
.cta-band .btn-line { border-color: rgba(255,255,255,0.85); color: #fff; }
.cta-band .btn-light { color: var(--green-deep); }
.cta-band .btn-line:hover, .hero .btn-line:hover { background: var(--white); color: var(--ink); }

form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.form-error, .form-ok { padding: 12px 14px; }
.form-error { background: #fdecec; color: var(--danger); }
.form-ok { background: #e8f6ee; color: var(--ok); }
.aside a { color: var(--green); font-weight: 700; }

.site-footer {
  background: var(--bar);
  color: rgba(255, 255, 255, 0.86);
  padding-top: 52px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 32px;
}
.site-footer h2 { color: var(--yellow); font-size: 1.15rem; letter-spacing: 0.04em; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-lead { max-width: 28rem; margin-top: 16px; }
.footer-rut { color: rgba(255, 255, 255, 0.62); font-size: 0.92rem; }
.brand--light { color: var(--white); }
.brand--light .brand-tag { color: var(--yellow); }
.brand--light img { height: 52px; }
.footer-base {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  text-align: center;
}
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 25;
}
.wa-float svg { width: 32px; height: 32px; }

.rail { overflow: hidden; background: var(--green-deep); padding: 18px 0; }
.rail-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: rail 36s linear infinite;
}
.rail img { width: min(420px, 72vw); height: 240px; object-fit: cover; filter: saturate(0.92) contrast(1.05); }
.rail:hover .rail-track { animation-play-state: paused; }
@keyframes rail {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.85s ease, transform 0.85s ease;
  transition-delay: var(--d, 0ms);
}
.reveal-left { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal.is-in { opacity: 1; transform: none; }

body.is-home { background: #04140c; }
body.is-home .site-header {
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
}
body.is-home .site-header.is-solid {
  position: fixed;
  top: 0;
  background: rgba(4, 20, 12, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
body.is-home .nav a,
body.is-home .brand-tag { color: #fff; }
body.is-home .nav a[aria-current="page"],
body.is-home .nav a:hover { color: var(--yellow); }
body.is-home .section:not(.paper) { color: #f5f5f5; background: #061a10; }
body.is-home .section:not(.paper) h2,
body.is-home .section:not(.paper) .ticks strong { color: #fff; }
body.is-home .intro-grid .lead,
body.is-home .ticks li { color: rgba(255, 255, 255, 0.9); }
body.is-home .more { color: var(--yellow); border-bottom-color: var(--yellow); }

@media (prefers-reduced-motion: reduce) {
  .page-hero::before, .rail-track, .reveal, .hero-video {
    animation: none !important;
    transition: none !important;
  }
  .hero { background: url("../img/hero-poster.jpg") center / cover no-repeat; }
  .hero-video { display: none; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .topbar-email, .topbar-address { display: none; }
  .brand img { height: 48px; }
  .brand-tag { font-size: 11px; letter-spacing: 0.1em; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
  }
  .nav.is-open {
    display: flex;
    z-index: 40;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
  }
  .nav-call { display: inline; }
  .intro-grid, .split, .contact-grid, .steps, .facts, .gallery, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 82vh;
    padding: 120px 0 72px;
    align-items: end;
  }
  .hero-copy { text-align: left; }
  .cta-band::before { width: 70%; opacity: 0.85; }
  body.is-home .nav-toggle {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
  }
  body.is-home .nav.is-open { background: #061a10; }
  body.is-home .nav.is-open a { color: #fff; }
  body.is-home .nav.is-open a[aria-current="page"] { color: var(--yellow); }
  .section { padding: 56px 0; }
  .intro-photo::after { right: 0; bottom: -10px; }
  .page-hero .wrap { margin-left: 20px; }
}
