.header-convocatorias {
  color: #00aed6;
}

.img-test-especialidad-eir {
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 5em;
}

.img-test-especialidad-eir.is-mobile {
  display: none;
}

@media (max-width: 767px) {
  .img-test-especialidad-eir.is-desktop {
    display: none;
  }

  .img-test-especialidad-eir.is-mobile {
    display: block;
  }
}

/* ===== Carousel ===== */

.campanas-eir-convo-carousel {
  /* ---- CONSTANTES: único sitio donde tocar estos números ---- */
  --cec-items: 3.5;
  --cec-step: 1;
  --cec-arrow-size: 36px;
  --cec-gap: 10px;
  --cec-dot-color: #aac3cb;
  --cec-dot-active: #2b697d;

  position: relative;
  padding: 0 40px;
  margin-bottom: 2em;
}

.cec-viewport {
  overflow: hidden;
  width: 100%;
}

.cec-track {
  display: flex;
  position: relative;
  align-items: stretch;
  transition: transform 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .cec-track {
    transition: none;
  }
}

.cec-item {
  flex: 0 0 calc(100% / var(--cec-items));
  max-width: calc(100% / var(--cec-items));
  box-sizing: border-box;
  padding: 0 var(--cec-gap);
  display: flex;
  align-items: stretch;
}

/* ===== Tarjetas ===== */

.contenedor-texto-convo {
  padding: 8px 24px;
  font-family: Calibri, sans-serif;
}

.nombre-curso-convo {
  font-size: 1.5em;
  font-weight: bolder;
  line-height: 1em;
}

.info-curso-convo {
  font-size: 1.2em;
  font-weight: lighter;
  line-height: 0.8em;
}

.fecha-curso-convo {
  font-size: 1.2em;
  font-weight: bolder;
  line-height: 0.8em;
}

@media (max-width: 767px) {
  .nombre-curso-convo {
    font-size: 1.3em !important;
    font-weight: bolder;
  }

  .fecha-curso-convo {
    font-size: 1em;
  }
}

.cec-item .campanas-eir-convo25,
.cec-item .campanas-eir-convo45 {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  background: #fff;
  border: 1px solid #bdbdbd;
  border-radius: 0;
  overflow: hidden;
  padding-bottom: 0.2em;
}

.cec-item .campanas-eir-convo25 > a,
.cec-item .campanas-eir-convo45 > a {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cec-item a,
.cec-item a:hover,
.cec-item a:focus,
.cec-item a:visited {
  text-decoration: none;
}

.cec-item img.posicion-relativa {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.cec-item .texto-tarjeta-convocatoria {
  flex: 1;
  margin: 0;
  padding: 12px 15px;
  background: #fff !important;
  box-sizing: border-box;
}

/* ===== Flechas ===== */

.cec-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: var(--cec-arrow-size);
  height: var(--cec-arrow-size);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #00aed6;
  z-index: 2;
}

.cec-arrow svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.cec-next svg {
  transform: rotate(180deg);
}

.cec-prev {
  left: 0;
}

.cec-next {
  right: 0;
}

.cec-arrow:hover svg {
  transform: scale(1.15);
}

.cec-next:hover svg {
  transform: rotate(180deg) scale(1.15);
}

.cec-arrow[disabled] {
  cursor: default;
}

.cec-arrow[disabled] svg {
  opacity: 0.3;
  transform: none;
}

.cec-next[disabled] svg {
  transform: rotate(180deg);
}

/* ===== Puntitos ===== */

.cec-dots {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 1.5em 0 0;
  padding: 0;
}

.cec-dots li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cec-dot-color);
  cursor: pointer;
}

.cec-dots li.active {
  background: var(--cec-dot-active);
}

/* ===== Sin navegación ===== */

.campanas-eir-convo-carousel.cec-no-nav {
  padding: 0;
}

.campanas-eir-convo-carousel.cec-no-nav .cec-arrow,
.campanas-eir-convo-carousel.cec-no-nav .cec-dots {
  display: none;
}

/* ===== Breakpoints ===== */

@media (max-width: 991px) and (min-width: 768px) {
  .campanas-eir-convo-carousel {
    --cec-items: 2;
    --cec-step: 2;
  }
}

@media (max-width: 767px) {
  .campanas-eir-convo-carousel {
    --cec-items: 1;
    --cec-step: 1;
    --cec-arrow-size: 30px;
    padding: 0 30px;
  }

  .campanas-eir-convo-carousel.cec-no-nav {
    padding: 0;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .campanas-eir-convo-carousel {
    --cec-items: 1.5;
    --cec-step: 1;
  }
}

.cec-item .campanas-eir-convo25 > a,
.cec-item .campanas-eir-convo45 > a {
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
  background-color: #fff;
}

.cec-item .campanas-eir-convo25 > a:hover,
.cec-item .campanas-eir-convo45 > a:hover {
  transform: scale(1.03);
  background-color: #f7f7f5;
}

.cec-item .campanas-eir-convo25 > a:active,
.cec-item .campanas-eir-convo45 > a:active {
  transform: scale(0.98);
  background-color: #f3f3f1;
}

.cec-item .campanas-eir-convo25,
.cec-item .campanas-eir-convo45 {
  position: relative;
}

.sello-examen-eir {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 3;
  box-sizing: border-box;
  font-family: Calibri, sans-serif;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sello-titulo {
  font-size: 12px;
  font-weight: bold;
}

.sello-ano {
  margin-top: 3px;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
}

@media (max-width: 767px) and (orientation: portrait) {
  .sello-examen-eir {
    top: 4px;
    right: 4px;

    width: 64px;
    height: 64px;
  }

  .sello-titulo {
    font-size: 10px;
  }

  .sello-ano {
    font-size: 18px;
  }
}
