@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0D1117;
  --surface: #161B22;
  --border:  #21262D;
  --accent:  #58A6FF;
  --accent2: #3FB950;
  --text:    #E6EDF3;
  --muted:   #8B949E;
  --serif:   'Playfair Display', serif;
  --sans:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,17,23,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
}

.nav-links { display: flex; gap: 0; align-items: center; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .875rem;
  padding: .5rem .9rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--border); }

.nav-cta {
  background: var(--accent) !important;
  color: #0D1117 !important;
  font-weight: 600;
}
.nav-cta:hover { background: #79b8ff !important; }

.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 200px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: .6rem 1rem;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--border);
}
.dropdown-menu a:last-child { border-bottom: none; }

/* ── LAYOUT ── */
.page-wrapper { padding-top: 60px; }

.container { max-width: 980px; margin: 0 auto; }

section { padding: 6rem 2rem; }
section.alt { background: var(--surface); }

/* ── TIPOGRAFÍA ── */
.section-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: .75rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── BOTONES ── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--sans);
  font-weight: 600; font-size: .9rem;
  text-decoration: none;
  cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--accent); color: #0D1117; }
.btn-primary:hover { box-shadow: 0 0 24px rgba(88,166,255,.4); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: .4rem .9rem; font-size: .8rem; }

/* ── TARJETAS ── */
.card-grid { display: grid; gap: 1.25rem; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color .2s;
}
.alt .card { background: var(--bg); }
.card:hover { border-color: var(--accent); }

.card-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(88,166,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.card p  { color: var(--muted); font-size: .875rem; }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: .8rem;
}
footer p + p { margin-top: .35rem; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hide-mobile { display: none; }
}
