nav, footer {
    background-color: #316BAD 

!important;
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    color: white;
}

nav a, footer p {
    color: white !important;
    text-decoration: none;
    margin: 0 10px;
}

/* Usamos .app-container para que Bootstrap no sobrescriba estos estilos */
.app-container {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    padding: 20px;
}

.app-container .title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* Contenidor Grid */
.app-container .app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Targeta d'Aplicació - Forzamos el comportamiento frente a links de BS */
.app-container .app-card {
    background-color: white !important;
    border-radius: 15px;
    padding: 20px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important; /* Quita el subrayado de Bootstrap */
    color: #333 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid transparent; /* Evita bordes extraños de BS */
}

.app-container .app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    color: #333 !important;
}

/* Logo de l'Aplicació - Especificidad alta para evitar reset de BS */
.app-container .app-card img.app-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    margin-top: 0; /* Bootstrap suele añadir márgenes a img */
    object-fit: contain;
    display: block;
}

/* Nom de l'Aplicació */
.app-container .app-name {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    display: block;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  margin-bottom: 20px;
}

iframe {
  width: 100%;
  border: none;
  max-width: 100%;
}
/*
#content {
  max-width: 100%;
  overflow: hidden;
}
*/

