:root {
  --blue-900: #04146f;
  --blue-800: #07248f;
  --blue-700: #153bb9;
  --gray-50: #f4f6ff;
  --gray-100: #e3e9fb;
  --gray-600: #46567a;
  --gray-900: #15203b;
  --white: #ffffff;
  --green: #1d9a53;
  --shadow: 0 10px 24px rgba(4, 20, 111, 0.14);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: clip;
}

img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--gray-50);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

p {
  margin: 0 0 1rem;
  color: var(--gray-600);
}

.topbar {
  background: var(--blue-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(4, 20, 111, 0.25);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-text {
  font-size: 0.93rem;
  line-height: 1.1;
}

.brand-slogan {
  width: min(180px, 100%);
  max-height: 24px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.language-switcher {
  display: flex;
  gap: 0.45rem;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  padding: 0.8rem 1rem;
  min-height: 46px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

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

.btn:focus-visible,
.lang-btn:focus-visible,
.carousel-btn:focus-visible,
.gallery-item-btn:focus-visible,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid #98b8ff;
  outline-offset: 2px;
}

.btn-primary {
  background: var(--blue-900);
  color: var(--white);
}

.btn-secondary {
  background: var(--blue-700);
  color: var(--white);
}

.btn-success {
  background: var(--green);
  color: var(--white);
}

.btn-whatsapp .fa-whatsapp {
  font-size: 1.05rem;
  line-height: 1;
}

.btn-top {
  padding-inline: 0.8rem;
}

.hero {
  background: linear-gradient(180deg, #f3f6ff 0%, #ffffff 100%);
  padding-top: 2.6rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
}

.eyebrow {
  color: var(--blue-700);
  font-weight: 700;
}

.hero-text {
  max-width: 58ch;
}

.cta-group {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
  margin-top: 1.4rem;
}

.trust-points {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--blue-800);
  font-weight: 600;
}

.hero-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  touch-action: pan-y;
  height: clamp(220px, 56vw, 380px);
  width: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-intro {
  max-width: 62ch;
}

.seo-section-text {
  max-width: none;
}

.service-grid,
.system-grid,
.brands-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.card .icon {
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--blue-700);
}

.card .icon i {
  display: block;
}

.two-column {
  display: grid;
  gap: 1.2rem;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--gray-600);
  display: grid;
  gap: 0.45rem;
}

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

.system-showcase-grid {
  display: grid;
  gap: 1rem;
}

.system-showcase-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.folder-carousel {
  margin-top: 0.7rem;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.carousel-btn {
  border: 1px solid var(--gray-100);
  background: var(--white);
  color: var(--blue-800);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.05rem;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  touch-action: pan-x;
}

.carousel-track img {
  width: 100%;
  height: 165px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8faff;
  padding: 0.35rem;
  scroll-snap-align: start;
}

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

.brand-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 0.9rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo-image {
  height: 78px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #f8faff;
  padding: 0.4rem;
}

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

.gallery-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.gallery-item-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  touch-action: manipulation;
}

.gallery-item-btn img {
  width: 100%;
  transition: transform 0.25s ease;
}

.gallery-item-btn:hover img {
  transform: scale(1.02);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 34, 0.78);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox-panel {
  position: relative;
  width: min(100%, 980px);
  background: #0b1d56;
  border: 2px solid #8eb5ff;
  border-radius: 20px;
  padding: 1.1rem 1.1rem 0.75rem;
  box-shadow: 0 22px 50px rgba(1, 8, 28, 0.5);
}

.gallery-lightbox-frame {
  border: 2px solid #d4e3ff;
  border-radius: 14px;
  padding: 0.65rem;
  background: linear-gradient(180deg, #f5f8ff 0%, #e6efff 100%);
}

.gallery-lightbox-image {
  display: block;
  width: 100%;
  max-height: min(74vh, 700px);
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  touch-action: pan-y;
}

.gallery-lightbox-counter {
  margin: 0.8rem 0 0;
  color: #f2f6ff;
  text-align: center;
  font-weight: 600;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  border: 1px solid #c8dafd;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue-900);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.gallery-lightbox-close {
  top: 0.6rem;
  right: 0.6rem;
  font-size: 1.15rem;
}

.gallery-lightbox-prev {
  left: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-next {
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 679px) {
  .gallery-lightbox-nav {
    width: 46px;
    height: 46px;
  }

  .gallery-lightbox-close {
    width: 42px;
    height: 42px;
  }
}

.contact-grid {
  display: grid;
  gap: 1.2rem;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 1rem 0;
}

.contact-line {
  color: var(--gray-900);
}

.contact-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--gray-900);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #c8d3df;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.footer {
  background: var(--blue-900);
  color: var(--white);
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  gap: 1.2rem;
}

.footer h3,
.footer h4,
.footer p {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.mobile-sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(4, 20, 111, 0.95);
  backdrop-filter: blur(6px);
}

.mobile-sticky-actions .btn {
  min-height: 48px;
  font-size: 0.95rem;
}

@media (max-width: 679px) {
  .brand-text-wrap {
    display: none;
  }

  .topbar-cta {
    display: none;
  }

  body {
    padding-bottom: 84px;
  }
}

@media (min-width: 680px) {
  .brand-slogan {
    max-height: 26px;
  }

  .cta-group {
    grid-template-columns: 1fr;
  }

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

  .system-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .system-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brands-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .mobile-sticky-actions {
    display: none;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .two-column {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
