:root {
  --foralles-bg: #06090f;
  --foralles-surface: #0d1420;
  --foralles-surface-2: #101a28;
  --foralles-line: rgba(191, 211, 240, 0.16);
  --foralles-text: #eff4fd;
  --foralles-muted: #9fb0c9;
  --foralles-accent: #b7d5ff;
  --foralles-accent-2: #7ea8e6;
}

html {
  scroll-behavior: smooth;
}

body.foralles-editorial,
body.foralles-view-home,
body.foralles-view-page,
body.foralles-view-archive,
body.foralles-view-single,
body.foralles-view-series-taxonomy {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% 8%, rgba(83, 121, 185, 0.14), transparent 70%),
    radial-gradient(900px 500px at 12% 88%, rgba(51, 79, 124, 0.14), transparent 72%),
    linear-gradient(180deg, #06090f 0%, #08111c 52%, #06090f 100%);
  color: var(--foralles-text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body.foralles-view-home,
body.foralles-view-page,
body.foralles-view-archive,
body.foralles-view-single,
body.foralles-view-series-taxonomy {
  min-height: 100vh;
}

.foralles-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.foralles-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(6, 9, 15, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.foralles-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.foralles-brand {
  color: #f7fbff;
  text-decoration: none;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.foralles-nav .menu,
.foralles-nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foralles-nav a {
  color: #dce6f7;
  text-decoration: none;
  font-size: 0.98rem;
}

.foralles-nav a:hover,
.foralles-nav a[aria-current="page"] {
  color: #ffffff;
}

.foralles-main {
  padding: 26px 0 88px;
}

.foralles-page-hero,
.foralles-single-hero {
  padding: 44px 0 26px;
}

.foralles-page-hero h1,
.foralles-single-hero h1,
.foralles-page-content h1 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin: 0 0 14px;
}

.foralles-page-intro,
.foralles-section-intro {
  max-width: 52rem;
  color: var(--foralles-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.68;
  margin: 0;
}

.foralles-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--foralles-accent);
  margin: 0 0 12px;
}

.foralles-page-content {
  max-width: 74rem;
}

.foralles-prose {
  color: #dbe6f8;
}

.foralles-prose > *:first-child {
  margin-top: 0;
}

.foralles-prose p,
.foralles-prose li {
  font-size: 1.06rem;
  line-height: 1.78;
  color: #c7d5eb;
}

.foralles-prose h2,
.foralles-prose h3 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.04em;
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
  color: #f3f7ff;
}

.foralles-prose h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.foralles-prose h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.foralles-prose a {
  color: #d9e8ff;
}

.foralles-home-intro,
.foralles-home-panel,
.foralles-home-callout,
.foralles-card,
.foralles-question-block,
.foralles-research-note {
  border: 1px solid var(--foralles-line);
  background: linear-gradient(180deg, rgba(15, 22, 34, 0.9), rgba(10, 16, 26, 0.85));
  border-radius: 24px;
}

.foralles-home-intro,
.foralles-home-panel,
.foralles-home-callout,
.foralles-research-note {
  padding: 24px;
}

.foralles-home {
  display: grid;
  gap: 26px;
}

.foralles-home-hero {
  display: grid;
  gap: 22px;
  padding-top: 16px;
}

.foralles-home-hero h1 {
  margin-bottom: 8px;
}

.foralles-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.foralles-home-panel p:last-child,
.foralles-home-intro p:last-child,
.foralles-home-callout p:last-child {
  margin-bottom: 0;
}

.foralles-home-panel strong {
  color: #ffffff;
}

.foralles-home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.foralles-home-links .wp-block-button__link,
.foralles-button,
.wp-block-button__link {
  border-radius: 999px;
  padding: 0.92rem 1.3rem;
  text-decoration: none;
  border: 1px solid rgba(191, 211, 240, 0.18);
}

.foralles-button.is-secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
  color: #eff4fd;
  background: transparent;
}

.foralles-section {
  margin-top: 18px;
}

.foralles-section-heading {
  max-width: 44rem;
  margin-bottom: 18px;
}

.foralles-section-heading h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.foralles-card-grid {
  display: grid;
  gap: 16px;
}

.foralles-card-grid-ideas {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.foralles-card-grid-series {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.foralles-card {
  padding: 20px;
}

.foralles-card-meta,
.foralles-single-meta,
.foralles-series-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.foralles-badge,
.foralles-badge-piece {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(191, 211, 240, 0.18);
  color: var(--foralles-accent);
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.foralles-badge-note-breve,
.foralles-badge-nota-breve {
  color: #d8f0ff;
}

.foralles-badge-ensayo {
  color: #e5dcff;
}

.foralles-badge-concepto {
  color: #d9ffe5;
}

.foralles-date {
  color: var(--foralles-muted);
  font-size: 0.92rem;
}

.foralles-card-title {
  margin: 14px 0 10px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.3rem, 2.1vw, 1.9rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.foralles-card-title a {
  color: #f4f8ff;
  text-decoration: none;
}

.foralles-card-title a:hover {
  color: #d7e7ff;
}

.foralles-card-excerpt,
.foralles-series-question,
.foralles-question-block p {
  color: #bdcce2;
  line-height: 1.7;
}

.foralles-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.foralles-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #f0f5ff;
  background: rgba(133, 168, 226, 0.1);
  border: 1px solid rgba(191, 211, 240, 0.14);
}

.foralles-featured-image {
  margin: 0 0 24px;
}

.foralles-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

.foralles-research-note {
  margin-top: 34px;
}

.foralles-research-note p:last-child {
  margin-bottom: 0;
}

.foralles-question-block {
  max-width: 48rem;
  margin-top: 18px;
  padding: 18px 20px;
}

.foralles-empty-state {
  padding: 26px;
  border-radius: 24px;
  border: 1px dashed rgba(191, 211, 240, 0.18);
  color: var(--foralles-muted);
}

.foralles-pagination {
  margin-top: 28px;
}

.foralles-pagination .nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.foralles-pagination a,
.foralles-pagination span {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(191, 211, 240, 0.14);
  color: #f2f6ff;
  text-decoration: none;
  padding: 0 14px;
}

.foralles-pagination .current {
  background: rgba(126, 168, 230, 0.16);
}

.foralles-site-footer {
  padding: 26px 0 34px;
  color: var(--foralles-muted);
}

.foralles-site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .foralles-home-grid,
  .foralles-card-grid-ideas,
  .foralles-card-grid-series {
    grid-template-columns: 1fr;
  }

  .foralles-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .foralles-nav .menu,
  .foralles-nav-list {
    flex-wrap: wrap;
    gap: 14px;
  }

  .foralles-main {
    padding-top: 18px;
  }
}

@media (max-width: 680px) {
  .foralles-shell {
    width: min(1120px, calc(100vw - 24px));
  }

  .foralles-home-intro,
  .foralles-home-panel,
  .foralles-home-callout,
  .foralles-card,
  .foralles-question-block,
  .foralles-research-note {
    padding: 18px;
    border-radius: 20px;
  }

  .foralles-page-hero,
  .foralles-single-hero {
    padding-top: 30px;
  }

  .foralles-prose p,
  .foralles-prose li {
    font-size: 1rem;
  }
}
