:root {
  --bg: #071018;
  --bg-soft: #0c1c27;
  --surface: #ffffff;
  --surface-soft: #f4f8fb;
  --text: #10202b;
  --muted: #617282;
  --light: #eaf9ff;
  --line: rgba(22, 180, 217, 0.18);
  --blue: #0877d6;
  --cyan: #19d3e6;
  --teal: #00bfa6;
  --shadow: 0 18px 50px rgba(5, 21, 33, 0.16);
  --radius: 8px;
  --header-height: 76px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 16, 24, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 158px;
  height: auto;
  filter:
    drop-shadow(0 0 10px rgba(25, 211, 230, 0.24))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.1vw, 34px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  font-weight: 600;
}

.main-nav a:not(.btn) {
  transition: color 180ms ease;
}

.main-nav a:not(.btn):hover {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  place-items: center;
  padding: 11px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0.82rem 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #03141b;
  background: linear-gradient(135deg, var(--cyan), #7cf7ff);
  box-shadow: 0 14px 32px rgba(25, 211, 230, 0.22);
}

.btn-whatsapp {
  color: #04140f;
  background: linear-gradient(135deg, #23e58f, #8af7bd);
  box-shadow: 0 14px 32px rgba(35, 229, 143, 0.18);
}

.btn-small {
  width: 100%;
  min-height: 42px;
  color: #052333;
  background: #e8fbff;
  border-color: rgba(25, 211, 230, 0.3);
}

.btn-large {
  min-width: 210px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(25, 211, 230, 0.2), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(8, 119, 214, 0.28), transparent 34%),
    linear-gradient(145deg, #050b12 0%, #092337 52%, #071018 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.hero-grid {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  padding-block: 56px 64px;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 8vw, 5.15rem);
  line-height: 0.97;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.03rem, 1.1vw, 1.18rem);
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: min(100%, 420px);
}

.hero-visual {
  width: 100%;
  min-width: 0;
}

.hero-image-wrap {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-height: 320px;
  place-items: center;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: 6% 0 0;
  z-index: -2;
  border-radius: 28px;
  background:
    radial-gradient(circle at 52% 35%, rgba(25, 211, 230, 0.26), transparent 44%),
    radial-gradient(circle at 72% 70%, rgba(35, 229, 143, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.025);
  filter: blur(2px);
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 9% 4% 9%;
  z-index: -1;
  height: 28%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  filter: blur(28px);
}

.hero-image {
  width: auto;
  max-width: min(100%, 680px);
  max-height: min(700px, calc(100svh - 150px));
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 26px 52px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 28px rgba(25, 211, 230, 0.2));
  transform: translateY(0);
  animation: heroFloat 5.5s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.section {
  padding-block: 68px;
}

.about {
  background: var(--surface-soft);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 32px;
}

.section-heading h2,
.cta h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.cta p {
  color: var(--muted);
  font-size: 1.04rem;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.service-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(8, 119, 214, 0.1);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(5, 21, 33, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 211, 230, 0.28);
  box-shadow: 0 18px 38px rgba(5, 21, 33, 0.1);
}

.service-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: var(--radius);
  color: #06334a;
  background: #dff9ff;
  font-weight: 900;
}

.service-card h3,
.project-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.service-card p,
.project-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.projects {
  color: #ffffff;
  background: linear-gradient(180deg, #071018 0%, #0b1b26 100%);
}

.section-heading-light p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(25, 211, 230, 0.42);
}

.project-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #dceaf0;
  cursor: zoom-in;
  padding: 0;
}

.project-media::after {
  content: "Ampliar";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(5, 15, 24, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-media:hover::after,
.project-media:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.project-media:focus-visible {
  outline: 3px solid rgba(25, 211, 230, 0.75);
  outline-offset: -3px;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 220ms ease;
}

.project-card:hover .project-media img,
.project-media:focus-visible img {
  transform: scale(1.025);
}

.project-body {
  display: grid;
  min-height: 210px;
  flex: 1;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 20px;
}

.cta {
  padding-block: 72px;
  background: #ffffff;
}

.image-modal {
  width: min(960px, calc(100vw - 28px));
  max-height: min(900px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid rgba(25, 211, 230, 0.22);
  border-radius: 14px;
  color: #ffffff;
  background: #06111a;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.image-modal::backdrop {
  background: rgba(2, 8, 14, 0.78);
  backdrop-filter: blur(8px);
}

.image-modal-inner {
  display: grid;
  max-height: inherit;
  grid-template-rows: auto minmax(0, 1fr);
}

.image-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.image-modal-header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-close {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(25, 211, 230, 0.16);
}

.image-modal-frame {
  max-height: calc(100vh - 108px);
  overflow: auto;
  background: #071018;
}

.image-modal-frame img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.cta-inner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 34px 24px;
  border: 1px solid rgba(25, 211, 230, 0.2);
  border-radius: 16px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 18%, rgba(35, 229, 143, 0.22), transparent 30%),
    radial-gradient(circle at 12% 20%, rgba(25, 211, 230, 0.2), transparent 32%),
    linear-gradient(135deg, #06111a 0%, #08283b 58%, #071018 100%);
  box-shadow: 0 24px 70px rgba(5, 21, 33, 0.2);
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
}

.cta-inner > * {
  position: relative;
}

.cta h2 {
  max-width: 700px;
  color: #ffffff;
}

.cta p {
  max-width: 710px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #050b12;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  padding-block: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 164px;
  height: auto;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 1.04rem;
}

.footer-brand p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.94rem;
}

.footer-link {
  color: var(--cyan);
  font-weight: 800;
}

@media (max-width: 767px) {
  .menu-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: rgba(5, 11, 18, 0.98);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .menu-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 14px 12px;
  }

  .main-nav .nav-whatsapp {
    margin-top: 8px;
  }

  .hero-actions .btn {
    min-height: 50px;
  }

  .hero-image-wrap {
    min-height: 250px;
    margin-top: 6px;
  }

  .hero-image {
    max-width: min(100%, 420px);
    max-height: 420px;
  }
}

@media (min-width: 560px) {
  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 470px);
  }

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

@media (min-width: 720px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  :root {
    --header-height: 80px;
  }

  .container {
    width: min(var(--container), calc(100% - 56px));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
    min-height: 660px;
    padding-block: 76px 88px;
  }

  .hero-content {
    max-width: none;
  }

  .hero-image {
    max-width: min(100%, 620px);
    max-height: 560px;
  }

  .cta-inner,
  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .cta-inner {
    padding: 44px;
  }

  .footer-actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-height: 84px;
  }

  .brand img {
    width: 176px;
  }

  .section {
    padding-block: 92px;
  }

}

@media (min-width: 1000px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(500px, 0.95fr);
    min-height: clamp(720px, calc(100svh - var(--header-height) - 52px), 880px);
    gap: 56px;
  }

  .hero-image {
    max-width: min(100%, 760px);
    max-height: 720px;
  }

  .project-body {
    min-height: 218px;
    padding: 22px;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 26px, var(--container));
  }

  .brand img {
    width: 148px;
  }

  h1 {
    font-size: 2.28rem;
  }

  .hero-image {
    max-height: 390px;
  }
}
