/**
 * Bloques de confianza / historia editorial.
 * Cargar después de main.css.
 */

.origin-story,
.comparativa-origin,
.mission-block {
  margin: 2.5rem 0;
  padding: 1.75rem 1.5rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.origin-story h2,
.comparativa-origin h2,
.mission-block h2 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.origin-story p,
.comparativa-origin p,
.mission-block p {
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.origin-story p:last-child,
.comparativa-origin p:last-child,
.mission-block p:last-child {
  margin-bottom: 0;
}

.trust-note {
  font-size: 0.98rem;
}

.story-timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-left: 2px solid rgba(15, 23, 42, 0.12);
}

.story-timeline li {
  position: relative;
  margin: 0 0 1.5rem 1.25rem;
  padding-left: 0.5rem;
}

.story-timeline li::before {
  content: "";
  position: absolute;
  left: -1.45rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1e3a5f;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
}

.story-timeline h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.story-timeline p {
  margin: 0;
  color: rgba(15, 23, 42, 0.82);
}

.story-values {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 736px) {
  .story-values {
    grid-template-columns: repeat(2, 1fr);
  }
}

.story-values .check-item {
  margin: 0;
}

.site-footer-min .footer-mission {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 42rem;
  opacity: 0.92;
}

.site-footer-min .footer-mission a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-byline {
  margin: 0.35rem 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.92;
}

.article-byline a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================================
   HERO DE OPINIONES - CORRECCIÓN DEFINITIVA
   Solo afecta a páginas con body.page-opinion
   ========================================================= */

body.page-opinion #banner {
  padding: 4em 0 3em 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2em;
}

body.page-opinion #banner .content {
  width: 100% !important;
  flex: 0 0 auto !important;
}

body.page-opinion #banner .image {
  display: flex !important;
  width: 100% !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 0 2em 0 !important;
  padding: 0 !important;
  align-self: center !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

body.page-opinion #banner .image img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 70% !important;
  max-height: 420px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Tablet */
@media screen and (max-width: 980px) {
  body.page-opinion #banner {
    padding: 3em 0 2.5em 0 !important;
  }

  body.page-opinion #banner .image img {
    max-width: 75% !important;
    max-height: 380px !important;
  }
}

/* Móvil */
@media screen and (max-width: 736px) {
  body.page-opinion #banner {
    padding: 2.5em 0 2em 0 !important;
    gap: 1.5em;
  }

  body.page-opinion #banner .image img {
    max-width: 85% !important;
    max-height: 340px !important;
  }
}

/* Móvil pequeño */
@media screen and (max-width: 480px) {
  body.page-opinion #banner .image img {
    max-width: 92% !important;
    max-height: 300px !important;
  }
}/* =========================================================
   HERO DE OPINIONES
   Contenedor independiente de .image.object
   ========================================================= */

body.page-opinion #banner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 4em 0 3em 0 !important;
  gap: 2em !important;
}

body.page-opinion #banner .content {
  width: 100% !important;
  flex: 0 0 auto !important;
}

body.page-opinion #banner .opinion-hero-image {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 0 2em 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
}

body.page-opinion #banner .opinion-hero-image img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 70% !important;
  max-height: 420px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

/* Tablet */
@media screen and (max-width: 980px) {
  body.page-opinion #banner .opinion-hero-image img {
    max-width: 75% !important;
    max-height: 380px !important;
  }
}

/* Móvil */
@media screen and (max-width: 736px) {
  body.page-opinion #banner {
    gap: 1.5em !important;
    padding: 2.5em 0 2em 0 !important;
  }

  body.page-opinion #banner .opinion-hero-image img {
    max-width: 85% !important;
    max-height: 340px !important;
  }
}

/* Móvil pequeño */
@media screen and (max-width: 480px) {
  body.page-opinion #banner .opinion-hero-image img {
    max-width: 92% !important;
    max-height: 300px !important;
  }
}