/* SISPLUS v0.19.0.6 · Imagen principal de jornadas */

.journey-image-field {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid #d4e4ed;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fcff, #eef8f2);
}

.journey-image-field-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.journey-image-field-copy h2 {
  margin: .25rem 0 .35rem;
  font-size: 1.25rem;
}

.journey-image-field-copy p {
  margin: 0;
  color: #587286;
}

.journey-image-field-copy small {
  display: block;
  margin-top: .55rem;
  color: #718594;
}

.journey-image-picker {
  margin-top: .9rem;
  cursor: pointer;
}

.journey-image-native-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.journey-image-error {
  margin: .6rem 0 0;
  color: #a62929;
  font-size: .75rem;
  font-weight: 750;
}

.journey-image-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  overflow: hidden;
  border: 1px dashed #afc8d7;
  border-radius: 17px;
  background: #fff;
}

.journey-image-preview img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  max-height: 320px;
  object-fit: cover;
}

.journey-image-placeholder {
  display: grid;
  place-items: center;
  gap: .25rem;
  padding: 1rem;
  color: #627b8d;
  text-align: center;
}

.journey-image-placeholder > span {
  font-size: 2rem;
}

.journey-image-placeholder small {
  color: #7d909d;
}

.journey-image-remove {
  position: absolute;
  right: .7rem;
  bottom: .7rem;
  background: rgba(255, 255, 255, .95);
}

.journey-image-grid {
  align-items: stretch;
}

.journey-card-with-image {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.journey-card-media {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #dff3ff, #edf8f1);
}

.journey-card-media.type-vaccination,
.journey-public-hero-media.type-vaccination {
  background: linear-gradient(135deg, #dff1ff, #eef8ff);
}

.journey-card-media.type-sterilization,
.journey-public-hero-media.type-sterilization {
  background: linear-gradient(135deg, #f1eaff, #eef8ff);
}

.journey-card-media.type-adoption,
.journey-public-hero-media.type-adoption {
  background: linear-gradient(135deg, #fff2df, #eef8f2);
}

.journey-card-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.journey-card-image-fallback,
.journey-public-image-fallback {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .45rem;
  width: 100%;
  height: 100%;
  min-height: inherit;
  color: #315d78;
}

.journey-card-image-fallback[hidden],
.journey-public-image-fallback[hidden] {
  display: none !important;
}

.journey-card-image-fallback span {
  font-size: 2.6rem;
}

.journey-card-image-fallback small {
  font-weight: 850;
}

.journey-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .7rem;
  padding: 1rem;
}

.journey-card-content h2,
.journey-card-content p {
  margin: 0;
}

.journey-card-description {
  display: -webkit-box;
  overflow: hidden;
  color: #526f83;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.journey-card-content .journey-meta {
  margin-top: auto;
}

.journey-card-content > .button {
  width: 100%;
}

.journey-public-hero {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
  min-height: 390px;
  overflow: hidden;
  border: 1px solid #d2e3ec;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(17, 67, 101, .08);
}

.journey-public-hero-media {
  position: relative;
  min-height: 390px;
  background: linear-gradient(135deg, #dff3ff, #eef8f2);
}

.journey-public-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.journey-public-image-fallback span {
  font-size: 4rem;
}

.journey-public-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.4rem);
}

.journey-public-hero-content h1 {
  margin: .35rem 0 .6rem;
}

.journey-public-hero-content .journey-description {
  max-width: 760px;
  color: #536f83;
}

.journey-public-hero-content .organization-contact-chips {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .journey-image-field,
  .journey-public-hero {
    grid-template-columns: 1fr;
  }

  .journey-public-hero-media,
  .journey-public-hero-media img {
    min-height: 280px;
    max-height: 360px;
  }
}

@media (max-width: 600px) {
  .journey-image-field {
    padding: .8rem;
  }

  .journey-image-preview,
  .journey-image-preview img {
    min-height: 190px;
  }

  .journey-card-media,
  .journey-card-media img {
    min-height: 170px;
    height: 170px;
  }

  .journey-public-hero {
    min-height: 0;
  }

  .journey-public-hero-media,
  .journey-public-hero-media img {
    min-height: 220px;
    height: 220px;
  }
}

/* SISPLUS v0.19.0.7 · Edición de jornadas */

.journey-edit-notice {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .9rem 1rem;
  border: 1px solid #cfe0ea;
  border-radius: 16px;
  background: #f2f8fc;
  color: #315b75;
}

.journey-edit-notice > span {
  font-size: 1.3rem;
}

.journey-edit-notice strong {
  display: block;
  margin-bottom: .15rem;
}

.journey-edit-notice p {
  margin: .15rem 0 0;
  font-size: .76rem;
  line-height: 1.5;
}

.journey-image-state {
  margin: .6rem 0 0;
  color: #326d45;
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.45;
}

.journey-management-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}

.journey-management-actions .button {
  width: 100%;
}

@media (max-width: 560px) {
  .journey-management-actions {
    grid-template-columns: 1fr;
  }
}

/* SISPLUS v0.19.0.7a · Conservación de la vista pública original */

/*
 * Cuando una jornada no tiene imagen, journey-detail-copy usa display: contents.
 * De esta forma se conserva el mismo diseño de producción: una sola tarjeta
 * horizontal con el contenido a todo el ancho y sin un espacio vacío.
 */
.journey-detail-hero:not(.journey-detail-hero-has-image) .journey-detail-copy {
  display: contents;
}

/*
 * Cuando existe imagen, se mantiene la tarjeta pública original y se agrega
 * únicamente una portada horizontal encima del contenido.
 */
.journey-detail-hero.journey-detail-hero-has-image {
  display: block;
  padding: 0;
  overflow: hidden;
}

.journey-detail-cover {
  position: relative;
  width: 100%;
  min-height: 250px;
  max-height: 360px;
  overflow: hidden;
  border-bottom: 1px solid rgba(167, 196, 214, .55);
  background: linear-gradient(135deg, #dff3ff, #eef8f2);
}

.journey-detail-cover > img {
  display: block;
  width: 100%;
  height: clamp(250px, 32vw, 360px);
  object-fit: cover;
}

.journey-detail-cover-fallback {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .45rem;
  width: 100%;
  min-height: 280px;
  color: #315d78;
  background: linear-gradient(135deg, #dff3ff, #eef8f2);
}

.journey-detail-cover-fallback[hidden] {
  display: none !important;
}

.journey-detail-cover-fallback > span {
  font-size: 3.4rem;
}

.journey-detail-cover-fallback > strong {
  font-size: .8rem;
}

.journey-detail-cover-fallback.type-vaccination {
  background: linear-gradient(135deg, #dff1ff, #eef8ff);
}

.journey-detail-cover-fallback.type-sterilization {
  background: linear-gradient(135deg, #f1eaff, #eef8ff);
}

.journey-detail-cover-fallback.type-adoption {
  background: linear-gradient(135deg, #fff2df, #eef8f2);
}

.journey-detail-hero-has-image .journey-detail-copy {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.journey-detail-hero-has-image .journey-detail-copy h1 {
  margin-top: .35rem;
}

.journey-detail-hero-has-image .organization-contact-chips {
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .journey-detail-cover,
  .journey-detail-cover > img {
    min-height: 200px;
    height: 220px;
  }

  .journey-detail-hero-has-image .journey-detail-copy {
    padding: 1.1rem;
  }
}

