/* ═══════════════════════════════════════════════════════════════════════
   Edad Digital — Catálogo de Cursos (archive + single)

   Variables Elementor confirmadas en el servidor (--e-global-color-primary,
   --e-global-color-secondary, --e-global-color-text, etc.).
   El resto se define aquí como vars propias del plugin.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Colores semánticos del plugin */
  --ed-c-dark:        #1c2023; /* texto muy oscuro */
  --ed-c-grey:        #666666; /* gris medio (= --e-global-color-text en este kit) */
  --ed-c-white:       #ffffff;
  --ed-c-grey-light:  #d9d9d9;
  --ed-c-bg:          #f5f8ff;
  --ed-c-border:      #dde3ec;

  /* Estado convocatoria */
  --ed-c-badge-green: #c3f0c3; /* ABIERTO — fondo claro */
  --ed-c-badge-red:   #e0553c; /* COMPLETO */
  --ed-c-badge-dark:  #424448; /* CERRADO */
  --ed-c-abierto:     #2a7a2a; /* verde oscuro para texto/bordes calendario */

  /* Botón hover */
  --ed-c-btn-hover:   #0460c4;

  /* Layout & efectos */
  --ed-radius:        10px;
  --ed-shadow-card:   0 4px 14px rgba(0,0,0,0.12);
  --ed-shadow-filter: 0 9px 64px rgba(0,0,0,0.43);
  --ed-transition:    200ms ease;
}

/* ── Layout — Elementor gestiona el contenedor exterior ──────────────── */
.ed-catalogo {
  /* sin max-width, margin, padding ni font-family propios */
}

/* ── Filtros ─────────────────────────────────────────────────────────── */
.ed-filters {
  background: rgba(255,255,255,0.6);
  border-radius: 9px;
  padding: 25px 33px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--ed-shadow-filter);
}

.ed-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.ed-filter-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 160px;
  flex: 1;
}

/* Label: hereda tamaño del cuerpo via Elementor */
.ed-filter-label {
  color: var(--ed-c-dark);
}

.ed-filter-select {
  height: 47px;
  padding: 10px 36px 10px 23px;
  border: 1px solid rgba(43,48,54,0.39);
  border-radius: 10px;
  font-size: 16px;
  color: var(--ed-c-dark);
  background: var(--ed-c-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='13' viewBox='0 0 7 13'%3E%3Cpath d='M3.5 10.5L0.5 4.5h6z' fill='%231c2023'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  box-shadow: 0 1px 1px rgba(10,13,18,0.05);
  cursor: pointer;
}
.ed-filter-select:focus { outline: 2px solid var(--e-global-color-primary); outline-offset: 1px; }

.ed-filters__btn {
  height: 47px;
  padding: 12px 40px;
  background: var(--e-global-color-primary);
  color: var(--ed-c-white);
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ed-transition);
  flex-shrink: 0;
  align-self: flex-end;
}
.ed-filters__btn:hover { background: var(--ed-c-btn-hover); }

.ed-filters__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ed-c-grey);
}

.ed-filters__limpiar {
  background: none;
  border: none;
  color: var(--e-global-color-primary);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: inherit;
}

/* Botón mapa en filtros: redundante con los botones del header */
.ed-filters__mapa-cta { display: none; }

/* ── Cabecera catálogo ──────────────────────────────────────────────── */
.ed-catalogo__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

/* h2 hereda de Elementor: 40px, 700, Plus Jakarta Sans, color text del kit */
.ed-catalogo__title { margin: 0; }

.ed-catalogo__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ed-catalogo__count { color: var(--ed-c-dark); font-size: 16px; font-weight: 600; }

.ed-catalogo__ver-en { font-size: 14px; color: var(--ed-c-grey); white-space: nowrap; }

.ed-catalogo__vistas { display: flex; gap: 4px; }

/* ── Botones de vista ───────────────────────────────────────────────── */
.ed-vista-btn {
  background: var(--e-global-color-primary);
  color: var(--ed-c-white);
  border: none;
  border-radius: 5px;
  padding: 12px 20px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--ed-transition);
  opacity: 0.5;
}
.ed-vista-btn:hover { opacity: 0.8; }
.ed-vista-btn.is-active { opacity: 1; }
.ed-vista-btn img { filter: brightness(0) invert(1); width: 16px; height: 16px; }

/* ── Vistas ─────────────────────────────────────────────────────────── */
.ed-vista { display: none; }
.ed-vista.is-active { display: block; }

/* ── Grid de tarjetas ───────────────────────────────────────────────── */
.ed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.ed-grid__loading,
.ed-grid__empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 48px 16px;
  color: var(--ed-c-grey);
}

/* ── Tarjeta ─────────────────────────────────────────────────────────── */
.ed-card {
  background: var(--ed-c-white);
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ed-shadow-card);
  transition: box-shadow var(--ed-transition), transform var(--ed-transition);
}
.ed-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}

.ed-card__link { display: block; text-decoration: none; }

.ed-card__image {
  position: relative;
  height: 238px;
  overflow: hidden;
  background: var(--ed-c-bg);
}
.ed-card__image img { width:100%; height:100%; object-fit:cover; display:block; }

/* Badges — sólidos según Figma */
.ed-card__badge {
  position: absolute;
  top: 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 26px;
  padding: 0 13px;
  border-radius: 4px;
}
.ed-card__badge--publico {
  left: 10px;
  background: var(--e-global-color-primary);
  color: var(--ed-c-white);
  max-width: calc(55% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ed-card__badge--estado   { right: 10px; }
.ed-card__badge--abierto  { background: var(--ed-c-badge-green); color: var(--ed-c-dark); }
.ed-card__badge--proximo  { background: var(--e-global-color-primary);  color: var(--ed-c-white); }
.ed-card__badge--completo { background: var(--ed-c-badge-red);           color: var(--ed-c-white); }
.ed-card__badge--cerrado  { background: var(--ed-c-badge-dark);          color: var(--ed-c-white); }

.ed-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 20px;
}

/* Título: hereda h3 de Elementor (30px, 600, color text-del-kit = #666)
   Solo neutralizamos el margin por defecto */
.ed-card__title { margin: 0; }
.ed-card__title a { color: inherit; text-decoration: none; }
.ed-card__title a:hover { color: var(--e-global-color-primary); }

/* Descripción: hereda p de Elementor (18px, 400, #666) — solo clamp */
.ed-card__desc {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta: Poppins Light 14px, color azul oscuro (secondary) — específico del diseño */
.ed-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--e-global-color-secondary);
}

.ed-card__meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Neutralizar ícono ::before que algunos temas añaden a <li> */
.ed-card__meta-item::before { display: none !important; }

.ed-card__dot {
  display: inline-block;
  width: 10px;
  height: 13px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
  opacity: 0.5;
}

.ed-card__footer { margin-top: auto; }

/* Botón catálogo: ancho completo */
.ed-card__footer .elementor-button {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  border-radius: 7px;
}

/* ── Paginación ─────────────────────────────────────────────────────── */
.ed-pagination {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.ed-page-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ed-c-dark);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--ed-transition);
}
.ed-page-btn:hover { background: var(--e-global-color-primary); color: var(--ed-c-white); }
.ed-page-btn--active { background: var(--e-global-color-primary); color: var(--ed-c-white); cursor: default; }
.ed-page-ellipsis {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ed-c-dark);
}

/* ── Calendario ─────────────────────────────────────────────────────── */
.ed-cal {
  background: var(--ed-c-white);
  border-radius: var(--ed-radius);
  padding: 24px;
  box-shadow: var(--ed-shadow-card);
}

.ed-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ed-cal__nav button {
  background: none;
  border: 1px solid var(--ed-c-border);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 18px;
  color: var(--e-global-color-primary);
  transition: all var(--ed-transition);
}
.ed-cal__nav button:hover {
  background: var(--e-global-color-primary);
  color: var(--ed-c-white);
  border-color: var(--e-global-color-primary);
}

/* h3 del mes: hereda Elementor — solo quitar margin */
.ed-cal__mes { margin: 0; }

.ed-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--ed-c-border);
  border: 1px solid var(--ed-c-border);
  border-radius: 6px;
  overflow: hidden;
}

.ed-cal__dow {
  background: var(--ed-c-bg);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ed-c-grey);
  padding: 8px 4px;
}

.ed-cal__cell {
  background: var(--ed-c-white);
  min-height: 80px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}
.ed-cal__cell--empty { background: var(--ed-c-bg); }
.ed-cal__cell--today { background: #eef4ff; }
.ed-cal__cell--today .ed-cal__day-num {
  background: var(--e-global-color-primary);
  color: var(--ed-c-white);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ed-cal__day-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-c-dark);
  line-height: 1;
  margin-bottom: 2px;
}

.ed-cal__event {
  display: block;
  font-size: 10px;
  border-radius: 3px;
  padding: 2px 4px;
  text-decoration: none;
  background: var(--ed-c-bg);
  border-left: 3px solid var(--ed-c-grey);
  overflow: hidden;
  line-height: 1.3;
}
.ed-cal__event:hover { opacity: 0.85; }
.ed-cal__event--abierto  { border-color: var(--ed-c-abierto);   background: #f0faf0; }
.ed-cal__event--proximo  { border-color: var(--e-global-color-primary); background: #eef4ff; }
.ed-cal__event--completo { border-color: var(--ed-c-badge-red);  background: #fff4f2; }
.ed-cal__event--cerrado  { border-color: var(--ed-c-badge-dark); background: var(--ed-c-bg); }

.ed-cal__event-title {
  display: block;
  font-weight: 600;
  color: var(--ed-c-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-cal__event-lugar {
  display: block;
  color: var(--ed-c-grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ed-cal__more {
  display: block;
  width: 100%;
  font-size: 10px;
  color: var(--e-global-color-primary);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.ed-cal__more:hover { text-decoration: underline; }

/* Popup calendario */
.ed-cal__popup {
  position: absolute;
  z-index: 9999;
  width: 300px;
  background: var(--ed-c-white);
  border: 1px solid var(--ed-c-border);
  border-radius: var(--ed-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden;
}
.ed-cal__popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--ed-c-bg);
  border-bottom: 1px solid var(--ed-c-border);
  font-size: 13px;
}
.ed-cal__popup-close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--ed-c-grey);
  padding: 0 2px;
}
.ed-cal__popup-close:hover { color: var(--ed-c-dark); }
.ed-cal__popup-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 260px;
  overflow-y: auto;
}
.ed-cal__popup-item {
  padding: 8px 14px;
  border-bottom: 1px solid var(--ed-c-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.ed-cal__popup-item:last-child { border-bottom: none; }
.ed-cal__popup-item a { text-decoration: none; color: var(--ed-c-dark); flex: 1; }
.ed-cal__popup-item a:hover .ed-cal__popup-titulo { text-decoration: underline; }
.ed-cal__popup-titulo { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; }
.ed-cal__popup-lugar  { display: block; font-size: 11px; color: var(--ed-c-grey); margin-top: 2px; }
.ed-cal__popup-estado { font-size: 10px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.ed-cal__popup-item--abierto  .ed-cal__popup-estado { color: var(--ed-c-abierto); }
.ed-cal__popup-item--proximo  .ed-cal__popup-estado { color: var(--e-global-color-primary); }
.ed-cal__popup-item--completo .ed-cal__popup-estado { color: var(--ed-c-badge-red); }
.ed-cal__popup-item--cerrado  .ed-cal__popup-estado { color: var(--ed-c-badge-dark); }

.ed-cal__resumen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ed-c-border);
}
.ed-cal__resumen-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ed-c-grey); }
.ed-cal__resumen-dot  { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.ed-cal__resumen-item--abierto  .ed-cal__resumen-dot { background: var(--ed-c-abierto); }
.ed-cal__resumen-item--proximo  .ed-cal__resumen-dot { background: var(--e-global-color-primary); }
.ed-cal__resumen-item--completo .ed-cal__resumen-dot { background: var(--ed-c-badge-red); }
.ed-cal__resumen-item--cerrado  .ed-cal__resumen-dot { background: var(--ed-c-badge-dark); }

.ed-cal__empty,
.ed-cal__loading { text-align:center; padding:32px; color:var(--ed-c-grey); }

/* ── Single curso — Elementor gestiona el wrapper exterior ──────────── */
.ed-single__back {
  display: inline-block;
  color: var(--e-global-color-primary);
  text-decoration: none;
  margin-bottom: 32px;
  font-size: 16px;
}
.ed-single__back:hover { text-decoration: underline; }

.ed-single__header {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: start;
}

.ed-single__imagen {
  border-radius: var(--ed-radius);
  overflow: hidden;
  max-height: 380px;
  margin-bottom: 40px;
}
.ed-single__imagen img { width:100%; height:100%; object-fit:cover; display:block; }

.ed-single__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ed-single__tag {
  background: var(--e-global-color-primary);
  color: var(--ed-c-white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 13px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* h1: hereda del tema — solo margin */
.ed-single__title { margin: 0 0 16px; }
.ed-single__label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--e-global-color-primary, #0575e5); margin: 0 0 8px; }

.ed-single__meta-aside {
    background: #f0f0f0;
    padding: 35px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .ed-single__meta-aside { padding: 24px; border-radius: 12px; }
}
@media (max-width: 480px) {
    .ed-single__meta-aside { padding: 16px; border-radius: 10px; }
}

/* Desc: hereda p de Elementor */
.ed-single__desc { margin: 0 0 20px; }

/* Info list solo visible en pantallas pequeñas — en desktop usamos el panel Objetivos */
.ed-single__info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ed-single__info li { color: var(--ed-c-grey); font-size: 16px; line-height: 26px; }
.ed-single__info li::before { display: none !important; }
.ed-single__info strong { color: var(--ed-c-dark); }

/* ── Secciones ──────────────────────────────────────────────────────── */
.ed-single__section {
  margin-bottom: 64px;
}

/* H2 de sección: hereda Elementor (40px, 700, Plus Jakarta Sans, color #666) — solo margin */
.ed-single h2,
.ed-single__section h2 { margin: 0 0 48px; color: var(--ed-c-dark) !important; text-transform: capitalize; }

/* ── Sección Objetivos: layout 2 columnas ───────────────────────────── */
.ed-single__objetivos-body {
  display: grid;
  grid-template-columns: 600px 1fr;
  gap: 75px;
  align-items: start;
}

.ed-single__objetivos-text {
  font-size: 18px;
  line-height: 28px;
}

.ed-single__objetivos-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ed-single__objetivos-stats p {
  font-size: 18px;
  line-height: 28px;
  color: #2b3036;
  margin: 0;
}

.ed-single__objetivos-stats strong {
  font-weight: 700;
}

/* ── Convocatorias en single ────────────────────────────────────────── */
.ed-convs__list { display: flex; flex-direction: column; gap: 16px; }
.ed-convs__empty { color: var(--ed-c-grey); }

/* Tarjeta convocatoria: white + blue left border + shadow */
.ed-conv-card {
  display: flex;
  align-items: center;
  gap: 110px;
  background: var(--ed-c-white);
  border-radius: 11px;
  border-left: 5px solid var(--e-global-color-primary);
  box-shadow: var(--ed-shadow-card);
  padding: 0 22px 0 37px;
  min-height: 100px;
}
.ed-conv-card--abierto  { border-left-color: var(--e-global-color-primary); }
.ed-conv-card--proximo  { border-left-color: var(--e-global-color-primary); }
.ed-conv-card--completo { border-left-color: var(--ed-c-badge-red); }
.ed-conv-card--cerrado  { border-left-color: var(--ed-c-badge-dark); }

/* Columna lugar: municipio bold H3, lugar + dirección regulares */
.ed-conv-card__lugar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 267px;
  flex-shrink: 0;
  padding: 30px 0;
}

.ed-conv-card__lugar p { margin: 0; color: var(--ed-c-grey); }

.ed-conv-card__municipio {
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 35px !important;
  letter-spacing: -0.6px !important;
}

.ed-conv-card__nombre {
  font-size: 18px !important;
  line-height: 28px !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ed-conv-card__dir {
  font-size: 18px !important;
  line-height: 28px !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Columna fechas */
.ed-conv-card__fechas {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 260px;
  flex-shrink: 0;
  padding: 30px 0;
  color: var(--ed-c-grey);
}

.ed-conv-card__fechas-rango {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.ed-conv-card__fechas-rango span {
  font-size: 18px;
  line-height: 28px;
  color: var(--ed-c-grey);
  white-space: nowrap;
}

.ed-conv-card__fechas-rango .sep {
  color: var(--ed-c-grey);
  font-size: 18px;
}

.ed-conv-card__fechas p {
  font-size: 16px;
  line-height: 32px;
  color: var(--ed-c-grey);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Columna derecha: plazas + estado + botón */
.ed-conv-card__right {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  flex-shrink: 0;
  padding-top: 11px;
  padding-bottom: 11px;
}

.ed-conv-card__plazas {
  font-size: 16px;
  line-height: 26px;
  color: var(--ed-c-grey);
  white-space: nowrap;
  width: 72px;
  margin: 0;
}

.ed-conv-card__estado {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  padding: 12px 40px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  white-space: nowrap;
  box-sizing: border-box;
}
.ed-conv-card__estado--abierto  { background: var(--ed-c-badge-green); color: var(--ed-c-dark); }
.ed-conv-card__estado--proximo  { background: var(--e-global-color-primary);  color: var(--ed-c-white); }
.ed-conv-card__estado--completo { background: var(--ed-c-badge-red);   color: var(--ed-c-white); }
.ed-conv-card__estado--cerrado  { background: var(--ed-c-badge-dark);  color: var(--ed-c-white); }

/* Estado deshabilitado para botones Elementor */
.ed-btn--disabled {
  background: var(--ed-c-grey-light) !important;
  color: var(--ed-c-grey) !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* ── Admin metabox ──────────────────────────────────────────────────── */
.ed-meta-grid,
.ed-conv-grid { padding: 4px 0; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ed-single__objetivos-body { grid-template-columns: 1fr; gap: 32px; }
  .ed-conv-card { gap: 32px; }
}

@media (max-width: 768px) {
  .ed-filters { padding: 20px; }
  .ed-filters__row { flex-direction: column; align-items: stretch; }
  .ed-filter-group { min-width: unset; width: 100%; }
  .ed-filters__btn { width: 100%; }
    .ed-vista-btn {
        font-size: 0 !important;
        padding: 14px 18px !important;
        gap: 0 !important;
    }
  .ed-vista-btn img { width: 20px; height: 20px; }
  .ed-catalogo__title-text { text-align: center; }
  .ed-single__header { grid-template-columns: 1fr; }
  .ed-conv-card {
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
  }
  .ed-conv-card__lugar,
  .ed-conv-card__fechas { width: auto; flex: 1; min-width: 200px; padding: 0; }
  .ed-conv-card__right { margin-left: 0; width: 100%; padding: 0; }
  .ed-cal__cell { min-height: 60px; }
  .ed-cal__event-lugar { display: none; }
}

@media (max-width: 480px) {
  .ed-grid { grid-template-columns: 1fr; }
  .ed-conv-card__right { flex-wrap: wrap; gap: 12px; }
  .ed-conv-card__estado, .ed-conv-card__action, .ed-conv-card__action > *, .ed-btn{ width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ed-card, .ed-vista-btn, .ed-filters__btn,
  .ed-card__btn, .ed-btn { transition: none; }
}
