/* Orientación, directorio, investigación y comunidad. */
.orientation, .daily, .research, .community, .footer {
  --editorial-ink: #181822;
  --editorial-muted: #535362;
  --editorial-blue: #403fc9;
  --editorial-line: #d6d5e0;
  --editorial-serif: Georgia, "Times New Roman", serif;
  color: var(--editorial-ink);
}

:is(.orientation, .daily, .research, .community) {
  padding-block: clamp(3.8rem, 7.4vw, 7.2rem);
}

:is(.orientation, .daily, .research, .community) h2 {
  margin: 0;
  font-size: clamp(2.7rem, 4.6vw, 4.6rem);
  font-weight: 630;
  letter-spacing: -.062em;
  line-height: 1.03;
  text-wrap: balance;
}

:is(.orientation, .daily, .research, .community) h2 em {
  font-family: var(--editorial-serif);
  font-weight: 400;
  letter-spacing: -.057em;
}

:is(.orientation, .daily, .community) :focus-visible {
  outline: 3px solid #4543d7;
  outline-offset: 4px;
}

.orientation {
  background: #f4f3fa;
  border-block: 1px solid #e5e3ed;
}

.orientation-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  gap: clamp(2rem, 7.2vw, 7.7rem);
  align-items: center;
}

.orientation-copy h2 em { display: block; color: var(--editorial-blue); }
.orientation-copy p {
  max-width: 36rem;
  margin: 1.3rem 0 0;
  color: var(--editorial-muted);
  font-size: 1.06rem;
  line-height: 1.65;
}
.orientation-copy p + p { margin-top: .7rem; }
.orientation-copy .text-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 2.75rem;
  gap: .24em;
  margin-top: .5rem;
  color: var(--editorial-blue);
  font-weight: 650;
  text-decoration-color: #918fe7;
}
.orientation-copy .text-link span { color: var(--editorial-muted); }
.orientation-copy .text-link:hover { text-decoration-color: currentColor; }
.orientation .level-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #bdbcca;
}
.orientation .level {
  border: 0;
  border-bottom: 1px solid #c8c7d4;
  border-radius: 0;
  background: transparent;
}
.orientation .level summary {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.35rem);
  min-height: 5rem;
  padding: .8rem .25rem;
  border-radius: 0;
  font-size: clamp(1rem, 1.5vw, 1.23rem);
  line-height: 1.35;
  font-weight: 630;
}
.orientation .level summary:hover { color: var(--editorial-blue); }
.orientation .level-code {
  width: 3rem;
  flex: 0 0 3rem;
  height: auto;
  display: block;
  background: transparent;
  font: italic 1.75rem/1 var(--editorial-serif);
  color: var(--editorial-blue);
  letter-spacing: -.045em;
}
.orientation .expand-mark { color: var(--editorial-blue); flex: 0 0 .85rem; }
.orientation .level p {
  padding: 0 .8rem 1.35rem 4.6rem;
  color: var(--editorial-muted);
  line-height: 1.6;
  margin: 0;
}

.daily { background: #fff; }
.daily-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.4rem 3rem;
}
.daily-heading .section-intro {
  max-width: 26rem;
  margin: 0;
  color: var(--editorial-muted);
  font-size: 1.06rem;
  line-height: 1.55;
}
.daily .topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2.2rem, 5vw, 5rem);
  margin: clamp(1.5rem, 3vw, 2.7rem) 0 0;
}
.daily .topic-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: .13rem clamp(.85rem, 1.6vw, 1.3rem);
  padding: 1.45rem .35rem;
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--editorial-line);
  border-radius: 0;
  background: transparent;
  color: var(--editorial-ink);
  text-align: start;
  box-shadow: none;
}
.daily .topic-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--editorial-line); }
.daily .topic-card .icon-tile {
  grid-row: 1 / span 2;
  align-self: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  color: var(--editorial-blue);
  background: #f0efff;
}
.daily .topic-card svg { width: 1.5rem; height: 1.5rem; }
.daily .topic-card strong {
  margin: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.26;
  font-weight: 640;
  letter-spacing: -.035em;
}
.daily .topic-card > span:last-child {
  color: var(--editorial-muted);
  margin: .17rem 0 0;
  font-size: .98rem;
  line-height: 1.45;
}
.daily .topic-card:hover strong { color: var(--editorial-blue); text-decoration: underline; text-underline-offset: .2em; }
.daily .topic-card:hover .icon-tile { color: white; background: var(--editorial-blue); }

.research { background: #141423; color: #f8f7ff; }
.research .section-intro { max-width: 38rem; margin-top: 1rem; color: #c9c8d8; }
.research h2 em { color: #bab7ff; }
.research .research-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; }
.research .filters {
  display: flex;
  gap: .15rem;
  flex: 0 0 auto;
  max-width: 100%;
  padding: .2rem;
  border: 1px solid #504f66;
  border-radius: .5rem;
  background: transparent;
}
.research .filters button { color: #d8d7e6; min-height: 2.75rem; border-radius: .29rem; padding-inline: .72rem; }
.research .filters button[aria-pressed='true'] { background: #e4e1ff; color: #222139; }
.research .filters button:hover { text-decoration: underline; text-underline-offset: .2em; }
.research :focus-visible, .footer :focus-visible { outline-color: #eeecff; }
.research .research-grid { gap: clamp(.95rem, 2vw, 1.65rem); margin-top: clamp(1.65rem, 3.6vw, 3.3rem); }
.research .research-card {
  position: relative;
  border: 1px solid #404053;
  border-radius: .4rem;
  color: #faf9ff;
  background: #20202f;
  overflow: hidden;
}
.research .research-card:focus-within { outline: 3px solid #c8c5ff; outline-offset: 3px; }
.research .research-card:hover { border-color: #9390bc; }
.research .study-art {
  width: 100%;
  height: auto;
  aspect-ratio: 2.12;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #ffffff19;
}
.research .study-art::before { content: none; }
.research .art-neuro { background-color: #25204d; background-image: url('arte-neuro.webp'); }
.research .art-able { background-color: #584455; background-image: url('arte-able.webp'); }
.research .art-interface { background-color: #302252; background-image: url('arte-interfaz.webp'); }
.research .study-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.1rem, 2vw, 1.6rem);
}
.research .study-meta {
  margin: 0 0 .82rem;
  color: #c2c0fa;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: -.024em;
}
.research .study-meta span { color: #a5a3c5; }
.research .study-body h3 {
  font: 400 clamp(1.65rem, 2.65vw, 2.55rem)/1.04 var(--editorial-serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.research .study-body > p:not(.study-meta) { color: #d3d2e1; margin-block: .85rem 1.2rem; font-size: 1rem; }
.research .study-link { color: #e8e6ff; text-decoration-color: #8b87d4; min-height: 2.75rem; font-weight: 600; }
.research .study-link::after { content: ""; position: absolute; inset: 0; }
.research .research-card:hover .study-link { color: #fff; text-decoration-color: currentColor; }

.community { background: #f7f6fb; }
.community-inner {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.6vw, 4.2rem) clamp(2rem, 7vw, 7rem);
  align-items: center;
}
.community h2 em { display: block; color: var(--editorial-blue); }
.community .section-intro { margin-top: 1.1rem; color: var(--editorial-muted); max-width: 32rem; }
.community .button-outline {
  padding: .77rem 1.15rem;
  background: var(--editorial-ink);
  border: 1px solid var(--editorial-ink);
  color: #fff;
  margin-top: 1.4rem;
  border-radius: .4rem;
}
.community .button-outline:hover { background: var(--editorial-blue); border-color: var(--editorial-blue); }
.community-image { margin: 0; }
.community-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.65;
  object-fit: cover;
  object-position: center 53%;
  border-radius: .4rem;
}
.community-image figcaption {
  margin-top: .5rem;
  font-size: .82rem;
  color: var(--editorial-muted);
}
.community .related {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  border: 0;
  border-block: 1px solid var(--editorial-line);
  padding: 1.35rem 0;
  border-radius: 0;
  background: transparent;
}
.community .related .icon-tile { color: var(--editorial-blue); background: #e9e6ff; }
.community .related > div {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .15rem 1.5rem;
  align-items: center;
}
.community .related h3 { margin: 0; font-weight: 640; font-size: 1.3rem; }
.community .related p { grid-column: 1; margin: 0; color: var(--editorial-muted); }
.community .related .text-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  min-height: 2.75rem;
  color: var(--editorial-blue);
}
.footer { color: #dbdae6; background: #141423; }
.footer-inner { padding-block: 1.65rem; }
.footer .brand-mark, .footer .brand small { color: #c1bfff; }
.footer a:hover { color: white; }

@media (max-width: 54rem) {
  .orientation-inner { grid-template-columns: 1fr; gap: 2rem; }
  .orientation-copy p { max-width: 48rem; }
  .research .research-heading { flex-direction: column; align-items: start; }
  .research .research-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-inner { gap: 2rem; }
  .community .related > div { display: block; }
  .community .related p { margin-top: .3rem; }
}
@media (max-width: 40rem) {
  .daily-heading { display: block; }
  .daily-heading .section-intro { margin-top: .7rem; }
  .daily .topic-grid, .research .research-grid, .community-inner { grid-template-columns: minmax(0, 1fr); }
  .daily .topic-card { padding-block: 1rem; }
  .daily .topic-card:nth-last-child(2) { border-bottom: 0; }
  .daily .topic-card .icon-tile { width: 2.85rem; height: 2.85rem; }
  .orientation .level p { padding-left: 0; }
  .research .filters { flex-wrap: wrap; }
  .community .related { align-items: start; }
}
