/* =========================================================
   HOME - CAMINANDO CON PROPÓSITO
   Espacio de recursos, fe vulnerable y acompañamiento
========================================================= */

/* =========================================================
   HERO MÁS SUAVE Y NATURAL
========================================================= */

.home-hero {
  min-height: 92vh;
  background:
    linear-gradient(rgba(222, 222, 234, 0.185), rgba(222, 222, 234, 0.428)),
    url('../img/fondo-montana.webp');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  padding: 7rem 1rem 4rem;
}

.home-hero-overlay {
  width: 100%;
}

.home-hero-box {
  max-width: 870px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 24px;
  padding: 2.8rem 2.8rem 2.5rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.home-hero-box .eyebrow {
  color: #45798e;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}

.home-hero-box h1 {
  max-width: 690px;
  margin: 0 auto 1.3rem;
  color: #61678B;
  font-size: 2.05rem;
  line-height: 1.2;
  font-weight: 800;
}

.home-hero-box p {
  max-width: 670px;
  margin: 0 auto 1rem;
  color: #3B3B3B;
  font-size: 1rem;
  line-height: 1.85;
}

.home-hero-note {
  margin-top: 1.25rem !important;
  font-size: 0.95rem !important;
  font-style: italic;
  color: rgba(59, 59, 59, 0.82) !important;
}

.home-hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

/* =========================================================
   CAMINOS / ENTRADAS EMOCIONALES
========================================================= */

.home-paths {
  background-color: var(--ccp-bg);
}

.path-grid {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.path-card {
  display: block;
  background: rgba(255,255,255,0.82);
  color: var(--ccp-text);
  text-decoration: none;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  border: 1px solid rgba(131, 106, 141, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.path-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.09);
  color: var(--ccp-text) !important;
  text-decoration: none;
}

.path-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background-color: rgba(131, 106, 141, 0.12);
  color: var(--ccp-primary);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.path-card h3 {
  color: var(--ccp-title);
  margin-bottom: 0.8rem;
}

.path-card p {
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* =========================================================
   BLOQUE DE BIENVENIDA / PROPÓSITO
========================================================= */

.home-purpose {
  background-color: white;
}

.purpose-box {
  max-width: 1000px;
  margin: auto;
  background: linear-gradient(135deg, rgba(131,106,141,0.10), rgba(120,172,193,0.14));
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.purpose-box h2 {
  color: var(--ccp-title);
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.purpose-box p {
  color: var(--ccp-text);
  line-height: 1.9;
  font-size: 1.05rem;
}

/* =========================================================
   BIBLIOTECA DE RECURSOS
========================================================= */

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body .btn-principal,
.product-body .btn-secundario {
  margin-top: auto;
  align-self: flex-start;
}

.product-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 310px;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(222, 222, 234, 0.65), rgba(255, 255, 255, 0.92));
}

.product-card img {
  display: block;
  border-radius: 16px;
}

.product-card img.product-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card img.product-img-contain {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.home-library {
  background: linear-gradient(to bottom, var(--ccp-bg), #ffffff);
}

.library-grid {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.resource-card {
  background: rgba(255,255,255,0.88);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  border: 1px solid rgba(131, 106, 141, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.09);
}

.resource-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.resource-body {
  padding: 1.8rem;
}

.resource-label {
  display: inline-block;
  background-color: var(--ccp-badge);
  color: white;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.resource-label.free {
  background-color: var(--ccp-accent);
}

.resource-label.paid {
  background-color: var(--ccp-primary);
}

.resource-body h3 {
  color: var(--ccp-title);
  margin-bottom: 0.8rem;
}

.resource-body h3 a {
  color: var(--ccp-title);
  text-decoration: none;
}

.resource-body p {
  color: #555;
  line-height: 1.7;
}

.resource-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.4rem 0 0.5rem;
  font-size: 0.92rem;
  color: #666;
}

.resource-meta strong {
  color: var(--ccp-primary);
}

/* =========================================================
   SECCIÓN DE RECURSOS GRATUITOS
========================================================= */

.home-free-resources {
  background-color: white;
}

.free-resources-grid {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
}

.free-resources-content h2 {
  color: var(--ccp-title);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.free-resources-content p {
  color: var(--ccp-text);
  line-height: 1.8;
}

.free-resources-card {
  background-color: var(--ccp-bg);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.free-resources-card h3 {
  color: var(--ccp-title);
}

.free-resources-card p {
  color: #555;
  line-height: 1.7;
}

/* =========================================================
   REFLEXIONES / BLOG
========================================================= */

.home-reflections {
  background-color: var(--ccp-bg);
}

.reflection-grid {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.reflection-card {
  background-color: rgba(255,255,255,0.86);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  border-left: 5px solid var(--ccp-primary);
  transition: transform 0.3s ease;
}

.reflection-card:hover {
  transform: translateY(-5px);
}

.reflection-category {
  display: inline-block;
  color: var(--ccp-primary);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.reflection-card h3 {
  color: var(--ccp-title);
  margin-bottom: 0.8rem;
}

.reflection-card h3 a {
  color: var(--ccp-title);
  text-decoration: none;
}

.reflection-card p {
  color: #555;
  line-height: 1.7;
}

.read-more {
  color: var(--ccp-accent-dark);
  font-weight: 800;
  text-decoration: none;
}

/* =========================================================
   COMUNIDAD / ACOMPAÑAMIENTO
========================================================= */

.home-community {
  background-color: white;
}

.community-box {
  max-width: 1050px;
  margin: auto;
  background-color: var(--ccp-primary);
  color: white;
  border-radius: 24px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

.community-box h2 {
  color: white;
  margin-bottom: 1rem;
}

.community-box p {
  color: rgba(255,255,255,0.86);
  line-height: 1.8;
}

/* =========================================================
   FRASE FINAL
========================================================= */

.home-final {
  background:
    linear-gradient(135deg, rgba(131,106,141,0.12), rgba(120,172,193,0.18));
  text-align: center;
}

.home-final h2 {
  color: var(--ccp-title);
  font-size: clamp(2rem, 4vw, 3rem);
}

.home-final p {
  max-width: 720px;
  margin: 0 auto 1.8rem;
  color: var(--ccp-text);
  line-height: 1.8;
}

/* =========================================================
   RESPONSIVE HOME
========================================================= */

@media (max-width: 992px) {
  .home-hero-grid,
  .free-resources-grid,
  .community-box {
    grid-template-columns: 1fr;
  }

  .home-hero-content {
    text-align: center;
  }

  .home-hero-actions {
    justify-content: center;
  }

  .path-grid,
  .library-grid,
  .reflection-grid {
    grid-template-columns: 1fr 1fr;
  }

  .community-box {
    text-align: center;
  }
}

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

  .home-hero-box {
    padding: 2rem 1.35rem;
    border-radius: 20px;
  }

  .path-grid,
  .library-grid,
  .reflection-grid {
    grid-template-columns: 1fr;
  }

  .purpose-box,
  .community-box {
    padding: 2rem 1.4rem;
  }

  .resource-card img {
    height: 230px;
  }

  .home-hero-actions .btn-principal,
  .home-hero-actions .btn-secundario,
  .home-hero-actions .btn-suave {
    width: 100%;
    text-align: center;
  }
}