/* Fondo general blanco con texto negro */
body {
  padding-top: 70px; /* espacio para el navbar fijo */
  background-color: #f8f9fa;
  color: #000000;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
}

/* Navbar y Footer con fondo negro y texto blanco */
.navbar,
footer {
  background-color: #000000;
  color: #ffffff;
}

/* Enlaces */
a {
  color: #007bff;
  text-decoration: none;
}
a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Botones oscuros personalizados */
.btn-primary,
.btn-success,
.btn-dark {
  background-color: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
}
.btn-primary:hover,
.btn-success:hover,
.btn-dark:hover {
  background-color: #333333 !important;
  border-color: #333333 !important;
}

/* Inputs y selects */
.form-control,
.form-select {
  border: 1px solid #000000;
  background-color: #ffffff;
  color: #000000;
}
.form-control:focus,
.form-select:focus {
  border-color: #333333;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

/* Tarjetas */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  height: 100%;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top,
img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-title {
  min-height: 2.5em;
  line-height: 1.25em;
  overflow: hidden;
}
.card-text {
  min-height: 48px;
  overflow: hidden;
}
.card .btn:not(.btn-favorito){
  width: 100%;
  margin-top: auto;
}

/* Icono favorito */
.favorito-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}

/* Redes sociales */
.redes-sociales a {
  transition: transform 0.2s;
}
.redes-sociales a:hover {
  transform: scale(1.2);
}

/* Botón "Volver arriba" */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 99;
  font-size: 24px;
  border: none;
  outline: none;
  background-color: green;
  color: white;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
#scrollTopBtn:hover {
  background-color: #555;
}

/* Footer */
footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1, h2, h3, h4, h5 {
    font-size: 90%;
  }
  .card-title,
  .card-text {
    font-size: 0.9rem;
  }
  .btn {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
  .form-control,
  .form-select {
    font-size: 0.9rem;
  }
}
