/* GED — sistema visual Stitch (CleanTech), sin Tailwind en runtime. */
:root {
  --primary: #002b49;
  --primary-deep: #001629;
  --on-primary: #ffffff;
  --cyan: #00a3e0;
  --cyan-deep: #00658d;
  --emerald: #10b981;
  --emerald-ink: #065f46;
  --emerald-soft: #ecfdf5;
  --gold: #c59b27;
  --ink: #0f172a;
  --muted: #42474d;
  --canvas: #ffffff;
  --subtle: #f8fafc;
  --panel: #f2f3ff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --placeholder: #94a3b8;
  --error: #ba1a1a;
  --shadow: 0 12px 32px -4px rgba(0, 43, 73, 0.06), 0 4px 12px -2px rgba(0, 43, 73, 0.03);
  --glow: 0 0 0 3px rgba(0, 163, 224, 0.2);
  --radius: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --max: 80rem;
  --wide: 90rem;
  --gutter: clamp(1rem, 3vw, 4rem);
  --header: 4.5rem;
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cyan-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--cyan); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
}
.skip:focus { top: 0.6rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.wrap--wide {
  width: min(var(--wide), calc(100% - var(--gutter) * 2));
}

.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}
.kicker--light { color: #81cfff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--primary);
  margin: 0 0 0.6rem;
}
h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
}
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 700; }

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 42rem;
}
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.65rem var(--gutter);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
}
.site-header.is-solid,
.site-header.is-menu {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand__logo { height: 46px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
}
.nav a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a:hover,
.nav a.is-active { color: var(--cyan-deep); }
.nav a.is-active { box-shadow: inset 0 -2px 0 var(--cyan); }
.nav__cta {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius);
  padding: 0.55rem 0.95rem;
  box-shadow: none !important;
}
.nav__cta:hover { background: var(--primary-deep) !important; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--primary);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-header.is-menu .nav-toggle span { background: transparent; }
.site-header.is-menu .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header.is-menu .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.hero {
  position: relative;
  color: #fff;
  background: var(--primary);
  overflow: hidden;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
}
.hero__media,
.hero__shade { position: absolute; inset: 0; }
.hero__media img,
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  background:
    linear-gradient(180deg, rgba(0, 22, 41, 0.35) 0%, rgba(0, 22, 41, 0.78) 70%, rgba(0, 22, 41, 0.92) 100%);
}
.hero__home,
.hero__copy { position: relative; z-index: 1; }
.hero__home {
  width: min(var(--wide), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 6.5rem 0 5.5rem;
}
.hero__copy { max-width: 46rem; }
.hero h1, .hero h2, .hero p, .page-hero h1 { color: #fff; }
.hero__brand-mark {
  margin: 0 0 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #81cfff;
}
.hero__lead { color: rgba(255, 255, 255, 0.86); font-size: 1.15rem; max-width: 38rem; }

.page-hero {
  background: var(--primary);
  color: #fff;
  padding: 4.5rem 0 3.2rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: -6rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 163, 224, 0.28), transparent 68%);
  pointer-events: none;
}
.page-hero--media { min-height: 32rem; display: flex; align-items: flex-end; }
.page-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero--media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 22, 41, 0.45), rgba(0, 22, 41, 0.88));
}
.page-hero .wrap { position: relative; z-index: 2; }
.media-frame {
  margin: 1.2rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--primary);
}
.media-frame video, .yt-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #001629;
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { color: rgba(255, 255, 255, 0.84); }

.cine {
  position: relative;
  min-height: 34rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
}
.cine__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cine__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 22, 41, 0.88) 0%, rgba(0, 22, 41, 0.55) 52%, rgba(0, 22, 41, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 22, 41, 0.15), rgba(0, 22, 41, 0.55));
}
.cine .wrap { position: relative; z-index: 1; width: min(var(--wide), calc(100% - var(--gutter) * 2)); padding: 5.5rem 0 2.2rem; }
.cine h1 { color: #fff; max-width: 16ch; }
.cine .lead { color: rgba(255, 255, 255, 0.88); }
.cine-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.5rem;
  align-items: end;
}
.cine-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.cine-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  color: #fff;
  letter-spacing: -0.03em;
}
.cine-metrics span { color: rgba(255, 255, 255, 0.78); font-size: 0.82rem; }
.float-card {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 18px 40px -12px rgba(0, 22, 41, 0.45);
}
.float-card img { width: 100%; height: 190px; object-fit: cover; }
.float-card__body { padding: 0.95rem 1rem 1.05rem; }
.float-card h2, .float-card h3, .float-card p { color: var(--primary); }
.float-card p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.88rem; }

.hero-split {
  background:
    radial-gradient(circle at 80% 0%, rgba(0, 163, 224, 0.14), transparent 36%),
    linear-gradient(180deg, #f4f7fb 0%, #fff 100%);
  padding: 3.2rem 0 2.4rem;
}
.hero-split__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.hero-split h1 { max-width: 16ch; }
.side-panel {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 1.2rem 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}
.side-panel h2, .side-panel h3, .side-panel p { color: #fff; }
.side-panel p { margin: 0.15rem 0 0.7rem; color: rgba(255, 255, 255, 0.82); }
.side-panel .kicker { color: #81cfff; }
.side-panel .btn { background: #fff; color: var(--primary); }
.side-panel .btn:hover { background: #e8eef5; color: var(--primary); }
.portrait-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: min(100%, 14rem);
  margin-left: auto;
  background: #123;
}
.portrait-card img { width: 100%; height: 250px; object-fit: cover; object-position: center 18%; }
.portrait-card figcaption {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.85rem;
}
.portrait-card strong { display: block; color: var(--primary); font-family: var(--font-display); }
.portrait-card span { color: var(--muted); font-size: 0.85rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.75rem 1.35rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--primary-deep); color: #fff; }
.btn span[aria-hidden] { transition: transform 0.2s ease; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn--line {
  background: rgba(0, 163, 224, 0.08);
  color: #fff;
  border-color: var(--cyan);
}
.hero .btn--line, .page-hero .btn--line { color: #fff; }
.btn--line:hover { background: rgba(0, 163, 224, 0.18); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--primary); background: rgba(0, 163, 224, 0.08); }
.btn:disabled { opacity: 0.7; cursor: wait; }
.btn .spinner { display: none; width: 0.9rem; height: 0.9rem; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.home-card {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 1.1rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.home-card:hover { transform: translateY(-2px); border-color: var(--cyan); color: #fff; }
.home-card__media, .home-card__shade { position: absolute; inset: 0; }
.home-card__video, .home-card__media img { width: 100%; height: 100%; object-fit: cover; }
.home-card__shade { background: linear-gradient(180deg, rgba(0, 22, 41, 0.1), rgba(0, 22, 41, 0.82)); }
.home-card__icon, .home-card__text, .home-card__go { position: relative; z-index: 1; }
.home-card__text { display: flex; flex-direction: column; }
.home-card__text strong { font-family: var(--font-display); font-size: 1.2rem; }
.home-card__text span { color: rgba(255,255,255,.82); font-size: 0.92rem; }
.home-card__go { position: absolute; right: 1rem; bottom: 1rem; }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--subtle);
}
.marquee__track {
  display: flex;
  gap: 0.4rem;
  width: max-content;
  padding: 0.75rem 0;
  animation: ticker 32s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}
.marquee i { color: var(--cyan); font-style: italic; margin: 0 0.7rem; font-weight: 500; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 4.5rem 0; }
.section--subtle { background: var(--subtle); }
.section--panel { background: var(--panel); }
.section--ink { background: var(--primary); color: #fff; }
.section--ink h2, .section--ink h3, .section--ink p { color: inherit; }

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.4rem;
  align-items: end;
  margin-bottom: 2rem;
}
.sec-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--cyan);
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}
.split > figure img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #0e1720;
}
.credo, .grid-2, .grid-3, .office-grid, .team-grid, .spec-grid {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3, .team-grid { grid-template-columns: repeat(3, 1fr); }
.spec-grid { grid-template-columns: repeat(4, 1fr); }
.office-grid { grid-template-columns: 1fr 1fr; }

.card, .product, .person, .office, .status, .form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
}
.card:hover, .product:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--emerald-soft);
  color: var(--emerald-ink);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--subtle);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
}
.steps b {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 163, 224, 0.12);
  color: var(--cyan-deep);
  font-family: var(--font-display);
}

.metrics { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1rem 0; }
.metric {
  min-width: 8.5rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--primary);
}
.metric span { color: var(--muted); font-size: 0.82rem; }

.collage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.7rem;
}
.collage figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--subtle);
}
.collage img { width: 100%; height: 100%; object-fit: cover; min-height: 140px; }
.collage figure:first-child { grid-row: span 2; }
.logo-tile { display: grid; place-items: center; padding: 1rem; background: #fff; }
.logo-tile img { width: 120px; height: auto; object-fit: contain; min-height: 0; }

.range-box label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
input[type="range"] { width: 100%; accent-color: var(--cyan-deep); }
.status.is-mid { border-color: var(--gold); }
.status.is-low { border-color: #f59e0b; }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.chip[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: end;
  margin: 1rem 0 1.2rem;
}
.toolbar .field { min-width: min(100%, 220px); flex: 1; }

.product[hidden] { display: none; }
.product header { display: flex; justify-content: space-between; gap: 0.6rem; align-items: start; }
.product .litros {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.product .litros small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 0.8rem; margin: 0.8rem 0 0; }
.dl div { border-top: 1px solid var(--border); padding-top: 0.35rem; }
.dl dt { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }
details.spec { margin-top: 0.8rem; }
details.spec summary { cursor: pointer; font-weight: 600; color: var(--cyan-deep); }
.catalog-empty { display: none; padding: 1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.catalog-empty.is-on { display: block; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 0.92rem; }
th { background: var(--subtle); color: var(--primary); font-family: var(--font-display); }
tr:last-child td { border-bottom: 0; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.shot {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  text-align: left;
}
.shot__photo { width: 100%; height: 180px; object-fit: cover; }
.shot figcaption, .shot span { display: block; padding: 0.55rem 0.7rem; font-size: 0.82rem; color: var(--muted); }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.video-card:hover { border-color: var(--cyan); color: inherit; box-shadow: var(--shadow); }
.video-card img { width: 100%; height: 160px; object-fit: cover; background: var(--primary); }
.video-card div { padding: 0.85rem 0.95rem 1rem; }
.video-card p { margin: 0; color: var(--muted); font-size: 0.8rem; }

.person { display: grid; gap: 0.7rem; }
.portrait {
  width: 50%;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  background: var(--subtle);
  filter: grayscale(1);
  transition: filter 0.25s ease;
}
.person:hover .portrait, .person:focus-within .portrait { filter: none; }
.person a { font-weight: 600; }

.contact { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.2rem; align-items: start; }
.field { display: grid; gap: 0.3rem; margin-bottom: 0.85rem; }
.field span, .check span { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.7rem 0.75rem;
  outline: none;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan);
  box-shadow: var(--glow);
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea, .check.is-invalid { border-color: var(--error); }
.error { min-height: 1rem; color: var(--error); font-size: 0.78rem; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0.4rem 0 0.8rem; }
.check input { margin-top: 0.2rem; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-error, .form-success { display: none; }
.form-error.is-on, .form-success.is-on { display: block; }
.form-error {
  margin-top: 0.8rem;
  color: var(--error);
  background: #ffdad6;
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
}
.form-card { position: relative; }
.form-card.is-done form { display: none; }
.form-success { padding: 0.4rem 0 0.2rem; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; color: var(--primary); }
.faq details p { margin: 0.55rem 0 0; color: var(--muted); }

.site-footer {
  background: var(--subtle);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 5.75rem;
}

.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(7, 94, 54, 0.28);
  transition: transform 0.18s ease, background 0.18s ease;
}
.wa-float:hover,
.wa-float:focus-visible {
  color: #fff;
  background: #1ebe57;
  transform: translateY(-2px);
}
.wa-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.45);
  outline-offset: 3px;
}
.wa-float svg { width: 1.75rem; height: 1.75rem; display: block; }
.wa-float__hint {
  position: absolute;
  right: calc(100% + 0.65rem);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.wa-float:hover .wa-float__hint,
.wa-float:focus-visible .wa-float__hint { opacity: 1; }
html.menu-open .wa-float,
html.lightbox-open .wa-float { visibility: hidden; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}
.footer-logo { height: 58px; width: auto; margin-bottom: 0.6rem; }
.footer-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fine { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; margin-top: 0.8rem; }
.footer-links a { color: var(--primary); font-weight: 600; text-decoration: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 22, 41, 0.88);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox__bar, .lightbox__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  gap: 0.6rem;
}
.lightbox img {
  max-height: calc(100vh - 8rem);
  margin: auto;
  object-fit: contain;
}
.lightbox button {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
html.lightbox-open, html.menu-open { overflow: hidden; }

.note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

@media (max-width: 1180px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem var(--gutter) 1rem;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
  .nav__cta { text-align: center; margin-top: 0.4rem; }
}

@media (max-width: 1024px) {
  .home-cards, .grid-3, .team-grid, .spec-grid, .video-grid, .shots { grid-template-columns: 1fr 1fr; }
  .split, .contact, .footer-grid, .cine-layout, .hero-split__grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .home-cards, .grid-2, .grid-3, .team-grid, .office-grid, .video-grid, .shots, .footer-offices, .spec-grid, .collage {
    grid-template-columns: 1fr;
  }
  .hero, .cine { min-height: auto; }
  .cine-metrics { grid-template-columns: 1fr; }
  .portrait-card { margin-left: 0; }
  .portrait-card img { height: 220px; }
  .hero__home { padding-top: 4.5rem; }
  .wa-float__hint { display: none; }
  .sec-head { grid-template-columns: 1fr; }
  .marquee__track { animation-duration: 22s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .home-card, .card, .product, .btn span[aria-hidden], .wa-float, .wa-float__hint { transition: none; }
  .portrait { filter: none; }
}
