:root {
  --bg: #0b0e14;
  --bg-alt: #10141d;
  --surface: #161b26;
  --surface-hover: #1d2330;
  --text: #eef1f6;
  --text-muted: #9aa4b6;
  --border: #262d3d;
  --accent: #ff7a33;
  --accent-2: #17c3b2;
  --accent-contrast: #0b0e14;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --header-h: 72px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f8fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f0f2f7;
  --text: #14161f;
  --text-muted: #565f73;
  --border: #e4e7ee;
  --shadow: 0 10px 30px rgba(20,22,31,0.08);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f8fb;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-hover: #f0f2f7;
    --text: #14161f;
    --text-muted: #565f73;
    --border: #e4e7ee;
    --shadow: 0 10px 30px rgba(20,22,31,0.08);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0b0e14;
}
.brand-logo img {
  position: absolute;
  width: 220%;
  height: 220%;
  max-width: none;
  top: -32%;
  left: -60%;
}
.brand-accent { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
}
.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  height: 38px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { background: var(--surface-hover); transform: translateY(-1px); }
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.lang-flag {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.lang-flag svg { width: 100%; height: 100%; display: block; }
.lang-flag:hover { transform: translateY(-1px); }
.lang-flag.is-active {
  border: 3px solid var(--accent);
  transform: scale(1.08);
}
.theme-toggle-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.icon-bulb-on { display: none; color: var(--accent); }
:root[data-theme="light"] .icon-bulb-off { display: none; }
:root[data-theme="light"] .icon-bulb-on { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-bulb-off { display: none; }
  :root:not([data-theme="dark"]) .icon-bulb-on { display: block; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff9a5a);
  color: #14161f;
  box-shadow: 0 8px 24px rgba(255,122,51,0.35);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface); }
.btn-whatsapp {
  background: #25D366;
  color: #06301a;
}
.btn-block { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 30%;
  filter: blur(2px);
  opacity: 0.5;
  animation: float 10s ease-in-out infinite;
}
.shape-cube {
  width: 160px; height: 160px;
  top: 10%; right: 8%;
  background: linear-gradient(135deg, var(--accent), transparent);
  transform: rotate(20deg);
  border-radius: 24px;
}
.shape-sphere {
  width: 220px; height: 220px;
  bottom: -60px; left: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-2), transparent 70%);
  animation-delay: -3s;
}
.shape-ring {
  width: 260px; height: 260px;
  top: -80px; left: 40%;
  border: 2px solid var(--accent-2);
  border-radius: 50%;
  opacity: 0.25;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(8deg); }
}

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 780px; margin: 0 auto; }
.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 auto 32px;
  max-width: 640px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero-badges {
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.1rem; margin: 0 0 10px; }
.card p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 14px; }
.price { font-weight: 800; color: var(--accent); font-size: 1.05rem; margin-bottom: 14px !important; }
.card-link { font-weight: 700; color: var(--accent-2); font-size: 0.9rem; }
.tech-item .card-link { display: inline-block; margin-top: 10px; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

.subsection-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin: 64px 0 24px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.video-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 4 / 3;
}
.video-item.portrait { aspect-ratio: 9 / 16; }
.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4,5,8,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px 20px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(90vw, 900px); text-align: center; }
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox figcaption {
  color: #eef1f6;
  margin-top: 14px;
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* Tech grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.tech-item {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.tech-item h4 { margin: 0 0 8px; color: var(--accent-2); }
.tech-item p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.step { position: relative; padding-left: 8px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0e14;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h4 { margin: 0 0 8px; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* Areas */
.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.area-pills span {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.area-note {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.area-note strong { color: var(--text); }

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 20px;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); margin: 0 0 16px; font-size: 0.92rem; line-height: 1.6; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list a { font-weight: 600; }
.contact-list a:hover { color: var(--accent); }

.quote-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row-split { flex-direction: row; gap: 16px; }
.form-row-split > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
input, textarea, select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
select { appearance: none; cursor: pointer; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin: -6px 0 0; }
.form-success { font-size: 0.9rem; font-weight: 700; color: var(--accent-2); text-align: center; margin: -6px 0 0; }
.hidden-field { position: absolute; left: -9999px; }

.file-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 22px 14px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.file-drop:hover { border-color: var(--accent); color: var(--text); }
.file-drop.is-dragover { border-color: var(--accent); background: var(--surface); color: var(--text); }
.file-drop.has-file { border-style: solid; border-color: var(--accent-2); color: var(--text); }

.file-upload-status { font-size: 0.8rem; color: var(--text-muted); margin: 6px 0 0; }
.file-upload-status.is-error { color: #e5484d; }
.file-upload-status.is-done { color: var(--accent-2); }

.file-hint { font-size: 0.78rem; color: var(--text-muted); margin: 6px 0 0; }

.file-upload-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.file-upload-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}
.file-upload-list .file-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-upload-list .file-row-status { flex-shrink: 0; color: var(--text-muted); }
.file-upload-list li.is-done .file-row-status { color: var(--accent-2); }
.file-upload-list li.is-error .file-row-status { color: #e5484d; }
.file-upload-list .file-row-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
}
.file-upload-list .file-row-remove:hover { color: #e5484d; }

.btn-add-file {
  margin-top: 10px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-add-file:hover { border-color: var(--accent); color: var(--accent); }
.btn-add-file:disabled { opacity: 0.5; cursor: not-allowed; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 24px; background: var(--bg-alt); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; max-width: 260px; }
.footer-contact p { margin: 4px 0; color: var(--text-muted); }
.footer-contact a:hover, .footer-social a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 18px; font-weight: 600; }
.footer-copy { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin: 0; }

/* Floating WhatsApp */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #06301a;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(37,211,102,0.45);
  z-index: 90;
  transition: transform 0.2s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }

.fab-top {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(255,122,51,0.4);
  z-index: 90;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fab-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab-top:hover { transform: scale(1.08); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .theme-toggle-label { display: none; }
  .theme-toggle { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: -100vh;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    transition: top 0.25s ease;
  }
  .main-nav.is-open { top: var(--header-h); }
  .nav-toggle { display: flex; }
  .header-actions .btn-whatsapp { display: none; }
  .form-row-split { flex-direction: column; }
  .lang-switcher { gap: 4px; max-width: 40vw; overflow-x: auto; }
  .lang-flag { width: 28px; height: 28px; font-size: 0.9rem; }
}

/* Service detail pages */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.breadcrumb a { color: var(--text-muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin: 0 0 20px; }
.prose h2 { font-size: 1.5rem; margin: 0 0 16px; }
.prose ul { color: var(--text-muted); line-height: 1.8; padding-left: 20px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose li strong { color: var(--text); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.related-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.related-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.related-card .card-icon { font-size: 1.6rem; margin-bottom: 10px; }
.related-card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.related-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0 0 10px; }
.related-card span { color: var(--accent-2); font-weight: 700; font-size: 0.85rem; }

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

/* Before / after case cards */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 8px;
}
.ba-case {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ba-pair .gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}
.ba-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(10,12,16,0.82);
  color: #fff;
  pointer-events: none;
}
.ba-tag.after { background: var(--accent); color: #14161f; }
.ba-case figcaption {
  margin-top: 12px;
  padding: 0 4px 4px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
