/* =========================================================================
   ROBERTO ESTRADA - ELEMENTOR WIDGETS STYLES
   Paleta oficial: Azul #225F8B, Turquesa #297E88, Navy #1A1A2B, Blanco #FFFFFF
   (CERO COLOR NARANJA)
   ========================================================================= */

/* Grids Comunes */
.rem-events-plugin-grid,
.rem-videos-plugin-grid,
.rem-blog-plugin-grid {
  display: grid;
  gap: 32px;
  width: 100%;
}

.rem-events-plugin-grid.cols-2,
.rem-videos-plugin-grid.cols-2,
.rem-blog-plugin-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.rem-events-plugin-grid.cols-3,
.rem-videos-plugin-grid.cols-3,
.rem-blog-plugin-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.rem-events-plugin-grid.cols-4,
.rem-videos-plugin-grid.cols-4,
.rem-blog-plugin-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* WIDGET 1: EVENTOS & CONCIERTOS (AFICHE VERTICAL 4:5) */
.rem-event-plugin-card {
  background: #FFFFFF !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rem-event-plugin-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(34, 95, 139, 0.16);
}

.rem-event-plugin-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5 !important; /* AFICHE VERTICAL COMPLETO */
  background-color: #1A1A2B;
}

.rem-event-plugin-thumb a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.rem-event-plugin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center top !important;
  display: block;
  transition: transform 0.4s ease;
}

.rem-event-plugin-card:hover .rem-event-plugin-thumb img {
  transform: scale(1.03);
}

.rem-event-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #225F8B, #297E88);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.rem-event-badge {
  position: absolute;
  bottom: -14px;
  left: 20px;
  background-color: #225F8B;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(34, 95, 139, 0.35);
  z-index: 2;
  pointer-events: none;
}

.rem-event-plugin-body {
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.rem-event-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.rem-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748B;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

.rem-event-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  color: #1A1A2B !important;
  margin: 0 0 16px 0;
  text-transform: none !important;
  letter-spacing: -0.01em;
}

.rem-event-title a {
  color: #1A1A2B !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rem-event-title a:hover {
  color: #225F8B !important;
}

.rem-event-action {
  margin-top: auto;
  padding-top: 18px;
}

.rem-event-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #225F8B !important;
  color: #FFFFFF !important;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 18px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(34, 95, 139, 0.25);
  transition: all 0.25s ease;
}

.rem-event-btn:hover {
  background: #297E88 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(41, 126, 136, 0.35);
}

/* WIDGET 2: VIDEOS & PLAYLISTS DE YOUTUBE */
.rem-video-plugin-card {
  background: #FFFFFF !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rem-video-plugin-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(34, 95, 139, 0.16);
  border-color: #297E88;
}

.rem-video-plugin-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  overflow: hidden;
}

.rem-video-plugin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rem-video-plugin-card:hover .rem-video-plugin-thumb img {
  transform: scale(1.05);
}

.rem-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(41, 126, 136, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.2rem;
  transition: transform 0.25s, background 0.25s;
}

.rem-video-plugin-card:hover .rem-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: #225F8B;
}

.rem-video-plugin-body {
  padding: 20px 22px 24px;
  flex-grow: 1;
}

.rem-video-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  color: #1A1A2B !important;
  margin: 0;
  letter-spacing: -0.01em;
}

.rem-video-plugin-card:hover .rem-video-title {
  color: #225F8B !important;
}

/* WIDGET 3: BLOG CON BADGE FLOTANTE */
.rem-blog-plugin-card {
  background: #FFFFFF !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rem-blog-plugin-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26, 26, 43, 0.12);
}

.rem-blog-plugin-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #F1F5F9;
}

.rem-blog-plugin-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.rem-blog-plugin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rem-blog-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #225F8B, #297E88);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

/* Badge flotante en Azul Corporativo #225F8B */
.rem-blog-floating-date {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #225F8B;
  color: #FFFFFF;
  width: 52px;
  height: 54px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(34, 95, 139, 0.35);
  z-index: 2;
  pointer-events: none;
}

.rem-blog-floating-date .day {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
}

.rem-blog-floating-date .month {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
  margin-top: 2px;
  color: #FFFFFF;
}

.rem-blog-plugin-body {
  padding: 28px 24px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.rem-blog-category {
  color: #297E88;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.rem-blog-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.35;
  color: #1A1A2B !important;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.rem-blog-title a {
  color: #1A1A2B !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rem-blog-title a:hover {
  color: #225F8B !important;
}

.rem-blog-excerpt {
  color: #64748B;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.rem-blog-readmore {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  background-color: #F1F5F9;
  color: #225F8B !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(34, 95, 139, 0.2);
  transition: all 0.25s ease;
}

.rem-blog-readmore:hover {
  background-color: #225F8B;
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(34, 95, 139, 0.3);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
  .rem-events-plugin-grid.cols-3,
  .rem-events-plugin-grid.cols-4,
  .rem-videos-plugin-grid.cols-3,
  .rem-videos-plugin-grid.cols-4,
  .rem-blog-plugin-grid.cols-3,
  .rem-blog-plugin-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .rem-events-plugin-grid,
  .rem-videos-plugin-grid,
  .rem-blog-plugin-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}
