/* =============================================================
   SECCIONES: VIDEOS + RECURSOS
   Grilla de videos con facade de YouTube y bloque de recursos.
   ============================================================= */


/* ---------- Videos ---------- */
/* =============================================
   VIDEOS
============================================= */
.videos { padding: 6rem 0; background: var(--gris-bg); }
.videos-header { text-align: center; margin-bottom: 3rem; }
.videos-header h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--azul-dark);
  margin-bottom: 0.7rem;
}
.videos-header p { font-size: 1rem; color: var(--gris-texto); }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.video-card {
  background: var(--blanco);
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform 0.25s, box-shadow 0.25s;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,27,110,0.15);
}
.video-thumb { position: relative; aspect-ratio: 16/9; background: var(--azul-dark); }
.video-body { padding: 1rem 1.2rem 1.3rem; }
.video-body h4 { font-size: 0.93rem; font-weight: 700; color: var(--texto); margin-bottom: 0.35rem; line-height: 1.35; }
.video-body p { font-size: 0.81rem; color: var(--gris-texto); line-height: 1.55; }

/* ---------- YouTube facade ---------- */
/* ── YouTube Facade ── */
.yt-facade {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #000;
  overflow: hidden;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.yt-facade:hover img {
  transform: scale(1.04);
  opacity: 0.85;
}
.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  width: 68px;
  height: 48px;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.yt-facade:hover .yt-play {
  transform: translate(-50%, -50%) scale(1.12);
}
.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Recursos ---------- */
/* =============================================
   RECURSOS
============================================= */
.recursos {
  padding: 5rem 0;
  background: linear-gradient(160deg, #07113d 0%, #0D1B6E 55%, #1a2db8 100%);
  position: relative;
  overflow: hidden;
}
.recursos::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.recursos::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,165,0,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.recursos-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}
.recursos-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 0.6rem;
}
.recursos-header p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
}

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  position: relative;
  z-index: 2;
}

.rec-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.6rem 1.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-l);
  color: var(--blanco);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.rec-card:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(240,165,0,0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

.rec-card-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-s);
  background: rgba(240,165,0,0.15);
  border: 1px solid rgba(240,165,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.rec-card-title {
  font-family: var(--font-titulo);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.3;
}
.rec-card-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  flex: 1;
}
.rec-card-arrow {
  font-size: 0.78rem;
  font-family: var(--font-titulo);
  font-weight: 700;
  color: var(--amarillo-light);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

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