/*
Theme Name: Astra Chill
Theme URI: https://example.com/astra-chill
Description: Child theme de Astra para portales de noticias.
Author: Aarón
Template: astra
Version: 1.1.0
Text Domain: astra-chill
*/

:root {
  --chill-bg: #f5f7fb;
  --chill-surface: #ffffff;
  --chill-text: #171a21;
  --chill-muted: #707789;
  --chill-primary: #3b5ccc;
  --chill-border: #e4e8f0;
  --chill-radius: 18px;
  --chill-shadow: 0 12px 35px rgba(27, 39, 75, 0.08);
}

body {
  background: var(--chill-bg);
  color: var(--chill-text);
}

.site-content .ast-container {
  max-width: 100%;
  padding: 0;
}

.home-noticias {
  width: 100%;
}

.chill-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.chill-section {
  padding: 34px 0;
}

.chill-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.chill-section__title {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1.1;
}

.chill-section__link {
  color: var(--chill-primary);
  font-weight: 700;
  text-decoration: none;
}

.chill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.chill-grid--latest {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chill-card {
  overflow: hidden;
  background: var(--chill-surface);
  border: 1px solid var(--chill-border);
  border-radius: var(--chill-radius);
  box-shadow: var(--chill-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.chill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(27, 39, 75, 0.13);
}

.chill-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfe5ef;
}

.chill-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.chill-card:hover .chill-card__image img {
  transform: scale(1.04);
}

.chill-card__body {
  padding: 18px;
}

.chill-card__category {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--chill-primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.chill-card__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.chill-card__title a {
  color: inherit;
  text-decoration: none;
}

.chill-card__date {
  color: var(--chill-muted);
  font-size: .88rem;
}

.chill-empty {
  padding: 28px;
  background: var(--chill-surface);
  border: 1px dashed var(--chill-border);
  border-radius: var(--chill-radius);
  color: var(--chill-muted);
}

@media (max-width: 980px) {
  .chill-grid,
  .chill-grid--latest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .chill-container {
    width: min(100% - 22px, 1180px);
  }

  .chill-section {
    padding: 24px 0;
  }

  .chill-grid,
  .chill-grid--latest {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chill-section__header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   NOTA INDIVIDUAL
   ========================================================= */

.single-post .site-content .ast-container {
  display: block;
  max-width: none;
  padding: 0;
}

.single-post #primary {
  width: 100%;
  margin: 0;
  padding: 0;
}

.single-post #secondary,
.single-post .ast-article-single,
.single-post .post-navigation {
  border: 0;
}

.chill-single {
  width: 100%;
  padding: 64px 0 80px;
  background: var(--chill-bg);
}

.chill-single__container {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.chill-article {
  overflow: hidden;
  background: var(--chill-surface);
  border: 1px solid var(--chill-border);
  border-radius: 22px;
  box-shadow: var(--chill-shadow);
}

.chill-article__header {
  padding: clamp(28px, 5vw, 56px) clamp(24px, 6vw, 64px) 30px;
}

.chill-article__category {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--chill-primary);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}

.chill-article__title {
  margin: 0;
  color: var(--chill-text);
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.chill-article__excerpt {
  max-width: 760px;
  margin: 22px 0 0;
  color: #4f5667;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.chill-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--chill-muted);
  font-size: .92rem;
}

.chill-article__meta a {
  color: var(--chill-primary);
  font-weight: 700;
  text-decoration: none;
}

.chill-article__featured-image {
  margin: 0;
  background: #e7ebf2;
}

.chill-article__featured-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
}

.chill-article__featured-image figcaption {
  padding: 10px 24px;
  color: var(--chill-muted);
  font-size: .82rem;
  line-height: 1.45;
  text-align: center;
}

.chill-article__content {
  padding: clamp(30px, 6vw, 64px);
  color: #242833;
  font-size: 1.08rem;
  line-height: 1.85;
}

.chill-article__content > *:first-child {
  margin-top: 0;
}

.chill-article__content > *:last-child {
  margin-bottom: 0;
}

.chill-article__content p,
.chill-article__content ul,
.chill-article__content ol,
.chill-article__content blockquote {
  margin-bottom: 1.45em;
}

.chill-article__content h2,
.chill-article__content h3,
.chill-article__content h4 {
  margin-top: 1.6em;
  margin-bottom: .65em;
  color: var(--chill-text);
  line-height: 1.25;
}

.chill-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.chill-article__content blockquote {
  margin-left: 0;
  padding: 18px 22px;
  background: #f5f7fb;
  border-left: 4px solid var(--chill-primary);
  border-radius: 0 12px 12px 0;
}

@media (max-width: 640px) {
  .chill-single {
    padding: 24px 0 44px;
  }

  .chill-single__container {
    width: min(100% - 20px, 920px);
  }

  .chill-article {
    border-radius: 16px;
  }

  .chill-article__header {
    padding: 26px 20px 24px;
  }

  .chill-article__content {
    padding: 28px 20px 34px;
    font-size: 1rem;
    line-height: 1.75;
  }
}
