/* iTAP Guías — Estilos compartidos */

:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #717171;
  --faint: #9a9a9a;
  --line: #e7e7e7;
  --field: #fafafa;
  --accent-color: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.07);
  --max-w: 740px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --ink: #f5f5f5;
    --muted: #a3a3a3;
    --faint: #737373;
    --line: #2a2a2a;
    --field: #1a1a1a;
    --accent-color: #a78bfa;
    --accent-soft: rgba(167, 139, 250, 0.12);
  }
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

a { color: var(--accent-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.g-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 32px);
  justify-content: space-between;
}

.g-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}

.g-logo .i { text-transform: lowercase; }
.g-logo .tap { text-transform: uppercase; }

.g-header-cta {
  background: var(--ink);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.g-header-cta:hover { opacity: 0.8; text-decoration: none; }

/* Layout */
.g-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) clamp(16px, 4vw, 32px) 80px;
}

/* Breadcrumb */
.g-breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.g-breadcrumb a { color: var(--muted); }
.g-breadcrumb a:hover { color: var(--accent-color); }
.g-breadcrumb span { opacity: 0.5; }

/* Article */
.g-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.g-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--ink);
}

.g-intro {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.g-meta {
  font-size: 0.8rem;
  color: var(--faint);
  margin-bottom: 40px;
}

/* Content */
.g-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 48px 0 16px;
  color: var(--ink);
}

.g-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--ink);
}

.g-content p {
  margin-bottom: 20px;
  color: var(--ink);
}

.g-content ul, .g-content ol {
  margin: 0 0 20px 24px;
}

.g-content li {
  margin-bottom: 8px;
}

.g-content strong {
  font-weight: 700;
  color: var(--ink);
}

/* Callout box */
.g-callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent-color);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.g-callout p { margin: 0; font-size: 0.95rem; }
.g-callout strong { color: var(--accent-color); }

/* Info box */
.g-infobox {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}

.g-infobox__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 8px;
}

/* CTA banner */
.g-cta-banner {
  background: var(--ink);
  color: var(--bg);
  border-radius: 16px;
  padding: 40px;
  margin: 56px 0 0;
  text-align: center;
}

.g-cta-banner h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  color: var(--bg);
}

.g-cta-banner p {
  color: rgba(255,255,255,0.65);
  margin: 0 0 24px;
}

.g-cta-btn {
  display: inline-block;
  background: var(--accent-color);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.g-cta-btn:hover { opacity: 0.85; text-decoration: none; }

/* Related */
.g-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.g-related__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 20px;
}

.g-related__list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0; padding: 0;
}

.g-related__list a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s;
  text-decoration: none;
}

.g-related__list a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  text-decoration: none;
}

/* Footer */
.g-footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(16px, 4vw, 32px);
  text-align: center;
  font-size: 0.8rem;
  color: var(--faint);
}

.g-footer a { color: var(--faint); }
