/* Splash intro + hero full-screen */

body.gs-splash-active {
  overflow: hidden;
}

body.gs-splash-active .gs-site-header,
body.gs-splash-active .gs-whatsapp-float,
body.gs-splash-active .gs-progress-bar,
body.gs-splash-active .gs-animated-bg {
  visibility: hidden;
  pointer-events: none;
}

/* ── Splash overlay ── */
.gs-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #052e26;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.gs-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gs-splash__stage {
  width: min(72vw, 320px);
  max-height: min(72vw, 320px);
  aspect-ratio: 1;
}

.gs-splash__stage svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.gs-splash__stage #text-coberturas {
  visibility: hidden;
}

/* ── Hero intro (post-splash) ── */
.gs-hero-intro {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  padding-bottom: clamp(5.5rem, 13vh, 7rem);
}

.gs-hero-intro__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(1.04);
  will-change: transform;
}

.gs-hero-intro__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-hero-intro__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 46, 38, 0.55) 0%, rgba(5, 46, 38, 0.72) 45%, rgba(5, 46, 38, 0.85) 100%);
}

.gs-hero-intro__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 720px;
  background: transparent;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

body.gs-splash-done .gs-hero-intro__content,
body:not(.gs-splash-active) .gs-hero-intro__content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gs-hero-intro__logo {
  width: clamp(14rem, 50vw, 28rem);
  height: auto;
  margin: 0 auto;
  display: block;
  background: transparent;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.22));
}

.gs-hero-intro__scroll {
  position: absolute;
  bottom: clamp(1.25rem, 3vh, 2rem);
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.5s ease 0.2s, color 0.2s ease;
}

body.gs-splash-done .gs-hero-intro__scroll,
body:not(.gs-splash-active) .gs-hero-intro__scroll.is-visible {
  opacity: 1;
}

.gs-hero-intro__scroll:hover {
  color: #fff;
}

.gs-hero-intro__scroll svg {
  animation: gs-hero-scroll-bounce 2s ease-in-out infinite;
}

@keyframes gs-hero-scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ── Header sobre hero ── */
.gs-site-header {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gs-site-header--hero {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.gs-site-header--hero .gs-nav-link {
  color: rgba(255, 255, 255, 0.88);
}

.gs-site-header--hero .gs-nav-link:hover {
  color: #fff;
}

.gs-site-header--hero .gs-nav-link::after {
  background: rgba(255, 255, 255, 0.85);
}

.gs-site-header--hero .gs-brand-text,
.gs-site-header--hero .gs-brand-sub {
  color: #fff;
}

.gs-site-header--hero .gs-brand-sub {
  color: rgba(236, 253, 245, 0.75);
}

.gs-site-header--hero #mobileToggle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.gs-site-header--solid {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  border-bottom-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.gs-site-header--solid .gs-nav-link {
  color: #334155;
}

.gs-site-header--solid .gs-brand-text {
  color: #052e26;
}

.gs-site-header--solid .gs-brand-sub {
  color: #047857;
}

.gs-site-header--solid #mobileToggle {
  background: #052e26;
  border: none;
}

.gs-crm-login--hero {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.5rem 1rem;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.08);
}

.gs-crm-login--hero:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.gs-site-header--solid .gs-crm-login--hero {
  color: #475569;
  border: none;
  background: transparent;
  backdrop-filter: none;
  padding: 0.45rem 0.7rem;
}

.gs-site-header--solid .gs-crm-login--hero:hover {
  color: #065f46;
  background: rgba(6, 78, 59, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .gs-hero-intro__scroll svg {
    animation: none;
  }

  .gs-splash,
  .gs-hero-intro__content,
  .gs-hero-intro__scroll {
    transition: none;
  }
}
