.masthead {
  text-align: center;
  padding: 1.5rem 0 1rem;
  border-bottom: 2px solid var(--ink-strong);
  margin-bottom: 1.25rem;
  animation: masthead-in 0.7s var(--ease) both;
}

.masthead-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.masthead-brand {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.breaking {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  margin: 0 0 1.25rem;
  animation: rise 0.7s var(--ease) 0.08s both, pulse-breaking 2.4s ease-in-out 0.8s infinite;
}

.breaking span {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  animation: rise 0.75s var(--ease) 0.12s both;
}

.hero-story { display: grid; gap: 1rem; }
.hero-media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.hero-media:hover img {
  transform: scale(1.03);
}

.hero-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  margin: 0.25rem 0;
}

.hero-copy h2 a,
.rail-item h3 a,
.story-card h2 a,
.story-card h3 a,
.article-header h1 {
  text-decoration: none;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0.35rem 0;
}

.section-label {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.meta { color: var(--muted); font-size: 0.88rem; }

.secondary-rail {
  display: grid;
  gap: 1rem;
  align-content: start;
  border-left: 1px solid var(--line);
  padding-left: 1.25rem;
}

.rail-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.rail-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.25rem 0 0;
  line-height: 1.25;
}

.hero-empty {
  padding: 2rem;
  border: 1px dashed var(--line-strong);
  background: var(--bg-elevated);
}

.section-block {
  margin: 2rem 0;
  animation: rise 0.55s var(--ease) both;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink-strong);
  margin-bottom: 1rem;
}

.section-head h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.5rem;
}

.section-head a { text-decoration: none; }

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.story-grid-wide { grid-template-columns: repeat(3, 1fr); }

.story-card h2,
.story-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0.4rem 0;
}

.story-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.story-thumb img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.latest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.latest-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.latest-list a { text-decoration: none; font-weight: 600; }
.latest-list time { color: var(--muted); white-space: nowrap; font-size: 0.85rem; }

.article-page { max-width: 740px; margin: 0 auto; }
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0.4rem 0;
}

.article-hero {
  margin: 1.25rem 0;
}
.article-hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-body p { margin: 0 0 1rem; }
.article-body h2,
.article-body h3 { font-family: var(--font-display); }

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1.5rem 0 0;
}

.tag-list li {
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  font-size: 0.85rem;
  background: var(--bg-soft);
}

.tag-list a { text-decoration: none; }
.tag-list a:hover { color: var(--accent); }


.search-page h1,
.section-page h1 {
  font-family: var(--font-display);
}

.search-hero {
  text-align: center;
  padding: 1.5rem 0 1.75rem;
  border-bottom: 2px solid var(--ink-strong);
  margin-bottom: 1.5rem;
  animation: rise 0.55s var(--ease) both;
}

.search-hero h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.search-hero-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}

.search-hero-form input[type="search"] {
  flex: 1 1 240px;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

.search-meta,
.search-hint { color: var(--muted); margin: 0 0 1rem; }

.search-results {
  display: grid;
  gap: 1rem;
}

.search-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  animation: rise 0.45s var(--ease) both;
}

.search-card-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.search-card-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0.2rem 0 0.35rem;
  line-height: 1.25;
}

.search-card-body h2 a { text-decoration: none; }
.search-card-body p { margin: 0 0 0.35rem; color: var(--muted); }

.search-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}

.search-empty h2 { font-family: var(--font-display); margin-bottom: 0.5rem; }

.search-form {
  display: grid;
  gap: 0.5rem;
  max-width: 520px;
  margin: 1rem 0 1.5rem;
}

.ad-slot {
  margin: 1.25rem 0;
  text-align: center;
}

.ad-label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.ad-slot img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  margin: 0 auto;
}

.ad-slot-home_bajo_hero img,
.ad-slot-home_entre_secciones img,
.ad-slot-header_top img {
  max-height: 110px;
}

.ad-slot a { display: block; text-decoration: none; }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state h1 { font-family: var(--font-display); font-size: 2.5rem; }

@media (max-width: 640px) {
  .search-card { grid-template-columns: 1fr; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes masthead-in {
  from { opacity: 0; transform: translateY(8px); letter-spacing: 0.02em; }
  to { opacity: 1; transform: translateY(0); letter-spacing: -0.03em; }
}

@keyframes pulse-breaking {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.28); }
  50% { box-shadow: 0 0 0 6px rgba(196, 30, 58, 0); }
}

.badge-paywall {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.paywall-box {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 70%),
    var(--bg-elevated);
  animation: rise 0.5s var(--ease) both;
}

.paywall-box h2 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.paywall-box p { margin: 0 0 1rem; color: var(--muted); }

.comments-block {
  max-width: 740px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.comment-form,
.comment-list {
  display: grid;
  gap: 0.55rem;
}

.comment-form label { font-weight: 600; font-size: 0.9rem; }

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--ink);
  font: inherit;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.comment-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.comment-list time {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.15rem 0 0.4rem;
}

.comment-list p { margin: 0; white-space: pre-wrap; }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .secondary-rail {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }
  .story-grid,
  .story-grid-wide { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .story-grid,
  .story-grid-wide { grid-template-columns: 1fr; }
  .latest-list li { flex-direction: column; gap: 0.2rem; }
}
