/* MGS v25 — claridad, consistencia, accesibilidad y conversión */

:root {
  --primary: #0369a1;
  --primary-dark: #075985;
  --accent: #b45309;
  --text: #1e293b;
  --muted: #526176;
  --line: #d9e2ec;
  --light: #f6f9fc;
  --radius: 20px;
  --shadow: 0 18px 46px rgba(15, 23, 42, .11);
}

html {
  scroll-padding-top: 110px;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 11px 16px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .15s ease;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.topbar {
  background: #071426;
}

.topbar a {
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.35);
  text-underline-offset: 3px;
}

.site-header {
  border-bottom-color: rgba(15, 23, 42, .10);
}

.nav-links a,
.nav-dropdown summary {
  min-height: 44px;
}

.nav-links a[aria-current="page"],
.nav-dropdown.is-current summary {
  box-shadow: inset 0 0 0 1px rgba(3, 105, 161, .18);
}

.hero h1,
.page-hero h1,
.section-title h2,
.content h2,
.camera-tech-content h3 {
  text-wrap: balance;
}

.hero-copy > p,
.page-hero p,
.section-title > p {
  text-wrap: pretty;
}

.home-premium .hero.hero-premium::before {
  background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.91) 42%, rgba(255,255,255,.48) 72%, rgba(15,23,42,.14) 100%);
}

.home-premium .hero-premium .hero-copy p {
  color: #263548;
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
}

.home-premium .hero-premium .hero-heading-sm {
  max-width: 800px;
  color: #0b2545;
}

.hero-actions {
  margin-top: 4px;
}

.btn {
  min-height: 48px;
  font-size: .98rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .10);
}

.btn-primary {
  background: #0369a1;
  color: #ffffff;
}

.btn-primary:hover {
  background: #075985;
}

.btn-outline {
  border-width: 2px;
  color: #075985;
}

.hero .btn-secondary {
  border-color: #cbd5e1;
  background: rgba(255,255,255,.92);
}

.hero-trust {
  margin-top: 18px;
}

.home-premium .hero-pill {
  min-height: 40px;
  color: #1e3a5f;
  background: rgba(255,255,255,.86);
  border-color: rgba(3,105,161,.18);
}

.stats-row {
  margin-top: 22px;
}

.home-premium .hero-premium .stats-row .stat {
  border-color: rgba(3,105,161,.16);
  background: rgba(255,255,255,.88);
}

.home-premium .hero-panel-premium {
  background: rgba(7, 20, 38, .91);
  border-color: rgba(255,255,255,.23);
}

.home-premium .hero-panel-premium p,
.home-premium .hero-panel-premium li,
.home-premium .hero-panel-link {
  color: #f1f5f9;
}

.section {
  padding: 78px 0;
}

main > .section {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.section-title {
  margin-bottom: 38px;
}

.section-title h2 {
  color: #0b2545;
}

.section-title p,
.card p,
.content p,
.panel p {
  color: var(--muted);
}

.card,
.panel,
.form-card,
.contact-card,
.logo-item {
  border-color: var(--line);
}

.card {
  position: relative;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .card-link {
  margin-top: auto;
  padding-top: 14px;
  color: #075985;
}

.service-card .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.feature-list li::before {
  color: #0369a1;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: #dbeafe;
}

.proof-item {
  padding: 20px;
  background: #ffffff;
  text-align: center;
}

.proof-item strong {
  display: block;
  margin-bottom: 4px;
  color: #0b2545;
  font-size: 1.08rem;
}

.proof-item span {
  color: var(--muted);
  font-size: .92rem;
}

.process-grid .card {
  padding-top: 66px;
}

.process-step {
  position: absolute;
  top: 22px;
  left: 24px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #075985;
  color: #ffffff;
  font-weight: 900;
}

.service-cta {
  padding-top: 26px;
}

.service-cta .cta-band {
  background: linear-gradient(125deg, #071426, #0b315a 58%, #075985);
}

.service-cta .cta-band p {
  max-width: 720px;
}

.trust-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f0f9ff;
  color: #334155;
  font-size: .92rem;
}

.trust-note::before {
  content: "✓";
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #075985;
  color: #ffffff;
  font-weight: 900;
}

.contact-card {
  background: linear-gradient(155deg, #071426, #0b315a);
}

.contact-card h2 {
  margin-top: 0;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.contact-card p,
.contact-card li {
  color: #e2e8f0;
}

.contact-card a:not(.btn) {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-card h2 {
  margin-top: 0;
  color: #0b2545;
}

.form-field label {
  color: #24364d;
}

.form-field input,
.form-field textarea,
.form-field select {
  border-color: #aebdce;
  background: #ffffff;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: #0369a1;
  box-shadow: 0 0 0 4px rgba(3,105,161,.12);
}

.logo-item img {
  filter: saturate(.86);
  transition: filter .18s ease, transform .18s ease;
}

.logo-item:hover img {
  filter: saturate(1);
  transform: scale(1.03);
}

.page-hero::before {
  background: linear-gradient(90deg, rgba(2, 6, 23, .93), rgba(2, 6, 23, .64), rgba(2,6,23,.30));
}

.page-hero .breadcrumb {
  color: #e0f2fe;
}

.site-footer {
  background: #07101f;
}

.site-footer a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: #cbd5e1;
}

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

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .service-cta {
    padding-top: 12px;
  }
}

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

  .section-title {
    margin-bottom: 26px;
  }

  .proof-item {
    padding: 17px;
  }

  .process-grid .card {
    padding-top: 62px;
  }

  .service-cta .cta-band {
    padding: 25px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .logo-item img,
  .skip-link {
    transition: none;
  }

  .btn:hover,
  .logo-item:hover img {
    transform: none;
  }
}
