﻿/* ==========================================================================
   IIRAD site layer
   Minimal, modular layer that sits on top of W3.CSS and the existing brand
   fonts. It preserves the black/starfield/monospace identity while improving
   layout, readability, responsiveness and conversion components.
   ========================================================================== */

:root {
  --bg: #000000;
  --panel: rgba(12, 12, 12, 0.74);
  --panel-strong: #0b0b0b;
  --line: #242424;
  --line-strong: #3c3c3c;
  --text: #f4f4f4;
  --muted: #a8a8a8;
  --muted-2: #7c7c7c;
  --white: #ffffff;
  --accent: #CCBEB1;
  --accent-ink: #171310;
  --accent-strong: #E3D8CC;
  --accent-deep: #CCBEB1;
  --whatsapp: #25D366;
  --whatsapp-ink: #04220F;
  --whatsapp-strong: #45E783;
  color-scheme: dark;
  --radius: 14px;
  --radius-sm: 10px;
  --font-body: 'source_code_proregular', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: 'cute_fontregular', var(--font-body);
  --font-accent: 'Rubik Distressed', var(--font-body);
  --header-h: 68px;
  --nav-w: 232px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: auto;
}

::selection {
  color: var(--accent-ink);
  background: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--white);
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.75rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.4;
}

strong {
  color: var(--white);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Ambient starfield
   -------------------------------------------------------------------------- */

#starfieldCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 999;
  padding: 0.7rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: var(--nav-w);
  height: var(--header-h);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.6));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  letter-spacing: 0.09em;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
  padding: 0.45rem 0;
  transition: color 0.2s ease;
}

.brand:hover {
  color: var(--accent);
}

.brand--logo {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0;
}

.brand__logo {
  display: block;
  width: 104px;
  height: auto;
}

.brand__logo--light,
.footer-logo--light {
  display: none;
}

.footer-logo-link {
  display: block;
  width: fit-content;
  margin-bottom: 0.85rem;
}

.footer-logo {
  display: block;
  width: 120px;
  height: auto;
}

.brand--footer {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__loc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header__loc i {
  color: var(--accent);
  font-size: 0.8rem;
}

.nav-toggle,
.nav-close,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover,
.nav-close:hover,
.theme-toggle:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
}

.theme-toggle {
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   Primary navigation
   -------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--nav-w);
  z-index: 70;
  background: rgba(4, 4, 4, 0.95);
  border-left: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-nav__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: calc(var(--header-h) + 0.9rem) 1.05rem 1.2rem;
}

.site-nav__scroll {
  display: flex;
  flex-direction: column;
}

.nav-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  display: none;
}

.nav-label {
  margin: 1.25rem 0 0.45rem;
  color: var(--muted-2);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-label:first-child {
  margin-top: 0;
}

.nav-link {
  display: block;
  padding: 0.46rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-link[aria-current='page'] {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.site-nav__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.nav-contact {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.nav-contact:hover {
  color: var(--white);
}

.nav-address {
  margin: 0.45rem 0 0;
  color: var(--muted-2);
  font-size: 0.7rem;
  line-height: 1.6;
}

.nav-address-label {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-legal {
  margin: 0.55rem 0 0;
  color: var(--muted-2);
  font-size: 0.68rem;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */

.site-body {
  margin-right: var(--nav-w);
  padding-top: var(--header-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 1 auto;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 5rem);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.wrap--narrow {
  max-width: 860px;
}

.section {
  padding: clamp(2.6rem, 6vw, 4.6rem) 0;
  border-top: 1px solid var(--line);
}

.section--flush {
  border-top: 0;
}

.section--tight {
  padding-top: 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.section-sub {
  max-width: 66ch;
  color: var(--muted);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(204, 190, 177, 0.65);
  flex: none;
}

.mono {
  font-family: var(--font-body);
}

.accent {
  font-family: var(--font-accent);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Page hero
   -------------------------------------------------------------------------- */

.page-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.2rem, 5vw, 3.4rem);
}

.home-hero {
  padding: clamp(3.4rem, 9vw, 7rem) 0 clamp(2.4rem, 5vw, 3.6rem);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: center;
}

.lead {
  max-width: 64ch;
  margin-bottom: 1.7rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  padding: 0.38rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.breadcrumbs {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumbs li + li::before {
  content: '/';
  color: var(--muted-2);
}

.breadcrumbs a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn i {
  font-size: 0.92em;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.btn-wa {
  background: var(--whatsapp);
  color: var(--whatsapp-ink);
}

.btn-wa:hover {
  background: var(--whatsapp-strong);
  color: var(--whatsapp-ink);
}

.wa-icon {
  color: var(--whatsapp);
}

.contact-method > i.fa-whatsapp {
  border-color: var(--whatsapp);
  background: var(--whatsapp);
  color: var(--whatsapp-ink);
}

.btn-sm {
  padding: 0.55rem 0.85rem;
  font-size: 0.68rem;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Cards and panels
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
  background: rgba(18, 18, 18, 0.86);
  transform: translateY(-2px);
}

.card--link:hover {
  border-color: var(--white);
}

.card[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #000;
  color: var(--accent);
  font-size: 1rem;
}

.card__media {
  aspect-ratio: 16 / 10;
  margin-bottom: 0.35rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #080808;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.04);
  transition: filter 0.3s ease, transform 0.4s ease;
}

.card:hover .card__media img {
  filter: none;
  transform: scale(1.02);
}

.card__more {
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card__more i {
  margin-left: 0.3rem;
  transition: transform 0.2s ease;
}

.card:hover .card__more i {
  transform: translateX(4px);
}

.panel {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.panel h3 i {
  margin-top: 0.2rem;
  color: var(--accent);
  font-size: 0.95em;
}

.panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.panel p + p {
  margin-top: 0.7rem;
}

.check-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.check-list li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, color 0.2s ease;
}

a.pill:hover {
  border-color: var(--white);
  color: var(--white);
}

.pill i {
  color: var(--accent);
  font-size: 0.8em;
}

/* --------------------------------------------------------------------------
   Split content
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split figure {
  margin: 0;
}

.split img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.figure-caption {
  margin: 0.7rem 0 0;
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Process / steps
   -------------------------------------------------------------------------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process__item {
  position: relative;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.process__item::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.process__item h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.process__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.steps {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}

.steps li {
  position: relative;
  padding: 1rem 1.1rem 1rem 3.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.9rem;
}

.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-weight: 700;
}

.steps strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Notices / disclaimers
   -------------------------------------------------------------------------- */

.notice {
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 193, 7, 0.06);
  color: #f3e7bc;
  font-size: 0.88rem;
  line-height: 1.65;
}

.notice i {
  margin-top: 0.22rem;
  color: #ffc107;
}

.notice p {
  margin: 0;
}

.notice strong {
  color: #fff3cd;
}

.note {
  padding: 1rem 1.1rem;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.note p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 0.6rem;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex: none;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-body {
  padding: 0 1.2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  padding: clamp(2.6rem, 6vw, 4.2rem) 0;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(204, 190, 177, 0.2), transparent 58%),
    rgba(3, 3, 3, 0.5);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin-bottom: 0.4rem;
}

.cta-band p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* --------------------------------------------------------------------------
   Console motif
   -------------------------------------------------------------------------- */

.console {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(5, 5, 5, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  font-size: 0.76rem;
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.62rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
}

.console__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
  flex: none;
}

.console__bar span:first-child {
  background: #ff5f57;
}

.console__bar span:nth-child(2) {
  background: #febc2e;
}

.console__bar span:nth-child(3) {
  background: #28c840;
}

.console__body {
  display: grid;
  gap: 0.32rem;
  padding: 1rem;
  color: #cfcfcf;
}

.console__body p {
  margin: 0;
  overflow-wrap: anywhere;
}

.c-muted {
  color: var(--muted-2);
}

.c-out {
  color: #8f8f8f;
}

.c-ok {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 2.6rem);
  align-items: start;
}

.contact-method {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 0.7rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color 0.2s ease;
}

a.contact-method:hover {
  border-color: var(--white);
}

.contact-method > i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #000;
  color: var(--accent);
  font-size: 0.95rem;
}

.contact-method strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.4;
}

.contact-method span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.contact-form {
  padding: clamp(1.2rem, 3vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.contact-form h2 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #070707;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5f5f5f;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.form-note {
  margin: 0.85rem 0 0;
  color: var(--muted-2);
  font-size: 0.75rem;
  line-height: 1.6;
}

.form-status {
  min-height: 1.2em;
  margin: 0.6rem 0 0;
  color: var(--accent);
  font-size: 0.82rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 2rem;
  padding: clamp(2.6rem, 5vw, 4rem) 0 1.5rem;
  border-top: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-brand p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-mono {
  color: var(--muted-2) !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.04em;
}

.footer-head {
  margin: 0 0 0.8rem;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a,
.footer-list span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-list a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.7rem;
  line-height: 1.6;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.legal-block {
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.legal-block:first-of-type {
  border-top: 0;
}

.legal-block h2 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.legal-block h3 {
  margin-top: 1.4rem;
  font-size: 0.95rem;
}

.legal-block p,
.legal-block li {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-block ul {
  padding-left: 1.2rem;
}

.legal-block li {
  margin-bottom: 0.35rem;
}

.legal-block a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-meta {
  color: var(--muted-2);
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  .site-header {
    right: 0;
  }

  .site-nav {
    width: min(86vw, 340px);
    transform: translateX(100%);
    visibility: hidden;
    overflow: hidden;
    transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }

  body.nav-open .site-nav {
    transform: none;
    visibility: visible;
    transition: transform 0.3s var(--ease), visibility 0s linear 0s;
  }

  .site-nav__inner {
    height: 100%;
    overflow-y: auto;
    padding-top: 4.2rem;
  }

  .nav-close,
  .nav-toggle {
    display: inline-flex;
  }

  .nav-close {
    background: rgba(4, 4, 4, 0.95);
  }

  .site-body {
    margin-right: 0;
  }

  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  .console {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-header__loc {
    display: none;
  }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .hero-actions .btn,
  .cta-band__actions .btn {
    width: 100%;
  }

  .cta-band__inner {
    align-items: flex-start;
  }

  .console {
    font-size: 0.7rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: 0.9rem;
  }

  .site-header__actions .btn-wa {
    padding: 0.5rem 0.65rem;
  }

  .site-header__actions .btn-label {
    display: none;
  }

  .brand {
    font-size: 1.05rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  #starfieldCanvas {
    display: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Light theme
   Follows the system by default via the early theme script, with a manual
   override stored in localStorage. The starfield is inverted rather than
   removed so the identity survives the palette change.
   -------------------------------------------------------------------------- */

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f4f1ec;
  --panel: rgba(255, 252, 248, 0.82);
  --panel-strong: #fffaf5;
  --line: #d9d1c7;
  --line-strong: #b7ab9e;
  --text: #171310;
  --muted: #5f574f;
  --muted-2: #7c736a;
  --white: #171310;
  --accent: #CCBEB1;
  --accent-ink: #171310;
  --accent-strong: #b9a999;
  --accent-deep: #8a745c;
}

:root[data-theme='light'] #starfieldCanvas {
  filter: invert(1);
  opacity: 0.35;
}

:root[data-theme='light'] .site-header {
  background: linear-gradient(to bottom, rgba(244, 241, 236, 0.97), rgba(244, 241, 236, 0.78));
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme='light'] .site-nav {
  background: rgba(250, 247, 242, 0.97);
}

:root[data-theme='light'] .site-footer {
  background: rgba(245, 241, 235, 0.92);
}

:root[data-theme='light'] .brand__logo--dark,
:root[data-theme='light'] .footer-logo--dark {
  display: none;
}

:root[data-theme='light'] .brand__logo--light,
:root[data-theme='light'] .footer-logo--light {
  display: block;
}

:root[data-theme='light'] .nav-toggle:hover,
:root[data-theme='light'] .nav-close:hover,
:root[data-theme='light'] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

:root[data-theme='light'] .nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme='light'] .nav-close {
  background: rgba(250, 247, 242, 0.95);
}

:root[data-theme='light'] .card:hover {
  background: rgba(255, 252, 248, 0.96);
}

:root[data-theme='light'] .card__media {
  background: #e9e2d9;
}

:root[data-theme='light'] .card__icon,
:root[data-theme='light'] .contact-method > i {
  background: var(--accent);
  color: var(--accent-ink);
}

:root[data-theme='light'] .contact-method > i.fa-whatsapp {
  background: var(--whatsapp);
  color: var(--whatsapp-ink);
}

:root[data-theme='light'] .btn-ghost {
  background: rgba(0, 0, 0, 0.02);
}

:root[data-theme='light'] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.06);
}

:root[data-theme='light'] .pill {
  background: rgba(0, 0, 0, 0.025);
}

:root[data-theme='light'] .cta-band {
  background:
    linear-gradient(135deg, rgba(204, 190, 177, 0.35), transparent 58%),
    rgba(245, 241, 235, 0.7);
}

:root[data-theme='light'] .note {
  background: rgba(0, 0, 0, 0.03);
}

:root[data-theme='light'] .notice {
  border-color: rgba(138, 106, 0, 0.3);
  background: rgba(255, 193, 7, 0.12);
  color: #4a3a12;
}

:root[data-theme='light'] .notice i {
  color: #8a6a00;
}

:root[data-theme='light'] .notice strong {
  color: #2e250d;
}

:root[data-theme='light'] .console {
  background: rgba(250, 247, 242, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

:root[data-theme='light'] .console__body {
  color: #3a342e;
}

:root[data-theme='light'] .c-out {
  color: #6a6259;
}

:root[data-theme='light'] .c-muted {
  color: #8a8075;
}

:root[data-theme='light'] .c-ok {
  color: var(--accent-deep);
}

:root[data-theme='light'] .field input,
:root[data-theme='light'] .field select,
:root[data-theme='light'] .field textarea {
  background: #fffdfa;
  color: var(--text);
}

:root[data-theme='light'] .field input::placeholder,
:root[data-theme='light'] .field textarea::placeholder {
  color: #9a9086;
}

:root[data-theme='light'] .field input:focus,
:root[data-theme='light'] .field select:focus,
:root[data-theme='light'] .field textarea:focus {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(23, 19, 16, 0.08);
}

:root[data-theme='light'] .form-status {
  color: var(--accent-deep);
}

:root[data-theme='light'] .site-header__loc i,
:root[data-theme='light'] .panel h3 i,
:root[data-theme='light'] .check-list li::before,
:root[data-theme='light'] .pill i,
:root[data-theme='light'] .card__more i {
  color: var(--accent-deep);
}

:root[data-theme='light'] .eyebrow::before {
  background: var(--accent-deep);
  box-shadow: none;
}

:root[data-theme='light'] .brand:hover {
  color: var(--accent-deep);
}

:root[data-theme='light'] .legal-block a {
  color: var(--text);
}

