body {
  font-family: Arial;
  background: #f5f7fa;
}

.container {
  width: 95%;
  max-width: 1000px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
}

.login-container {
  text-align: center;
}

.logo {
  max-width: 220px;
  width: 100%;
  margin-bottom: 20px;
}

/* En móvil más compacto */
@media (max-width: 768px) {
  .logo {
    max-width: 160px;
  }
}

/* GRID GENERAL */
.grid {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* COLUMNAS */
.col {
  flex: 1;
  min-width: 320px;
}

/* FORMULARIO */
.form-card {
  background: #f1f3f6;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* TARJETAS */
.cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* TARJETA PRO */
.card {
  background: white;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-3px);
}

/* CABECERA */
.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* AVATAR BASE */
.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* COLORES POR TIPO */
.avatar-oferta {
  background: #007BFF; /* azul */
}

.avatar-demanda {
  background: #28a745; /* verde */
}

/* BOTONES */
.btn-contact {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
}

/* Botón oferta */
.btn-oferta {
  background: #007BFF;
}

/* Botón demanda */
.btn-demanda {
  background: #28a745;
}

/* Hover */
.btn-oferta:hover {
  background: #0056b3;
}

.btn-demanda:hover {
  background: #1e7e34;
}

/* INFO */
.card-info {
  flex: 1;
}

.card-info strong {
  display: block;
}

.lugar {
  font-size: 0.85em;
  color: #777;
}

/* BADGE */
.badge {
  background: #28a745;
  color: white;
  padding: 4px 8px;
  font-size: 0.75em;
  border-radius: 6px;
}

/* BODY */
.card-body {
  margin-top: 10px;
}

/* ACCIONES */
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn-contact {
  flex: 1;
  background: #007BFF;
  color: white;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
}

button.delete {
  background: #dc3545;
  flex: 1;
}

/* BARRA SUPERIOR */
.topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

/* BOTÓN LOGOUT */
.btn-logout {
  background: linear-gradient(135deg, #ff4d4d, #dc3545);
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: 0.2s;
}

.btn-logout:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-logout::before {
  content: "🔒";
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
  .grid {
    flex-direction: column;
  }

  .col {
    width: 100%;
  }
}

input {
  display: block;
  margin: 5px 0;
  padding: 8px;
  width: 100%;
}

button {
  background: #007BFF;
  color: white;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.banner {
  position: relative;
  height: 160px;
  background: url('/img/puzzle.jpg') center/cover no-repeat;
  border-radius: 10px;
  margin-bottom: 20px;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.time {
  font-size: 0.8em;
  color: #888;
}

@media (max-width: 768px) {

  body {
    font-size: 16px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 20px;
  }

  input {
    font-size: 16px;
    padding: 12px;
  }

  button {
    font-size: 16px;
    padding: 12px;
  }

}

@media (max-width: 768px) {
  
    body {
    font-size: 16px;
  }

   .grid {
    flex-direction: column;
  }

  .card {
    padding: 18px;
  }

  .card-header strong {
    font-size: 18px;
  }

  .card-body p {
    font-size: 16px;
  }

  .avatar {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .card-actions {
    flex-direction: column;
  }

}

@media (max-width: 768px) {

  .login-container {
    margin: 20px;
    padding: 20px;
  }

  .logo {
    max-width: 180px;
  }

}

@media (max-width: 768px) {

  .topbar {
    justify-content: center;
  }

  .btn-logout {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    padding: 12px;
  }

}