:root {
  --blue: #153f7e;
  --red: #bf101e;
  --ink: #172132;
  --muted: #626a76;
  --line: #e9e8e3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}
a {
  color: var(--blue);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #e4b82f;
  outline-offset: 4px;
}
img {
  max-width: 100%;
  display: block;
}
header {
  border-bottom: 1px solid var(--line);
  background: white;
}
.nav {
  max-width: 1090px;
  margin: auto;
  padding: 17px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.return {
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 32px 88px;
}
.article {
  max-width: 880px;
  margin: auto;
}
.eyebrow {
  color: var(--red);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 0 0 19px;
}
.meta time {
  color: var(--muted);
  font-size: 13px;
}
h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(2.5rem, 4.7vw, 4.4rem);
  line-height: 1.13;
  margin: 0 0 26px;
  text-wrap: balance;
}
.excerpt {
  font-size: clamp(1.16rem, 2vw, 1.42rem);
  color: #526070;
  line-height: 1.7;
  margin: 0 0 34px;
  max-width: 73ch;
}
.cover {
  width: 100%;
  max-height: 490px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 17px;
  margin: 0 0 45px;
}
.body {
  font-size: clamp(1.1rem, 1.5vw, 1.23rem);
  line-height: 1.9;
  color: #273b4b;
  overflow-wrap: anywhere;
  max-width: 75ch;
  margin-inline: auto;
}
.body p {
  margin: 0 0 1.3em;
  white-space: pre-line;
}
.body h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.3;
  margin: 1.5em 0 0.6em;
}
.body h3 {
  font-size: 1.4rem;
  margin: 1.4em 0 0.5em;
}
.body ul,
.body ol {
  padding-left: 1.5em;
  margin: 0 0 1.35em;
}
.body li {
  margin-bottom: 0.4em;
}
.body blockquote {
  border-left: 4px solid var(--red);
  padding: 0.2em 0 0.2em 1.2em;
  margin: 1.6em 0;
  font-style: italic;
  color: #536174;
}
.body code {
  background: #f3f5f7;
  padding: 0.1em 0.3em;
  border-radius: 4px;
  font-size: 0.9em;
}
.body a {
  text-underline-offset: 3px;
}
.actions {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 50px auto 0;
  padding-top: 26px;
  max-width: 75ch;
}
.actions button,
.actions a {
  font:
    700 13px 'DM Sans',
    sans-serif;
  border: 1px solid var(--blue);
  background: var(--blue);
  border-radius: 9px;
  color: white;
  padding: 13px 17px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.actions button:hover,
.actions a:hover {
  transform: translateY(-2px);
  background: #0c315c;
  color: white;
}
.actions a.secondary {
  background: white;
  color: var(--blue);
}
#status {
  padding: 25px 0;
  color: var(--muted);
}
.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 26px;
}
@media (max-width: 600px) {
  main {
    padding: 27px 20px 42px;
  }
  .article {
    max-width: 100%;
  }
  h1 {
    font-size: clamp(2.25rem, 9vw, 3rem);
  }
  .excerpt {
    font-size: 1.12rem;
  }
  .body {
    font-size: 1.05rem;
    line-height: 1.85;
  }
  .cover {
    aspect-ratio: auto;
    max-height: 360px;
    border-radius: 10px;
    margin-bottom: 28px;
  }
  .actions {
    flex-direction: column;
  }
  .actions > * {
    width: 100%;
  }
}

/* Recomendaciones relacionadas con la categoría del artículo */
.related {
  max-width: 880px;
  margin: 62px auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.related[hidden] {
  display: none;
}
.related h2 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  margin: 0 0 25px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(24, 42, 70, 0.055);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(24, 42, 70, 0.11);
}
.related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.related-card-body {
  padding: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
}
.related-category {
  font-size: 11px;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.related-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}
.related-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.related-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}
@media (max-width: 750px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .related {
    margin-top: 42px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .related-card img {
    height: 185px;
  }
}

.cover.content-logo-fallback,
.related-card img.content-logo-fallback {
  object-fit: contain;
  background: #fff;
  padding: 20px;
}
