body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: rgba(227, 223, 211);
}

header {
  background: rgba(17, 90, 90);
  color: white;
  padding: 1.75rem 1rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 1rem;
  align-items: center;
  position: relative;
  text-align: center;
  min-height: 110px;
}

header > a {
  grid-column: 1;
  grid-row: 1 / span 4;
}

nav a {
  position: relative;
  display: flex;
  color: white;
  margin: auto;
  text-decoration: none;
}

.ban {
  background: rgba(17, 90, 90);
  background: linear-gradient(to bottom, rgba(17, 90, 90), #041a0f81);
  color: white;
  padding-top: 30px;
  text-align: center;
}

.ban-text {
  padding-bottom: 1rem;
}

.ban-text h2 {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.logo {
  position: relative;
  display: block;
  width: 8rem;
  height: auto;
  border-radius: 50%;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  object-fit: contain;
}

.logo:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.titulo {
  grid-column: 2;
  font-size: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  margin: 0;
}

.accesos {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1rem;
  min-width: max-content;
  grid-column: 3;
  grid-row: 1 / span 4;
}

.accesos nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accesos nav a {
  color: white;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease, transform 0.25s ease;
  font-weight: 600;
}

.accesos nav a:hover,
.accesos nav a:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

h1 {
  display: flex;
  flex-wrap: wrap;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 3rem;
  text-align: center;
  align-items: center;
}

.news {
  position: relative;
  margin: auto;
  text-align: center;
  padding: 2rem 1rem;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  /* fondo(7mo).jpg at full size (1600x1200): WebP q85 where supported, the original JPEG otherwise */
  background-image: url("../assets/fondo-optimizado.jpg");
  background-image: image-set(url("../assets/fondo-optimizado.webp") type("image/webp"), url("../assets/fondo-optimizado.jpg") type("image/jpeg"));
  background-repeat: no-repeat;
  /*background-position: center center;*/
  background-size: cover;
  background-color: rgba(255, 255, 255, 0.35);
}

.news::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* Keep content above the white overlay so text keeps its contrast */
.news > * {
  position: relative;
}

.subtitulo {
  grid-column: 2;
  margin: 0.25rem 0 0;
  display: flex;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
}

a.nostyle {
  color: inherit;
  text-decoration: none;
}

/* ===== MENÚ PRINCIPAL ===== */
.menu-toggle {
  display: none;
}

.tabs {
  position: relative;
  z-index: 20; /* above the carousel controls */
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.35rem;
  margin-bottom: 40px;
  border: 1px solid rgba(17, 90, 90, 0.25);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.97);
}

.tab-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #3d4a48;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: bold;
  transition: color 0.25s ease, background 0.25s ease, transform 0.15s ease;
}

/* Chevron */
.tab::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.75;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}

/* Animated underline */
.tab::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.tab-item:hover .tab {
  background: rgba(17, 90, 90, 0.08);
  color: rgb(17, 90, 90);
}

.tab-item:hover .tab::before {
  transform: scaleX(1);
}

.tab[aria-expanded="true"],
.tab-item:hover .tab[aria-expanded="true"] {
  background: rgb(17, 90, 90);
  color: white;
}

.tab[aria-expanded="true"]::before {
  transform: scaleX(0);
}

.tab[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.tab:active {
  transform: scale(0.97);
}

.tab:focus-visible {
  outline: 3px solid rgb(17, 90, 90);
  outline-offset: 2px;
}

.tab-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  z-index: 5;
  min-width: 240px;
  padding: 0.4rem;
  text-align: left;
  background: white;
  border: 1px solid rgba(17, 90, 90, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Caret */
.tab-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 1.5rem;
  width: 10px;
  height: 10px;
  background: white;
  border-top: 1px solid rgba(17, 90, 90, 0.12);
  border-left: 1px solid rgba(17, 90, 90, 0.12);
  transform: rotate(45deg);
}

/* Invisible bridge so hover is not lost in the gap under the tab */
.tab-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.7rem;
  height: 0.7rem;
}

.tab-item.dropdown-open .tab-dropdown,
.tab-item:hover .tab-dropdown,
.tab-dropdown:focus-within {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.tab-dropdown a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  color: rgb(17, 90, 90);
  text-decoration: none;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.tab-dropdown a[href]:hover,
.tab-dropdown a[href]:focus-visible,
.tab-dropdown .dropdown > a[aria-expanded="true"] {
  background: rgba(17, 90, 90, 0.08);
  padding-left: 1.2rem;
}

.tab-dropdown a:focus-visible {
  outline: 2px solid rgb(17, 90, 90);
  outline-offset: -2px;
}

/* Enlaces sin destino todavía (sin href): visibles pero no clicables */
.tab-dropdown a:not([href]) {
  opacity: 0.6;
  cursor: not-allowed;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: -0.4rem;
  left: calc(100% + 0.4rem);
  z-index: 1000;
  min-width: 200px;
  padding: 0.4rem;
  background: rgb(17, 90, 90);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Bridge across the gap to the flyout */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -0.5rem;
  width: 0.5rem;
}

/* A clicked submenu only shows while its tab menu is showing too */
.dropdown:hover > .dropdown-menu,
.tab-item:hover .dropdown-menu.show,
.tab-item.dropdown-open .dropdown-menu.show,
.tab-dropdown:focus-within .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown-menu li a {
  color: white;
  white-space: nowrap;
}

.dropdown-menu li a[href]:hover,
.dropdown-menu li a[href]:focus-visible,
.dropdown-menu .dropdown > a[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.14);
}

.dropdown-menu li a:focus-visible {
  outline-color: white;
}

/* Third level (Reincorporaciones) unfolds inside its flyout instead of running off the screen */
.dropdown-menu .dropdown-menu {
  position: static;
  display: none;
  min-width: 0;
  margin: 0.15rem 0 0.15rem 0.75rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
}

.dropdown-menu .dropdown-menu::before {
  display: none;
}

.dropdown-menu .dropdown:hover > .dropdown-menu,
.tab-item .dropdown-menu .dropdown-menu.show {
  display: block;
  animation: menu-in 0.2s ease;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== MENÚ EN TABLET Y MÓVIL (hasta 860px, donde las pestañas ya no caben en una fila) ===== */
@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 auto 0.75rem;
    padding: 0.75rem 1.4rem;
    border: none;
    border-radius: 999px;
    background: rgb(17, 90, 90);
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .menu-toggle:hover {
    background: rgb(10, 60, 60);
  }

  .menu-toggle:active {
    transform: scale(0.97);
  }

  .menu-toggle:focus-visible {
    outline: 3px solid white;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgb(17, 90, 90);
  }

  /* Hamburger icon that turns into an X */
  .menu-toggle-icon,
  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s ease, background 0.25s ease;
  }

  .menu-toggle-icon {
    position: relative;
  }

  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .menu-toggle-icon::before {
    top: -6px;
  }

  .menu-toggle-icon::after {
    top: 6px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .tabs {
    display: none;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 20px;
    box-sizing: border-box;
    text-align: left;
  }

  .tabs.open {
    display: flex;
    animation: menu-in 0.25s ease;
  }

  .tab-item {
    width: 100%;
  }

  .tab {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 16px;
  }

  .tab::before {
    display: none;
  }

  .tab-dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: 0.25rem 0 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .tab-dropdown::before,
  .tab-dropdown::after {
    display: none;
  }

  .tab-item.dropdown-open .tab-dropdown {
    display: block;
    animation: menu-in 0.2s ease;
  }

  .tab-dropdown a {
    padding: 0.8rem 1rem;
    border-left: 2px solid rgba(17, 90, 90, 0.2);
    border-radius: 0 8px 8px 0;
  }

  .dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0.25rem 0 0.25rem 0.75rem;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown-menu::before {
    display: none;
  }

  .tab-item .dropdown-menu.show {
    display: block;
    animation: menu-in 0.2s ease;
  }

  .dropdown-menu li a {
    white-space: normal;
    border-left: none;
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.text-box-wrapper {
  width: min(100%, 1050px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 35px;
  padding: 40px 20px;
  margin: 0 auto;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.text-box-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: rgb(17, 90, 90);
  text-align: center;
}

.text-box-content {
  font-size: 1.03rem;
  line-height: 1.85;
  color: #2d2d2d;
  text-align: justify;
  word-wrap: break-word;
}

ul.propositos {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

ul.propositos li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.75rem;
}

ul.propositos li::before {
  content: "°";
  position: absolute;
  left: 0;
  top: .45rem;
  color: rgba(17, 90, 90, 0.85);
  font-size: 2rem;
  line-height: 1;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding-bottom: 40px;
  margin: 0 auto 40px auto;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2; /* same ratio as the flyer */
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-button {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 28px;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.9);
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

.carousel-pause {
  top: auto;
  bottom: 6px;
  right: 15px;
  transform: none;
  font-size: 14px;
  padding: 6px 10px;
}

.carousel-button:focus-visible,
.dot:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

.slider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: #1e73be;
  border-radius: 999px;
  transition: left 0.3s ease, width 0.3s ease, background 0.3s ease;
  z-index: 1;
}

.ubi {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.ubi:hover {
  text-decoration: none;
  color: orange;
  font-weight: bold;
}

.ubi:active {
  text-decoration: none;
  color: orangered;
  font-weight: bold;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 20px;
  word-spacing: 0.1em;
  line-height: 1.5;
}

footer p {
  margin: 0.2rem 0;
}

/* ===== RESPONSIVE - TABLETS Y MÓVILES GRANDES (< 768px) ===== */
@media (max-width: 768px) {
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding: 1rem;
  }

  .logo {
    width: 5rem;
    margin-bottom: 0.25rem;
  }

  .titulo {
    position: static;
    transform: none;
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
    width: 100%;
  }

  .subtitulo {
    position: static;
    transform: none;
    font-size: 1rem;
    width: 100%;
  }

  .accesos {
    margin-top: 0.5rem;
    min-width: auto;
    width: 100%;
    justify-content: center;
  }

  .accesos nav {
    flex-direction: row;
    gap: 0.5rem;
  }

  .accesos nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .ban-text h2 {
    font-size: 1.4rem;
  }

  .news {
    padding-top: 1rem;
  }

  .carousel-button {
    font-size: 20px;
    padding: 8px 12px;
  }

  .carousel-pause {
    font-size: 13px;
    padding: 4px 10px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .text-box-wrapper {
    padding: 20px 12px;
    gap: 25px;
  }

  .text-box-container {
    padding: 22px;
  }

  .text-box-title {
    font-size: 1.5rem;
  }

  .text-box-content {
    font-size: 0.98rem;
    line-height: 1.7;
    text-align: left;
  }

  footer {
    padding: 15px 10px;
    line-height: 1.6;
  }

  .ubi {
    display: inline-block;
    padding: 2px 0;
  }
}

/* ===== RESPONSIVE - TELÉFONOS (< 480px) ===== */
@media (max-width: 480px) {
  header {
    padding: 0.75rem;
  }

  .logo {
    width: 4rem;
  }

  .titulo {
    font-size: 1.2rem;
  }

  .subtitulo {
    font-size: 0.85rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  .ban-text h2 {
    font-size: 1.1rem;
  }

  .ban {
    padding-top: 20px;
  }

  .carousel-container {
    margin: 0 auto 20px auto;
  }

  .carousel-button {
    font-size: 16px;
    padding: 6px 10px;
  }

  .carousel-prev {
    left: 8px;
  }

  .carousel-next {
    right: 8px;
  }

  .carousel-pause {
    right: 8px;
    bottom: 6px;
    font-size: 12px;
  }

  .carousel-dots {
    bottom: 10px;
    gap: 6px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .text-box-title {
    font-size: 1.3rem;
  }

  .text-box-content {
    font-size: 0.92rem;
  }

  footer {
    font-size: 0.85rem;
    padding: 12px 8px;
  }
}

/* ===== CARGA: SKELETONS Y ENTRADAS ===== */
@keyframes skeleton-brillo {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes skeleton-fuera {
  to {
    opacity: 0;
  }
}

/* No "to" keyframe: each element animates to its own opacity (e.g. 0.6 for unavailable links) */
@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Page load: banner and main content come in one after another */
.ban-text,
.news > *,
.contactos-autoridades {
  animation: aparecer 0.5s ease backwards;
}

.news > :nth-child(2) {
  animation-delay: 0.08s;
}

.news > :nth-child(3) {
  animation-delay: 0.16s;
}

.news > :nth-child(n + 4) {
  animation-delay: 0.24s;
}

/* Carousel image still downloading: shimmering placeholder */
.carousel-slide.cargando {
  background: linear-gradient(90deg, #0d3b3b 25%, #1a5c5c 50%, #0d3b3b 75%);
  background-size: 200% 100%;
  animation: skeleton-brillo 1.2s linear infinite;
}

.carousel-slide img {
  transition: opacity 0.4s ease;
}

.carousel-slide.cargando img {
  opacity: 0;
}

/* Only the text fades in; fading the whole link would also hide its skeleton bar */
@keyframes texto-aparecer {
  from {
    color: transparent;
  }
}

/* Opening a menu: each item shows a skeleton bar that gives way to its text, in cascade */
.tab-dropdown > a,
.tab-dropdown > ul > li > a {
  position: relative;
}

.tab-dropdown > :nth-child(2),
.tab-dropdown > ul > li:nth-child(2) {
  --i: 1;
}

.tab-dropdown > :nth-child(3),
.tab-dropdown > ul > li:nth-child(3) {
  --i: 2;
}

.tab-dropdown > :nth-child(4),
.tab-dropdown > ul > li:nth-child(4) {
  --i: 3;
}

.tab-dropdown > :nth-child(5),
.tab-dropdown > ul > li:nth-child(5) {
  --i: 4;
}

.tab-dropdown > :nth-child(6),
.tab-dropdown > ul > li:nth-child(6) {
  --i: 5;
}

.tab-dropdown > :nth-child(n + 7),
.tab-dropdown > ul > li:nth-child(n + 7) {
  --i: 6;
}

.tab-item.dropdown-open .tab-dropdown > a,
.tab-item.dropdown-open .tab-dropdown > ul > li > a,
.tab-item:hover .tab-dropdown > a,
.tab-item:hover .tab-dropdown > ul > li > a {
  animation: texto-aparecer 0.3s ease backwards;
  animation-delay: calc(var(--i, 0) * 45ms + 200ms);
}

.tab-item.dropdown-open .tab-dropdown > a::after,
.tab-item.dropdown-open .tab-dropdown > ul > li > a::after,
.tab-item:hover .tab-dropdown > a::after,
.tab-item:hover .tab-dropdown > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 25%;
  top: 50%;
  height: 0.75em;
  margin-top: -0.375em;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(17, 90, 90, 0.14) 25%, rgba(17, 90, 90, 0.05) 50%, rgba(17, 90, 90, 0.14) 75%);
  background-size: 200% 100%;
  pointer-events: none;
  animation: skeleton-brillo 0.6s linear infinite, skeleton-fuera 0.2s ease forwards;
  animation-delay: 0s, calc(var(--i, 0) * 45ms + 200ms);
}

/* Navigating to another page of the site: progress bar at the top */
@keyframes barra-carga {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(0.9);
  }
}

body.navegando::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgb(17, 90, 90), #6ab49b);
  transform-origin: left;
  animation: barra-carga 2.5s cubic-bezier(0.1, 0.7, 0.3, 1) forwards;
}
