@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;600&family=Ruso+One&display=swap');

/* Fuente general del sitio */
body {
  min-height: 100vh;
  background-color: #f7fafc;
  font-family: Arial, sans-serif;
  font-family: 'Fira Sans', sans-serif;
    max-width: 100%;
    overflow-x: hidden;
}
/* App.css */
header {
    background: linear-gradient(to right, #81d4fa, #9575cd); /* Celeste a Lila */
}

h1 {
    font-family: 'Ruso One', sans-serif;
    font-weight: 700;
}

h2, h3 {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
}

p {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
}


/* Contenedor principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* Formulario */
.bg-white {
  background-color: #ffffff;
}

.shadow {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.p-4 {
  padding: 16px;
}

.rounded-md {
  border-radius: 8px;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gap-4 {
  grid-gap: 16px;
}

.w-full {
  width: 100%;
}

.p-2 {
  padding: 8px;
}

.border {
  border: 1px solid #e2e8f0;
}

.bg-blue-500 {
  background-color: #4299e1;
}

.text-white {
  color: #ffffff;
}

.mt-4 {
  margin-top: 16px;
}

.rounded-md {
  border-radius: 8px;
}

/* Botón Ver mapa */
#map {
  width: 100%;
  height: 400px;
  max-height: 70vh;
  border-radius: 8px;
}
@media (max-width: 768px) {
  #map {
    height: 300px;
  }
}
@media (max-width: 480px) {
  #map {
    height: 250px;
  }
}


/* Lista de ofertas */
.offer {
  display: flex;
  flex-direction: row;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.offer-image {
  flex: 1;
  max-width: 200px;
  overflow: hidden;
}

.offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-details {
  flex: 2;
  padding: 16px;
}

.offer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #2d3748;
}

.offer-rating .stars {
  color: #f6ad55;
  /* Color de las estrellas */
  font-size: 1rem;
}

.offer-location {
  color: #718096;
  margin-top: 4px;
}

.offer-description {
  color: #4a5568;
  margin-top: 8px;
}

.offer-features {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.offer-features li {
  color: #4a5568;
  margin-bottom: 4px;
}

/* Acción de la oferta */
.offer-action {
  flex: 0 0 150px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  border-left: 1px solid #e2e8f0;
}

.offer-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2b6cb0;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  margin-top: 8px;
  background-color: #3182ce;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
}

.btn:hover {
  background-color: #2b6cb0;
}

/* Responsividad */
@media (max-width: 768px) {
  .offer {
    flex-direction: column;
  }

  .offer-action {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-left: none;
    border-top: 1px solid #e2e8f0;
  }

  .offer-action .offer-price {
    font-size: 1.25rem;
  }
}

/* Efecto hover en la oferta */
.offer:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
}

/* Estrellas */
.offer-rating .stars .fa-star {
  margin-right: 2px;
}

/* Clases adicionales */
.text-gray-600 {
  color: #718096;
}

.text-gray-800 {
  color: #2d3748;
}

.text-blue-500 {
  color: #4299e1;
}

.font-bold {
  font-weight: 700;
}

.mt-2 {
  margin-top: 8px;
}

.text-center {
  text-align: center;
}

.text-gray-700 {
  color: #4a5568;
}

.space-x-2>*+* {
  margin-left: 8px;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.md\:grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mt-6 {
  margin-top: 24px;
}

.btn-primary {
  background-color: #3182ce;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #2b6cb0;
}

.anuncio-detalle {
  background-color: #ffffff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.anuncio-titulo {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.anuncio-ubicacion {
  color: #718096;
  margin-bottom: 16px;
}

.anuncio-galeria {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.galeria-principal img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.galeria-miniaturas {
  display: flex;
  margin-top: 8px;
}

.galeria-miniaturas .miniatura {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 8px;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.anuncio-informacion h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-top: 16px;
}

.anuncio-informacion p {
  color: #4a5568;
  margin-top: 8px;
}

.anuncio-caracteristicas {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.anuncio-caracteristicas li {
  color: #4a5568;
  margin-bottom: 4px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #3182ce;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 16px;
  text-align: center;
}

.btn:hover {
  background-color: #2b6cb0;
}

.anuncio-mapa {
  margin-top: 24px;
}

.anuncio-mapa h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 16px;
}

i.fa-solid,
i.fas,
i.fa {
  color: black;
  filter: none;
}

.offer-details img {
  filter: grayscale(100%);
}

#botonEstacion {
  color: white;
  border: none;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
}

.boton-con-fondo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 80px;
  height: 80px;
  border: none;
  cursor: pointer;
  display: inline-block;
  border-radius: 8px;
  transition: transform 0.3s;
}

.boton-con-fondo:hover {
  transform: scale(1.05);
}

.regalo-sorpresa-card {
  background: linear-gradient(270deg, #ff0057, #ffa800, #ff0057);
  background-size: 600% 600%;
  animation: gradientBG 8s ease infinite;
  color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.7);
  text-align: center;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Estilos para el lazo de regalo */
.ribbon {
  position: absolute;
  top: 8px;
  right: -8px;
  background-color: #FF6347;
  color: white;
  padding: 5px 20px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 5px;
  transform: rotate(45deg);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.anuncio-sorpresa {
    background-color: #000;
    background-image:
        linear-gradient(60deg, #b30000 50%, transparent 50%),
        linear-gradient(120deg, #b30000 50%, transparent 50%),
        linear-gradient(60deg, transparent 50%, #b30000 50%),
        linear-gradient(120deg, transparent 50%, #b30000 50%);
    background-size: 40px 70px;
    background-position: 0 0, 0 0, 20px 35px, 20px 35px;
    color: white;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(179, 0, 0, 0.7);
    padding: 2rem 2.5rem 3rem;
    margin-top: 2rem;
    text-align: center;
    position: relative;
    overflow: visible;
}

/* -- INICIA CSS EVENTOS RELACIONADOS -- */

.eventos-relacionados {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}

.eventos-relacionados::-webkit-scrollbar {
  height: 8px;
}

.eventos-relacionados::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.eventos-relacionados::-webkit-scrollbar-track {
  background: transparent;
}

.evento-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 280px;
  min-width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.evento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: #3182ce;
}

.evento-card img {
  width: 100%;
  height: 192px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin: 0; /* sin margen para pegar al borde */
}

.contenido-evento {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contenido-evento h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2d3748; /* gris oscuro */
}

.contenido-evento p {
  font-size: 0.9rem;
  color: #4a5568; /* gris medio */
  margin-bottom: 0.75rem;
}

.contenido-evento .text-gray-500 {
  color: #718096;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.link-detalle {
  color: #3182ce;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.2s ease;
}

.link-detalle:hover {
  color: #2c5282;
  text-decoration: underline;
}

/* -- TERMINA CSS EVENTOS RELACIONADOS -- */
