/* ==========================================================================
   SERVICE BS.AS — Design tokens
   ========================================================================== */
:root {
  --bg: #12181f;
  --bg-elevated: #1a222c;
  --surface: #1f2933;
  --surface-2: #253039;
  --line: #313d48;
  --line-soft: #262f38;

  --amber: #d68f26;
  --amber-dark: #d68f26;
  --teal: #4fd1c5;
  --red: #e8654f;

  --text: #edeff3;
  --text-muted: #a4b0bc;
  --text-dim: #6f7c89;

  --font-display: 'Archivo Expanded', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --shadow-card: 0 20px 50px -20px rgba(0,0,0,0.55);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; letter-spacing: 0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }
select, input, textarea { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--bg);
  padding: 12px 18px;
  z-index: 999;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--amber);
  color: #1a1305;
  box-shadow: 0 10px 24px -10px rgba(242,167,59,0.55);
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-small { padding: 10px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(18,24,31,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(18,24,31,0.94);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { flex-shrink: 0; line-height: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(14px, 2.1vw, 18px); letter-spacing: 0.01em; white-space: nowrap; }
.brand-name em { color: var(--amber); font-style: normal; }
.brand-tag { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: var(--text-muted); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); }
.header-phone:hover { color: var(--teal); }
.header-phone svg { color: var(--teal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; margin: 0 auto; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 96px;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,209,197,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,209,197,0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 90%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,0.85fr);
  gap: 48px;
  align-items: center;
}

/* Ticket card, used in hero + order form preview */
.ticket-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  flex-wrap: wrap;
}
.ticket-head strong { color: var(--amber); }
.ticket-divider {
  position: relative;
  border-top: 2px dashed var(--line);
  margin: 0 28px;
}
.ticket-divider::before, .ticket-divider::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
}
.ticket-divider::before { left: -39px; }
.ticket-divider::after { right: -39px; }
.ticket-body { padding: 28px; }

.hero-title {
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 700;
  color: var(--text);
}
.hero-sub {
  margin-top: 18px;
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-sub strong { color: var(--text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-microtrust {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.hero-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 480/460;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  opacity: 0;
  animation: fade-in 0.8s ease forwards;
  animation-delay: 0.2s;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.frame-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--teal);
  pointer-events: none;
}
.frame-corner--tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.frame-corner--tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.frame-corner--bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.frame-corner--br { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.frame-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  transform: translateY(calc(-100% - 22px));
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--text);
  background: rgba(18,24,31,0.7);
  padding: 6px 10px;
  border-radius: 999px;
}
@keyframes fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-diagram { opacity: 1; animation: none; }
}

/* ==========================================================================
   Service oficial (brand strip)
   ========================================================================== */
.brands {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line-soft);
  padding: 28px 0;
}
.brands-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}
.brands-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  flex-shrink: 0;
}
.brand-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: var(--radius-s);
  padding: 10px 20px;
}
.brand-logo { height: 24px; width: auto; object-fit: contain; display: block; }
.brand-badge span {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1f26;
  white-space: nowrap;
}

/* ==========================================================================
   Stats / control-panel dial strip
   ========================================================================== */
.stats { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-elevated); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 34px 16px;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: none; }
.dial {
  --rot: 0deg;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2.5px solid var(--surface-2);
  background: radial-gradient(circle at 35% 30%, #2a3542, #171f27);
  position: relative;
}
.dial-tick {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 3px;
  height: 12px;
  background: var(--amber);
  border-radius: 2px;
  transform-origin: 50% 19px;
  transform: translateX(-50%) rotate(var(--rot));
}
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-muted); max-width: 20ch; }

/* ==========================================================================
   Section shell
   ========================================================================== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-elevated); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  max-width: 20ch;
}
.section-sub {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 60ch;
}

/* ==========================================================================
   Services grid
   ========================================================================== */
.services-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 30px 24px;
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--surface); }
.service-icon { width: 34px; height: 34px; color: var(--amber); margin-bottom: 16px; }
.service-card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 13.8px; color: var(--text-muted); }

/* ==========================================================================
   Process
   ========================================================================== */
.process {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-step { position: relative; padding-top: 8px; border-top: 2px solid var(--line); }
.process-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 14px;
}
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-muted); }

/* ==========================================================================
   Zones accordion
   ========================================================================== */
.zones { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.zone {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  overflow: hidden;
}
.zone summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.zone summary::-webkit-details-marker { display: none; }
.zone .chev { color: var(--text-dim); transition: transform 0.25s ease; flex-shrink: 0; }
.zone[open] .chev { transform: rotate(180deg); color: var(--teal); }
.zone p {
  padding: 0 24px 24px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ==========================================================================
   Portfolio + Lightbox
   ========================================================================== */
.portfolio-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.portfolio-item { position: relative; }
.portfolio-btn {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--surface);
}
.portfolio-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-btn:hover img { transform: scale(1.06); }
.portfolio-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(18,24,31,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.portfolio-btn:hover .portfolio-zoom,
.portfolio-btn:focus-visible .portfolio-zoom { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(9,12,16,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lb-figure { max-width: min(900px, 90vw); max-height: 84vh; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-figure img { max-width: 100%; max-height: 70vh; border-radius: var(--radius-s); object-fit: contain; box-shadow: var(--shadow-card); }
.lb-counter { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.lb-close, .lb-nav {
  position: absolute;
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.14); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Order form + ticket preview
   ========================================================================== */
.order-layout {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,0.85fr);
  gap: 40px;
  align-items: start;
}
.order-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  padding: 13px 16px;
  color: var(--text);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.form-hint { font-size: 13px; color: var(--text-dim); text-align: center; }
.form-hint a { color: var(--teal); font-weight: 600; }

.ticket-card--preview { position: sticky; top: 100px; }
.ticket-body--preview { display: flex; flex-direction: column; gap: 20px; }
.ticket-fields { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.ticket-fields > div { display: flex; flex-direction: column; gap: 3px; }
.ticket-fields dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }
.ticket-fields dd { margin: 0; font-size: 15px; color: var(--text); }
.ticket-stamp {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 50%;
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  transform: rotate(-12deg);
  opacity: 0.85;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--bg-elevated); border-top: 1px solid var(--line-soft); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
.footer-brand p { margin-top: 14px; color: var(--text-muted); font-size: 14px; max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.footer-col a { font-size: 14.5px; color: var(--text-muted); }
.footer-col a:hover { color: var(--teal); }
.footer-legal {
  border-top: 1px solid var(--line-soft);
  padding: 22px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-legal p { font-size: 12.5px; color: var(--text-dim); max-width: 90ch; }

/* ==========================================================================
   WhatsApp float
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #0b1a10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,0.6);
  z-index: 150;
  animation: pulse-wa 2.6s ease-in-out infinite;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 12px 28px -8px rgba(37,211,102,0.6); }
  50% { box-shadow: 0 12px 32px -6px rgba(37,211,102,0.85), 0 0 0 8px rgba(37,211,102,0.12); }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float { animation: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-diagram { max-width: 420px; margin: 0 auto; order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(odd) { border-left: none; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .order-layout { grid-template-columns: 1fr; }
  .ticket-card--preview { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone span { display: none; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px;
    gap: 4px;
  }
  .main-nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }

  .ticket-head { padding: 16px 20px; }
  .ticket-divider { margin: 0 20px; }
  .ticket-body { padding: 22px 20px; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; padding-bottom: 32px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}