/* =============================================
   UBES Academy — Creaciones de Nuestros Estudiantes
   styles.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700;800&family=Syne:wght@700;800&display=swap');

:root {
  --primary-dark:  #162097;
  --primary-light: #2b3bf7;
  --accent:        #11b88d;
  --accent-light:  #13d4a3;
  --dark:          #0d1554;
  --light-bg:      #eef1ff;
  --text:          #162240;
  --muted:         #5a6a99;
  --border:        #c8d0f0;
  --white:         #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--dark);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  background: #ffffff;
  border-bottom: 1px solid #e0e4f0;
  box-shadow: 0 2px 12px rgba(22,32,151,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img { height: 42px; }

.nav-logo span {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s;
}

.nav-back:hover { gap: 12px; color: var(--accent); }

/* ── HERO / CONSTRUCCIÓN ── */
.construction-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 2rem 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Fondo animado */
.construction-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(43,59,247,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(17,184,141,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 10%, rgba(22,32,151,0.4) 0%, transparent 70%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.05); }
}

/* Partículas decorativas */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float linear infinite;
  opacity: 0.15;
}

@keyframes float {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.15; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* Grid lines decorativas */
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(43,59,247,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,59,247,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Contenido principal */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.construction-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(17,184,141,0.15);
  border: 2px solid rgba(17,184,141,0.5);
  color: var(--accent-light);
  padding: 18px 48px;
  border-radius: 100px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(17,184,141,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(17,184,141,0); }
}

.construction-badge .dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: dotBlink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 3rem;
}

/* ── PREVIEW CARDS ── */
.preview-section {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.preview-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 200px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
  animation: cardFloat 0.6s ease both;
}

.preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17,184,141,0.4);
  background: rgba(17,184,141,0.08);
}

@keyframes cardFloat {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.preview-card:nth-child(1) { animation-delay: 0.2s; }
.preview-card:nth-child(2) { animation-delay: 0.35s; }
.preview-card:nth-child(3) { animation-delay: 0.5s; }
.preview-card:nth-child(4) { animation-delay: 0.65s; }

.card-icon {
  font-size: 2rem;
  line-height: 1;
}

.card-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.card-text span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── BARRA DE PROGRESO ── */
.progress-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-label span:last-child { color: var(--accent-light); }

.progress-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-light));
  border-radius: 100px;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}

/* ── CTA ── */
.cta-area {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-notify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: white;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(43,59,247,0.4);
}

.btn-notify:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(43,59,247,0.5);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.btn-back:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.3);
}

/* ── DECORACIÓN FLOTANTE ── */
.floating-code {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: rgba(43,59,247,0.25);
  pointer-events: none;
  white-space: nowrap;
  animation: floatCode 12s ease-in-out infinite;
}

@keyframes floatCode {
  0%, 100% { transform: translateY(0) rotate(-2deg); opacity: 0.3; }
  50%       { transform: translateY(-20px) rotate(2deg); opacity: 0.6; }
}

/* ── FOOTER ── */
.mini-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mini-footer a {
  color: var(--accent-light);
  text-decoration: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .nav { padding: 0 1rem; }
  .nav-logo span { display: none; }
  .preview-card { min-width: 150px; padding: 1rem 1.2rem; }
  .card-icon { font-size: 1.5rem; }
  .cta-area { flex-direction: column; align-items: center; }
  .btn-notify, .btn-back { width: 100%; max-width: 300px; justify-content: center; }
  .floating-code { display: none; }
}
