/* ===== FOOTER STYLES ===== */
.footer {
  background: linear-gradient(-45deg, #44459c 20%, #44459c 100%) !important;
  color: #f5f5f5;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8em;    /* tamaño base del footer */
  letter-spacing: 1.2px;
  padding: 20px 10px;
  margin-top: auto;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer p {
  margin: 0;
  padding: 0;
  font-size: inherit;   /* hereda 0.9em del .footer */
}

.footer p:first-child {
  margin-bottom: 10px;
}

/* Enlaces en color dorado */
.footer a {
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover,
.footer a:focus {
  color: #ffd700; /* Golden yellow on hover */
  text-decoration: underline;
}

.footer a:visited {
  color: gold;
}

/* ===== FOOTER RESPONSIVE STYLES ===== */

/* Base styles for last-update */
.last-update {
    font-size: inherit;      /* ahora 0.9em */
    margin-bottom: 6px;
    transition: all 0.3s ease;
}
.last-update .full-date {
    display: inline;
}
.last-update .mobile-group,
.last-update .short-date,
.last-update .version-separator {
    display: none;
}

/* Tablets landscape (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .footer {
        padding-left: 5px;
        padding-right: 5px;
        letter-spacing: 1px;
    }
    .last-update {
        font-size: 0.8em;    /* consistente en tablets */
    }
}

/* Tablets portrait (max-width: 768px) */
@media (max-width: 768px) {
    .last-update {
        font-size: 0.75em;
        margin-bottom: 6px;
    }
}

/* Mobile (max-width: 576px) */
@media (max-width: 576px) {
    /* Hide the full date */
    .last-update .full-date {
        display: none;
    }
    /* Show the short-date and version */
    .last-update .mobile-group {
        display: inline;
    }
    .last-update .short-date,
    .last-update .version-separator {
        display: inline;
        white-space: nowrap;
    }
}

/* Ocultar la versión corta por defecto */
.full-text   { display: inline; }
.short-text  { display: none; }

/* En móviles, intercambiar visibilidad */
@media (max-width: 576px) {
  .full-text  { display: none !important; }
  .short-text { display: inline !important; }
}

