/* ============================================================
   ECLIPSE HERO
   Clean CSS extracted from Oxygen Builder and rewritten with
   semantic classes. Namespaced under .eclipse-hero to avoid
   collisions with the rest of your site.
============================================================ */

/* ---------- Section shell ---------- */
.eclipse-hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background-color: #131416;
  font-family: "Poppins", "Inter", arial, sans-serif;
  color: #fff;
}

/* Top fade */
.eclipse-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 233px;
  background: linear-gradient(180deg, #05031B 0%, rgba(5, 3, 27, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Bottom fade into the next section */
.eclipse-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 233px;
  background: linear-gradient(0deg, #05031B 0%, rgba(5, 3, 27, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Party spotlights ---------- */
.eclipse-hero__spots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.eclipse-spot {
  position: absolute;
  top: 0;
  width: 260px;
  height: 90%;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform-origin: 50% 0%;
  filter: blur(3px);
  opacity: 0;
  will-change: transform, opacity;
}

.eclipse-spot--red    { background: linear-gradient(180deg, rgba(255, 40, 40, 0.55) 0%, rgba(255, 40, 40, 0.02) 100%); }
.eclipse-spot--green  { background: linear-gradient(180deg, rgba(40, 255, 90, 0.50) 0%, rgba(40, 255, 90, 0.02) 100%); }
.eclipse-spot--yellow { background: linear-gradient(180deg, rgba(255, 204, 0, 0.55) 0%, rgba(255, 204, 0, 0.02) 100%); }

.eclipse-spot:nth-child(1) { left: 8%;   animation: spot-sweep 11s ease-in-out infinite 0s; }
.eclipse-spot:nth-child(2) { left: 28%;  animation: spot-sweep  8s ease-in-out infinite 2.4s; }
.eclipse-spot:nth-child(3) { left: 50%;  animation: spot-sweep 13s ease-in-out infinite 0.8s; }
.eclipse-spot:nth-child(4) { left: 68%;  animation: spot-sweep  9s ease-in-out infinite 4.2s; }
.eclipse-spot:nth-child(5) { left: 84%;  animation: spot-sweep  7s ease-in-out infinite 1.6s; }

@keyframes spot-sweep {
  0%   { opacity: 0;    transform: rotate(-28deg); }
  8%   { opacity: 1; }
  50%  { opacity: 0.7;  transform: rotate(28deg); }
  92%  { opacity: 1; }
  100% { opacity: 0;    transform: rotate(-28deg); }
}

/* ---------- Rising particles (filled by hero-particles.js) ---------- */
.eclipse-hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.eclipse-particle {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  pointer-events: none;
  animation: particle-rise linear forwards;
}

@keyframes particle-rise {
  0%   { transform: translateY(0)      translateX(0);            opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 0.7; }
  100% { transform: translateY(-105vh) translateX(var(--drift)); opacity: 0; }
}

@media (max-width: 768px) {
  .eclipse-hero__spots    { opacity: 0.55; }
  .eclipse-spot           { width: 180px; }
}

/* ---------- Background wrapper ---------- */
.eclipse-hero__bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

/* ---------- Background image layers ---------- */
.eclipse-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}
.eclipse-hero__bg--ocean        { z-index: 0; }
.eclipse-hero__bg--ocean-mobile { z-index: 0; display: none; }
.eclipse-hero__bg--catamaran { z-index: 3; }
.eclipse-hero__bg--palm-left,
.eclipse-hero__bg--palm-right { z-index: 9; }
.eclipse-hero__bg--confetti  { z-index: 10; }

/* ---------- Content wrapper ---------- */
.eclipse-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1420px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 120px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

/* ---------- Title ---------- */
.eclipse-hero__title {
  font-family: "Poppins", sans-serif;
  font-size: 144px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  margin-top: 72px;
}

/* ---------- Countdown ---------- */
/*
  In the original Oxygen layout, this row uses space-between
  so that the two groups (days+hours / min+sec) split to the
  left and right of the title, while margin-top pulls it up
  so the numbers float around/over the title.
*/
.eclipse-countdown {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 0;
  z-index: 5;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.eclipse-countdown__group {
  display: flex;
  flex-direction: row;
  gap: 52px;
}

.eclipse-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  mix-blend-mode: overlay;
}

.eclipse-countdown__num {
  font-size: 89.6px;
  font-weight: 100;
  line-height: 1;
}

.eclipse-countdown__label {
  font-size: 28.8px;
  font-weight: 400;
  line-height: 1;
  margin-top: -8px; /* tighter tracking to the number */
}

/* ---------- Description + CTA ---------- */
.eclipse-hero__content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 3;
  position: relative;
}

.eclipse-hero__eyebrow {
  color: #FC0;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.eclipse-hero__description {
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.eclipse-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  padding: 14px 28px;
  margin-top: 8px;
  background-color: #fff;
  color: #00062d;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}

.eclipse-hero__cta:hover {
  transform: scale(0.97);
  filter: brightness(115%);
  color: #00062d;
  text-decoration: none;
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 1100px) {
  .eclipse-hero__title       { font-size: 112px; }
  .eclipse-countdown         { margin-top: -120px; }
  .eclipse-countdown__num    { font-size: 72px; }
  .eclipse-countdown__label  { font-size: 22px; }
  .eclipse-countdown__group  { gap: 32px; }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Sección: altura determinada por el contenido.
     El bg oscuro (#131416) da el contraste base. */
  .eclipse-hero { min-height: unset; }

  /* Content stack: espacio inferior para el catamaran */
  .eclipse-hero__inner {
    min-height: unset;
    padding: 96px 24px 320px;
    justify-content: flex-start;
    align-items: center;
    gap: 28px;
  }

  /* ── Backgrounds en mobile ─────────────────────────── */

  /* Ocean desktop fuera, entra la versión mobile */
  .eclipse-hero__bg--ocean        { display: none; }
  .eclipse-hero__bg--ocean-mobile {
    display: block;
    object-position: center 60%;  /* muestra más el agua y horizonte */
  }

  /* Palmas muy sutiles: dan profundidad sin distraer */
  .eclipse-hero__bg--palm-left,
  .eclipse-hero__bg--palm-right {
    opacity: 0.35;
    z-index: 4;
  }

  /* Confetti sutil */
  .eclipse-hero__bg--confetti { opacity: 0.15; }

  /* Catamaran: protagonista, el alto controla el tamaño real */
  .eclipse-hero__bg--catamaran {
    top: auto;
    bottom: -20px;
    left: 50%;
    width: auto;          /* ancho se calcula por aspect ratio */
    height: 68%;
    object-fit: unset;
    transform: translateX(-50%);
    z-index: 5;
  }

  /* Fade inferior más pronunciado para integrar el barco */
  .eclipse-hero::after { height: 260px; }

  /* ── Título ────────────────────────────────────────── */
  .eclipse-hero__title { font-size: 52px; text-align: center; }

  /* ── Contador ──────────────────────────────────────── */
  .eclipse-countdown {
    justify-content: center;
    gap: 20px;
    margin-top: 0;
  }
  .eclipse-countdown__group  { gap: 24px; }
  .eclipse-countdown__num    { font-size: 44px; }
  .eclipse-countdown__label  { font-size: 14px; }

  /* ── Copy ──────────────────────────────────────────── */
  .eclipse-hero__description { font-size: 15px; }
  .eclipse-hero__eyebrow     { font-size: 14px; }
}

@media (max-width:1600px) {
  .eclipse-hero__title {
    margin-top: 48px;
  }
}

@media (max-width: 480px) {
  .eclipse-hero__inner         { padding: 88px 20px 280px; }
  .eclipse-hero__title         { font-size: 40px; }
  .eclipse-hero__bg--catamaran { height: 52%; width: auto; object-fit: cover; bottom: -76px; }

  .eclipse-countdown         { gap: 16px; }
  .eclipse-countdown__group  { gap: 18px; }
  .eclipse-countdown__num    { font-size: 38px; }
  .eclipse-countdown__label  { font-size: 13px; }
}
