/* =========================================================
   RECURSOS (look & feel consistente con SOMOS / CONSTRUYE FUTURO)
========================================================= */

/* Asegura full-bleed dentro del layout */
#contenido{
  width: 100%;
  max-width: none;
  margin: 0;
  background: #020617;
}

#contenido > section{
  width: 100%;
  max-width: none;
}

main#contenido{
  padding-inline: clamp(1rem, 4vw, 3rem);
  padding-top: var(--hub-header-h);
}


/* =========================================================
   HERO – RECURSOS (glow real tipo Construye Futuro)
========================================================= */

.resources-hero{
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: calc(-1 * var(--hub-header-h));


  background:
    /* GLOW VERDE INTENSO (núcleo) */
    radial-gradient(
      circle at 50% 48%,
      rgba(19,232,165,.55),
      rgba(19,232,165,.32) 22%,
      rgba(19,232,165,.18) 38%,
      transparent 62%
    ),

    /* HALO VERDE DIFUSO (brillantina) */
    radial-gradient(
      circle at 50% 60%,
      rgba(19,232,165,.22),
      transparent 70%
    ),

    /* CONTRASTE AZUL PROFUNDO */
    radial-gradient(
      circle at 72% 88%,
      rgba(34,14,122,.22),
      transparent 65%
    );
}

/* Overlay oscuro (VA DESPUÉS DEL GLOW) */
.resources-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(2,6,23,.65),
    rgba(2,6,23,.85)
  );
  z-index: 1;
}

.resources-hero .hero-scroll{
  bottom: 32px;
}

.resources-hero-inner{
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 980px;
  padding: 2rem 0.5rem ;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.resources-hero h1{
  margin: 0;
  font-size: 3.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.resources-hero p{
  margin: 1.2rem auto 0;
  max-width: 820px;
  font-size: 1.25rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.resources-hero::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;

  background: linear-gradient(
    to bottom,
    rgba(2,6,23,0) 0%,
    rgba(2,6,23,.45) 45%,
    rgba(2,6,23,.85) 75%,
    #020617 100%
  );

  pointer-events: none;
  z-index: 2;
}

.resources-hero .scroll-indicator{
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  z-index: 3;
}
/* Dot pequeño (decorativo) */
.hero-dot{
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 1.6rem auto 0;
  border-radius: 50%;
  background: #13E8A5;
  box-shadow:
    0 0 0 8px rgba(19,232,165,.10),
    0 0 34px rgba(19,232,165,.55);
}

/* Indicador tipo cápsula con dot en movimiento */
.scroll-indicator{
  width: 44px;
  height: 64px;
  margin: 1.4rem auto 0;
  border-radius: 999px;

  border: 2px solid rgba(255,255,255,.16);
  background: rgba(2,6,23,.18);
  box-shadow:
    0 18px 50px rgba(0,0,0,.35),
    0 0 0 1px rgba(19,232,165,.10);

  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12px;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scroll-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #13E8A5;
  box-shadow:
    0 0 0 7px rgba(19,232,165,.10),
    0 0 26px rgba(19,232,165,.55);
  animation: scrollDotMove 1.6s ease-in-out infinite;
}

/* Scroll indicator correctamente anclado al hero */
.resources-hero .scroll-indicator{
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 3;
}

@keyframes scrollDotMove{
  0%   { transform: translateY(0);   opacity: .55; }
  45%  { transform: translateY(18px); opacity: 1; }
  100% { transform: translateY(0);   opacity: .55; }
}

/* =========================================================
   SECCIONES (títulos + rayita verde centrada)
========================================================= */
.resources-context,
.resources-purpose{
  padding: 5.2rem 1.5rem;
}

.resources-context-inner,
.resources-purpose-inner{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.resources-context h2,
.resources-purpose h2{
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* Rayita verde centrada */
.resources-context h2::after,
.resources-purpose h2::after{
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin: 1.2rem auto 0;
  border-radius: 2px;
  background: #13E8A5;
  box-shadow: 0 0 18px rgba(19,232,165,.55);
}

.resources-context p,
.resources-purpose p{
  margin: 1.4rem auto 0;
  max-width: 980px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #cbd5e1;
}

/* Fondo suave para propósito (como tu estética) */
.resources-purpose{
  background:
    radial-gradient(ellipse at 50% 0%, rgba(19,232,165,.08), transparent 55%),
    radial-gradient(ellipse at 70% 90%, rgba(34,14,122,.14), transparent 60%);
}

/* =========================================================
   EBOOK CARD (con presencia, consistente con el sitio)
========================================================= */
.free-resource{
  padding: 5rem 1.5rem;
  position: relative;
}

.free-resource::before{
  content: "";
  position: absolute;
  top: -2.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(19,232,165,.65), transparent);
}

.free-resource-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.6rem;
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 3.2rem;

  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(19,232,165,.10), rgba(34,14,122,.14));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.free-badge{
  display: inline-block;
  margin-bottom: 1rem;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(19,232,165,.95);
}

.free-title{
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.free-subtitle{
  margin: .6rem 0 1.4rem;
  font-size: 1.45rem;
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1.4;
}

.free-text{
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #cbd5e1;
  max-width: 680px;
}

.free-list{
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2rem;
}

.free-list li{
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .85rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e5e7eb;
}

/* bullets tipo "dot" (como se ve en tu captura) */
.free-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #13E8A5;
  box-shadow: 0 0 14px rgba(19,232,165,.55);
}

.free-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: .2rem;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  background: #13E8A5;
  color: #020617;

  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;

  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 18px 55px rgba(19,232,165,.25);
}

.free-cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(19,232,165,.34);
  filter: brightness(1.02);
}

.free-note{
  display: block;
  margin-top: 1rem;
  font-size: .9rem;
  color: #94a3b8;
}

/* Columna “portada” */
.free-resource-cover{
  display: flex;
  align-items: center;
  justify-content: center;

  /* 🔑 NO caja, NO altura */
  padding: 0;

  background: transparent;
  border: none;
  box-shadow: none;
}


.free-resource-inner:hover .free-resource-cover img{
  transform: scale(1.03);
}

.free-resource-cover span{
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #e5e7eb;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.free-resource-cover img{
  display: block;

  max-width: 280px;
  width: 100%;
  height: auto;

  border-radius: 14px;

  box-shadow:
    0 24px 55px rgba(0,0,0,.65),
    0 0 30px rgba(19,232,165,.12);

  animation: ebookBreath 6s ease-in-out infinite;
}

@keyframes ebookBreath{
  0%{
    box-shadow:
      0 22px 50px rgba(0,0,0,.55),
      0 0 0 1px rgba(255,255,255,.04);
  }
  50%{
    box-shadow:
      0 26px 60px rgba(0,0,0,.65),
      0 0 28px rgba(19,232,165,.12),
      0 0 0 1px rgba(255,255,255,.05);
  }
  100%{
    box-shadow:
      0 22px 50px rgba(0,0,0,.55),
      0 0 0 1px rgba(255,255,255,.04);
  }
}

@keyframes ebookBreath{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 992px){
  .resources-hero h1{ font-size: 3rem; }
  .resources-hero p{ font-size: 1.1rem; }

  .resources-context h2,
  .resources-purpose h2{ font-size: 2.3rem; }

  .free-resource-inner{
    grid-template-columns: 1fr;
    padding: 2.6rem 2rem;
  }

  .free-title{ font-size: 2.4rem; }
  .free-subtitle{ font-size: 1.25rem; }
  .free-resource-cover{ min-height: 220px; }
}

@media (max-width: 576px){
  .resources-hero h1{ font-size: 2.35rem; }
  .resources-context h2,
  .resources-purpose h2{ font-size: 1.85rem; }

  .free-title{ font-size: 2.1rem; }
}