/* Estilos base para los contenedores de los mensajes */
.thumb-up-container,
.thumb-down-container {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  position: absolute;
  top: 450px; /* Mantén el valor original para top */
  white-space: nowrap;
}

/* Posicionamiento específico para "Me gusta" */
.thumb-up-container {
  left: 50%;
  transform: translateX(-60%);
}

/* Posicionamiento específico para "No me gusta" */
.thumb-down-container {
  right: 50%;
  transform: translateX(60%); /* Corregido el signo */
}

/* Animación para el mensaje de "Me gusta" */
.thumb-up-container.show-thumb-up {
  opacity: 1;
  visibility: visible;
  animation: slideUp 0.5s ease;
}

/* Animación para el mensaje de "No me gusta" */
.thumb-down-container.show-thumb-down {
  opacity: 1;
  visibility: visible;
  animation: slideDown 0.5s ease;
}

/* Definición de las animaciones */
@keyframes slideUp {
  0% {
    transform: translateY(10px) translateX(-60%); /* Reducir el desplazamiento a 10px */
    opacity: 0;
  }
  100% {
    transform: translateY(0) translateX(-60%);
    opacity: 1;
  }
}

@keyframes slideDown {
  0% {
    transform: translateY(-10px) translateX(60%); /* Reducir el desplazamiento a -10px */
    opacity: 0;
  }
  100% {
    transform: translateY(0) translateX(60%);
    opacity: 1;
  }
}

/* Estilo para los mensajes */
.stars,
.waves {
  font-size: 14px;
  color: white;
  background-color: black;
  border: 2px solid #ffc451;
  padding: 10px 20px;
  border-radius: 10px;
  text-align: center;
}

/****************************/
/****************************/
/****** Card ranking  ****/
/***************************/
/****************************/
/****************************/

.category-buttons,
.rating-section {
  margin-bottom: 14px !important;
}

/*********************
 #cafeterias-container .card {
  display: none; 
}
*******/

#cafeterias-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4); 
  background-color: #b3e0ff !important; 
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: auto;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 576px) {
  .card {
    width: calc(33.333% - 20px);
  }
}

.card-img-top-cafeterias {
  max-width: 80%;
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
  margin-bottom: 10px;
  margin-top: 70px;
}

.card-title-img-cafeterias {
  margin: 0 auto;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  color: white;
  background-color: black;

  padding: 5px 10px;
  width: auto;
  max-width: 80%;
  border-radius: 8px;
  box-sizing: border-box;
  display: block;
  word-wrap: break-word;
}

.card-body {
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center !important;
  color: white;
  background-color: black;
  border: 2px solid #6f4f37;
  padding: 10px;
  max-width: 80%;
  margin: 0 auto; /* Centra horizontalmente */
  display: block; /* Permite que el margen auto funcione */
  box-sizing: border-box;
  border-radius: 8px;
}

.card-text {
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.card-body a {
  font-weight: bold;
  text-align: center !important;
}

.card-body a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .card {
    width: 90%;
  }
}

@media (min-width: 768px) {
  .card {
    width: 48%;
  }
}

@media (min-width: 1200px) {
  .card {
    width: 23%;
  }
}

.valoracion i {
  color: gray; /* Color predeterminado para las estrellas vacías */
}

.valoracion .fas {
  color: #ffd700; /* Amarillo para las estrellas llenas */
}

/************botones web******/

.tooltip-button {
  display: inline-block;
  margin-right: 5px;
  padding: 5px 10px;
  font-size: 18px;
  text-transform: capitalize;
}

.tooltip-button i {
  font-size: 1.2rem; /* Ajusta el tamaño de los iconos */
}

.tooltip-button:hover {
  opacity: 0.8;
  cursor: pointer;
}

@media (max-width: 768px) {
  .tooltip-button {
    font-size: 10px;
    padding: 4px 8px;
  }
}

.card .close-btn {
  position: absolute;
  top: 10px;
  right: 120px;
  background-color: black;
  border: none;
  color: #ff0000;
  font-size: 20px;
  cursor: pointer;
}

/****************ranking************/
/***********************************/
/************************************/


#openModalCategory,
#openModalBarrio {
  width: 100%;
  background-color: brown;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  box-sizing: border-box;
  margin: 10px 0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10000 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 40px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 8px;
}
.closep {
  color: black !important;
  font-size: 20px !important;
  font-weight: bold !important;
  position: absolute !important;
  top: 10px !important;
  right: 15px !important;
  background: brown !important;
  border: 2px solid black !important;
  border-radius: 50% !important;
  width: 35px !important;
  height: 35px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  line-height: 0 !important;
  z-index: 15000 !important; /* Asegura que esté por encima */
  box-shadow: none !important; /* Elimina cualquier sombra que pueda causar el degradado */
}

/* Eliminamos hover para que no cambie nada */
.closep:hover,
.closep:focus {
  color: black !important;
  text-decoration: none !important;
  cursor: pointer !important;
  background: brown !important; /* Asegura que no cambie el fondo */
}


.category-list,
.barrio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-btn,
.barrio-btn {
  background-color: brown;
  color: white;
  padding: 10px 15px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  width: calc(50% - 10px);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .modal-content {
    width: 80%;
    margin: 45% auto; /* Bajamos un poco el modal */
  }

  .category-btn,
  .barrio-btn {
    font-size: 14px; /* Reducimos el tamaño del texto */
  }
}


/*******
.category-btn:hover,
.barrio-btn:hover {
  background-color: #ffc451;
  color: black;
}
*********/



