:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-2: #0e1626;
  --card: #111c30;
  --line: rgba(148, 163, 184, 0.14);
  --line-soft: rgba(148, 163, 184, 0.08);
  --text: #eef2f7;
  --muted: #97a3b6;
  --accent: #4f8ef7;
  --accent-2: #79a9ff;
  --accent-soft: rgba(79, 142, 247, 0.12);
  --green: #25d366;
  --radius: 10px;
  --container: min(1140px, calc(100vw - 40px));
  --header-h: 76px;
  --shadow: 0 16px 40px rgba(2, 8, 20, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: var(--container); margin: 0 auto; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.25); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
  min-height: var(--header-h);
  padding: 12px max(20px, calc((100vw - 1140px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(2, 8, 20, 0.5); }

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 142, 247, 0.25);
  color: var(--accent-2);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; line-height: 1.15; }
.brand small {
  color: var(--muted); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; width: 40px; height: 40px; justify-content: center;
}
.nav-toggle span {
  display: block; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: 0.3s;
}

.site-nav {
  display: flex; justify-content: center; gap: 26px;
  font-size: 14.5px; font-weight: 600;
}
.site-nav a {
  position: relative; padding: 10px 0;
  color: var(--muted);
  transition: color 0.2s;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 5px;
  height: 2px; border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #3a72d8);
  color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 22px rgba(79, 142, 247, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.header-call:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(79, 142, 247, 0.36); }
.header-call svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  isolation: isolate;
  display: grid; align-items: center;
  min-height: min(720px, calc(100svh - var(--header-h)));
  overflow: hidden;
}

.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media { z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.96) 0%, rgba(11, 18, 32, 0.82) 42%, rgba(11, 18, 32, 0.45) 75%, rgba(11, 18, 32, 0.65) 100%),
    linear-gradient(0deg, rgba(11, 18, 32, 0.95) 0%, rgba(11, 18, 32, 0.1) 40%, rgba(11, 18, 32, 0.5) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(280px, 360px);
  gap: 56px; align-items: center;
  padding: 64px 0;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(17, 28, 48, 0.7);
  font-size: 13px; font-weight: 600;
  color: var(--text);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800; line-height: 1.04;
  letter-spacing: -0.01em;
}
.hero h1 span {
  display: block;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--accent-2);
  margin-top: 10px;
}

.hero-text {
  max-width: 560px; margin: 18px 0 0;
  color: #c3cddc; font-size: 17px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg {
  width: 19px; height: 19px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn .wa-icon { fill: currentColor; stroke: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #3a72d8);
  color: #fff;
  box-shadow: 0 10px 26px rgba(79, 142, 247, 0.3);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(79, 142, 247, 0.4); }

.btn-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
  color: #5ce598;
}
.btn-whatsapp:hover { background: rgba(37, 211, 102, 0.2); }

.btn-outline {
  border-color: var(--line);
  background: rgba(17, 28, 48, 0.5);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); }

.hero-phone {
  display: inline-block; margin-top: 26px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; line-height: 1;
  color: var(--text);
}
.hero-phone:hover { color: var(--accent-2); }

.hero-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.hero-card img {
  width: 100%; height: 250px;
  object-fit: cover;
}
.hero-card-body { padding: 18px 20px; }
.hero-card-body strong {
  display: block; font-size: 17px;
  line-height: 1.35;
}
.hero-card-meta {
  display: flex; gap: 14px; margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--muted); font-weight: 600;
}

/* ============ STRIP ============ */
.service-strip {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid a {
  min-height: 66px;
  display: grid; place-items: center;
  padding: 14px;
  border-right: 1px solid var(--line);
  font-weight: 600; font-size: 14px;
  color: var(--muted); text-align: center;
  transition: color 0.2s, background 0.2s;
}
.strip-grid a:last-child { border-right: none; }
.strip-grid a:hover { color: var(--text); background: rgba(79, 142, 247, 0.06); }

/* ============ SECTIONS ============ */
.section { padding: 88px 0; }

.section-heading { margin-bottom: 46px; max-width: 560px; }
.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -0.01em;
}
.section-heading h2::before {
  content: '';
  display: block;
  width: 42px; height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 18px;
}
.section-heading p { color: var(--muted); font-size: 16px; margin: 0; }

/* ============ SERVICES ============ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.service-card {
  padding: 28px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 142, 247, 0.4);
  box-shadow: var(--shadow);
}
.sc-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  margin-bottom: 18px;
}
.sc-icon svg { width: 26px; height: 26px; }
.service-card h3 {
  margin: 0 0 8px;
  font-size: 18px; font-weight: 700;
}
.service-card p {
  margin: 0;
  font-size: 14.5px; color: var(--muted);
}

/* ============ AREA ============ */
.area { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.area-layout {
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  gap: 56px; align-items: center;
}
.area-text h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800; line-height: 1.12;
}
.area-text h2::before {
  content: '';
  display: block;
  width: 42px; height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 18px;
}
.area-text p { color: var(--muted); margin: 0; font-size: 16px; }

.area-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.area-tags span {
  padding: 11px 20px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px; font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.area-tags span:hover {
  border-color: rgba(79, 142, 247, 0.5);
  background: var(--accent-soft);
}

/* ============ EMERGENCY ============ */
.emergency { padding: 88px 0; }
.emergency-panel {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 28px;
  padding: 44px 48px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(480px 240px at 12% 0%, rgba(79, 142, 247, 0.12), transparent),
    var(--card);
  box-shadow: var(--shadow);
}
.em-content h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
}
.em-content p { color: var(--muted); font-size: 16.5px; margin: 0; }
.em-content strong { color: var(--accent-2); }
.em-actions { display: flex; gap: 13px; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.footer-grid {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13.5px; color: var(--muted);
}
.footer-grid a { color: var(--text); font-weight: 700; }
.footer-grid a:hover { color: var(--accent-2); }

/* ============ FLOATING CONTACT ============ */
.floating-contact {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 100;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end;
}
.float-call, .float-whatsapp {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 10px 26px rgba(2, 8, 20, 0.45);
  transition: transform 0.2s;
}
.float-call:hover, .float-whatsapp:hover { transform: translateY(-2px); }
.float-call {
  background: linear-gradient(135deg, var(--accent), #3a72d8);
  color: #fff;
}
.float-whatsapp { background: var(--green); color: #fff; }
.float-call svg, .float-whatsapp svg {
  width: 19px; height: 19px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.float-whatsapp svg { fill: currentColor; stroke: none; }

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

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 56px; }
  .hero-card { max-width: 440px; }
  .area-layout { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 12px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(11, 18, 32, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 24px; border-bottom: 1px solid var(--line-soft); }
  .site-nav a::after { display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .header-call { min-height: 42px; padding: 0 14px; font-size: 13.5px; }
  .header-call svg { display: none; }

  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid a { border-bottom: 1px solid var(--line); }
  .strip-grid a:nth-child(odd) { border-right: 1px solid var(--line); }
  .strip-grid a:nth-child(even) { border-right: none; }
  .strip-grid a:nth-last-child(-n+2) { border-bottom: none; }

  .section { padding: 64px 0; }
  .emergency { padding: 64px 0; }
  .emergency-panel { padding: 32px 26px; flex-direction: column; align-items: flex-start; }

  .float-call span, .float-whatsapp span { display: none; }
  .float-call, .float-whatsapp { padding: 14px; border-radius: 50%; }
}

@media (max-width: 480px) {
  .strip-grid { grid-template-columns: 1fr; }
  .strip-grid a { border-right: none !important; border-bottom: 1px solid var(--line); }
  .strip-grid a:last-child { border-bottom: none; }
}
