/* =========================================================
   PUBLICACIONES - CAMINANDO CON PROPÓSITO
========================================================= */

.publications-hero {
  min-height: 58vh;
  background-image:
    linear-gradient(
      rgba(222, 222, 234, 0.35),
      rgba(222, 222, 234, 0.82)
    ),
    url('/assets/img/fondo-montana.webp');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 7rem 1.2rem 3.8rem;
  display: flex;
  align-items: center;
}

.publications-hero-box {
  max-width: 870px;
  width: 870px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 26px;
  padding: 2.7rem 2.3rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.publications-hero-box h1 {
  color: #61678B;
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.publications-hero-box p {
  color: #444;
  line-height: 1.8;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.publications-hero-note {
  color: #836a8d !important;
  font-weight: 700;
  font-style: italic;
}

/* BUSCADOR */

.publications-tools-section {
  background-color: #DEDEEA;
  padding: 2.4rem 1rem 1rem;
}

.publications-tools-box {
  max-width: 520px;
  margin: 0 auto;
}

.publications-search-input {
  width: 100%;
  border: 2px solid rgba(120, 172, 193, 0.65);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-family: 'Mulish', sans-serif;
  color: #444;
  outline: none;
  background-color: rgba(255,255,255,0.82);
}

.publications-search-input:focus {
  border-color: #45798e;
  box-shadow: 0 0 0 4px rgba(120, 172, 193, 0.18);
}

/* GRID */

.publications-section {
  background-color: #DEDEEA;
  padding: 3rem 1.2rem 4.5rem;
}

.publications-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.publication-card {
  background-color: rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  border: 1px solid rgba(131, 106, 141, 0.10);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.6rem;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.09);
}

.publication-cover {
  text-align: center;
}

.publication-cover .portada-montana {
  max-width: 220px;
  box-shadow: none;
  background: linear-gradient(to top, #e6e4f3 0%, rgba(255,255,255,0.6) 55%);
}

.publication-cover .portada-montana img {
  max-width: 170px;
}

.publication-label {
  display: inline-block;
  background-color: #b9a6cc;
  color: white;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}

.publication-content h2 {
  color: #836a8d;
  font-size: 1.25rem;
  line-height: 1.28;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.publication-content p {
  color: #555;
  line-height: 1.7;
  font-size: 0.96rem;
  margin-bottom: 1rem;
}

.publication-details {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.publication-details li {
  color: #555;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.publication-details i {
  color: #45798e;
}

.publications-empty-message {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  background-color: rgba(255,255,255,0.72);
  border-radius: 18px;
  padding: 1.4rem;
  color: #61678B;
  font-weight: 700;
}

/* CTA FINAL */

.publications-final-section {
  background-color: #ffffff;
  padding: 4.5rem 1.2rem;
}

.publications-final-box {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(131,106,141,0.10), rgba(120,172,193,0.13));
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.publications-final-box h2 {
  color: #61678B;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.publications-final-box p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: #444;
  line-height: 1.8;
}

.publications-final-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* RESPONSIVE */

@media (max-width: 992px) {
  .publications-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .publications-hero {
    min-height: auto;
    padding: 5.8rem 1rem 3rem;
  }

  .publications-hero-box {
    padding: 2rem 1.4rem;
    border-radius: 22px;
  }

  .publications-hero-box h1 {
    font-size: 1.8rem;
  }

  .publication-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .publication-cover .portada-montana {
    margin: 0 auto;
  }

  .publication-details li {
    justify-content: center;
  }

  .publication-content .btn-secundario {
    width: 100%;
    text-align: center;
  }

  .publications-final-box {
    padding: 2rem 1.4rem;
  }

  .publications-final-actions a {
    width: 100%;
    text-align: center;
  }
}



/* =========================================================
   LANDING PUBLICACIÓN FORMAL - DEVOCIONAL / LIBROS
========================================================= */

.publication-landing-page {
  background-color: #DEDEEA;
}

.publication-landing-hero {
  min-height: 92vh;
  background-image: #836a8d;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 7rem 1.2rem 4rem;
  display: flex;
  align-items: center;
}

.publication-landing-grid {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.publication-book {
  text-align: center;
}

.book-wrap {
  position: relative;
  display: inline-block;
}

.publication-ribbon {
  position: absolute;
  top: 1rem;
  left: -1rem;
  background-color: #78ACC1;
  color: white;
  padding: 0.42rem 1.25rem;
  font-size: 0.82rem;
  transform: rotate(-18deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  border-radius: 999px;
  font-weight: 800;
  z-index: 2;
}

.publication-book-img {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
  transform: rotate(-3deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-book-img:hover {
  transform: rotate(0deg);
  box-shadow: 0 22px 50px rgba(0,0,0,0.20);
}

.publication-trust-list {
  max-width: 360px;
  margin: 2rem auto 0;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.publication-trust-list li {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: #444;
  font-weight: 700;
  background-color: rgba(255,255,255,0.68);
  padding: 0.85rem 1rem;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}

.publication-trust-list i {
  color: #45798e;
}

.publication-info h1 {
  color: #61678B;
  font-size: 1.9rem;
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 1rem;
}

.publication-subtitle {
  color: #836a8d;
  font-size: 1.12rem;
  line-height: 1.75;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.publication-testimonial {
  background-color: rgba(255,255,255,0.72);
  border-left: 5px solid #78ACC1;
  border-radius: 18px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.publication-testimonial p {
  color: #555;
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 0.7rem;
}

.publication-testimonial strong {
  color: #836a8d;
}

.publication-download-card {
  background-color: rgba(255,255,255,0.88);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 14px 34px rgba(0,0,0,0.09);
  border: 1px solid rgba(131,106,141,0.10);
}

.publication-download-card h2 {
  color: #836a8d;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.publication-download-card > p {
  color: #666;
  text-align: center;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.publication-form {
  display: grid;
  gap: 1rem;
}

.publication-form .form-group label {
  color: #836a8d;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.publication-form .form-group input {
  width: 100%;
  border: 2px solid rgba(120,172,193,0.45);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-family: 'Mulish', sans-serif;
  outline: none;
}

.publication-form .form-group input:focus {
  border-color: #45798e;
  box-shadow: 0 0 0 4px rgba(120,172,193,0.18);
}

.form-check-custom {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #555;
  font-size: 0.94rem;
  line-height: 1.55;
}

.form-check-custom input {
  margin-top: 0.25rem;
  accent-color: #836a8d;
}

.form-check-custom a {
  color: #45798e;
  font-weight: 800;
}

.publication-submit {
  width: 100%;
  cursor: pointer;
}

.publication-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.publication-form-note {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin: 0.4rem 0 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* SOBRE */

.publication-about-section {
  background-color: #ffffff;
  padding: 4.5rem 1.2rem;
}

.publication-about-box {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.publication-about-box h2 {
  color: #61678B;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.publication-about-box > p {
  color: #555;
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.publication-about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.publication-about-grid div {
  background-color: #DEDEEA;
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}

.publication-about-grid i {
  color: #836a8d;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.publication-about-grid h3 {
  color: #45798e;
  font-size: 1.08rem;
  font-weight: 800;
}

.publication-about-grid p {
  color: #555;
  line-height: 1.65;
  margin-bottom: 0;
}

/* FINAL */

.publication-final-section {
  background-color: #DEDEEA;
  padding: 4.5rem 1.2rem;
}

.publication-final-box {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(131,106,141,0.10), rgba(120,172,193,0.13));
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.publication-final-box h2 {
  color: #61678B;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.publication-final-box p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: #444;
  line-height: 1.8;
}

.publication-final-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* RESPONSIVE */

@media (max-width: 992px) {
  .publication-landing-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .publication-trust-list {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .publication-landing-hero {
    min-height: auto;
    padding: 5.8rem 1rem 3rem;
    background-attachment: scroll;
  }

  .publication-book-img {
    max-width: 280px;
  }

  .publication-info h1 {
    font-size: 1.8rem;
  }

  .publication-download-card {
    padding: 1.7rem 1.3rem;
  }

  .publication-about-section,
  .publication-final-section {
    padding: 3.5rem 1rem;
  }

  .publication-about-grid {
    grid-template-columns: 1fr;
  }

  .publication-final-box {
    padding: 2rem 1.4rem;
  }

  .publication-final-actions a {
    width: 100%;
    text-align: center;
  }
}



/* =========================================================
   GRACIAS DESCARGA - CAMINANDO CON PROPÓSITO
========================================================= */

.thanks-download-page {
  background-color: #DEDEEA;
}

.thanks-download-hero {
  min-height: 72vh;
  background-image:
    linear-gradient(
      rgba(222, 222, 234, 0.35),
      rgba(222, 222, 234, 0.88)
    ),
    url('/assets/img/fondo-montana.webp');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 7rem 1.2rem 4rem;
  display: flex;
  align-items: center;
}

.thanks-download-card {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 28px;
  padding: 3rem 2.4rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.thanks-download-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.2rem;
  border-radius: 24px;
  background-color: rgba(131, 106, 141, 0.12);
  color: #836a8d;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.thanks-download-card h1 {
  color: #61678B;
  font-size: 1.9rem;
  line-height: 1.22;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.thanks-download-card h2 {
  color: #45798e;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.thanks-download-card p {
  max-width: 680px;
  margin: 0 auto 1.6rem;
  color: #444;
  line-height: 1.8;
}

.thanks-download-actions,
.thanks-support-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.thanks-download-actions a,
.thanks-support-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.thanks-support-section,
.thanks-connect-section {
  padding: 4.5rem 1.2rem;
}

.thanks-support-section {
  background-color: #ffffff;
}

.thanks-connect-section {
  background-color: #DEDEEA;
}

.thanks-support-card,
.thanks-connect-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  border-radius: 26px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.thanks-support-card {
  background:
    linear-gradient(135deg, rgba(131,106,141,0.10), rgba(120,172,193,0.13));
}

.thanks-connect-card {
  background-color: rgba(255,255,255,0.82);
}

.thanks-support-card h2,
.thanks-connect-card h2 {
  color: #61678B;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.thanks-support-card p,
.thanks-connect-card p {
  max-width: 680px;
  margin: 0 auto 1.4rem;
  color: #555;
  line-height: 1.8;
}

.thanks-sinpe-note {
  margin-top: 1.4rem !important;
  font-size: 0.95rem;
}

.thanks-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

.thanks-socials a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(131, 106, 141, 0.12);
  color: #836a8d !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.thanks-socials a:hover {
  background-color: #78ACC1;
  color: white !important;
  transform: translateY(-3px);
  text-decoration: none !important;
}

@media (max-width: 680px) {
  .thanks-download-hero {
    min-height: auto;
    padding: 5.8rem 1rem 3rem;
    background-attachment: scroll;
  }

  .thanks-download-card,
  .thanks-support-card,
  .thanks-connect-card {
    padding: 2rem 1.4rem;
    border-radius: 22px;
  }

  .thanks-download-card h1,
  .thanks-support-card h2,
  .thanks-connect-card h2 {
    font-size: 1.8rem;
  }

  .thanks-download-actions a,
  .thanks-support-actions a {
    width: 100%;
    text-align: center;
  }
}