/* ============================================
   PRE-ICFES ZAMEX — Página En Construcción
   Temática Educativa Premium
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Paleta educativa: violeta/índigo/cyan */
  --purple-1:  #a78bfa;
  --purple-2:  #7c3aed;
  --purple-3:  #6d28d9;
  --cyan-1:    #38bdf8;
  --cyan-2:    #0ea5e9;
  --indigo-1:  #818cf8;
  --pink-1:    #f472b6;
  --navy-1:    #050816;
  --navy-2:    #0a0f2e;
  --navy-3:    #0d1240;
  --navy-4:    #111a50;
  --white:     #ffffff;
  --muted:     rgba(255,255,255,0.52);
  --glass-bg:  rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.10);
  --radius-lg: 20px;
  --shadow-purple: 0 0 40px rgba(167,139,250,0.25);
  --shadow-cyan:   0 0 40px rgba(56,189,248,0.20);
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--navy-1);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Canvas ---------- */
#particles-canvas {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}

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

.bg-image {
  position: absolute; inset: 0;
  background: url('bg.jpg') center/cover no-repeat;
  opacity: 0.16;
  filter: saturate(1.3) hue-rotate(5deg);
}

.bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(124,58,237,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 80% 90%, rgba(56,189,248,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(167,139,250,0.06) 0%, transparent 70%),
    linear-gradient(180deg, rgba(5,8,22,0.88) 0%, rgba(5,8,22,0.96) 100%);
}

.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(129,140,248,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129,140,248,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: gridPulse 9s ease-in-out infinite;
}

@keyframes gridPulse {
  0%,100% { opacity: 0.35; }
  50%      { opacity: 0.75; }
}

/* ---------- Top Progress ---------- */
.top-progress-bar {
  position: fixed; top:0; left:0; right:0;
  height: 3px; background: rgba(255,255,255,0.07); z-index: 100;
}
.top-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--purple-1), var(--cyan-1), var(--pink-1));
  box-shadow: 0 0 14px var(--purple-1);
  transition: width 2.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 24px; right: -440px; z-index: 999;
  display: flex; align-items: center; gap: 14px;
  background: rgba(10,15,46,0.96);
  border: 1px solid rgba(167,139,250,0.35);
  border-radius: var(--radius-lg);
  padding: 16px 20px; min-width: 320px; max-width: 390px;
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), var(--shadow-purple);
  transition: right 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { right: 24px; }

.toast-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--purple-1), var(--cyan-1));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-1);
}
.toast-content { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.toast-title   { font-size: 0.95rem; font-weight: 700; color: var(--purple-1); }
.toast-msg     { font-size: 0.82rem; color: var(--muted); }
.toast-close   { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.85rem; padding: 4px; transition: color 0.2s; }
.toast-close:hover { color: var(--white); }

/* ---------- Layout ---------- */
.main-container {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh;
  padding: 40px 24px 70px;
  max-width: 960px; margin: 0 auto;
}

/* ---------- Brand ---------- */
.brand-header {
  width: 100%; display: flex; justify-content: center;
  margin-bottom: 52px;
  animation: fadeDown 0.8s ease both;
}
@keyframes fadeDown {
  from { opacity:0; transform: translateY(-24px); }
  to   { opacity:1; transform: translateY(0); }
}
.logo-wrapper { display: flex; align-items: center; gap: 14px; }
.logo-hex {
  width: 60px; height: 70px;
  filter: drop-shadow(0 0 14px rgba(167,139,250,0.55));
  animation: hexGlow 5s ease-in-out infinite;
}
@keyframes hexGlow {
  0%,100% { filter: drop-shadow(0 0 8px rgba(167,139,250,0.4)); }
  50%      { filter: drop-shadow(0 0 24px rgba(167,139,250,0.85)); }
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-size: 1.9rem; font-weight: 800;
  letter-spacing: 0.06em; color: var(--white); line-height: 1;
}
.brand-accent {
  background: linear-gradient(135deg, var(--purple-1), var(--cyan-1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.brand-tagline {
  font-size: 0.6rem; font-family: var(--font-mono);
  letter-spacing: 0.22em; color: var(--muted); margin-top: 3px;
}

/* ---------- Hero ---------- */
.hero-section {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; width: 100%;
  animation: fadeUp 0.9s 0.15s ease both;
}
@keyframes fadeUp {
  from { opacity:0; transform: translateY(32px); }
  to   { opacity:1; transform: translateY(0); }
}

/* Badge */
.badge-under-construction {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 999px;
  padding: 8px 18px; margin-bottom: 32px;
  font-size: 0.7rem; font-family: var(--font-mono);
  letter-spacing: 0.18em; color: var(--purple-1);
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(167,139,250,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(167,139,250,0); }
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--purple-1); border-radius: 50%;
  animation: dotBlink 1.4s ease-in-out infinite;
}
@keyframes dotBlink {
  0%,100% { opacity:1; transform: scale(1); }
  50%      { opacity:0.3; transform: scale(0.65); }
}

/* Title */
.hero-title {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--purple-1) 0%, var(--cyan-1) 50%, var(--pink-1) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease-in-out infinite alternate;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: var(--muted); line-height: 1.75;
  max-width: 600px; margin-bottom: 36px; font-weight: 300;
}

/* Subjects chips */
.subjects-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 52px;
}
.subject-chip {
  background: rgba(129,140,248,0.1);
  border: 1px solid rgba(129,140,248,0.22);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.8rem; font-weight: 500;
  color: var(--indigo-1);
  transition: all 0.3s;
  cursor: default;
  animation: chipFloat 4s ease-in-out infinite;
}
.subject-chip:nth-child(2) { animation-delay: 0.3s; }
.subject-chip:nth-child(3) { animation-delay: 0.6s; }
.subject-chip:nth-child(4) { animation-delay: 0.9s; }
.subject-chip:nth-child(5) { animation-delay: 1.2s; }
.subject-chip:nth-child(6) { animation-delay: 1.5s; }

@keyframes chipFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.subject-chip:hover {
  background: rgba(167,139,250,0.2);
  border-color: rgba(167,139,250,0.5);
  color: var(--purple-1);
  transform: translateY(-3px) scale(1.04);
}

/* ---------- Countdown ---------- */
.countdown-wrapper { width: 100%; margin-bottom: 44px; }
.countdown-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.6rem; font-family: var(--font-mono);
  letter-spacing: 0.18em; color: var(--muted); margin-bottom: 28px;
}
.countdown-label .line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.2), transparent);
}
.countdown-grid {
  display: flex; align-items: center;
  justify-content: center; gap: 4px; flex-wrap: wrap;
}
.countdown-unit { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.countdown-ring {
  position: relative; width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.ring-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.ring-bg  { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 3; }
.ring-fill {
  fill: none; stroke: url(#ringGrad);
  stroke-width: 3; stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4,0,0.2,1);
}
.countdown-value {
  font-family: var(--font-mono); font-size: 2.1rem; font-weight: 700;
  color: var(--white); position: relative; z-index: 2;
  text-shadow: 0 0 28px rgba(167,139,250,0.6);
  transition: transform 0.15s ease;
}
.countdown-value.flip { animation: flip 0.3s ease; }
@keyframes flip {
  0%   { transform: translateY(0) scale(1); opacity:1; }
  50%  { transform: translateY(-6px) scale(1.1); opacity:0.5; }
  100% { transform: translateY(0) scale(1); opacity:1; }
}
.countdown-unit-label {
  font-size: 0.7rem; font-family: var(--font-mono);
  letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase;
}
.countdown-separator {
  font-family: var(--font-mono); font-size: 2.4rem; font-weight: 700;
  color: rgba(167,139,250,0.4); margin-bottom: 30px;
  animation: sepPulse 1.4s ease-in-out infinite;
}
@keyframes sepPulse { 0%,100% { opacity:1; } 50% { opacity:0.15; } }

/* ---------- Build Progress ---------- */
.build-progress {
  width: 100%; max-width: 580px; margin-bottom: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px; backdrop-filter: blur(12px);
}
.build-progress-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.build-progress-label { font-size: 0.82rem; color: var(--muted); }
.build-progress-pct   { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; color: var(--purple-1); }
.build-progress-track {
  height: 8px; background: rgba(255,255,255,0.07);
  border-radius: 999px; overflow: hidden; margin-bottom: 16px; position: relative;
}
.build-progress-bar {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--purple-2), var(--purple-1), var(--cyan-1));
  box-shadow: 0 0 14px var(--purple-1);
  transition: width 2.5s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
}
.build-progress-bar::after {
  content: '';
  position: absolute; right: 0; top: 50%;
  transform: translate(50%,-50%);
  width: 14px; height: 14px;
  background: var(--purple-1); border-radius: 50%;
  box-shadow: 0 0 12px var(--purple-1), 0 0 24px rgba(167,139,250,0.5);
  animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 8px var(--purple-1), 0 0 18px rgba(167,139,250,0.4); }
  50%      { box-shadow: 0 0 18px var(--purple-1), 0 0 36px rgba(167,139,250,0.7); }
}
.build-milestones { display: flex; justify-content: space-between; }
.milestone         { font-size: 0.68rem; font-family: var(--font-mono); color: rgba(255,255,255,0.25); }
.milestone.active  { color: var(--purple-1); }

/* ---------- Notify ---------- */
.notify-section {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; width: 100%; max-width: 580px; margin-bottom: 70px;
}
.notify-intro { font-size: 0.97rem; color: var(--muted); font-weight: 400; text-align: center; }
.notify-form { display: flex; gap: 12px; width: 100%; }
.input-wrapper {
  flex: 1; display: flex; align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 14px; padding: 0 16px; gap: 10px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.input-wrapper:focus-within {
  border-color: rgba(167,139,250,0.55);
  box-shadow: 0 0 0 3px rgba(167,139,250,0.1), var(--shadow-purple);
}
.input-icon { color: var(--muted); flex-shrink: 0; }
.input-wrapper input {
  background: none; border: none; outline: none;
  color: var(--white); font-family: var(--font-main);
  font-size: 0.95rem; width: 100%; padding: 15px 0;
}
.input-wrapper input::placeholder { color: rgba(255,255,255,0.28); }

.btn-notify {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--purple-2) 0%, var(--purple-1) 50%, var(--cyan-1) 100%);
  border: none; border-radius: 14px;
  padding: 15px 22px;
  font-family: var(--font-main); font-size: 0.88rem; font-weight: 700;
  color: var(--white); cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
  background-size: 200% 200%;
  animation: btnGradient 4s ease-in-out infinite;
}
@keyframes btnGradient {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.btn-notify::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn-notify:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(124,58,237,0.55); }
.btn-notify:hover::before { opacity: 1; }
.btn-notify:active { transform: translateY(0); }
.btn-icon { display: flex; align-items: center; }

.notify-disclaimer {
  font-size: 0.78rem; color: rgba(255,255,255,0.3); font-weight: 400; text-align: center;
}

/* ---------- Stats ---------- */
.features-section { width: 100%; margin-bottom: 60px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.feature-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 20px 22px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  opacity: 0; transform: translateY(28px);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167,139,250,0.35);
  box-shadow: 0 10px 36px rgba(0,0,0,0.3), var(--shadow-purple);
}
.feature-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(167,139,250,0.14), rgba(56,189,248,0.08));
  border: 1px solid rgba(167,139,250,0.22);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-1);
  transition: background 0.3s;
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(167,139,250,0.24), rgba(56,189,248,0.15));
}
.feature-info { display: flex; flex-direction: column; gap: 3px; }
.feature-number {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--purple-1), var(--cyan-1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.feature-desc { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }

/* ---------- Features Preview ---------- */
.features-preview { width: 100%; margin-bottom: 60px; }
.section-title {
  text-align: center; font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700; margin-bottom: 36px;
  background: linear-gradient(135deg, var(--white), var(--purple-1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.preview-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  opacity: 0; transform: translateY(24px);
}
.preview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(129,140,248,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 30px rgba(129,140,248,0.12);
}
.preview-icon {
  font-size: 2.2rem; margin-bottom: 14px;
  display: block;
  animation: iconFloat 3.5s ease-in-out infinite;
}
.preview-card:nth-child(2) .preview-icon { animation-delay: 0.4s; }
.preview-card:nth-child(3) .preview-icon { animation-delay: 0.8s; }
.preview-card:nth-child(4) .preview-icon { animation-delay: 1.2s; }
.preview-card:nth-child(5) .preview-icon { animation-delay: 1.6s; }
.preview-card:nth-child(6) .preview-icon { animation-delay: 2s; }
@keyframes iconFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-5px) rotate(3deg); }
}
.preview-card h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--white);
}
.preview-card p {
  font-size: 0.83rem; color: var(--muted); line-height: 1.65;
}

/* ---------- Social Footer ---------- */
.social-footer {
  display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%;
}
.social-label {
  font-size: 0.75rem; color: rgba(255,255,255,0.24);
  letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-mono);
}
.social-links { display: flex; gap: 12px; }
.social-btn {
  width: 48px; height: 48px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none;
  transition: all 0.3s; backdrop-filter: blur(8px);
}
.social-btn:hover {
  background: rgba(167,139,250,0.12);
  border-color: rgba(167,139,250,0.45);
  color: var(--purple-1);
  transform: translateY(-3px);
}
.copyright { font-size: 0.72rem; color: rgba(255,255,255,0.18); margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .notify-form { flex-direction: column; }
  .btn-notify   { width: 100%; justify-content: center; }
  .countdown-ring { width: 78px; height: 78px; }
  .countdown-value { font-size: 1.65rem; }
  .countdown-separator { font-size: 1.8rem; margin-bottom: 24px; }
  .preview-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .features-grid { grid-template-columns: 1fr; }
  .countdown-ring { width: 66px; height: 66px; }
  .countdown-value { font-size: 1.35rem; }
  .subjects-row .subject-chip { font-size: 0.72rem; padding: 6px 12px; }
}
