@import url('https://fonts.bunny.net/css?family=libre-baskerville:400,400i,700|inter:400,500,600,700&display=swap');

:root {
  --ink: #111111;
  --muted: #666666;
  --line: #d8d8d8;
  --paper: #faf9f6;
  --white: #ffffff;
  --accent: #b31f2a;
  --accent-dark: #7e1620;
  --blue: #153b5c;
  --green: #1d5b4f;
  --gold: #ad7b27;
  --shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: &quot;Inter&quot;, Arial, sans-serif;
  line-height: 1.5;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.site-header {
  background: #000617;
  border-bottom: 1px solid #0d1430;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.top-strip {
  background: #000617;
  border-bottom: 1px solid #0d1430;
  color: #a0b0cc;
}

.section-nav {
  background: #000617;
  border-top: 1px solid #0d1430;
}

.section-nav a {
  color: #e0e8f8;
}

.section-nav a:hover {
  color: #ffffff;
}

.top-strip,
.masthead,
.section-nav,
main,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.top-strip {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid transparent;
}

.icon-button span {
  display: block;
  width: 20px;
  height: 2px;
  background: #e0e8f8;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.header-actions button,
.header-actions a,
.opinion-box button {
  min-height: 34px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #e0e8f8;
  padding: 0 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.header-actions .primary,
.opinion-box button {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.masthead {
  padding-top: 0;
  padding-bottom: 0;
  text-align: center;
  background: transparent;
  max-width: 100%;
  padding: 2px 20px 4px;
  transition: padding 0.3s ease, max-height 0.3s ease;
}

.masthead-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4px 20px 10px;
}

.kicker,
.label {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.masthead h1 {
  margin: 4px 0 2px;
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: 1;
}

.masthead p:last-child {
  margin: 0;
  color: var(--muted);
}

.section-nav {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 0.92rem;
  font-weight: 800;
}

.section-nav .menu-items {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}



main {
  padding-top: 18px;
}

.live-feed {
  max-width: 1180px;
  min-height: 46px;
  margin: 0 auto 18px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.live-feed span {
  background: var(--ink);
  color: var(--white);
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ticker {
  overflow: hidden;
  color: #2b2b2b;
  font-weight: 700;
}

.ticker p {
  margin: 0;
  transition: opacity 0.25s ease;
}

.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lead-media {
  display: flex;
  height: 100%;
  background: #e8e8e8;
  overflow: hidden;
}

.lead-story img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.lead-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lead-copy h2 {
  margin: 10px 0 12px;
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
  font-size: clamp(1.4rem, 1.85vw, 2.1rem);
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.lead-copy p {
  margin: 0 0 16px;
  color: #3f3f3f;
  font-size: 1.02rem;
}

.byline {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.side-column {
  display: grid;
  gap: 14px;
}

.side-column article,
.news-card,
.review-grid article {
  background: var(--white);
  border: 1px solid var(--line);
}

.side-column article {
  padding: 18px;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

.side-column h3,
.news-card h3,
.list-item h3,
.review-grid h3 {
  margin: 8px 0;
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.16;
}

.side-column p:last-child,
.news-card p:last-child,
.list-item p,
.review-grid p {
  margin: 0;
  color: var(--muted);
}

.news-band,
.split-section,
.tools-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.section-title h2 {
  margin: 0;
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
  font-size: 1.7rem;
}

.section-title a {
  padding-bottom: 6px;
  color: var(--accent);
  font-weight: 800;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  padding: 14px;
}

.news-card h3 {
  font-family: "Libre Baskerville", Georgia, serif;
}

.thumb {
  min-height: 150px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--white);
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
}

.card-image {
  display: block;
  margin-bottom: 14px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.news-card,
.side-column article,
.review-grid article {
  overflow: hidden;
}

.thumb-blue {
  background: linear-gradient(135deg, var(--blue), #4e7895);
}

.thumb-green {
  background: linear-gradient(135deg, var(--green), #79a66c);
}

.thumb-red {
  background: linear-gradient(135deg, var(--accent-dark), var(--gold));
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 26px;
}

.list-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.list-item span {
  color: var(--accent);
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.list-item h3 {
  margin-top: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.25rem;
}

.opinion-box {
  align-self: start;
  padding: 24px;
  background: var(--ink);
  color: var(--white);
}

.opinion-box .label {
  color: #ffbd9b;
}

.opinion-box h2 {
  margin: 8px 0 14px;
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
}

blockquote {
  margin: 0;
  color: #f4f4f4;
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.35;
}

.signature {
  margin: 16px 0;
  font-weight: 800;
}

.button-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  padding: 0 14px;
  font-weight: 800;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.review-grid article {
  padding: 18px;
}

.review-grid strong {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.72rem;
}

.site-footer {
  padding-top: 32px;
  padding-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  color: #e9e9e9;
  background: var(--ink);
}

footer {
  background: var(--ink);
}

.site-footer h2 {
  margin: 0 0 4px;
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
}

.site-footer p {
  margin: 0;
  color: #cfcfcf;
}

.archive-layout,
.article-layout {
  padding-top: 30px;
  padding-bottom: 46px;
}

.single-article {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(22px, 4vw, 46px);
}

.single-article h1 {
  margin: 8px 0 12px;
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2.6rem);
  line-height: 1.08;
}

.article-meta {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 22px;
}

.article-image {
  margin: 0 0 24px;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  color: #252525;
  font-size: 1.08rem;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin-top: 0;
  margin-bottom: 1.2em;
}

.article-content a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
}

.navigation.pagination {
  margin-top: 26px;
  font-weight: 800;
}


.site-logo {
  margin: 0;
}

.logo-img {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.masthead .kicker {
  color: #7ecfff;
  padding-top: 2px;
  font-size: 0.78rem;
}

.masthead p:last-child {
  color: #a0aabb;
  padding-bottom: 14px;
}

.masthead p:last-child strong {
  color: #e0e8f0;
}

@media (max-width: 640px) {
  .logo-img {
    max-width: 100%;
  }
}

.article-page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.article-with-sidebar {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.article-sidebar {
  position: sticky;
  top: 24px;
}

.sidebar-banner {
  border: 1px solid var(--line);
  overflow: hidden;
}

.sidebar-banner img {
  width: 100%;
  height: auto;
  display: block;
}


.article-bottom-banner {
  margin: 28px 0 0;
  overflow: hidden;
  border-radius: 4px;
}

.article-bottom-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}

.article-bottom-banner a:hover img {
  opacity: 0.92;
}

.section-bottom-banner {
  margin-top: 24px;
  overflow: hidden;
}

.section-bottom-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}

.section-bottom-banner a:hover img {
  opacity: 0.92;
}

.podcast-top-banner {
  margin-bottom: 28px;
  overflow: hidden;
}

.podcast-top-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}

.podcast-top-banner a:hover img {
  opacity: 0.9;
}

.podcast-player {
  margin-bottom: 36px;
  background: var(--white);
  border: 1px solid var(--line);
}

.podcast-player iframe {
  display: block;
  width: 100%;
}
@media (max-width: 980px) {
  .article-page-wrap {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}
@media (max-width: 980px) {
  .front-grid,
  .lead-story,
  .split-section {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-story img {
    min-height: 300px;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .top-strip {
    justify-content: center;
  }

  .top-strip p,
  .header-actions {
    display: none;
  }

  .masthead {
    text-align: left;
  }

  .live-feed {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .live-feed span {
    width: max-content;
  }

  .cards-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .lead-copy {
    padding: 20px;
  }

  .site-footer {
    display: block;
  }
}

#today { color: #a0b0cc; }

.right-rail .magazine-box {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid #d8d8d8;
}

/* ── Novedades IA grid (El Mundo style) ── */
.novedades-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 28px;
}

.novedades-lead-img {
  display: block;
  overflow: hidden;
  margin-bottom: 14px;
}

.novedades-lead-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.novedades-lead-title {
  margin: 8px 0 10px;
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
  font-size: clamp(1.25rem, 1.6vw, 1.65rem);
  line-height: 1.18;
}

.novedades-lead-deck {
  margin: 0 0 10px;
  color: #3f3f3f;
  font-size: 1rem;
}

.novedades-list {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  display: flex;
  flex-direction: column;
}

.novedades-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.novedades-item:first-child {
  padding-top: 0;
}

.novedades-item:last-child {
  border-bottom: none;
}

.novedades-item h3 {
  margin: 6px 0 8px;
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.25;
}

.novedades-item-photo {
  padding-top: 0;
}

.novedades-item-img {
  display: block;
  overflow: hidden;
  margin-bottom: 10px;
}

.novedades-item-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

@media (max-width: 980px) {
  .novedades-grid {
    grid-template-columns: 1fr;
  }
  .novedades-list {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
}


/* ── Archive El Mundo layout ─────────────────────────── */
.archive-section-title {
  border-bottom: 2px solid var(--ink);
  margin-bottom: 22px;
  padding-bottom: 6px;
}

.archive-section-title h1 {
  margin: 0;
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
  font-size: 1.7rem;
}

.archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 0;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}

.archive-featured {
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.archive-featured-img {
  display: block;
  overflow: hidden;
  margin-bottom: 14px;
}

.archive-featured-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.archive-featured-title {
  margin: 8px 0 10px;
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
  font-size: clamp(1.35rem, 1.8vw, 2rem);
  line-height: 1.15;
}

.archive-featured-deck {
  margin: 0 0 10px;
  color: #3f3f3f;
  font-size: 1.02rem;
}

.archive-stacked {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
}

.archive-stacked-item {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.archive-stacked-item:last-child {
  border-bottom: none;
}

.archive-stacked-copy h3 {
  margin: 6px 0 8px;
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.22;
}

.archive-stacked-thumb {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.archive-stacked-thumb img {
  width: 110px;
  height: 74px;
  object-fit: cover;
  display: block;
}

.archive-ademas-label,
.archive-more-label {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 2px solid var(--ink);
  padding-top: 10px;
}

.archive-ademas {
  margin-bottom: 26px;
}

.archive-ademas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.archive-ademas-card h3 {
  margin: 8px 0 6px;
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.22;
}

.archive-ademas-img {
  display: block;
  overflow: hidden;
  margin-bottom: 10px;
}

.archive-ademas-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.archive-list-item {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.archive-list-copy h3 {
  margin: 6px 0 8px;
  font-family: &quot;Libre Baskerville&quot;, Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.2;
}

.archive-list-thumb {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.archive-list-thumb img {
  width: 110px;
  height: 74px;
  object-fit: cover;
  display: block;
}

@media (max-width: 980px) {
  .archive-hero {
    grid-template-columns: 1fr;
  }

  .archive-featured {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
  }

  .archive-stacked {
    padding-left: 0;
    padding-top: 16px;
  }

  .archive-ademas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .archive-ademas-grid {
    grid-template-columns: 1fr;
  }

  .archive-stacked-item,
  .archive-list-item {
    grid-template-columns: 1fr 80px;
  }

  .archive-stacked-thumb img,
  .archive-list-thumb img {
    width: 80px;
    height: 54px;
  }
}


/* Fecha publicación: anular herencia de color accent en grillas */
.meta { color: #444; font-weight: 700; }
.meta strong { color: #444 !important; text-transform: none !important; font-size: .82rem; }

/* Fecha publicación - anular herencia de color accent */
.meta { color: #444; font-weight: 700; }
.meta strong { color: #444 !important; text-transform: none !important; font-size: .82rem; }

/* ── NUEVOS COMPONENTES ──────────────────────────────────────────── */

/* Breadcrumb */
.breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: .6rem 1.2rem;
  font-size: .82rem;
  color: #888;
}
.breadcrumb a { color: #888; text-decoration: none; }
.breadcrumb a:hover { color: #e8c97e; }
.breadcrumb-sep { margin: 0 .4rem; }
.breadcrumb-current { color: #bbb; }

/* Article header meta */
.article-header { margin-bottom: 1.2rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.2rem;
  margin-top: .5rem;
  font-size: .82rem;
  color: #888;
}
.article-cat a {
  background: #e8c97e;
  color: #000;
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .6rem;
  border-radius: 3px;
  text-decoration: none;
}
.article-date { color: #aaa; }
.article-author { color: #aaa; }
.article-author strong { color: #ccc; }

/* Social share */
.social-share {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 0;
  margin: 1.2rem 0 .5rem;
  border-top: 1px solid #1a2040;
  border-bottom: 1px solid #1a2040;
}
.share-label { font-size: .82rem; color: #888; margin-right: .2rem; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.share-btn:hover { opacity: .85; transform: scale(1.1); }
.share-tw { background: #000; }
.share-wa { background: #25D366; }
.share-li { background: #0077B5; }

/* Author box */
.author-box {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: #060e2a;
  border: 1px solid #1a2040;
  border-radius: 8px;
  padding: 1.2rem;
  margin: 1.5rem 0;
}
.author-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.author-name {
  font-size: .95rem;
  font-weight: 700;
  color: #e8c97e;
  margin: 0 0 .3rem;
}
.author-name a { color: #e8c97e; text-decoration: none; }
.author-bio { font-size: .85rem; color: #aaa; margin: 0; line-height: 1.5; }

/* Responsive social share & author */
@media (max-width: 600px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .social-share { flex-wrap: wrap; }
}


/* ── Header shrink on scroll ─────────────────────────────────────── */

/* Masthead base transitions */
.masthead {
  overflow: hidden;
  transition: padding 0.3s ease, max-height 0.35s ease, opacity 0.3s ease;
  max-height: 280px;
}
.masthead .logo-img {
  transition: max-width 0.3s ease, margin 0.3s ease;
}
.masthead p {
  transition: opacity 0.25s ease, max-height 0.3s ease;
  overflow: hidden;
}
.site-header {
  transition: box-shadow 0.3s ease;
}

/* Scrolled state — masthead compacto */
.header-scrolled .masthead {
  padding: 2px 20px 2px !important;
  max-height: 56px;
}
.header-scrolled .masthead .logo-img {
  max-width: 180px;
  margin: 0 auto;
}
.header-scrolled .masthead p {
  opacity: 0;
  max-height: 0;
}
.header-scrolled.site-header {
  box-shadow: 0 3px 12px rgba(0,0,0,.55);
}


/* ── Empresas text-cards (sin foto) ─────────────────────────────── */
.text-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.text-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.text-card .text-card-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.text-card .text-card-label a {
  color: #c00;
  text-decoration: none;
}
.text-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.text-card h3 a {
  color: #111;
  text-decoration: none;
}
.text-card h3 a:hover { color: #c00; }
.text-card > p:not(.text-card-label):not(.meta) {
  margin: 0;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.5;
  flex: 1;
}
.text-card .meta {
  margin: 0;
  font-size: 0.8rem;
  color: #555;
}
@media (max-width: 900px) {
  .text-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .text-cards-grid { grid-template-columns: 1fr; }
}
