:root {
  --bg-deep: #071522;
  --bg: #0b1f33;
  --bg-elevated: #122a42;
  --bg-soft: #17324d;
  --ice: #56c4e8;
  --ice-bright: #8ad7f0;
  --ice-dim: rgba(86, 196, 232, 0.16);
  --text: #e8f2f8;
  --text-muted: #9db4c7;
  --line: rgba(138, 215, 240, 0.18);
  --ok: #25d366;
  --shadow: 0 24px 60px rgba(2, 12, 24, 0.45);
  --radius: 18px;
  --container: 1120px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(86, 196, 232, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(34, 110, 160, 0.22), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 40%, #0a1a2b 100%);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ice);
  color: var(--bg-deep);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(7, 21, 34, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.brand em {
  font-style: normal;
  color: var(--ice-bright);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, var(--ice-bright), transparent 45%),
    linear-gradient(145deg, #1a4a6b, #0d2a44);
  box-shadow: inset 0 0 0 1px rgba(138, 215, 240, 0.35);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 38% 22% auto;
  height: 3px;
  border-radius: 999px;
  background: var(--ice);
  box-shadow: 0 5px 0 -1px rgba(86, 196, 232, 0.45);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 42, 66, 0.7);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn:focus-visible {
  outline: 2px solid var(--ice-bright);
  outline-offset: 3px;
}

.btn-sm {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ice) 0%, #3aa7d1 100%);
  color: #042033;
  box-shadow: 0 10px 30px rgba(86, 196, 232, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(86, 196, 232, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(138, 215, 240, 0.35);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(86, 196, 232, 0.1);
}

.btn-whatsapp {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.45);
  color: #b8f5ce;
}

.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.24);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 21, 34, 0.35) 0%, rgba(7, 21, 34, 0.55) 40%, rgba(7, 21, 34, 0.92) 100%),
    linear-gradient(90deg, rgba(7, 21, 34, 0.75) 0%, rgba(7, 21, 34, 0.35) 55%, rgba(7, 21, 34, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 10vh, 6rem) 0 clamp(3.5rem, 8vh, 5rem);
  max-width: 720px;
  margin-left: max(1rem, calc((100% - var(--container)) / 2));
  margin-right: 1rem;
  animation: heroFade 1s ease both;
}

.hero-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ice-bright);
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.services {
  background:
    linear-gradient(180deg, transparent, rgba(18, 42, 66, 0.35) 20%, transparent 100%);
}

.service-block + .service-block {
  margin-top: 3rem;
}

.service-group-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.service-item {
  padding: 0 0 1.1rem;
}

.service-visual {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  margin-bottom: 0.95rem;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.service-item:hover .service-visual img {
  transform: scale(1.06);
}

.service-item h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.service-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Why */
.why {
  position: relative;
}

.why::before {
  content: "";
  position: absolute;
  inset: 10% 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(86, 196, 232, 0.04) 48px,
      rgba(86, 196, 232, 0.04) 49px
    );
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.why-inner {
  position: relative;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(145deg, rgba(18, 42, 66, 0.85), rgba(11, 31, 51, 0.65));
  box-shadow: var(--shadow);
}

.why-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-list li {
  display: grid;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.why-list strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.why-list span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.gallery-item {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-elevated);
  aspect-ratio: 1;
  position: relative;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 21, 34, 0.45));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 100%;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 700;
}

.contact-list a {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-list a:hover {
  color: var(--ice-bright);
  border-bottom-color: rgba(138, 215, 240, 0.5);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 360px;
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  filter: grayscale(0.25) contrast(1.05);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 5.5rem;
  background: rgba(4, 14, 24, 0.55);
}

.footer-inner {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* WhatsApp FAB */
.wa-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2fe075, #1fb855);
  color: #053818;
  box-shadow: 0 12px 30px rgba(31, 184, 85, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fabPulse 2.8s ease-in-out infinite;
}

.wa-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 36px rgba(31, 184, 85, 0.5);
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(31, 184, 85, 0.4); }
  50% { box-shadow: 0 12px 30px rgba(31, 184, 85, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.12); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 10, 18, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-image {
  max-width: min(96vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(18, 42, 66, 0.85);
  color: var(--text);
  cursor: pointer;
  border-radius: 12px;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-list {
    grid-template-columns: 1fr;
  }

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

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-row: span 1;
    aspect-ratio: 1;
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(7, 21, 34, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid rgba(138, 215, 240, 0.08);
  }

  .site-nav .btn {
    margin-top: 0.5rem;
    width: 100%;
  }

  .hero-content {
    margin-left: 1rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img,
  .wa-fab,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
