/* ===========================================================
   PORTADA — layout de la propuesta publica (2026-08-19)
   Hero diagonal + rejilla editorial de 4 columnas.
   Los colores salen de colors_and_type.css; aqui no se declara
   ni un hex nuevo. El acento display usa --accent de cada seccion.
   =========================================================== */

.hero {
  position: relative;
  width: min(1240px, calc(100% - 64px));
  min-height: 470px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 43% 57%;
  align-items: stretch;
}

.hero__copy {
  position: relative;
  z-index: 4;
  padding: 52px 24px 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__eyebrow {
  margin: 0 0 22px;
  color: var(--accent-fg);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-serif, "Newsreader", Georgia, serif);
  font-weight: 500;
  font-size: clamp(46px, 5.55vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: var(--fg-strong);
}
/* No se toca el display de [data-lang-*]: eso lo gobierna blog.css y una regla
   mas especifica aqui mostraria los dos idiomas a la vez. */
.hero h1 .hero__line { display: block; }
.hero h1 em.hero__line { color: var(--accent-fg); font-weight: 400; }

.hero__intro {
  max-width: 490px;
  margin: 0 0 30px;
  color: var(--fg-muted);
  font-family: var(--font-serif, "Newsreader", Georgia, serif);
  font-size: 20px;
  line-height: 1.45;
}

.hero__cta {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 8px 0 10px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}
.hero__cta svg,
.more-link svg { transition: transform 180ms var(--ease, ease); }
.hero__cta:hover svg,
.more-link:hover svg { transform: translateX(5px); }

.hero__visual {
  position: relative;
  overflow: hidden;
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  background: var(--bg-inverse);
}
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--border);
}
.hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 50%;
}
[data-theme="dark"] .hero__visual img { filter: saturate(0.86) brightness(0.82); }

/* ---------- Rejilla editorial ---------- */

.edition-grid {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 38px 0 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
}

.story-column { min-width: 0; }

.column-heading {
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.column-heading h2 {
  position: relative;
  width: fit-content;
  margin: 0;
  padding: 0 0 10px;
  color: var(--accent-fg);
  font-family: var(--font-serif, "Newsreader", Georgia, serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1;
}
.column-heading h2::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  height: 2px;
  background: var(--accent);
}

.story-list { display: grid; }

.story {
  min-height: 96px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.story__img {
  width: 108px;
  height: 78px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  transition: transform 260ms var(--ease, ease);
}
.story:hover .story__img { transform: scale(1.025); }
.story__copy { min-width: 0; display: grid; gap: 7px; }
.story__meta {
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.story__title {
  color: var(--fg-strong);
  font-family: var(--font-serif, "Newsreader", Georgia, serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.24;
}
.story:hover .story__title { color: var(--accent-fg); }

.more-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-fg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* El acento de cada columna manda sobre el de la pagina.
   Los valores son los mismos tokens que sirve cada seccion. */
.story-column.tech { --accent: #377263; --accent-fg: #2E5F52; }
.story-column.ia   { --accent: #76508E; --accent-fg: #5F4073; }
.story-column.f1   { --accent: #C4382C; --accent-fg: #A82E24; }
[data-theme="dark"] .story-column.tech { --accent: #78B9A5; --accent-fg: #95CDBC; }
[data-theme="dark"] .story-column.ia   { --accent: #BD8DCB; --accent-fg: #CFA8D9; }
[data-theme="dark"] .story-column.f1   { --accent: #EF685A; --accent-fg: #F4877C; }

/* ---------- Adaptable ---------- */

@media (max-width: 1180px) {
  .hero, .edition-grid { width: min(100% - 48px, 1040px); }
  .hero { grid-template-columns: 46% 54%; }
  .edition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; }
}

@media (max-width: 760px) {
  .hero {
    width: min(100% - 40px, 640px);
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 26px;
  }
  .hero__copy { padding: 34px 0 0; }
  .hero__visual {
    order: -1;
    min-height: 240px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .edition-grid {
    width: min(100% - 40px, 640px);
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 30px;
  }
}
