:root {
  --bg-color: #070913;
  --bg-surface: rgba(18, 22, 38, 0.7);
  --bg-card: rgba(23, 28, 48, 0.65);
  --border-color: rgba(99, 102, 241, 0.25);
  --border-glow: rgba(0, 242, 254, 0.4);
  --primary: #00f2fe;
  --primary-glow: #4facfe;
  --secondary: #a855f7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Canvas de fondo */
#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Navegación */
.navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(7, 9, 19, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
}

.logo span {
  color: var(--primary);
}

.navbar nav {
  display: flex;
  gap: 1.5rem;
}

.navbar nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar nav a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

/* Contenedor general */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Secciones */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Hero */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(0, 242, 254, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #070913;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.55);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.08);
  transform: translateY(-2px);
}

/* Cards & Glassmorphism */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
}

/* Autor */
.author-card {
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.author-info h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

.author-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.author-info .highlight-text {
  color: #e2e8f0;
  font-weight: 500;
  background: rgba(168, 85, 247, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--secondary);
}

/* Grid de Libros */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.book-card:hover {
  transform: translateY(-6px);
}

.book-cover-placeholder {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gradient-1 { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #0284c7 100%); }
.gradient-2 { background: linear-gradient(135deg, #3b0764 0%, #581c87 50%, #06b6d4 100%); }
.gradient-3 { background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #6366f1 100%); }

.book-cover-placeholder .icon {
  font-size: 3.5rem;
  z-index: 2;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.glow-orb {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.status-pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.book-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.book-content .genre {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.book-content .desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.interest-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: #facc15;
}

.stage-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Newsletter / Contacto */
.newsletter-box {
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.newsletter-box h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.newsletter-box p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.notify-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.notify-form input {
  flex: 1 1 250px;
  padding: 0.85rem 1.2rem;
  background: rgba(10, 13, 26, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.notify-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5rem;
  transition: opacity 0.3s ease;
}

.form-feedback.success {
  color: #4ade80;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-sub {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .navbar nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .section {
    padding: 3.5rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
}
