/* ============================================
   MILTON CASTAÑEDA — Personal Site
   Paleta: dark sofisticado + violeta + verde menta
   ============================================ */

:root {
  --bg-primary: #0A0A0F;
  --bg-secondary: #13131A;
  --bg-tertiary: #1C1C24;
  --text-primary: #F5F5F7;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --accent-violet: #A78BFA;
  --accent-violet-dim: #7C3AED;
  --accent-mint: #34D399;
  --accent-mint-dim: #10B981;
  --border: #27272A;
  --border-strong: #3F3F46;

  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 1200px;
  --section-padding: clamp(4rem, 10vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background atmosphere */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(52, 211, 153, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Grid noise texture */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  color: var(--accent-violet);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-mint);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-mint);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px var(--accent-mint);
  animation: pulse 2s infinite;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.lang-switcher {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.lang-switcher button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lang-switcher button.active {
  background: var(--accent-violet);
  color: var(--bg-primary);
}

.lang-switcher button:hover:not(.active) {
  color: var(--text-primary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-violet);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-mint);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(52, 211, 153, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 0;
}

.btn-ghost:hover {
  color: var(--accent-mint);
}

/* ============================================
   HERO / LANDING
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-mint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent-mint);
}

.hero h1 {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.1s ease forwards;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease forwards;
}

.hero-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s ease forwards;
}

.path-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.path-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-violet), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.path-card:hover::before {
  transform: translateX(100%);
}

.path-card:hover {
  border-color: var(--accent-violet);
  transform: translateY(-4px);
  background: var(--bg-tertiary);
}

.path-card .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.path-card h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.path-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.path-card .arrow {
  color: var(--accent-mint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

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

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-mint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-mint);
}

.section-intro {
  max-width: 700px;
  margin-bottom: 4rem;
}

/* ============================================
   CARDS / GRID
   ============================================ */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 4rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--accent-mint);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a:not(.lang-switcher) {
    display: none;
  }

  .hero-paths {
    grid-template-columns: 1fr;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   PAGE-SPECIFIC: PORTAFOLIO
   ============================================ */

.profile-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .profile-header {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-mint) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--bg-primary);
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 0 1px var(--border-strong);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-list .label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.timeline-item {
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-violet);
  border: 2px solid var(--bg-primary);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item .date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-mint);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-item .org {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.skill-tag {
  display: inline-block;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin: 0.25rem 0.25rem 0.25rem 0;
}

.skill-tag.highlight {
  background: rgba(167, 139, 250, 0.1);
  border-color: var(--accent-violet);
  color: var(--accent-violet);
}

/* ============================================
   PAGE-SPECIFIC: SERVICIOS
   ============================================ */

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--accent-violet);
  transform: translateY(-4px);
}

.service-card.featured {
  border-color: var(--accent-mint);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.05) 0%, var(--bg-secondary) 50%);
}

.service-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  background: var(--accent-mint);
  color: var(--bg-primary);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card .price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1rem 0;
}

.service-card .price .from {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.service-card .price .currency {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

.service-features {
  list-style: none;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.service-features li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.service-features li::before {
  content: '→';
  color: var(--accent-mint);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.service-meta {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cta-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle, rgba(167, 139, 250, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(52, 211, 153, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.process-step {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.process-step .number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-mint);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
}

/* Disclaimer note */
.note {
  background: var(--bg-tertiary);
  border-left: 3px solid var(--accent-violet);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.note .note-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-violet);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
