* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f1f1f1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 15px;
}



/* Centrar el contenido general */
.bordered-content {
  max-width: 1200px;
  margin: 0 auto;
  /*border-left: 2px solid #ccc;*/
   /*border-right: 2px solid #ccc;*/
  background-color: #f1f1f1;
  padding: 30px 20px;
}



/* MENÚ SUPERIOR */
.navbar {
  background-color: #5f656a;
  color: white;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-logo {
  width: 190px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  transition: background 0.3s;
}

.nav-links li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* CABECERA */

.main-header {
  background-color: #005A9C;
  color: white;
  padding: 40px 0 20px;
  text-align: center;
}

.main-header h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.main-header p {
  font-size: 1rem;
}

/* CUERPO CENTRAL */
.main-content {
  flex: 1;
  padding: 30px 10px;
}

.apps-section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #003F6B;
}

.search-box {
  display: block;
  margin: 0 auto 25px;
  padding: 10px 14px;
  width: 100%;
  max-width: 500px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.app-category {
  margin-top: 20px;
  font-size: 1.1rem;
  color: #003F6B;
  text-align: left;
  margin-bottom: 10px;
}

.apps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* Alineación a la izquierda */
  gap: 20px;
  padding: 0 40px;
}

.app-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
   width: 280px; /* o 300px */



  width: 200px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  font-size: 0.82rem;
  min-height: 110px;
  text-align: left;
}


.card-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.1rem;
  color: #888;
  pointer-events: none; /* permite que el clic siga funcionando en todo el enlace */
}



.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.app-card p {
  font-size: 0.75rem;
  line-height: 1.2;
  color: #555;
  margin-top: 8px;
}

.app-card a {
  position: absolute;
  top: 10px;
  right: 10px;
  text-decoration: none;
  font-size: 1.1rem;
  color: #888;
}

/* Botón corto */
.btn-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 3px 8px;
  background-color: #003F6B;
  color: #fff;
  border-radius: 4px;
  max-width: 100px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Colores por categoría */
.red    { border-left: 4px solid #e74c3c; }
.blue   { border-left: 4px solid #3498db; }
.green  { border-left: 4px solid #2ecc71; }
.yellow { border-left: 4px solid #f1c40f; }
.orange { border-left: 4px solid #f1750f; }
.purple { border-left: 4px solid #d90fe0; }
.lightgreen { border-left: 4px solid #0fe0a1; }
.pink { border-left: 4px solid #e78fcd; }

/* PIE DE PÁGINA */
.main-footer {
  background-color: #003F6B;
  color: #ccc;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-header h1 {
    font-size: 1.4rem;
  }

  .app-card {
    width: 100%;
    max-width: 260px;
    padding: 10px;
    font-size: 0.75rem;
  }

  .btn-tag {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
}


/* NOSOTROS */
.info-section {
  margin-bottom: 30px;
}

.info-section h2 {
  color: #003F6B;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.info-section p,
.info-section ul {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

.info-section ul {
  padding-left: 20px;
  list-style: disc;
}

/* COMUNICADOS */
.comunicado {
  background: white;
  border-left: 4px solid #005A9C;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.comunicado h2 {
  color: #003F6B;
  margin-bottom: 6px;
}

.comunicado p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}
