/* =====================================================
   JC Electrical — dark + warm gold visual system
   ===================================================== */

:root {
  color-scheme: dark;

  /* surfaces */
  --bg: #0c0f14;
  --bg-2: #11151c;
  --surface: #161b24;
  --surface-2: #1b2230;
  --surface-3: #222a39;
  --surface-hover: #232c3b;

  /* lines */
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.20);

  /* type */
  --ink: #f5efe2;
  --ink-soft: #d7d2c5;
  --muted: #9aa3b1;
  --dim: #6d7585;

  /* accents */
  --gold: #f4b740;
  --gold-soft: #fbd07a;
  --gold-deep: #d9981e;
  --gold-glow: rgba(244, 183, 64, 0.18);
  --electric: #56d6ff;
  --electric-soft: #b9efff;
  --electric-glow: rgba(86, 214, 255, 0.16);

  /* sizing */
  --max: 1240px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.28);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 18px 42px rgba(244, 183, 64, 0.22);

  /* type scale */
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --display-tight: -0.02em;
}

html[data-theme="light"] {
  color-scheme: light;

  /* surfaces */
  --bg: #f6f1e7;
  --bg-2: #ede5d8;
  --surface: #fffaf0;
  --surface-2: #f5eddf;
  --surface-3: #eee2d0;
  --surface-hover: #eadccb;

  /* lines */
  --line: rgba(50, 39, 24, 0.08);
  --line-2: rgba(50, 39, 24, 0.12);
  --line-strong: rgba(50, 39, 24, 0.18);

  /* type */
  --ink: #18140d;
  --ink-soft: #40382d;
  --muted: #70685e;
  --dim: #91887c;

  /* accents */
  --gold: #e3a21d;
  --gold-soft: #f4b740;
  --gold-deep: #a86f09;
  --gold-glow: rgba(227, 162, 29, 0.24);
  --electric: #087fba;
  --electric-soft: #1d9fd5;
  --electric-glow: rgba(8, 127, 186, 0.15);

  --shadow-sm: 0 8px 22px rgba(70, 45, 12, 0.12);
  --shadow: 0 24px 62px rgba(70, 45, 12, 0.16);
  --shadow-gold: 0 18px 42px rgba(227, 162, 29, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(244, 183, 64, 0.10), transparent 60%),
    radial-gradient(800px 500px at -10% 40%, rgba(70, 100, 150, 0.06), transparent 65%);
  background-attachment: fixed;
}

main {
  display: flex;
  flex-direction: column;
}

#top { order: 0; }
.hero { order: 1; }
.trust { order: 2; }
.section-work { order: 3; }
.section-services { order: 4; }
.section-process { order: 5; }
.section-about { order: 6; }
.section-contact { order: 7; }

html[data-theme="light"] body {
  background-image:
    radial-gradient(1200px 620px at 78% -10%, rgba(244, 183, 64, 0.28), transparent 62%),
    radial-gradient(850px 520px at -10% 36%, rgba(8, 127, 186, 0.13), transparent 66%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.anchor {
  position: relative;
  top: -80px;
  display: block;
  height: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-200%);
  background: var(--gold);
  color: #1a1305;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

/* =====================================================
   Brand mark
   ===================================================== */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  /* Tema oscuro (por defecto): letras claras */
  background: center / contain no-repeat url("/assets/images/logo-light.svg");
}
/* Tema claro: logo de color con letras negras */
html[data-theme="light"] .brand-mark {
  background-image: url("/assets/images/logo.svg");
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  letter-spacing: -0.01em;
  font-size: 1.02rem;
}

.brand-word {
  font-weight: 700;
}

.brand-word-accent {
  color: var(--gold);
}

/* =====================================================
   Header / nav
   ===================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  backdrop-filter: blur(14px);
  background: rgba(12, 15, 20, 0.72);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}

::view-transition-group(site-header) {
  z-index: 1000;
}

.site-header-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: inline-flex;
  gap: 4px;
  justify-self: center;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: transparent;
}

.nav-links a.is-active {
  color: var(--gold);
  background: transparent;
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #1a1305;
  font-weight: 600;
  font-size: 0.93rem;
  transition: transform 160ms ease, background 160ms ease;
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

.nav-cta:hover {
  background: white;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 42%, rgba(244, 183, 64, 0.10), transparent 48%),
    rgba(255, 255, 255, 0.055);
  color: var(--gold-soft);
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.20);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(244, 183, 64, 0.16), transparent 58%);
  opacity: 0;
  pointer-events: none;
}

.theme-toggle svg {
  position: absolute;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.theme-bulb-on {
  opacity: 0;
}

html[data-theme="light"] .theme-toggle {
  background:
    radial-gradient(circle at 50% 44%, rgba(244, 183, 64, 0.45), transparent 54%),
    linear-gradient(145deg, #fff7df, #f4b740);
  color: #5d3900;
  box-shadow:
    0 0 32px rgba(244, 183, 64, 0.44),
    0 16px 34px rgba(124, 83, 12, 0.18);
}

html[data-theme="light"] .theme-toggle::before {
  opacity: 1;
}

html[data-theme="light"] .theme-bulb-off {
  opacity: 0;
}

html[data-theme="light"] .theme-bulb-on {
  opacity: 1;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: min(100% - 32px, var(--max));
  margin: 12px auto 0;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}

.mobile-menu a {
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--ink-soft);
}

.mobile-menu a:hover {
  background: transparent;
  color: var(--ink);
}

.mobile-menu-cta {
  margin-top: 4px;
  background: var(--gold);
  color: #1a1305 !important;
  font-weight: 700 !important;
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu.is-open {
  display: flex;
}

/* Simple legal pages share the same dark system. */
.simple-header .site-header-inner,
.simple-header {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.simple-header {
  position: sticky;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.simple-header .brand {
  grid-column: auto;
}

.legal-page {
  padding: 72px 0 100px;
  background:
    radial-gradient(700px 380px at 80% 0%, var(--gold-glow), transparent 68%),
    var(--bg);
}

.legal-content {
  width: min(100% - 32px, 860px);
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-sm);
}

.legal-content h1 {
  margin: 0 0 22px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: var(--display-tight);
}

.legal-content h2 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 600;
}

.legal-content p {
  margin: 0;
  color: var(--ink-soft);
}

/* =====================================================
   HERO
   ===================================================== */

.hero {
  position: relative;
  padding: 32px 0 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 80% 30%, var(--gold-glow), transparent 70%),
    radial-gradient(900px 500px at 0% 90%, rgba(60, 90, 140, 0.10), transparent 65%);
  pointer-events: none;
}

/* Fondo animado de corriente eléctrica */
.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.5;
  mask-image: radial-gradient(130% 110% at 75% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(130% 110% at 75% 30%, #000 30%, transparent 78%);
}

/* Cables 3D SVG */
.svg-cable {
  opacity: 0.9;
  transform-origin: center;
}

.svg-cable-left {
  animation: svg-cable-float-left 6s ease-in-out infinite alternate;
}

.svg-cable-right {
  animation: svg-cable-float-right 6.5s ease-in-out infinite alternate;
  animation-delay: -3s;
}

@keyframes svg-cable-float-left {
  0% { transform: translateY(0px) rotate(15deg); }
  100% { transform: translateY(-15px) rotate(13deg); }
}

@keyframes svg-cable-float-right {
  0% { transform: translateY(0px) rotate(-15deg); }
  100% { transform: translateY(-15px) rotate(-13deg); }
}

/* El SVG va en absoluto: nunca ocupa espacio del layout */
.hero-fx-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.fx-bolt {
  opacity: 0;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.fx-bolt-1 {
  animation: fx-electric-flicker 4.5s infinite, fx-electric-shoot 4.5s infinite;
}

.fx-bolt-2 {
  animation: fx-electric-flicker 5.8s infinite, fx-electric-shoot 5.8s infinite;
  animation-delay: 1.2s;
}

.fx-bolt-3 {
  animation: fx-electric-flicker 3.2s infinite, fx-electric-shoot 3.2s infinite;
  animation-delay: 2.1s;
}

.fx-bolt-branch-1 {
  animation: fx-electric-flicker 4.5s infinite, fx-electric-shoot 4.5s infinite;
  animation-delay: 0.05s;
}

.fx-bolt-branch-2 {
  animation: fx-electric-flicker 5.8s infinite, fx-electric-shoot 5.8s infinite;
  animation-delay: 1.25s;
}

@keyframes fx-electric-flicker {
  0%   { opacity: 0; }
  3%   { opacity: 0; }
  4%   { opacity: 1; }
  5%   { opacity: 0; }
  6%   { opacity: 0.8; }
  7%   { opacity: 0; }
  9%   { opacity: 0; }
  10%  { opacity: 1; }
  12%  { opacity: 1; }
  13%  { opacity: 0; }
  14%  { opacity: 0.5; }
  16%  { opacity: 0; }
  45%  { opacity: 0; }
  46%  { opacity: 1; }
  47%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes fx-electric-shoot {
  0%   { stroke-dashoffset: 1000; }
  3%   { stroke-dashoffset: 1000; }
  8%   { stroke-dashoffset: 0; }
  16%  { stroke-dashoffset: 0; }
  17%  { stroke-dashoffset: 1000; }
  100% { stroke-dashoffset: 1000; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.hero-copy {
  padding: 0 0 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(244, 183, 64, 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(244, 183, 64, 0.45);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(244, 183, 64, 0);
  }
}

.hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: var(--display-tight);
  text-wrap: balance;
}

.hero-title-accent {
  display: block;
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: #1a1305;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--gold-soft);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.btn-block {
  width: 100%;
  height: 54px;
  font-size: 1rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-points li svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-image-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 1;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: opacity 250ms ease, transform 250ms ease;
}

.hero-image-frame img.is-fading {
  opacity: 0;
  transform: scale(0.97);
}

.hero-image-glow {
  position: absolute;
  inset: auto -20% -20% auto;
  width: 60%;
  height: 60%;
  background: radial-gradient(closest-side, var(--gold-glow), transparent 70%);
  pointer-events: none;
}

.hero-quote {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: calc(100% - 32px);
  max-width: 420px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(22, 27, 36, 0.75); /* Glass Dark - increased opacity */
  backdrop-filter: blur(32px); /* Increased blur */
  -webkit-backdrop-filter: blur(32px);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  isolation: isolate;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.05) inset;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
  z-index: 2;
  transition: transform 300ms ease;
}

html[data-theme="light"] .hero-quote {
  background: rgba(255, 250, 240, 0.85); /* Glass Light - increased opacity */
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.5) inset;
}

.hero-quote-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  color: #1a1305;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 12px rgba(244, 183, 64, 0.3);
  margin-top: 2px;
}

.hero-quote blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 500;
}

.hero-quote blockquote p {
  margin: 0 0 4px;
}

.hero-quote cite {
  color: var(--dim);
  font-style: normal;
  font-size: 0.82rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.hero-meta-label {
  display: block;
  color: var(--dim);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.hero-meta a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
}

.hero-meta a:hover {
  color: var(--gold);
}

.hero-meta-sep {
  width: 1px;
  height: 28px;
  background: var(--line-2);
}

/* Service Map Radar */
.hero-service-map {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22, 27, 36, 0.75) 0%, rgba(27, 34, 48, 0.75) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  isolation: isolate;
}

html[data-theme="light"] .hero-service-map {
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.85) 0%, rgba(245, 237, 223, 0.85) 100%);
}

.service-map-bg {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  height: 180%;
  width: auto;
  color: var(--gold);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.15));
}

.service-map-bg .shape-ct {
  fill: currentColor;
  opacity: 0.04;
}

.service-map-bg .shape-wc {
  fill: currentColor;
  opacity: 0.08;
}

.service-map-bg .map-label {
  fill: currentColor;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.2;
}

.service-map-visual {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 80%);
  border: 1px solid var(--line-2);
}

.map-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 191, 36, 0.25);
  opacity: 0;
  animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.map-pulse-ring.delay {
  animation-delay: 1.5s;
}

.map-pin {
  position: relative;
  z-index: 2;
  color: var(--gold);
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

.map-pin svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  20% { opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.service-map-info {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-map-info .hero-meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.service-map-info strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

/* Marquee */
.hero-marquee {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.hero-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  will-change: transform;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
}

.marquee-content span:nth-child(even) {
  color: var(--gold);
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* =====================================================
   Trust strip
   ===================================================== */

.trust {
  width: min(100% - 32px, var(--max));
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.trust-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  transition: border-color 200ms ease, transform 200ms ease;
}

.trust-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.trust-card-accent {
  background: linear-gradient(180deg, rgba(244, 183, 64, 0.10) 0%, rgba(244, 183, 64, 0.04) 100%);
  border-color: rgba(244, 183, 64, 0.28);
}

.trust-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.trust-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* =====================================================
   Section scaffolding
   ===================================================== */

.section {
  padding: 100px 0;
}

.section>*+* {
  margin-top: 0;
}

.section-head,
.service-grid,
.gallery,
.process-list,
.about-grid,
.contact-grid,
.scope-note,
.footer-grid,
.footer-bar {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.section-head-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 480px;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: var(--display-tight);
  text-wrap: balance;
}

/* =====================================================
   Services
   ===================================================== */

.section-services {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 360px at 12% 8%, var(--electric-glow), transparent 68%),
    radial-gradient(620px 320px at 86% 22%, rgba(244, 183, 64, 0.10), transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, rgba(17, 21, 28, 0.88) 12%, rgba(10, 13, 18, 0.96) 88%, var(--bg) 100%);
}

.section-services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(86, 214, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 214, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 35%, black, transparent 72%);
  pointer-events: none;
}

.section-services > * {
  position: relative;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: var(--radius);
  border: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    radial-gradient(420px 220px at 86% 8%, rgba(86, 214, 255, 0.10), transparent 58%),
    radial-gradient(360px 200px at 12% 0%, rgba(244, 183, 64, 0.10), transparent 62%),
    rgba(15, 19, 27, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 24px 54px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 34%, rgba(86, 214, 255, 0.08));
  opacity: 0.72;
  pointer-events: none;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(145deg, rgba(244, 183, 64, 0.18), rgba(86, 214, 255, 0.08)),
    rgba(255, 255, 255, 0.05);
  color: var(--gold-soft);
  margin-bottom: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 30px rgba(244, 183, 64, 0.12),
    0 0 44px rgba(86, 214, 255, 0.07);
}

.service-icon svg {
  width: 34px;
  height: 34px;
}

.service-icon svg path,
.service-icon svg rect,
.service-icon svg circle {
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.service-num {
  position: absolute;
  top: 28px;
  right: 28px;
  color: rgba(185, 239, 255, 0.45);
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-link {
  margin-top: auto;
  padding-top: 22px;
  color: var(--gold-soft);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  color: var(--gold);
}

.scope-note {
  margin-top: 28px;
  padding: 16px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 12px;
  border: 0;
  background:
    linear-gradient(90deg, rgba(244, 183, 64, 0.10), rgba(86, 214, 255, 0.04)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.scope-note svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.scope-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.scope-note strong {
  color: var(--gold);
  font-weight: 600;
}

/* =====================================================
   Work / gallery
   ===================================================== */

.section-work {
  background: var(--bg);
  padding-top: 112px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 16px;
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  isolation: isolate;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.gallery-item-tall {
  grid-row: span 2;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: white;
}

.gallery-tag {
  display: inline-block;
  width: max-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(244, 183, 64, 0.18);
  color: var(--gold-soft);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(244, 183, 64, 0.28);
}

.gallery-label {
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-image-frame[data-lightbox-ready],
.about-image[data-lightbox-ready] {
  cursor: zoom-in;
}

.gallery-item:focus-visible,
.hero-image-frame:focus-visible,
.about-image:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* =====================================================
   Image lightbox
   ===================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 16px;
  padding: 28px;
  background: rgba(3, 5, 8, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  min-width: 0;
  max-width: min(100%, 1180px);
  max-height: calc(100vh - 56px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-figure img.is-zoomed {
  transform: scale(2.2);
  cursor: zoom-out;
  z-index: 250;
  position: relative;
}

.lightbox-figure figcaption {
  display: grid;
  gap: 4px;
  text-align: center;
}

.lightbox-kicker {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lightbox-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  width: 54px;
  height: 70px;
  border-radius: 999px;
  font-size: 2.8rem;
  justify-self: center;
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* =====================================================
   Process
   ===================================================== */

.section-process {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 15%, var(--bg-2) 85%, var(--bg) 100%);
  border-top: none;
  border-bottom: none;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
  counter-reset: step;
}

.process-list li {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 200ms ease, transform 200ms ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.process-list li:hover {
  border-color: rgba(244, 183, 64, 0.32);
  transform: translateY(-2px);
}

.process-step {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 18px;
}

.process-list h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 600;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* =====================================================
   About
   ===================================================== */

.section-about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(12, 15, 20, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.about-image-badge-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1305;
  font-weight: 700;
  font-size: 0.74rem;
}

.about-copy h2 {
  margin-top: 14px;
}

.about-copy p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 32px 0 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-stats>div {
  padding: 18px 20px;
  background: var(--surface);
}

.about-stats dt {
  color: var(--dim);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}

.about-stats dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}

/* =====================================================
   Contact
   ===================================================== */

.section-contact {
  background:
    radial-gradient(800px 400px at 20% 0%, var(--gold-glow), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 15%, var(--bg-2) 85%, var(--bg) 100%);
  border-top: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.contact-copy h2 {
  margin-top: 14px;
}

.contact-copy>p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 460px;
}

.contact-cards {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.contact-card:hover {
  border-color: rgba(244, 183, 64, 0.40);
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-3) 100%);
}

.contact-card[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.contact-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(244, 183, 64, 0.12);
  border: 1px solid rgba(244, 183, 64, 0.24);
  color: var(--gold);
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
}

.contact-card-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-card-label {
  color: var(--dim);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-card-value {
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-card-arrow {
  color: var(--gold);
  font-size: 1.15rem;
  transition: transform 200ms ease;
}

.contact-card:hover .contact-card-arrow {
  transform: translateX(4px);
}

.launch-warning {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(244, 183, 64, 0.10);
  border: 1px solid rgba(244, 183, 64, 0.28);
  color: var(--gold-soft);
  font-size: 0.88rem;
}

/* Form */
.estimate-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-sm);
}

.form-head {
  margin-bottom: 4px;
}

.form-head h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 600;
}

.form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.estimate-form label {
  display: grid;
  gap: 7px;
}

.estimate-form label>span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font-size: 0.96rem;
  transition: border-color 160ms ease, background 160ms ease;
}

.estimate-form input::placeholder,
.estimate-form textarea::placeholder {
  color: var(--dim);
}

.estimate-form textarea {
  resize: vertical;
  min-height: 110px;
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.40);
  box-shadow: 0 0 0 3px rgba(244, 183, 64, 0.18);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
}

.select-wrap svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--gold-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status.is-ok {
  color: #4ade80;
}

.form-status.is-error {
  color: #f87171;
}

.form-fineprint {
  margin: 0;
  color: var(--dim);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* =====================================================
   Footer
   ===================================================== */

.site-footer {
  padding: 70px 0 28px;
  background: #08090c;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-bottom: 56px;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 360px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.84rem;
}

.footer-bar-note {
  color: var(--muted);
}

/* =====================================================
   Borderless polish pass
   ===================================================== */

.site-header,
.hero-marquee,
.section-process,
.section-contact,
.site-footer,
.footer-bar {
  border: 0;
}

.nav-links,
.nav-toggle,
.mobile-menu,
.legal-content,
.badge,
.btn,
.hero-points li,
.hero-image-frame,
.hero-quote,
.hero-meta,
.trust-card,
.gallery-item,
.gallery-tag,
.lightbox-figure img,
.lightbox-close,
.lightbox-nav,
.process-list li,
.about-image,
.about-image-badge,
.about-stats,
.contact-card,
.contact-card-icon,
.launch-warning,
.estimate-form,
.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  border: 0;
}

.site-header {
  background: rgba(9, 12, 17, 0.76);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.24);
}

.nav-links,
.mobile-menu {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(13, 17, 23, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-toggle {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20);
}

.hero-image-frame,
.hero-quote,
.hero-meta,
.about-image,
.estimate-form {
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

.hero-meta {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(13, 17, 23, 0.66);
}

.hero-meta-sep {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.hero-marquee {
  background: rgba(0, 0, 0, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
}

.trust {
  margin: 72px auto 88px;
  gap: 18px;
}

.trust-card,
.process-list li,
.contact-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.022)),
    radial-gradient(360px 180px at 85% 0%, rgba(86, 214, 255, 0.08), transparent 62%),
    rgba(18, 23, 32, 0.76);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.trust-card:hover,
.process-list li:hover,
.contact-card:hover {
  transform: none;
}

.trust-card-accent {
  background:
    radial-gradient(360px 180px at 85% 0%, rgba(244, 183, 64, 0.14), transparent 64%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.024)),
    rgba(22, 21, 16, 0.78);
}

.section {
  padding: 112px 0;
}

.section-services {
  padding-top: 120px;
}

.service-grid {
  gap: 24px;
}

.service-card {
  min-height: 300px;
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.30),
    0 0 42px rgba(86, 214, 255, 0.035);
}

.section-process {
  background:
    radial-gradient(760px 360px at 86% 12%, rgba(86, 214, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(17, 21, 28, 0.92), rgba(12, 15, 20, 0.98));
}

.process-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.process-list li {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 26px;
}

.process-step {
  font-size: 2.25rem;
  margin-bottom: 28px;
}

.about-stats {
  gap: 10px;
  background: transparent;
}

.about-stats > div {
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(18, 23, 32, 0.72);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.section-contact {
  background:
    radial-gradient(900px 420px at 18% 8%, rgba(244, 183, 64, 0.12), transparent 62%),
    radial-gradient(760px 380px at 88% 10%, rgba(86, 214, 255, 0.08), transparent 68%),
    var(--bg-2);
}

.contact-grid {
  gap: 64px;
}

.contact-cards {
  gap: 16px;
}

.contact-card {
  padding: 18px 22px;
}

.contact-card:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
    rgba(20, 25, 35, 0.82);
}

.contact-card-icon {
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.20), transparent 34%),
    linear-gradient(145deg, rgba(244, 183, 64, 0.20), rgba(86, 214, 255, 0.08));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.contact-card-arrow {
  transition: none;
}

.contact-card:hover .contact-card-arrow {
  transform: none;
}

.estimate-form {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)),
    rgba(18, 23, 32, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  border-color: transparent;
  box-shadow:
    0 0 0 3px rgba(244, 183, 64, 0.18);
}

.site-footer {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* =====================================================
   Minimal controls and sticky contact
   ===================================================== */

.btn,
.nav-cta,
.theme-toggle,
.nav-toggle,
.mobile-menu-cta,
.badge,
.hero-points li,
.contact-card,
.contact-card-icon,
.lightbox-close,
.lightbox-nav {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.mobile-menu-cta {
  color: var(--gold) !important;
  font-weight: 700 !important;
}

.btn,
.nav-cta {
  height: auto;
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  color: var(--ink);
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.contact-card,
.contact-card-icon,
.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.contact-card:hover,
.nav-cta:hover {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transform: none;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.contact-card,
.contact-card-icon {
  border: 0;
}

.badge,
.hero-points li {
  border-color: transparent;
}

.contact-card {
  padding: 14px 0;
  border-radius: 0;
}

.contact-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 0;
  color: var(--gold);
}

.btn svg,
.nav-cta svg,
.sticky-contact-action svg {
  color: var(--gold);
}

.hero-actions {
  gap: 22px;
}

.nav-cta {
  gap: 10px;
  font-weight: 650;
}

.theme-toggle,
.nav-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
}

.theme-toggle::before {
  display: none;
}

html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .nav-cta,
html[data-theme="light"] .nav-cta:hover {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.sticky-contact {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  width: min(calc(100% - 28px), 520px);
  padding: 8px 16px;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(10, 13, 18, 0.78);
  color: var(--ink);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
}

.sticky-contact[hidden] {
  display: none;
}

.sticky-contact.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 52px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 650;
  font-size: 0.94rem;
  line-height: 1;
  white-space: nowrap;
  touch-action: manipulation;
}

.sticky-contact-action:first-child {
  justify-content: flex-start;
}

.sticky-contact-action:last-child {
  justify-content: flex-end;
}

.sticky-contact-action svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

html[data-theme="light"] .sticky-contact {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.32)),
    rgba(255, 250, 240, 0.74);
  box-shadow: 0 22px 54px rgba(72, 50, 18, 0.16);
}

/* =====================================================
   Light theme refinements
   ===================================================== */

html[data-theme="light"] .site-header {
  background: rgba(249, 243, 232, 0.78);
  box-shadow: 0 16px 46px rgba(77, 54, 20, 0.12);
}

html[data-theme="light"] .brand {
  color: var(--ink);
}

html[data-theme="light"] .nav-links,
html[data-theme="light"] .mobile-menu {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.34)),
    rgba(246, 241, 231, 0.72);
  box-shadow: 0 18px 44px rgba(77, 54, 20, 0.10);
}

html[data-theme="light"] .nav-links a.is-active,
html[data-theme="light"] .mobile-menu-cta,
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .skip-link {
  color: #18140d;
}

html[data-theme="light"] .nav-cta {
  background:
    linear-gradient(145deg, #f4b740, #e3a21d);
  color: #18140d;
  box-shadow:
    0 18px 42px rgba(227, 162, 29, 0.24),
    0 8px 22px rgba(72, 50, 18, 0.10);
}

html[data-theme="light"] .nav-cta:hover {
  background: linear-gradient(145deg, #f8c75a, #e3a21d);
}

html[data-theme="light"] .hero,
html[data-theme="light"] .section-services,
html[data-theme="light"] .section-process,
html[data-theme="light"] .section-contact,
html[data-theme="light"] .legal-page {
  background:
    radial-gradient(760px 360px at 12% 8%, rgba(8, 127, 186, 0.12), transparent 68%),
    radial-gradient(620px 320px at 86% 22%, rgba(244, 183, 64, 0.22), transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, rgba(246, 241, 231, 0.96) 12%, rgba(237, 229, 216, 0.98) 88%, var(--bg) 100%);
}

html[data-theme="light"] .section-work,
html[data-theme="light"] .section-about {
  background: var(--bg);
}

html[data-theme="light"] .hero::before,
html[data-theme="light"] .section-services::before {
  opacity: 0.52;
}

html[data-theme="light"] .hero-fx,
html[data-theme="light"] .hero-marquee,
html[data-theme="light"] .lightbox {
  color-scheme: dark;
}

html[data-theme="light"] .hero-fx {
  opacity: 0.26;
}

html[data-theme="light"] .hero-image-frame,
html[data-theme="light"] .hero-quote,
html[data-theme="light"] .hero-meta,
html[data-theme="light"] .trust-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .process-list li,
html[data-theme="light"] .about-image,
html[data-theme="light"] .about-stats > div,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .estimate-form,
html[data-theme="light"] .legal-content {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
    radial-gradient(380px 190px at 86% 0%, rgba(8, 127, 186, 0.08), transparent 64%),
    rgba(255, 250, 240, 0.72);
  box-shadow: 0 24px 58px rgba(72, 50, 18, 0.13);
}

html[data-theme="light"] .about-image-badge {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 240, 0.52)),
    rgba(255, 250, 240, 0.72);
  color: #18140d;
  box-shadow: 0 16px 36px rgba(72, 50, 18, 0.18);
}

html[data-theme="light"] .about-image-badge-num {
  color: #18140d;
}

html[data-theme="light"] .trust-card-accent {
  background:
    radial-gradient(360px 180px at 85% 0%, rgba(244, 183, 64, 0.28), transparent 64%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 250, 240, 0.34)),
    rgba(255, 247, 226, 0.78);
}

html[data-theme="light"] .hero-points li,
html[data-theme="light"] .badge,
html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .contact-card-icon,
html[data-theme="light"] .service-icon {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
    rgba(255, 250, 240, 0.55);
  box-shadow: 0 12px 28px rgba(72, 50, 18, 0.10);
}

html[data-theme="light"] .hero-marquee {
  background: rgba(255, 250, 240, 0.40);
}

html[data-theme="light"] .estimate-form input,
html[data-theme="light"] .estimate-form select,
html[data-theme="light"] .estimate-form textarea {
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
}

html[data-theme="light"] .estimate-form input::placeholder,
html[data-theme="light"] .estimate-form textarea::placeholder {
  color: #9b8f82;
}

html[data-theme="light"] .gallery-item::after {
  background: linear-gradient(180deg, transparent 44%, rgba(24, 20, 13, 0.72) 100%);
}

html[data-theme="light"] .lightbox {
  background: rgba(12, 12, 12, 0.86);
}

html[data-theme="light"] .lightbox-close,
html[data-theme="light"] .lightbox-nav {
  background: rgba(255, 250, 240, 0.92);
  color: #18140d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

html[data-theme="light"] .site-footer {
  background: #e8dfd0;
  box-shadow: inset 0 1px 0 rgba(72, 50, 18, 0.05);
}

html[data-theme="light"] .btn,
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .badge,
html[data-theme="light"] .hero-points li,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .contact-card-icon,
html[data-theme="light"] .btn-primary:hover,
html[data-theme="light"] .btn-secondary:hover,
html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .contact-card:hover,
html[data-theme="light"] .nav-cta,
html[data-theme="light"] .nav-cta:hover,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .nav-toggle,
html[data-theme="light"] .mobile-menu-cta,
html[data-theme="light"] .lightbox-close,
html[data-theme="light"] .lightbox-nav {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

html[data-theme="light"] .lightbox-close,
html[data-theme="light"] .lightbox-nav {
  color: #fffaf0;
}

html[data-theme="light"] .nav-toggle {
  border: 0;
}

html[data-theme="light"] .nav-links a.is-active,
html[data-theme="light"] .mobile-menu-cta {
  background: transparent;
  color: var(--gold) !important;
}

html[data-theme="light"] .contact-card-icon {
  color: var(--gold);
}

.hero-actions .btn {
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  justify-content: center;
  color: var(--ink);
}

.hero-actions .btn-primary {
  background: var(--gold);
  color: #171208;
  box-shadow: 0 16px 38px rgba(244, 183, 64, 0.20);
}

.hero-actions .btn-primary svg {
  color: #171208;
}

.hero-actions .btn-secondary,
.hero-actions .btn-ghost {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
    rgba(17, 22, 31, 0.75);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  isolation: isolate;
}

.hero-actions .btn-primary:hover {
  background: var(--gold-soft);
}

.hero-actions .btn-secondary:hover,
.hero-actions .btn-ghost:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.032)),
    rgba(22, 28, 39, 0.85);
}

html[data-theme="light"] .hero-actions .btn-primary,
html[data-theme="light"] .hero-actions .btn-primary:hover {
  background: linear-gradient(145deg, #f4b740, #e8a51c);
  color: #18140d;
  box-shadow: 0 18px 42px rgba(227, 162, 29, 0.20);
}

html[data-theme="light"] .hero-actions .btn-secondary,
html[data-theme="light"] .hero-actions .btn-ghost,
html[data-theme="light"] .hero-actions .btn-secondary:hover,
html[data-theme="light"] .hero-actions .btn-ghost:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    rgba(255, 250, 240, 0.85);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(72, 50, 18, 0.08), 0 14px 34px rgba(72, 50, 18, 0.10);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  isolation: isolate;
}

.theme-toggle {
  color: var(--muted);
}

html[data-theme="light"] .theme-toggle {
  color: var(--gold);
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 1080px) {
  .site-header-inner {
    grid-template-columns: auto 1fr auto auto;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
  }

  .trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item-wide {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-visual {
    order: 2;
  }

  .hero-image-frame {
    aspect-ratio: 5 / 4;
  }

  .hero-quote {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: -32px;
    width: 100%;
    max-width: none;
    padding: 20px;
    gap: 14px;
    z-index: 2;
  }

  .nav-links {
    display: none;
  }

  .simple-header .nav-links {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .section-head-lede {
    max-width: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image {
    aspect-ratio: 4 / 3;
    max-width: 520px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
  }

  .gallery-item-tall {
    grid-row: span 2;
  }

  .gallery-item-wide {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Tablets pequeñas / móviles grandes: evitar 2 columnas apretadas */
@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .trust {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 10px 0;
  }

  .site-header-inner {
    width: min(100% - 24px, var(--max));
    gap: 10px;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-grid {
    width: min(100% - 24px, var(--max));
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
  }

  .hero-lede {
    font-size: 1.02rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
  }

  .sticky-contact {
    width: min(calc(100% - 20px), 390px);
    padding: 7px 12px;
  }

  .sticky-contact-action {
    min-height: 50px;
    padding: 0 6px;
    gap: 7px;
    font-size: 0.88rem;
  }

  .btn {
    width: auto;
    justify-content: flex-start;
  }

  .estimate-form .btn-block {
    width: 100%;
    justify-content: center;
  }

  .btn-ghost {
    display: inline-flex;
  }

  .hero-points li {
    font-size: 0.82rem;
    padding: 7px 12px;
  }

  .hero-quote {
    padding: 14px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-meta-sep {
    display: none;
  }

  .hero-marquee {
    margin-top: 36px;
  }

  .trust {
    width: min(100% - 24px, var(--max));
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head,
  .service-grid,
  .gallery,
  .process-list,
  .about-grid,
  .contact-grid,
  .scope-note,
  .footer-grid,
  .footer-bar {
    width: min(100% - 24px, var(--max));
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .gallery {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .gallery-item,
  .gallery-item-tall,
  .gallery-item-wide {
    grid-row: auto;
    grid-column: auto;
    height: 240px;
  }

  .lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding: 18px 12px 24px;
  }

  .lightbox-figure {
    grid-row: 2;
    max-height: calc(100vh - 120px);
  }

  .lightbox-figure img {
    max-height: calc(100vh - 190px);
  }

  .lightbox-prev,
  .lightbox-next {
    position: fixed;
    bottom: 18px;
    width: 48px;
    height: 48px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }

  .estimate-form {
    padding: 20px;
  }

  .contact-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .contact-card-icon {
    width: 40px;
    height: 40px;
  }

  .contact-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-card-value {
    font-size: 0.92rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 36px;
  }

  h2 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =====================================================
   REVEAL ANIMATIONS
   ===================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js-ready .hero-copy > *,
  .js-ready .hero-visual,
  .js-ready .trust-card,
  .js-ready .section-head,
  .js-ready .service-card,
  .js-ready .gallery-item,
  .js-ready .process-list li,
  .js-ready .about-image,
  .js-ready .about-copy > *,
  .js-ready .contact-copy > *,
  .js-ready .estimate-form {
    opacity: 0;
    transform: translateY(20px);
  }

  .js-ready .reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 450ms cubic-bezier(0.16, 1, 0.3, 1), transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  
  .js-ready .reveal-delay-1 { transition-delay: 50ms; }
  .js-ready .reveal-delay-2 { transition-delay: 100ms; }
  .js-ready .reveal-delay-3 { transition-delay: 150ms; }
  .js-ready .reveal-delay-4 { transition-delay: 200ms; }
}

/* =====================================================
   Consentimiento del formulario
   ===================================================== */
label.form-consent {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-2);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  cursor: pointer;
  transition: all 0.25s ease;
}

html[data-theme="light"] label.form-consent {
  background: rgba(0, 0, 0, 0.02);
}

label.form-consent:hover {
  border-color: rgba(244, 183, 64, 0.3);
  background: rgba(244, 183, 64, 0.03);
}

.form-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.form-consent input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 42%;
  left: 50%;
  width: 5px;
  height: 10px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-consent:hover input[type="checkbox"] {
  border-color: var(--gold);
}

.form-consent input[type="checkbox"]:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}

html[data-theme="light"] .form-consent input[type="checkbox"]:checked::after {
  border-color: #ffffff; /* White checkmark in light mode too, since gold is background */
}

.form-consent input[type="checkbox"]:checked::after {
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.form-consent span {
  flex: 1 1 auto;
}

.form-consent a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 183, 64, 0.4);
  transition: all 0.2s ease;
}

.form-consent a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Botón con aspecto de enlace (Cookie settings) */
.footer-link-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.footer-link-btn:hover { color: var(--gold); text-decoration: underline; }

/* =====================================================
   Banner de cookies
   ===================================================== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  z-index: 120;
  width: min(100% - 24px, 760px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 320ms ease, opacity 320ms ease;
}
.cookie-banner.is-visible { transform: translate(-50%, 0); opacity: 1; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
}
.cookie-banner-text {
  flex: 1 1 auto;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.cookie-banner-text strong { color: var(--ink); }
.cookie-banner-text a { color: var(--gold); text-decoration: underline; }
.cookie-banner-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
}
.cookie-banner .cookie-btn {
  height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
}
@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-banner-actions { justify-content: flex-end; }
}
