/* --- Tokens --- */
:root {
  --color-bg: #060d18;
  --color-bg-elevated: rgba(12, 28, 52, 0.72);
  --color-yellow: #fcd116;
  --color-yellow-bright: #ffe566;
  --color-blue: #003893;
  --color-red: #ce1126;
  --color-green: #1a8f4c;
  --color-text: #f4f7fb;
  --color-text-muted: #a8b8d0;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1da851;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow-glow: 0 0 60px rgba(252, 209, 22, 0.25);
  --header-h: 4.5rem;
  --sticky-h: 3.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  padding-bottom: calc(var(--sticky-h) + 1rem);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
}

code {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}

/* --- Animated background --- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 200deg at 50% 50%,
    #060d18 0deg,
    var(--color-blue) 80deg,
    #0a2540 140deg,
    var(--color-green) 200deg,
    #0a1628 260deg,
    var(--color-yellow) 320deg,
    #060d18 360deg
  );
  opacity: 0.55;
  animation: gradientSpin 28s linear infinite;
}

@keyframes gradientSpin {
  to {
    transform: rotate(360deg);
  }
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 18s ease-in-out infinite;
}

.bg-blob--1 {
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  background: var(--color-yellow);
  top: -10%;
  right: -15%;
  animation-delay: 0s;
}

.bg-blob--2 {
  width: min(60vw, 360px);
  height: min(60vw, 360px);
  background: var(--color-blue);
  bottom: 20%;
  left: -20%;
  animation-delay: -6s;
}

.bg-blob--3 {
  width: min(50vw, 300px);
  height: min(50vw, 300px);
  background: var(--color-red);
  bottom: -5%;
  right: 10%;
  opacity: 0.35;
  animation-delay: -12s;
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(4%, -6%) scale(1.05);
  }
  66% {
    transform: translate(-5%, 4%) scale(0.95);
  }
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .bg-gradient,
  .bg-blob {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .gallery-item:hover img {
    transform: none;
  }

  .gallery-item:hover {
    transform: none;
  }
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem 1.25rem;
  background: rgba(6, 13, 24, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(252, 209, 22, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand strong {
  color: var(--color-yellow);
}

.brand img {
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(252, 209, 22, 0.3);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.25rem;
  margin: 0 auto;
  background: var(--color-text);
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem;
  background: rgba(6, 13, 24, 0.95);
  border-bottom: 1px solid rgba(252, 209, 22, 0.15);
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
}

.site-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.site-nav a {
  padding: 0.85rem 1rem;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0.5rem;
}

.site-nav a:hover {
  background: rgba(252, 209, 22, 0.1);
  color: var(--color-yellow-bright);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent;
    border: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 0.5rem 0.85rem;
  }
}

/* --- Hero --- */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-yellow);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title-accent {
  display: block;
  background: linear-gradient(90deg, var(--color-yellow), var(--color-yellow-bright), var(--color-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.hero-hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 1rem;
  background: linear-gradient(
    145deg,
    rgba(252, 209, 22, 0.2),
    rgba(0, 56, 147, 0.25)
  );
  border: 1px solid rgba(252, 209, 22, 0.35);
  box-shadow: var(--shadow-glow);
}

.hero-frame img {
  border-radius: calc(var(--radius-xl) - 0.5rem);
  width: 100%;
}

.hero-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--color-bg-elevated);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem 2rem 4rem;
  }
}

/* --- WhatsApp CTA --- */
.whatsapp-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 22rem;
}

.whatsapp-cta-group--center {
  max-width: 100%;
  margin: 0;
}

.whatsapp-cta-group__lead {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

@media (min-width: 560px) {
  .whatsapp-cta-group:has(.whatsapp-cta--hero) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 34rem;
  }

  .whatsapp-cta-group:has(.whatsapp-cta--hero) .whatsapp-cta-group__lead {
    grid-column: 1 / -1;
  }

  .whatsapp-cta-group--center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

.whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: var(--color-text);
  background: rgba(10, 22, 40, 0.75);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(252, 209, 22, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  animation: none;
}

.whatsapp-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.1);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(37, 211, 102, 0.15);
}

.whatsapp-cta__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #2ee66f, var(--color-whatsapp-dark));
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35);
}

.whatsapp-cta__svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.whatsapp-cta__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.whatsapp-cta__text strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.whatsapp-cta__text small {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.whatsapp-cta:hover .whatsapp-cta__text small {
  color: rgba(244, 247, 251, 0.85);
}

.whatsapp-cta__arrow {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
  color: var(--color-yellow);
  opacity: 0.85;
  margin-left: 0.25rem;
}

.whatsapp-cta--hero {
  padding: 0.85rem 1rem;
}

.whatsapp-cta--block {
  margin: 0;
}

.whatsapp-cta--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

@keyframes ctaPulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.35),
      0 0 0 6px rgba(37, 211, 102, 0.12);
  }
}

.whatsapp-cta-group:has(.whatsapp-cta--hero) .whatsapp-cta--hero:first-of-type {
  animation: ctaPulse 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-cta--hero {
    animation: none !important;
  }
}

/* Sticky bar (mobile) */
.whatsapp-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.5rem 0.65rem calc(0.5rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(6, 13, 24, 0.98), rgba(6, 13, 24, 0.85));
  border-top: 1px solid rgba(37, 211, 102, 0.3);
}

.whatsapp-sticky__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-width: 36rem;
  margin: 0 auto;
}

.whatsapp-cta--sticky {
  max-width: 100%;
  min-height: var(--sticky-h);
  margin: 0;
  padding: 0.45rem 0.55rem;
  gap: 0.45rem;
  justify-content: center;
  background: linear-gradient(180deg, var(--color-whatsapp) 0%, var(--color-whatsapp-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: #fff;
}

.whatsapp-cta--sticky .whatsapp-cta__text strong {
  font-size: 0.8125rem;
}

.whatsapp-cta--sticky .whatsapp-cta__text small {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.88);
}

.whatsapp-cta--sticky:hover {
  background: linear-gradient(180deg, #2ee66f 0%, var(--color-whatsapp-dark) 100%);
}

.whatsapp-cta--sticky .whatsapp-cta__arrow {
  display: none;
}

.whatsapp-cta__icon-wrap--sticky {
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

.whatsapp-cta__icon-wrap--sticky .whatsapp-cta__svg {
  width: 1.15rem;
  height: 1.15rem;
}

@media (min-width: 768px) {
  .whatsapp-sticky {
    display: none;
  }
}

/* --- Sections --- */
.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-yellow-bright);
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Gallery */
.gallery {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

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

.gallery-hint {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.gallery-item {
  margin: 0;
  padding: 0;
  width: 100%;
  font: inherit;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(252, 209, 22, 0.2);
  background: var(--color-bg-elevated);
  cursor: zoom-in;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(252, 209, 22, 0.2);
  border-color: rgba(252, 209, 22, 0.45);
}

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

.gallery-item:active img {
  transform: scale(1.08);
}

.gallery-item--featured {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .gallery-item--featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item--featured img {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

/* Lightbox */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.lightbox.is-open {
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.88);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.lightbox.is-visible .lightbox__backdrop {
  opacity: 1;
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 56rem);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.lightbox.is-visible .lightbox__panel {
  opacity: 1;
  transform: scale(1);
}

.lightbox__figure {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: min(78vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), var(--shadow-glow);
  border: 1px solid rgba(252, 209, 22, 0.35);
}

.lightbox__caption {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 32rem;
}

.lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(12, 28, 52, 0.9);
  color: var(--color-text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lightbox__close:hover {
  background: var(--color-yellow);
  color: var(--color-bg);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(252, 209, 22, 0.35);
  border-radius: 50%;
  background: rgba(6, 13, 24, 0.85);
  color: var(--color-yellow-bright);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lightbox__nav:hover {
  background: rgba(252, 209, 22, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.lightbox__nav--prev {
  left: -0.5rem;
}

.lightbox__nav--next {
  right: -0.5rem;
}

@media (max-width: 640px) {
  .lightbox__nav--prev {
    left: 0.25rem;
  }

  .lightbox__nav--next {
    right: 0.25rem;
  }

  .lightbox__close {
    top: 0.25rem;
    right: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox__backdrop,
  .lightbox__panel {
    transition: none;
  }

  .lightbox__panel {
    transform: none;
  }
}

/* Benefits */
.benefits {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.benefits-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.benefit-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.75rem;
}

.benefit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

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

/* CTA block */
.cta-block {
  padding: 3rem 1.25rem 4rem;
}

.cta-block-inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.25rem 1.75rem;
  border-radius: var(--radius-xl);
  background: rgba(12, 28, 52, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(252, 209, 22, 0.22);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cta-block-inner h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-yellow-bright);
  line-height: 1.05;
}

.cta-block-inner > p {
  margin: 0 0 1.25rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.cta-block-inner .whatsapp-cta-group--center {
  text-align: left;
}

@media (min-width: 560px) {
  .cta-block-inner {
    padding: 2.25rem 2rem 2rem;
  }

  .cta-block-inner .whatsapp-cta-group--center {
    max-width: 36rem;
    margin: 0 auto;
  }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.25rem 3rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 2rem;
  }
}
