.elementor-1282 .elementor-element.elementor-element-b0274c3{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS *//* ======================================================
   CUADRÍCULA VOD - LA HORA DEL INGENIERO
   ====================================================== */

/* Contenedor principal de la cuadrícula */
.yt-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas */
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

.vod-loading-text {
  font-size: 14px;
  color: #64748b;
  padding: 10px;
  grid-column: 1 / -1; /* Ocupa toda la fila mientras carga */
  text-align: center;
}

/* Tarjeta individual */
.yt-grid-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.yt-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

/* Contenedor de la miniatura de YouTube */
.yt-grid-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background-color: #000000;
}

.yt-grid-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botón de reproducción superpuesto */
.yt-grid-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(185, 28, 28, 0.85); /* Rojo institucional */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.yt-grid-card:hover .yt-grid-play-btn {
  background: #dc2626;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Información del vídeo (Título y Fecha) */
.yt-grid-card-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.yt-grid-card-info h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-grid-card-info span {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}

/* ======================================================
   ADAPTACIÓN RESPONSIVA (TABLETS Y MÓVILES)
   ====================================================== */
@media (max-width: 900px) {
  .yt-grid-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en pantallas medianas */
  }
  .yt-grid-img-wrapper {
    height: 160px;
  }
}

@media (max-width: 550px) {
  .yt-grid-container {
    grid-template-columns: 1fr; /* 1 columna completa en teléfonos */
    gap: 16px;
  }
  .yt-grid-img-wrapper {
    height: 200px;
  }
}/* End custom CSS */