:root {
  --bg-main: #07090e;
  --card-bg: rgba(18, 23, 34, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(0, 240, 255, 0.4);
  --accent-cyan: #00f0ff;
  --accent-purple: #9d4edd;
  --accent-yellow: #ffd000;
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* Fondos y Efectos de Iluminación */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
  top: -100px;
  right: -50px;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #0055ff, transparent 70%);
  bottom: -150px;
  left: -100px;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px 60px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.logo-symbol {
  color: var(--accent-cyan);
  font-size: 1.4rem;
}

.logo-text .dot {
  color: var(--accent-cyan);
}

.badge-cloudflare {
  background: rgba(246, 130, 31, 0.12);
  color: #ff9d42;
  border: 1px solid rgba(246, 130, 31, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 70px 0 50px;
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}

.gradient-text {
  background: linear-gradient(135deg, #00f0ff, #7000ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #ffd000, #ff6b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 16px;
  border-radius: 24px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Proyectos */
.projects-section {
  padding: 40px 0;
  flex: 1;
}

.section-header {
  margin-bottom: 36px;
}

.section-sub {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  font-weight: 700;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 4px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Tarjetas de Proyecto */
.project-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
}

.featured-card {
  border-color: rgba(0, 240, 255, 0.3);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.85) 0%, rgba(13, 18, 28, 0.75) 100%);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.project-icon {
  font-size: 2.2rem;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.status-live {
  background: rgba(0, 255, 102, 0.1);
  color: #00ff66;
  border: 1px solid rgba(0, 255, 102, 0.3);
}

.status-live .status-dot {
  width: 7px;
  height: 7px;
  background: #00ff66;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff66;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.status-upcoming {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-upcoming .status-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(255, 208, 0, 0.15);
  color: var(--accent-yellow);
  padding: 2px 8px;
  border-radius: 6px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-desc code {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  color: #cbd5e1;
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
}

.btn-launch {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: linear-gradient(135deg, #00f0ff, #0088ff);
  color: #050811;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.3);
}

.btn-launch:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
  transform: translateY(-1px);
}

.btn-launch .arrow {
  transition: transform 0.2s ease;
}

.btn-launch:hover .arrow {
  transform: translateX(4px);
}

.coming-soon-label {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.footer-left p {
  font-size: 0.9rem;
  font-weight: 500;
}

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

.repo-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
