:root {
  --bg: #050505;
  --bg-soft: #0a0f0d;
  --panel: rgba(12, 15, 16, 0.58);
  --panel-strong: rgba(14, 19, 18, 0.78);
  --panel-lite: rgba(255, 255, 255, 0.04);
  --text: #f7faf8;
  --muted: #b4beb7;
  --muted-strong: #d7dfd9;
  --line: rgba(167, 223, 196, 0.12);
  --line-strong: rgba(167, 223, 196, 0.22);
  --accent: #62e0b7;
  --accent-strong: #c7ffe8;
  --accent-soft: rgba(98, 224, 183, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  --shadow-strong: 0 34px 110px rgba(0, 0, 0, 0.62);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: #020403;
  overflow-x: hidden;
}

body:not(.page-ready) .site-header,
body:not(.page-ready) .hero-video-section,
body:not(.page-ready) .site-shell,
body:not(.page-ready) .whatsapp-float {
  opacity: 0;
  transform: translateY(18px) scale(1.01);
}

body.page-ready .site-header,
body.page-ready .hero-video-section,
body.page-ready .site-shell,
body.page-ready .whatsapp-float,
body.page-leaving .site-header,
body.page-leaving .hero-content,
body.page-leaving .site-shell,
body.page-leaving .whatsapp-float {
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 520ms ease;
}

body.page-ready .site-header,
body.page-ready .hero-video-section,
body.page-ready .site-shell,
body.page-ready .whatsapp-float {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.page-leaving .site-header,
body.page-leaving .hero-content,
body.page-leaving .site-shell,
body.page-leaving .whatsapp-float {
  opacity: 0;
  transform: translateY(-12px) scale(0.985);
  filter: blur(10px) saturate(0.9);
}

body,
main,
.site-shell,
.hero,
.section,
.service-grid,
.showcase-grid,
.content-grid,
.contact-grid {
  min-width: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 88%);
  opacity: 0.22;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 59;
  opacity: 0;
  transition: opacity 320ms ease;
  background:
    radial-gradient(circle at 50% 22%, rgba(98, 224, 183, 0.16), transparent 30%),
    linear-gradient(
      180deg,
      rgba(2, 4, 3, 0.02) 0%,
      rgba(2, 4, 3, 0.35) 38%,
      rgba(2, 4, 3, 0.92) 100%
    );
  backdrop-filter: blur(10px) saturate(120%);
}

body.page-leaving::after {
  opacity: 1;
}

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

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

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

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

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin: 0;
  padding: 28px 6vw;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border: 0;
  width: auto;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 28px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(2, 4, 3, 0.28);
  backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav a {
  padding: 8px 0;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: transparent;
  color: #fff;
  background: transparent;
  transform: translateY(-1px);
}

main {
  padding-bottom: 48px;
  background:
    radial-gradient(circle at 20% 10%, rgba(94, 255, 203, 0.08), transparent 30%),
    radial-gradient(circle at 80% 40%, rgba(120, 120, 255, 0.06), transparent 35%),
    #020403;
}

section {
  background: transparent;
}

.section[id] {
  scroll-margin-top: 110px;
}

.hero-video-section .hero-content h1,
.section-heading h1,
.section-heading h2,
.content-card h2,
.service-card h3,
.showcase-card h3,
.timeline-item h3,
.contact-card h2 {
  animation: title-rise 820ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-video-section .hero-content h1 {
  animation-delay: 120ms;
}

.section-heading h1,
.section-heading h2 {
  animation-delay: 80ms;
}

.content-card h2,
.service-card h3,
.showcase-card h3,
.timeline-item h3,
.contact-card h2 {
  animation-delay: 140ms;
}

.page-hero {
  position: relative;
  padding-top: 16px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -20px 0 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(98, 224, 183, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(2, 4, 3, 0.15) 0%, rgba(2, 4, 3, 0.86) 100%);
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .section-heading {
  max-width: 920px;
}

.page-hero-text {
  margin-top: 14px;
  max-width: 70ch;
  color: var(--muted-strong);
}

.hero-video-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #020403;
  color: #fff;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 0;
  opacity: 1;
  filter: none;
  transform: scale(1.03);
  transform-origin: center center;
  transition:
    transform 560ms ease,
    filter 560ms ease;
}

body[data-page="home"] .hero-bg-video {
  object-position: center 24%;
  transform: scale(0.92);
}

body[data-page="about"] .hero-bg-video {
  object-position: 27% 46%;
  transform: scale(1.55);
}

body[data-page="contact"] .hero-bg-video {
  object-position: 8% 6%;
  transform: scale(1.62);
  transform-origin: top left;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.04) 0%,
      rgba(0, 0, 0, 0.10) 45%,
      rgba(2, 4, 3, 0.88) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.42),
      rgba(0, 0, 0, 0.10),
      rgba(0, 0, 0, 0.36)
    );
}

.hero-video-section .hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 0 6vw 10vh;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;
  align-self: flex-end;
  overflow: visible;
  margin: 0;
}

body[data-page="home"] .hero-video-section .hero-content {
  max-width: min(52vw, 760px);
  padding: 14vh 6vw 8vh;
}

.hero-video-section .hero-content::after {
  content: none;
}

.hero-video-section .hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: #7fffd4;
  margin-bottom: 1rem;
}

.hero-video-section .hero-content h1 {
  max-width: 560px;
  font-size: clamp(1.95rem, 4vw, 4.25rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.045em;
}

.hero-video-section .hero-content > p:not(.hero-kicker):not(.hero-trust) {
  max-width: 560px;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

body[data-page="home"] .hero-video-section .hero-content h1 {
  max-width: 100%;
  font-size: clamp(1.75rem, 3.4vw, 3.7rem);
  line-height: 1.02;
}

body[data-page="home"] .hero-video-section .hero-content > p:not(.hero-kicker):not(.hero-trust) {
  max-width: 100%;
  font-size: clamp(0.88rem, 1vw, 1rem);
  text-align: justify;
  text-wrap: pretty;
}

body[data-page="home"] .hero-video-section .hero-kicker {
  margin-bottom: 0.8rem;
}

body[data-page="about"] .hero-video-section .hero-content {
  max-width: min(48vw, 700px);
  padding: 18vh 6vw 11vh;
}

body[data-page="about"] .hero-video-section .hero-content h1 {
  max-width: 100%;
  font-size: clamp(1.65rem, 3.1vw, 3.35rem);
  line-height: 1.03;
}

body[data-page="about"] .hero-video-section .hero-content > p:not(.hero-kicker):not(.hero-trust) {
  max-width: 100%;
  font-size: clamp(0.86rem, 0.95vw, 0.98rem);
  text-wrap: pretty;
}

body[data-page="about"] .hero-video-section .hero-kicker {
  margin-bottom: 0.72rem;
}

body[data-page="about"] .hero-video-section .hero-actions {
  margin-top: 1.35rem;
}

.hero-video-section .hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #7fffd4 0%, #29a67d 100%);
  color: #04110d;
  box-shadow: 0 14px 34px rgba(41, 166, 125, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(127, 255, 212, 0.18);
}

.btn-secondary:hover {
  border-color: rgba(127, 255, 212, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.hero-trust {
  margin-top: 14px;
  max-width: 40ch;
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.5;
}

.section {
  padding: 30px 0;
}

.section-tight {
  padding-top: 20px;
}

.section-heading {
  margin-bottom: 22px;
}

.service-grid,
.showcase-grid,
.content-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.page-hero .content-grid,
.page-hero .contact-grid {
  margin-top: 22px;
}

.service-card,
.showcase-card {
  padding: 26px;
}

.service-card,
.showcase-card,
.content-card,
.contact-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(10, 12, 13, 0.84) 100%);
  border-color: rgba(98, 224, 183, 0.1);
}

.service-card h3,
.showcase-card h3,
.content-card h2,
.contact-card h2,
.timeline-item h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.service-card a,
.contact-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-strong);
}

.service-card a:hover,
.contact-card a:hover,
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(98, 224, 183, 0.14) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(12, 14, 18, 0.88);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
}

.timeline-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: var(--accent-strong);
  background: rgba(98, 224, 183, 0.08);
  border: 1px solid rgba(98, 224, 183, 0.16);
  font-weight: 700;
}

.page-main {
  padding-bottom: 48px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 42px;
  border-top: 1px solid rgba(98, 224, 183, 0.08);
}

.footer-mails {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-mail {
  display: block;
  padding: 4px 0;
}

.site-footer a {
  color: var(--accent-strong);
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: linear-gradient(135deg, #26d07c 0%, #1ba458 100%);
  color: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
  z-index: 35;
  animation: whatsapp-breathe 3.8s ease-in-out infinite;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(98, 224, 183, 0.16);
  opacity: 0;
  transform: scale(0.82);
  animation: whatsapp-ring 3.8s ease-in-out infinite;
  pointer-events: none;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
  animation-play-state: paused;
}

.whatsapp-float:hover::before {
  animation-play-state: paused;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

@keyframes neon-flicker {
  0%,
  10%,
  32%,
  58%,
  100% {
    opacity: 1;
    color: var(--accent-strong);
    text-shadow:
      0 0 8px rgba(98, 224, 183, 0.78),
      0 0 24px rgba(98, 224, 183, 0.28);
  }

  6%,
  18%,
  26%,
  48%,
  68% {
    opacity: 0.28;
    color: rgba(178, 207, 196, 0.42);
    text-shadow: 0 0 1px rgba(98, 224, 183, 0.08);
  }
}

@keyframes neon-logo-flicker {
  0%,
  10%,
  32%,
  58%,
  100% {
    opacity: 1;
    filter:
      drop-shadow(0 0 6px rgba(98, 224, 183, 0.42))
      drop-shadow(0 0 12px rgba(98, 224, 183, 0.16));
  }

  6%,
  18%,
  26%,
  48%,
  68% {
    opacity: 0.34;
    filter:
      grayscale(0.12)
      saturate(0.72)
      brightness(0.85)
      drop-shadow(0 0 3px rgba(98, 224, 183, 0.12))
      drop-shadow(0 0 7px rgba(98, 224, 183, 0.08));
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-scale {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes title-rise {
  0% {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes whatsapp-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-2px) scale(1.03);
  }
}

@keyframes whatsapp-ring {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.82);
  }

  35% {
    opacity: 0.28;
    transform: scale(1);
  }

  70% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.hero-copy,
.hero-content,
.hero-panel,
.service-card,
.showcase-card,
.content-card,
.contact-card,
.timeline-item {
  animation: fade-up 700ms ease both;
}

.hero-panel {
  animation-delay: 120ms;
}

.service-card:nth-child(2n) {
  animation-delay: 80ms;
}

.service-card:nth-child(3n) {
  animation-delay: 160ms;
}

.showcase-card:nth-child(2) {
  animation-delay: 90ms;
}

.showcase-card:nth-child(3) {
  animation-delay: 150ms;
}

.button {
  animation: fade-scale 720ms ease both;
}

@media (max-width: 1100px) {
  .hero-video-section .hero-content {
    max-width: 780px;
    padding: 120px 6vw 88px;
  }

  .hero-video-section .hero-content h1 {
    font-size: clamp(2.8rem, 10vw, 5.5rem);
  }

  .hero,
  .service-grid,
  .showcase-grid,
  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    align-items: start;
    padding-top: 34px;
  }

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

  .hero-copy,
  .hero-content,
  .hero-panel,
  .service-card,
  .showcase-card,
  .content-card,
  .contact-card {
    border-radius: 24px;
  }

  .hero-media {
    inset: 0;
  }
}

@media (max-width: 840px) {
  .site-header {
    padding: 20px 4vw;
  }

  .site-nav {
    justify-content: flex-end;
    gap: 16px;
    padding: 8px 12px;
    background: rgba(2, 4, 3, 0.34);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-mails {
    align-items: flex-start;
  }

}

@media (max-width: 640px) {
  .site-shell {
    width: min(100%, calc(100% - 20px));
  }

  .site-header {
    top: 0;
    padding: 16px 4vw;
  }

  .site-nav {
    width: auto;
    justify-content: flex-end;
    gap: 12px;
    padding: 8px 12px;
  }

  .site-nav a {
    flex: 0 0 auto;
    min-height: 0;
    padding: 6px 0;
    font-size: 0.78rem;
  }

  .hero-video-section {
    align-items: flex-end;
  }

  .hero-video-section .hero-content {
    padding: 92px 20px 64px;
  }

  .hero-video-section .hero-content h1 {
    max-width: none;
    font-size: clamp(2.15rem, 11vw, 3.1rem);
  }

  .hero-video-section .hero-content > p:not(.hero-kicker):not(.hero-trust) {
    font-size: 1rem;
  }

  .hero-video-section .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-video-section .btn {
    width: 100%;
    min-height: 46px;
  }

  .hero {
    padding: 18px 0 24px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .hero-text,
  .section-text,
  .service-card p,
  .showcase-card p,
  .content-card p,
  .timeline-item p,
  .contact-card p,
  .site-footer p {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .hero-copy,
  .hero-content,
  .hero-panel,
  .service-card,
  .showcase-card,
  .content-card,
  .contact-card,
  .timeline-item {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-panel {
    gap: 12px;
  }

  .metric-card {
    padding: 18px;
  }

  .service-card,
  .showcase-card {
    padding: 22px;
  }

  .section-heading h2,
  .section-heading h1 {
    max-width: none;
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 46px;
  }

  .hero-trust {
    font-size: 0.84rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item span {
    width: 48px;
    height: 48px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }

  .hero-bg-video {
    opacity: 1;
  }

  body[data-page="home"] .hero-bg-video {
    transform: scale(0.94);
  }

  body[data-page="about"] .hero-bg-video {
    transform: scale(1.42);
  }

  body[data-page="contact"] .hero-bg-video {
    transform: scale(1.48);
    transform-origin: top left;
  }

  .hero-bg-overlay {
    background:
      radial-gradient(circle at 20% 25%, rgba(94, 255, 203, 0.12), transparent 35%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.82));
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg-video {
    display: none !important;
  }

  .hero-video-section {
    background:
      linear-gradient(180deg, rgba(5, 6, 9, 0.18) 0%, rgba(5, 6, 9, 0.88) 100%),
      url("./public/modelo2.jpg") center center / cover no-repeat;
  }
}
