/* === Estilos Generales === */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #e9e9e9b6;
  margin: 0;
  padding: 0;
  color: #333;
}

h1 {
  text-align: center;
  margin-top: 30px;
  color: #444;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 40px;
}

/* === Barra de Navegación === */
.barra-navegacion {
  background-color: #ffffff44;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.barra-navegacion .opcion {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: bold;
  margin-left: 20px;
}

.barra-navegacion .opcion-izquierda {
  margin-left: 0;
  border: 1px solid #ffffff;
  border-radius: 20px;
  padding: 10px 16px;
}
.barra-navegacion .opcion.izquierda {
  margin-left: 0;
  border: 1px solid #ffffff;
  border-radius: 20px;
  padding: 10px 16px;
}

.barra-navegacion .opcion:hover {
  color: #0e0e0b93;
}

.opciones-derecha {
  display: flex;
  border-radius: 20px;
  border: 1px solid #ffffff;
  padding: 10px 16px;
  
  flex-wrap: wrap;
}

/* === Formulario de Búsqueda === */
.search-form {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 30px auto;
  padding: 15px;
  background-color: #f9f9f941;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  max-width: 1000px;
  justify-content: center;
  flex-wrap: wrap;
}

.search-label {
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
}

.search-select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  min-width: 200px;
  transition: all 0.3s ease;
}

.search-select:focus {
  border-color: #ff002249;
  outline: none;
  box-shadow: 0 0 5px rgba(224, 13, 179, 0.5);
}

.search-button1 {
  background-color: #e85ffa9c;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button1:hover {
  background-color: #e88aff;
}

/* === Categorías === */
.categorias-secundarias {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.categoria-link {
  background-color: #fef1f4;
  border: 1px solid #000000;
  color: #111;
  padding: 10px 18px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.categoria-link:hover {
  background-color: #ffd6dc;
  color: #000;
}

.categoria-icono {
  width: 20px;
  height: 20px;
  fill: #333;
}

/* === Anuncios === */
.anuncio {
  display: flex;
  align-items: stretch;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  min-height: 220px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s ease;
}

.anuncio:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}



.foto-perfil {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.anuncio-detalle {
  flex: 1;
  padding: 15px;
}

.titulo {
  margin-top: 0;
  font-size: 1.5em;
  color: #222;
}

.descripcion {
  font-size: 1em;
  margin-bottom: 10px;
  color: #555;
}

.texto-ciudad, .texto-edad {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 5px;
}

.boton-contenedor {
  margin-top: 15px;
}

.btn-ver-mas {
  display: inline-block;
  padding: 8px 16px;
  background-color: #5794f0;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-ver-mas:hover {
  background-color: #3f82da;
}

/* === Paginación === */
.paginacion {
  text-align: center;
  margin-top: 30px;
}

.paginacion a {
  margin: 0 6px;
  padding: 6px 12px;
  background-color: #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.paginacion a:hover {
  background-color: #bbb;
}

.paginacion a.active {
  background-color: #ff9800;
  color: white;
}

/* 🔥 Premium Ribbon */
.cinta-premium {
  background: linear-gradient(45deg, #9c27b0, #e91e63);
  color: white;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 0 0 12px 12px;
  font-size: 14px;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 🔥 Anuncio Premium: contorno ardiente */
.anuncio-premium {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(90deg, #ff416c, #ff4b2b, #ff416c) border-box;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 50, 100, 0.3);
  animation: brillar 2s infinite alternate;
}

/* ✨ Brillo sutil */
@keyframes brillar {
  0% { box-shadow: 0 0 8px rgba(255, 0, 80, 0.3); }
  100% { box-shadow: 0 0 18px rgba(255, 0, 100, 0.6); }
}

/* Asegurar que la imagen no se tape */
.anuncio-premium .foto-perfil {
  position: relative;
  z-index: 5;
}

@keyframes brillarFuego {
  0% { border-image-source: linear-gradient(90deg, red, orange, yellow, red); }
  50% { border-image-source: linear-gradient(90deg, yellow, red, orange, yellow); }
  100% { border-image-source: linear-gradient(90deg, red, orange, yellow, red); }
}
@keyframes fuego {
  0% { box-shadow: 0 0 10px rgba(255,106,0,0.7); transform: translateY(0); }
  100% { box-shadow: 0 0 20px rgba(255,0,0,0.9); transform: translateY(-2px); }
}
.etiqueta-premium {
  background: linear-gradient(45deg, #ff6a00, #ee0979);
  color: white;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 50px;
  display: inline-block;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.8);
  animation: fuego 1s infinite alternate;
  margin-bottom: 10px;
}
.anuncio-premium {
  border: 3px solid transparent;
  border-image: linear-gradient(90deg, red, orange, yellow, red) 1;
  animation: brillarFuego 2s infinite linear;
}


@media (max-width: 768px) {
  .anuncio,
  .anuncio-premium {
    display: flex;
    flex-direction: row;
    align-items: stretch;       /* estira hijos a mismo alto */
    padding: 0;
    gap: 0;
    border-radius: 10px;
  }

  .foto-perfil {
    height: auto;               /* elimina restricciones de alto fijo */
    max-height: 100%;           /* limita al alto del contenedor */
    width: 140px;               /* controla el ancho */
    object-fit: cover;          /* mantiene proporciones sin deformar */
    border-radius: 0;
    margin-right: 1px;
  }

  .anuncio-detalle {
    flex: 1;
    padding: 1px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;  /* asegura que todo se distribuya */
  }

  .titulo {
    font-size: 1.1rem;
    margin-bottom: 0px;
    line-height: 1.1;
  }

  .descripcion {
    font-size: 0.95rem;
    margin-bottom: 0px;
    line-height: 1.3;
  }

  .texto-ciudad,
  .texto-edad {
    font-size: 0.85rem;
    margin-bottom: 0px;
    line-height: 1.1;
  }

  .boton-contenedor {
    margin-top: auto;
  }

  .btn-ver-mas {
    font-size: 0.9rem;
    padding: 6px 12px;
    width: fit-content;
  }

  .etiqueta-premium {
    font-size: 12px;
    padding: 4px 10px;
    margin-bottom: 6px;
  }

  .cinta-premium {
    font-size: 12px;
    padding: 1px 1px;
  }

  .anuncio-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.anuncio-link:hover {
  text-decoration: none;
}


}

.anuncio-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.anuncio-link:hover {
  text-decoration: none;
}


.banner-anuncio {
   background-image: url('/banner2.webp');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 0px;
    border-radius: 0px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

.banner-anuncio::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* oscurece un poco la imagen */
    border-radius: 15px;
    z-index: 1;
}

.banner-anuncio > * {
    position: relative;
    color: rgba(255, 255, 255, 0.774);
    z-index: 2;
}


.banner-anuncio h1 {
    margin-bottom: 20px;
    font-size: 3em;
}

.banner-anuncio .search-form {
    margin-bottom: 20px;
}

.banner-anuncio .categoria-link {
    background-color: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 5px 15px;
    margin: 5px;
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.banner-anuncio .categoria-link:hover {
    background-color: rgba(255,255,255,0.4);
}

.banner-anuncio .barra-navegacion {
  background-color: transparent; /* elimina fondo blanco */
  padding: 15px 30px;
  margin: 0;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}

.banner-anuncio .barra-navegacion .opcion,
.banner-anuncio .barra-navegacion .opcion.izquierda {
  color: white;
  border-color: white;
}

.banner-anuncio .barra-navegacion .opcion:hover {
  color: #ffd9f3;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main.container {
  flex: 1;
}
