/* ============================================================
   BASE.CSS — SimpleConvertly v1.0
   Estilos compartidos por TODAS las páginas.
   Importar después de tokens.css.
   ============================================================ */

/* ── Body ─────────────────────────────────────────────────── */
body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(184, 137, 42, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 80% 100%, rgba(184, 137, 42, 0.04), transparent);
  color: var(--text);
  min-height: 100vh;
  padding: 32px 20px;
  line-height: 1.6;
  transition: background 0.4s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

/* ── Contenedor ───────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: auto;
}

/* ── Hero / Cabecera ──────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
  animation: fadeUp 0.5s var(--ease) both;
}

.hero-left h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--text);
}

[data-theme="dark"] .hero-left h1,
body.dark .hero-left h1 {
  background: linear-gradient(135deg, var(--text) 40%, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  gap: 12px;
}

/* ── Navegación principal ─────────────────────────────────── */
.main-nav {
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 4px;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover  { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }

/* ── Controles de cabecera (botón dark, idioma…) ──────────── */
.header-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.header-controls button {
  font-family: var(--font-body);
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}
.header-controls button:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

#toggleDark {
  font-size: 0.95rem;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
#toggleDark:hover { transform: rotate(20deg); }

/* ── Intro text ───────────────────────────────────────────── */
.intro-text {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}
.intro-text p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ── Divisor ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

/* ── Bloque SEO ───────────────────────────────────────────── */
.seo-block {
  max-width: 860px;
  margin: 0 auto 56px;
  padding: 40px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.seo-block h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; }
.seo-block p  { font-size: 0.9rem; color: var(--text-2); line-height: 1.85; margin-bottom: 12px; }
.seo-block strong { color: var(--text); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  margin-top: 80px;
  padding-top: 0;
  border-top: 1px solid var(--border);
}
.footer-container {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding: 48px 20px 52px;
}
.footer-brand h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--gold); margin-bottom: 10px; }
.footer-brand p  { font-size: 0.87rem; color: var(--muted); line-height: 1.75; max-width: 320px; }

.footer-links h4,
.footer-info h4  { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); margin-bottom: 14px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a,
.footer-info a   { font-size: 0.87rem; color: var(--muted); text-decoration: none; transition: color var(--t-fast); }
.footer-links a:hover,
.footer-info a:hover { color: var(--gold); }
.footer-info p   { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }

.footer-legal-links { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.footer-bottom       { border-top: 1px solid var(--border); padding: 18px 20px; text-align: center; }
.footer-bottom p     { font-size: 0.8rem; color: var(--muted); }

/* ── Responsive base ──────────────────────────────────────── */
@media (max-width: 860px) {
  body         { padding: 20px 14px; }
  .hero-bottom { flex-direction: column; align-items: center; gap: 10px; }
  .main-nav    { justify-content: center; flex-wrap: wrap; }
  .header-controls { justify-content: center; }
  .footer-container { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-brand p   { max-width: 100%; }
  .footer-legal-links { justify-content: center; }
  .seo-block   { padding: 24px 18px; }
}
