/* ESTILOS EDITORIALES DE ENTRADA - NOTICIAS APYT (ESTILO EL PAÍS) */
:root {
  --apyt-brand: #ff6600;
  --apyt-ink: #121212;
  --apyt-body-text: #262626;
  --apyt-subdued: #6b6b6b;
  --apyt-hairline: #e6e6e6;
  --apyt-bg-soft: #f8f8f8;
  --font-serif: "Merriweather", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.apyt-article-page {
  background: #ffffff;
  color: var(--apyt-ink);
  font-family: var(--font-sans);
  padding-bottom: 60px;
}

/* CABECERA EDITORIAL */
.apyt-article-header {
  padding: 36px 20px 20px;
}

.apyt-header-inner {
  max-width: 860px;
  margin: 0 auto;
}

.apyt-category-kicker a {
  font-family: var(--font-sans);
  color: var(--apyt-brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}

.apyt-article-headline {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--apyt-ink);
  margin: 0 0 16px;
}

.apyt-article-standfirst p {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.45;
  color: #4a4a4a;
  font-weight: 400;
  margin: 0 0 20px;
}

/* FIRMA Y FECHA */
.apyt-byline-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--apyt-hairline);
  border-bottom: 1px solid var(--apyt-hairline);
  padding: 12px 0;
  margin-top: 24px;
  font-size: 13px;
}

.apyt-author-name a {
  color: var(--apyt-ink);
  font-weight: 700;
  text-decoration: none;
}

.apyt-location-tag {
  color: var(--apyt-subdued);
  margin-left: 6px;
}

.apyt-location-tag::before {
  content: "|";
  margin-right: 6px;
  color: #ccc;
}

.apyt-dateline {
  color: var(--apyt-subdued);
}

/* IMAGEN HERO */
.apyt-hero-media {
  max-width: 1080px;
  margin: 24px auto 36px;
  padding: 0 20px;
}

.apyt-media-wrapper {
  overflow: hidden;
  border-radius: 2px;
}

.apyt-lead-image {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

.apyt-media-caption {
  font-size: 13px;
  line-height: 1.4;
  color: var(--apyt-subdued);
  padding-top: 8px;
  border-bottom: 1px solid var(--apyt-hairline);
  padding-bottom: 12px;
}

/* CUERPO DEL ARTÍCULO */
.apyt-layout-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.apyt-grid-body {
  display: grid;
  grid-template-columns: minmax(0, 700px) 1fr;
  gap: 50px;
}

.apyt-story-text {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.75;
  color: var(--apyt-body-text);
}

.apyt-story-text p {
  margin-bottom: 24px;
}

.apyt-story-text h2, 
.apyt-story-text h3 {
  font-family: var(--font-sans);
  color: var(--apyt-ink);
  font-weight: 700;
  line-height: 1.3;
  margin: 40px 0 16px;
}

.apyt-story-text h2 {
  font-size: 26px;
}

.apyt-story-text blockquote {
  border-left: 3px solid var(--apyt-brand);
  margin: 32px 0;
  padding: 10px 0 10px 24px;
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  color: #1a1a1a;
}

/* ETIQUETAS */
.apyt-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 40px 0 30px;
  padding-top: 20px;
  border-top: 1px solid var(--apyt-hairline);
}

.apyt-tags-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--apyt-subdued);
}

.apyt-tag-pill {
  font-size: 12px;
  font-weight: 600;
  background: var(--apyt-bg-soft);
  color: #444;
  padding: 4px 10px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s;
}

.apyt-tag-pill:hover {
  background: var(--apyt-brand);
  color: #fff;
}

/* CAJA DE AUTOR */
.apyt-author-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--apyt-bg-soft);
  border-left: 3px solid var(--apyt-brand);
  margin-top: 24px;
}

.apyt-author-avatar img {
  border-radius: 50%;
  display: block;
}

.apyt-author-bio h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.apyt-author-bio p {
  margin: 0;
  font-size: 14px;
  color: var(--apyt-subdued);
  line-height: 1.45;
}

/* SIDEBAR RECIENTES */
.apyt-sticky-sidebar {
  position: sticky;
  top: 80px;
  border-left: 1px solid var(--apyt-hairline);
  padding-left: 24px;
}

.apyt-sidebar-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.apyt-bullet {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--apyt-brand);
  border-radius: 50%;
}

.apyt-sidebar-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.apyt-sidebar-item {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--apyt-hairline);
}

.apyt-sidebar-item:last-child {
  border-bottom: none;
}

.apyt-side-cat {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--apyt-brand);
  margin-bottom: 4px;
}

.apyt-side-link {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.35;
  color: var(--apyt-ink);
  text-decoration: none;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.apyt-side-link:hover {
  color: var(--apyt-brand);
}

.apyt-side-date {
  font-size: 11px;
  color: var(--apyt-subdued);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .apyt-grid-body {
    grid-template-columns: 1fr;
  }
  .apyt-article-headline {
    font-size: 32px;
  }
  .apyt-sticky-sidebar {
    position: static;
    border-left: none;
    border-top: 1px solid var(--apyt-hairline);
    padding-left: 0;
    padding-top: 24px;
    margin-top: 30px;
  }
}
