/* BiciMap — Páginas de contenido
   Fonts: Outfit (headings) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ============================================================
   VARIABLES — Light mode (default)
   ============================================================ */
:root {
  --accent:        #FF5C39;
  --accent-hover:  #E0471E;
  --accent-glow:   rgba(255, 92, 57, 0.15);
  --teal:          #006272;
  --teal-light:    #008799;
  --lime:          #C8D400;

  --bg-base:       #F3F4F0;
  --bg-card:       #FFFFFF;
  --bg-subtle:     #EEF0EC;
  --border:        #E2E5DF;
  --border-strong: #C8CCC6;

  --text-primary:  #111714;
  --text-secondary:#4A5450;
  --text-muted:    #8A9490;

  --header-bg:     #006272;
  --footer-bg:     #004d5a;

  --shadow-card:   0 2px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --radius-card:   14px;
  --transition:    0.22s ease;
}

/* ============================================================
   VARIABLES — Dark mode
   ============================================================ */
[data-theme="dark"] {
  --bg-base:       #0C100E;
  --bg-card:       #161B18;
  --bg-subtle:     #1A1F1C;
  --border:        #2A3128;
  --border-strong: #3A4238;

  --text-primary:  #EDF0EB;
  --text-secondary:#9BA89F;
  --text-muted:    #5A6860;

  --header-bg:     #101714;
  --footer-bg:     #0A0F0D;

  --shadow-card:   0 2px 16px rgba(0,0,0,0.35);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  font-size: 16px;
  transition: background-color var(--transition), color var(--transition);
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-base);
  transition: background-color var(--transition), color var(--transition);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.25;
  color: var(--text-primary);
  transition: color var(--transition);
}

h1 {
  font-size: 2.4em;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.45em;
  font-weight: 600;
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lime);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin: 22px 0 8px;
  color: var(--text-primary);
}

p { margin-bottom: 14px; color: var(--text-secondary); line-height: 1.75; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { margin: 14px 0 18px 24px; }
li { margin-bottom: 7px; color: var(--text-secondary); }
code {
  background: var(--bg-subtle);
  color: var(--teal);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.88em;
  border: 1px solid var(--border);
  transition: background var(--transition);
}

.intro {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding: 44px 0;
  min-height: calc(100vh - 200px);
}

/* ============================================================
   HEADER & NAV
   ============================================================ */
header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

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

.logo img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

/* Dark mode toggle in nav */
#page-theme-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: background var(--transition);
  color: white;
  flex-shrink: 0;
}

#page-theme-toggle:hover {
  background: rgba(255,255,255,0.2);
}

#page-theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   CARDS & BOXES
   ============================================================ */
.highlight-box {
  background: var(--bg-card);
  padding: 28px 32px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin: 28px 0;
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.highlight-box h2 {
  margin-top: 0;
  border: none;
  padding: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.feature-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition),
              transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  border-color: var(--teal-light);
}

[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--teal);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05em;
}

.feature-icon {
  font-size: 2em;
  margin-bottom: 12px;
  display: block;
}

/* Tech grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.tech-item {
  background: var(--bg-subtle);
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.tech-item strong {
  display: block;
  color: var(--teal);
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95em;
}

.tech-item span, .tech-item p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Values */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.value-card {
  background: var(--bg-card);
  padding: 22px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  transition: background var(--transition), border-color var(--transition);
}

.value-card h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.02em;
}

/* ============================================================
   STEPS
   ============================================================ */
.step {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  align-items: flex-start;
}

.step-number {
  background: var(--accent);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255,92,57,0.3);
}

.step-content { flex: 1; }
.step-content h3 { margin-top: 0; }

/* ============================================================
   ALERTS
   ============================================================ */
.tip {
  background: rgba(76, 175, 80, 0.08);
  border-left: 3px solid #4caf50;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 10px 10px 0;
  color: var(--text-secondary);
}

.warning {
  background: rgba(255, 152, 0, 0.08);
  border-left: 3px solid #ff9800;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 10px 10px 0;
  color: var(--text-secondary);
}

/* ============================================================
   BLOG SPECIFIC
   ============================================================ */
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition),
              transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  border-color: var(--teal-light);
}

[data-theme="dark"] .post-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.post-card-body { padding: 24px; }

.post-card-body h2 {
  font-size: 1.25em;
  margin: 0 0 8px;
  border: none;
  padding: 0;
  letter-spacing: -0.01em;
}

.post-card-body h2 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.post-card-body h2 a:hover { color: var(--accent); }

.post-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-family: 'DM Sans', sans-serif;
}

.post-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.read-more {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.read-more:hover { color: var(--accent-hover); gap: 8px; }

.tag {
  display: inline-block;
  background: var(--bg-subtle);
  color: var(--teal);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 5px;
  transition: background var(--transition);
}

[data-theme="dark"] .tag {
  color: var(--text-secondary);
}

.posts-grid {
  display: grid;
  gap: 22px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.cta {
  background: var(--accent);
  color: white;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin: 8px 8px 8px 0;
  box-shadow: 0 3px 10px rgba(255,92,57,0.3);
  transition: background var(--transition), transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(255,92,57,0.4);
}

.cta-secondary {
  background: var(--teal);
  box-shadow: 0 3px 10px rgba(0,98,114,0.25);
}

.cta-secondary:hover {
  background: var(--teal-light);
  box-shadow: 0 5px 16px rgba(0,98,114,0.35);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.8);
  padding: 36px 0 28px;
  margin-top: 60px;
  transition: background var(--transition);
}

footer a {
  color: var(--lime);
  text-decoration: none;
  transition: opacity 0.2s;
}

footer a:hover { opacity: 0.75; }

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links > div { min-width: 140px; }

.footer-links strong {
  display: block;
  margin-bottom: 10px;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.footer-links a {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.footer-links a:hover { color: var(--lime); opacity: 1; }

footer p {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  h1 { font-size: 1.85em; }
  h2 { font-size: 1.25em; }
  .container { padding: 0 16px; }
  .step { flex-direction: column; gap: 8px; }
  .nav-links a { margin-left: 0; padding: 6px 8px; font-size: 13px; }
  .footer-links { gap: 24px; }
  main { padding: 28px 0; }
}
