/* =========================================================
   Páginas de contenido / AdSense-ready
   ========================================================= */

body.is-content {
  padding-bottom: calc(40px + var(--safe-b));
}

/* Nav extra en content pages */
.topbar .nav-pills a.nav-pill {
  text-decoration: none;
  color: inherit;
}

.topbar .nav-more {
  display: none;
}

@media (min-width: 900px) {
  .topbar .nav-more {
    display: flex;
  }
}

.content-wrap {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 28px 16px 60px;
}

.content-wrap--wide {
  width: min(1000px, 100%);
}

.content-hero {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.content-hero .eyebrow {
  margin-bottom: 10px;
}

.content-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 5vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.about-logo,
.content-hero .about-logo {
  width: min(180px, 46vw);
  height: auto;
  display: block;
  margin: 0 auto 16px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
}

.content-hero:has(.about-logo) {
  text-align: center;
}

.content-hero:has(.about-logo) .lead {
  margin-inline: auto;
}

.content-hero .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 58ch;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.content-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Article body */
.prose {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.5vw, 1.55rem);
  color: var(--text);
  letter-spacing: -0.02em;
  margin-top: 2em;
  margin-bottom: 0.55em;
  line-height: 1.25;
}

.prose h3 {
  font-size: 1.12rem;
  color: var(--text);
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--primary-2);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.55em;
}

.prose li::marker {
  color: var(--primary);
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--primary);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-style: normal;
}

.prose .callout {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 77, 109, 0.12), rgba(199, 125, 255, 0.08));
  border: 1px solid var(--border);
  margin: 1.5em 0;
}

.prose .callout--safe {
  background: linear-gradient(145deg, rgba(0, 245, 212, 0.1), rgba(76, 201, 240, 0.06));
}

.prose .callout p:last-child {
  margin-bottom: 0;
}

.prose .callout strong {
  color: var(--cyan);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.2em 0;
  overflow-x: auto;
  display: block;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.prose th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

/* Cards grid for guides index */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  min-height: 180px;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 77, 109, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.guide-card .tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.guide-card h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.guide-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.5;
}

.guide-card .read {
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-2);
}

/* Legal / form */
.legal-updated {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5em;
}

.form-stack {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  max-width: 520px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(0, 245, 212, 0.5);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* Related + CTA */
.content-cta {
  margin-top: 36px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 77, 109, 0.15), rgba(123, 44, 191, 0.12));
  border: 1px solid var(--border);
  text-align: center;
}

.content-cta h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text);
}

.content-cta p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.content-cta .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--text);
}

.related-list {
  display: grid;
  gap: 8px;
}

.related-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.2s;
}

.related-list a:hover {
  border-color: rgba(0, 245, 212, 0.35);
}

.related-list a span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Site footer expanded */
.site-footer--full {
  max-width: 900px;
  margin-inline: auto;
  padding: 32px 16px 40px;
  text-align: left;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-weight: 700;
}

.footer-col a,
.footer-col button {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--primary-2);
}

.footer-bottom {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.55;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.footer-bottom a {
  color: var(--text-muted);
}

/* Age / adsense notice bar */
.site-notice {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: rgba(20, 14, 8, 0.94);
  border-bottom: 1px solid rgba(255, 230, 109, 0.25);
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: center;
  padding: 6px 12px;
  line-height: 1.4;
  padding-top: calc(6px + var(--safe-t));
}

.topbar {
  top: 34px;
}

body.playing .topbar {
  top: 0;
}

.site-notice strong {
  color: var(--gold);
}

/* Ad placeholder (no real ads until approved) */
.ad-slot {
  margin: 28px 0;
  min-height: 90px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 12px;
}

.ad-slot[data-ready="false"]::after {
  content: attr(data-label);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb .sep {
  opacity: 0.5;
}

/* Value props on content home */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.value-card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.value-card h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Mobile nav overflow for content */
@media (max-width: 720px) {
  .topbar .nav-pills .nav-hide-sm {
    display: none;
  }
}
