.tec-webinars-section {
  padding: 50px 0px;
  {#font-family: 'Montserrat', sans-serif;#}
  background-color: var(--bg-color);
}

.webinars-main-title {
  font-family: PP Neue Machina, sans-serif;
  font-size: 40px;
  color: #1c46f4; /* Azul Tec característico */
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 40px;
}

/* Efecto de rejilla con líneas colapsadas */
.webinars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e1e7ef;
  border-left: 1px solid #e1e7ef;
}

.webinar-card {
  background: #ffffff;
  border-right: 1px solid #e1e7ef;
  border-bottom: 1px solid #e1e7ef;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Header interno de cada celda */
.webinar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.webinar-date {
  font-size: 15px;
  color: #64748b;
}

/* Píldora de Categoría (Liderazgo, Sostenibilidad, etc.) */
.webinar-category {
  font-size: 15px;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 8px 14px;
  font-weight: 500;
}

/* Imagen promocional interna */
.webinar-card-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Cuerpo de texto */
.webinar-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 25px;
}

.webinar-title {
  font-family: Minion Pro, serif;
  font-size: 22px;
  color: #0d1d95;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 15px 0;
}

.webinar-desc p {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #434c66;
  line-height: 1.5;
  margin: 0 auto 30px;
  flex: 1; /* Empuja el botón al fondo si hay menos texto */
}
.webinar-desc * {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #434c66;
  line-height: 1.5;
}

/* Enlace inferior con flecha fluida */
.webinar-link {
  color: #1c46f4;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: block;
  margin: auto 0 0 ;
}

.webinar-link .arrow {
  transition: transform 0.2s ease;
}

.webinar-link:hover .arrow {
  transform: translateX(4px); /* Animación sutil al pasar el mouse */
}
.webinar-link:hover {
  text-decoration: underline;
}


/* Estilos del Pop-up General */
.custom-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Clase para ocultar el modal */
.custom-video-modal.hidden {
  display: none !important;
}

/* Fondo oscuro con Blur moderno */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
}

/* Contenedor de la caja del video */
.modal-wrapper {
  position: relative;
  width: 90%;
  max-width: 90%;
  background: #000000;
  border-radius: 20px; /* Bordes redondeados exactos del Tec */
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Botón de cerrar elegante (X) */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Ajuste Responsivo 16:9 */
.modal-video-body {
  position: relative;
  padding-top: 56.25%; /* Mantiene proporción de cine/pantalla */
  height: 0;
}

.modal-video-body iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  .eco-card-title {
    font-size: 18px;
  }
  .eco-card-desc * {
    font-size: 15px;
  }
  
  .eco-card-stats {
    flex-wrap: wrap;
    gap: 30px;
  }
  .eco-mini-stat:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 767px) {
  .eco-card-title {
    font-size: 18px;
  }
  .eco-card-desc * {
    font-size: 15px;
  }
  
  .eco-card-stats {
    flex-wrap: wrap;
    gap: 30px;
  }
  .eco-mini-stat:nth-child(2) {
    border-right: none;
  }
}

/* Responsivo para Tablets y Celulares */
@media (max-width: 992px) {
  .webinars-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
  }
}

@media (max-width: 640px) { 
  .webinars-main-title {
    font-size: 28px;
  }
  
  .webinar-date, .webinar-category, .webinar-link {
    font-size: 14px;
  }
  .webinar-title {
    font-size: 18px;
  }
  .webinar-desc {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .webinars-grid {
    grid-template-columns: 1fr; /* 1 columna en celular */
  }
}


