* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background: #000000;

}

.layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

main {
  width: 100%;
}

.publicida2 {
  margin-left: 1px;
  width: 30%;
  padding-left: 15px;
  background: #007bff;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Encabezado con título + logo */
.encabezado {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  text-align: center;
  background-color: #000000;
  padding: 10px 0;
  /*border-bottom: 2px solid #e0e0e0;*/
  margin-bottom: 20px;
  border-radius: 8px;
}

.logo img {
  height: 150px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 20px 0;
  padding: 10px;
}

.logo2 img {
  height: 150px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 20px 0;
  padding: 10px;
}

.titulo {
  font-size: 8rem;
  color: #e7eb13;
  margin: 0;
  font-weight: 500;
  font-family: 'Caveat', sans-serif;
  margin-left: 20px;
}

.subtitulo {
  font-size: 1rem;
  color: #e7eb13;
  margin: 0;
  font-weight: 500;
  font-family: sans-serif;
  margin-left: 20px;

}

/* Encabezado con título + logo */

#filter {
  display: block;
  margin: 0 0 2rem 0;
  max-width: 320px;
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform .2s ease;
  cursor: pointer;
  /* Muestra cursor “manito” al pasar por la tarjeta */
}


.card:hover {
  transform: translateY(-4px);
}

.card h2 {
  margin: 0 0 6px 0;
  font-size: 1.2rem;
}

.category {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}

.address {
  font-size: 0.95rem;
}

.contenedor-principal {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contenido {
  flex: 4;
}

.publicidad {
  display: none;
  flex: 1;
  background: #000000;
  border: 1px solid #ccc;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.nover {
  display: none;
}

.publicidad h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #ffffff;
  text-align: center;
}

.banner {
  background: #e4ab02;
  border: 1px dashed #d4b000;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
}

.banner img {
  width: 100%;
  border-radius: 6px;
  max-height: 180px;
  object-fit: cover;
}

/*esto es para la parte anuncios*/
.banner-columna {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banner-columna img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* opacity: 0;                       empieza invisible */
  /*animation: fadeIn 1s forwards;     se vuelve opaca en 1 s */
}

.banner-columna a {
  display: block;
}

.fade-in {
  animation: fadeIn 1s forwards;
}

.fade-out {
  animation: fadeOut 1s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/*termina la parte anuncios*/

/* empieza info importante*/
.info-linea {
  background-color: #fff8e1;
  color: #5c4400;
  padding: 10px 16px;
  margin: 16px 0;
  max-width: 800px;
  border: 1px solid #f0d187;
  border-radius: 8px;
  text-align: left;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.5s ease-in;
}

/*termina info importante

@media (max-width: 900px) {
  .contenedor-principal {
    flex-direction: column;
  }

  .publicidad {
    margin-top: 20px;
  }
}

/*destacar tarjeta*/
.card.destacado {
  border: 3px solid #f39c12;
  background-color: #fff672;
  box-shadow: 0 0 20px rgba(144, 5, 179, 0.8);
  position: relative;
}

.card.destacado::before {
  content: "★";
  position: absolute;
  top: -10px;
  left: -10px;
  background-color: hsl(276, 98%, 47%);
  color: rgb(253, 236, 2);
  padding: 4px 8px;
  font-size: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/*fin destacar tarjeta*/

/*banner publicidad tarejeta*/
.banner-horizontal {
  grid-column: span 1;
  /* ocupa las 3 columnas */
  margin: 5px 0;
  text-align: center;
}

.banner-horizontal img {
  width: 90%;
  max-height: 100px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  transition: opacity .6s ease;
}

.banner-horizontal-2 img {
  width: 90%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  transition: opacity .6s ease;
}

.banner-horizontal-3 img {
  width: 90%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  transition: opacity .6s ease;
}

.banner-horizontal-4 img {
  width: 90%;
  height: 20%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  transition: opacity .6s ease;
}

/*pie de pagina*/

.footer {
  background-color: #272727;
  color: #ffffff;
  text-align: center;
  padding: 10px 10px;
  font-size: 0.95rem;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

.footer-titulo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #f796be;
  margin-bottom: 3px;
}

.footer a {
  color: #007bff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/*fin de pie de pagina*/


.boton {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FE5A59;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  display: flex;                 /* Activa flexbox */
  align-items: center;          /* Centrado vertical */
  justify-content: center;      /* Centrado horizontal */
}

.botones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 3 columnas iguales */
  gap: 0.5rem;
  /* espacio entre botones */
  max-width: 300px;
  /* opcional, para limitar el ancho */
  margin: 0 0;

}




/*fin *banner publicidad tarejeta*/
/*@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/*para el titulo*/
/*@media (max-width: 600px) {
  .encabezado {
    padding: 16px 12px;
  }

  .logo img {
    height: 60px;
    margin-bottom: 8px;
  }

  .subtitulo {
    font-size: 1.2rem;
    padding: 0 10px;
  }
}*/

/*fin para el titulo*/