:root {
  --ink: #1a2332;
  --muted: #5f6f86;
  --black: #10151f;
  --navy: #2a3d66;
  --blue: #7d98d6;
  --blue-soft: #a8bbe6;
  --blue-deep: #3d568c;
  --mist: #e8eef8;
  --cream: #eef2f9;
  --line: #d4deef;
  --white: #ffffff;
  --gold: #c9a227;
  --wa: #1f8f4e;
  --danger: #c44;
  --ok: #2f9e6a;
  --shadow: 0 22px 50px rgba(42, 61, 102, 0.16);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 8% -10%, rgba(125, 152, 214, 0.28), transparent 60%),
    radial-gradient(900px 480px at 100% 8%, rgba(42, 61, 102, 0.12), transparent 55%),
    linear-gradient(180deg, #f4f7fc 0%, var(--cream) 40%, #e9eef8 100%);
  background-attachment: fixed;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
h1, .display { font-size: clamp(2.8rem, 6.4vw, 5rem); margin-bottom: 0.55rem; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.35rem; }

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

.topbar {
  background: linear-gradient(90deg, #1e2f52, var(--navy) 45%, #3a568f);
  color: rgba(255,255,255,0.9);
  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(--blue-soft); }
.topbar-wa { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; transition: transform 0.25s ease; }
.topbar-wa:hover { transform: scale(1.08); }
.topbar-wa svg { width: 18px; height: 18px; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244,247,252,0.88);
  border-bottom: 1px solid rgba(212,222,239,0.85);
  backdrop-filter: blur(12px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-solid {
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 30px rgba(42, 61, 102, 0.08);
}
.header-bar { min-height: 92px; display: flex; align-items: center; gap: 28px; }
.brand {
  display: flex; flex-direction: column; align-items: flex-start;
  text-decoration: none; color: var(--ink); gap: 2px;
}
.brand img {
  height: 64px; width: auto; max-width: min(240px, 58vw);
  object-fit: contain; background: #fff; padding: 2px 4px;
}
.brand-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue); white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  position: relative;
  text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink);
  transition: color 0.25s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--blue); transition: right 0.28s ease;
}
.nav a[aria-current="page"], .nav a:hover { color: var(--navy); }
.nav a[aria-current="page"]::after, .nav a:hover::after { right: 0; }
.nav-call { display: none; }
.nav-toggle {
  display: none; margin-left: auto;
  border: 1px solid var(--line); background: transparent; 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: 48px; padding: 0 24px; border-radius: 12px;
  text-decoration: none; font-weight: 700; border: 1px solid transparent;
  cursor: pointer; font: inherit; letter-spacing: 0.02em; font-size: 0.92rem;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn-orange { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(125,152,214,0.35); }
.btn-orange:hover { background: var(--navy); box-shadow: 0 14px 28px rgba(42,61,102,0.28); }
.btn-light { background: #fff; color: var(--navy); }
.btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,0.8); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.hero {
  position: relative; min-height: calc(100vh - 130px);
  color: #fff; display: grid; align-items: end; text-align: left;
  padding: 140px 0 96px; overflow: hidden; background: var(--navy);
}
.hero-video, .hero-shade { position: absolute; inset: 0; }
.hero-video {
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transform: scale(1.04); animation: drift 28s ease-in-out infinite alternate;
  filter: contrast(1.02) saturate(1.05);
}
.hero-shade {
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(16,21,31,0.86) 0%, rgba(42,61,102,0.58) 48%, rgba(42,61,102,0.22) 100%),
    linear-gradient(180deg, rgba(16,21,31,0.18) 0%, rgba(16,21,31,0.74) 100%);
  pointer-events: none;
}
.hero-shade::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent 60%);
}
.hero-copy { position: relative; z-index: 2; max-width: 820px; }
.brand-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0 10px;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
@keyframes drift {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.1) translate3d(-1%, -1%, 0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(1.1em); }
  to { opacity: 1; transform: none; }
}

.kicker {
  display: inline-block; color: var(--navy); background: rgba(255,255,255,0.94);
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 0.74rem; margin-bottom: 18px; padding: 8px 14px; border-radius: 8px;
}
.hero .kicker { box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.lead { font-size: 1.12rem; color: rgba(255,255,255,0.92); max-width: 38rem; margin-bottom: 0; }
.section .lead, .panel .lead, .prose .lead, .intro-grid .lead, .page-hero .lead { color: var(--muted); }
.page-hero .lead { color: rgba(255,255,255,0.9); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero .display .word,
.page-hero .display .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.22em;
}
.hero .display .word > span,
.page-hero .display .word > span {
  display: inline-block;
  animation: riseIn 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}

.page-hero {
  position: relative; overflow: hidden; color: #fff; text-align: left; padding: 92px 0 76px;
}
.page-hero::before {
  content: ""; position: absolute; inset: -8%; z-index: 0;
  background:
    linear-gradient(105deg, rgba(16,21,31,0.84), rgba(42,61,102,0.48)),
    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: 780px;
  margin-left: max(0px, calc((100% - var(--max)) / 2 + 20px));
  width: min(780px, calc(100% - 40px));
}

.section { padding: 80px 0; position: relative; }
.section-haze {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(232,238,248,0.75));
}
.section.paper {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(244,247,252,0.95));
}
.section-head { margin-bottom: 28px; }
.intro-grid, .split, .contact-grid, .footer-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center;
}
.contact-grid { align-items: start; gap: 28px; }
.intro-photo { margin: 0; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); }
.intro-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; transition: transform 0.8s ease; }
.intro-photo:hover img { transform: scale(1.04); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; }
.ticks li { padding-left: 18px; position: relative; color: var(--muted); transition: transform 0.25s ease; }
.ticks li:hover { transform: translateX(4px); }
.ticks li::before {
  content: ""; width: 8px; height: 8px; background: var(--blue);
  position: absolute; left: 0; top: 0.55em; border-radius: 50%;
}
.ticks strong { display: block; margin-bottom: 2px; color: var(--ink); }
.intro-more { margin: 22px 0 0; }
.more {
  color: var(--navy); font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--blue);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.more:hover { color: var(--blue-deep); border-color: var(--navy); }

.steps, .facts, .gallery { display: grid; gap: 22px; }
.steps { grid-template-columns: repeat(3, 1fr); }
.step {
  border-top: 2px solid var(--blue); padding-top: 18px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--navy); }
.step span {
  display: block; color: var(--blue); font-family: "Cormorant Garamond", serif;
  font-size: 2rem; margin-bottom: 8px;
}
.step p { color: var(--muted); }
.facts { grid-template-columns: 1fr 1fr; }
.fact, .panel {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line); padding: 22px; border-radius: 16px;
  box-shadow: 0 10px 28px rgba(42,61,102,0.05);
}
.fact strong { display: block; margin-bottom: 4px; color: var(--blue); }
.service { border-left: 3px solid var(--blue); }
.service + .service { margin-top: 22px; }
.panel p { color: var(--muted); }

.gallery { grid-template-columns: 1fr 1fr; }
.shot { margin: 0; background: #fff; border: 1px solid var(--line); overflow: hidden; border-radius: 16px; }
.shot img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.7s ease; filter: saturate(1.02);
}
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  padding: 14px 16px 16px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.86rem;
}
.note { color: var(--muted); font-size: 0.92rem; margin: 0; }

.form-shell { min-width: 0; }
.form-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--navy));
}
.form-intro {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.98rem;
}
.form-intro a { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--blue); }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: grid; gap: 7px; font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; font: inherit; background: #fff; color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(125,152,214,0.22);
}
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px;
}
.form-error { background: #fde8e8; color: #8a1f1f; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.form-ok { background: #e7f7ef; color: #176b45; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-aside {
  background:
    linear-gradient(160deg, rgba(42,61,102,0.96), rgba(61,86,140,0.92) 55%, rgba(125,152,214,0.88));
  color: #fff;
  border: 0;
  box-shadow: var(--shadow);
}
.contact-aside h2 { color: #fff; }
.aside-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
}
.aside-lead { color: rgba(255,255,255,0.88); }
.contact-list {
  list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px;
}
.contact-list li { display: grid; gap: 4px; }
.contact-list span {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); font-weight: 700;
}
.contact-list a, .contact-list strong {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
}
.aside-link {
  font-size: 0.92rem !important; font-weight: 600 !important;
  color: var(--blue-soft) !important; border-bottom: 1px solid rgba(168,187,230,0.5);
  width: fit-content;
}
.aside-company { margin: 24px 0 0; color: rgba(255,255,255,0.78); font-size: 0.92rem; }

.cta-band {
  background: linear-gradient(120deg, #2a3d66 0%, #4a68a8 55%, #7d98d6 100%);
  color: #fff; text-align: left; padding: 80px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: auto -10% -40% 40%;
  background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 60%);
  width: 70%; height: 160%;
}
.cta-band .wrap { position: relative; z-index: 1; max-width: 36rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 0; }

.site-footer {
  background: linear-gradient(180deg, #243655, var(--navy));
  color: rgba(255,255,255,0.86); padding: 56px 0 28px;
}
.site-footer h2 { color: #fff; font-size: 1.35rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--blue-soft); }
.footer-lead, .footer-rut { color: rgba(255,255,255,0.75); }
.footer-base {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
}
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
.rail { overflow: hidden; background: rgba(255,255,255,0.7); padding: 18px 0; border-block: 1px solid var(--line); }
.rail-track {
  display: flex; gap: 14px; width: max-content;
  animation: rail 40s linear infinite;
}
.rail-track img {
  width: 220px; height: 140px; object-fit: cover; border-radius: 12px; flex: 0 0 auto;
}
@keyframes rail {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

body.is-home .site-header {
  position: absolute;
  left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
}
body.is-home .site-header.is-solid {
  position: sticky;
  background: rgba(255,255,255,0.94);
  border-bottom-color: var(--line);
}

@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; }
  .hero .display .word > span,
  .page-hero .display .word > span { animation: none; }
}
@media (max-width: 900px) {
  .topbar-email, .topbar-address { display: none; }
  .brand img { height: 52px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; 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; }
  .intro-grid, .split, .contact-grid, .steps, .facts, .gallery, .footer-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 84vh; padding: 120px 0 72px; }
  .section { padding: 56px 0; }
  .page-hero .wrap { margin-left: 20px; }
  .form-card { padding: 22px 18px; }
  .form-foot { flex-direction: column; align-items: flex-start; }
}
