* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-1: #050816;
  --bg-2: #0b1023;
  --bg-3: #111938;
  --primary: #5ce1e6;
  --primary-soft: rgba(92, 225, 230, 0.15);
  --secondary: #8b5cf6;
  --accent: #1fe7a1;
  --text: #edf4ff;
  --muted: #9fb0d6;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  --whatsapp-green: #25d366;
  --whatsapp-green-dark: #128c7e;
}

/* Botón flotante WhatsApp (esquina inferior derecha) */
.whatsapp-float-wrap {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 100;
  width: 58px;
  height: 58px;
}

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

.whatsapp-float__bubble {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  padding: 9px 14px;
  border-radius: 14px;
  background: #fff;
  color: #0a1628;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  transform-origin: right center;
  animation: whatsappBubbleCycle 9s ease-in-out infinite;
}

.whatsapp-float__bubble::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left-color: #fff;
  filter: drop-shadow(1px 0 0 rgba(0, 0, 0, 0.04));
}

.whatsapp-float {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--whatsapp-green) 0%, #20bd5a 45%, var(--whatsapp-green-dark) 100%);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 24px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 32px rgba(37, 211, 102, 0.45);
}

.whatsapp-float:active {
  transform: scale(0.98);
}

@keyframes whatsappBubbleCycle {
  0% {
    opacity: 0;
    transform: translate(18px, -50%) scale(0.88);
  }
  6% {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }
  58% {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }
  68% {
    opacity: 0;
    transform: translate(14px, -50%) scale(0.92);
  }
  100% {
    opacity: 0;
    transform: translate(18px, -50%) scale(0.88);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float__bubble {
    animation: none;
    opacity: 1;
    transform: translate(0, -50%);
  }
}

.whatsapp-float__icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-top: 1px;
}

.whatsapp-float__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  border: 2px solid #0a1628;
}

@media (max-width: 480px) {
  .whatsapp-float-wrap {
    width: 54px;
    height: 54px;
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
  }

  .whatsapp-float__bubble {
    font-size: 0.78rem;
    padding: 8px 12px;
    right: calc(100% + 10px);
  }

  .whatsapp-float__icon {
    width: 28px;
    height: 28px;
  }
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  position: relative;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(92, 225, 230, 0.18), transparent 30%),
    radial-gradient(circle at 80% 15%, rgba(139, 92, 246, 0.18), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(31, 231, 161, 0.09), transparent 35%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  overflow-x: hidden;
  overflow-y: auto;
}

#particles,
.grid,
.noise,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#particles {
  z-index: 0;
}

.grid {
  z-index: 1;
  background-image:
    linear-gradient(rgba(92, 225, 230, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 230, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.25));
}

.noise {
  z-index: 2;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 25% 25%, white 0.6px, transparent 1px),
    radial-gradient(circle at 75% 75%, white 0.6px, transparent 1px),
    radial-gradient(circle at 35% 65%, white 0.5px, transparent 1px);
  background-size: 120px 120px;
  animation: noiseMove 6s linear infinite;
}

.scanlines {
  z-index: 3;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 3px,
    transparent 6px
  );
  opacity: 0.25;
}

.wrapper {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.card {
  position: relative;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
  animation: floatCard 6s ease-in-out infinite;
}

.card-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
}

.card-glow-1 {
  width: 260px;
  height: 260px;
  top: -110px;
  right: -90px;
  background: rgba(92, 225, 230, 0.25);
}

.card-glow-2 {
  width: 220px;
  height: 220px;
  bottom: -90px;
  left: -60px;
  background: rgba(139, 92, 246, 0.2);
}

.left-panel,
.right-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.left-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.right-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(92, 225, 230, 0.3);
  background: rgba(92, 225, 230, 0.08);
  color: #dffcff;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(31, 231, 161, 0.8);
  animation: pulse 1.8s infinite;
}

.logo-box {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 5;
  min-height: 0;
  border-radius: 18px;
  margin-bottom: 24px;
  display: grid;
  grid-template: 1fr / 1fr;
  padding: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.logo-box::before {
  content: "";
  display: none;
}

.logo-img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.eyebrow {
  font-family: "Orbitron", sans-serif;
  color: var(--primary);
  letter-spacing: 0.24rem;
  font-size: 0.78rem;
  margin-bottom: 14px;
  line-height: 1.5;
}

h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  max-width: 760px;
  margin-bottom: 18px;
}

.glitch {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 18px rgba(92, 225, 230, 0.18);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.75;
  pointer-events: none;
}

.glitch::before {
  transform: translate(2px, -1px);
  color: rgba(92, 225, 230, 0.7);
  clip-path: inset(0 0 42% 0);
  animation: glitch1 3s infinite linear alternate-reverse;
}

.glitch::after {
  transform: translate(-2px, 1px);
  color: rgba(139, 92, 246, 0.7);
  clip-path: inset(58% 0 0 0);
  animation: glitch2 2.6s infinite linear alternate-reverse;
}

.description {
  max-width: 700px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.info-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.info-item {
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.info-item strong {
  font-size: clamp(0.95rem, 1vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.info-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
}

.info-item strong {
  font-size: clamp(0.95rem, 1.1vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.progress-wrap,
.countdown-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.96rem;
}

.progress-bar {
  height: 14px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.progress-bar span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  box-shadow: 0 0 25px rgba(92, 225, 230, 0.35);
  animation: progressFlow 3.5s ease-in-out infinite;
}

.countdown-title {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--primary);
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-family: "Orbitron", sans-serif;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.time-box {
  text-align: center;
  padding: 18px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: softBlink 4s ease-in-out infinite;
}

.time-box strong {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  font-family: "Orbitron", sans-serif;
  margin-bottom: 8px;
}

.time-box span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.footer-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
}

.mobile-note {
  display: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 231, 161, 0.8); }
  70% { box-shadow: 0 0 0 16px rgba(31, 231, 161, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 231, 161, 0); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes glitch1 {
  0%, 100% { transform: translate(1px, -1px); }
  20% { transform: translate(3px, 0px); }
  40% { transform: translate(-1px, -1px); }
  60% { transform: translate(2px, 1px); }
  80% { transform: translate(-2px, 0px); }
}

@keyframes glitch2 {
  0%, 100% { transform: translate(-1px, 1px); }
  20% { transform: translate(-3px, 0px); }
  40% { transform: translate(1px, 1px); }
  60% { transform: translate(-2px, -1px); }
  80% { transform: translate(2px, 0px); }
}

@keyframes softBlink {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes progressFlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

@keyframes noiseMove {
  from { transform: translate(0, 0); }
  to { transform: translate(-20px, 15px); }
}

@media (max-width: 1080px) {
  .card {
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 860px;
  }

  .left-panel,
  .right-panel {
    justify-content: flex-start;
  }

  .desktop-note {
    display: none;
  }

  .mobile-note {
    display: block;
  }
}

@media (max-width: 820px) {
  .wrapper {
    padding: 18px;
    align-items: flex-start;
  }

  .card {
    padding: 24px 18px;
    animation: none;
  }

  .left-panel,
  .right-panel {
    justify-content: flex-start;
  }

  .logo-box {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 5;
    padding: 5px;
    border-radius: 18px;
  }

  .logo-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .eyebrow {
    letter-spacing: 0.14rem;
    line-height: 1.5;
  }

  .info-panel {
    grid-template-columns: 1fr;
  }

  .info-item {
    min-height: auto;
  }

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

  .progress-wrap,
  .countdown-card {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding: 14px;
  }

  .card {
    padding: 18px 14px;
    border-radius: 22px;
    gap: 18px;
  }

  .status-pill {
    font-size: 0.86rem;
    padding: 9px 14px;
  }

  .logo-box {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 5;
    padding: 5px;
    border-radius: 16px;
  }

  .logo-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }

  h1 {
    font-size: clamp(1.55rem, 9vw, 2.2rem);
    line-height: 1.1;
  }

  .description {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .progress-header {
    font-size: 0.88rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .countdown {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .time-box {
    padding: 14px 8px;
  }

  .time-box strong {
    font-size: 1.35rem;
  }

  .time-box span {
    font-size: 0.72rem;
  }

  .footer-note {
    font-size: 0.92rem;
    line-height: 1.6;
  }
}
