@charset "UTF-8";

/* Morph de apertura: del botón «Por fecha» al panel (noticias + empleos). */
.noticias__calendar-popover,
.empleos-portfolio__calendar-popover {
  transform-origin: var(--orbe-cal-origin-x, 100%) var(--orbe-cal-origin-y, 0%);
  transform: scale(var(--orbe-cal-scale-from-x, 0.88), var(--orbe-cal-scale-from-y, 0.38));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.noticias__calendar-popover.is-open,
.empleos-portfolio__calendar-popover.is-open {
  transform: scale(1, 1);
  opacity: 1;
  pointer-events: auto;
}

.noticias__calendar-popover.is-closing,
.empleos-portfolio__calendar-popover.is-closing {
  transform: scale(var(--orbe-cal-scale-from-x, 0.88), var(--orbe-cal-scale-from-y, 0.38));
  opacity: 0;
  pointer-events: none;
}

.noticias__calendar-toggle.is-calendar-anchor,
.empleos-portfolio__calendar-toggle.is-calendar-anchor {
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.noticias__calendar-toggle.is-calendar-anchor.is-calendar-expanded,
.empleos-portfolio__calendar-toggle.is-calendar-anchor.is-calendar-expanded {
  box-shadow: 0 10px 28px rgba(0, 146, 122, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .noticias__calendar-popover,
  .empleos-portfolio__calendar-popover {
    transform: none;
    transition: opacity 0.12s ease;
    will-change: auto;
  }

  .noticias__calendar-popover.is-closing,
  .empleos-portfolio__calendar-popover.is-closing {
    transform: none;
  }

  .noticias__calendar-toggle.is-calendar-anchor,
  .empleos-portfolio__calendar-toggle.is-calendar-anchor {
    transition: none;
  }
}
