/* ===========================================
  ANNOUNCEMENT BAR - Landing Principal
=========================================== */

/* -------------------------------------------
  Variables
------------------------------------------- */
:root {
  --announcement-bar-height: 40px;
}

/* -------------------------------------------
  Ajustes de página
------------------------------------------- */
html {
  scroll-padding-top: var(--announcement-bar-height);
}

body {
  padding-top: var(--announcement-bar-height);
}

.navbar-principal {
  top: var(--announcement-bar-height);
}

/* -------------------------------------------
  Barra
------------------------------------------- */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--announcement-bar-height);
  background: var(--p-morado);
  z-index: 999;
  display: flex;
  align-items: center;
}

.announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------
  Texto y enlace
------------------------------------------- */
.announcement-bar__text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  text-align: center;
  line-height: 1;
}

.announcement-bar__link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.375rem;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.announcement-bar__link:hover {
  opacity: 0.75;
  color: #fff;
}

/* -------------------------------------------
  Ícono animado
------------------------------------------- */
@keyframes point-right {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(5px); }
}

.announcement-bar__icon {
  display: inline-block;
  margin-right: 0.5rem;
  font-style: normal;
  animation: point-right 0.75s ease-in-out infinite;
}

/* -------------------------------------------
  Responsive
------------------------------------------- */
@media (max-width: 575px) {
  .announcement-bar__text {
    font-size: 0.75rem;
  }
}
