/* Estructura base */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Helvetica Neue', 'Segoe UI', sans-serif;
  background: #fff;
  color: #333;
}

/* Contenedor general */
.contenedor-pagina {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Menú horizontal superior */
.menu-horizontal {
  width: 100%;
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 30px;
  box-sizing: border-box;
}

/* Contenido principal */
.contenido {
  flex: 1;
  display: flex;
  align-items: center;       /* Centrado vertical */
  justify-content: center;   /* Centrado horizontal */
  box-sizing: border-box;
  padding: 40px 20px;
}
.centro {
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.titulo {
  font-size: 45px;
  margin-top: -10px;
  margin-bottom: 20px;
}
.frase {
  font-size: 25px;
  font-style: italic;
  color: #666;
  margin-bottom: 30px;
}

/* Buscador */
.buscador {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.buscador input {
  padding: 14px 20px;
  width: 100%;
  max-width: 600px;
  border: 1px solid #ccc;
  border-radius: 30px;
  font-size: 18px;
  box-sizing: border-box;
}
.buscador button {
  padding: 14px 30px;
  background: #6B8E23;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.buscador button:hover {
  background: #558019;
}

/* Footer fijo al fondo */
.footer {
  background: #eee;
  text-align: center;
  padding: 0px;
  font-size: 14px;
  border-top: 1px solid #ddd;
}

/* Responsividad */
@media screen and (max-width: 600px) {
  .menu-horizontal {
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
  }
}

.resultados {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.tarjeta {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}
.tarjeta:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.tarjeta h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #333;
}
.tarjeta .frase {
  font-style: italic;
  color: #666;
  margin-bottom: 10px;
}
.tarjeta p {
  margin: 5px 0;
}

#sugerencias {
  position: absolute;
  background: #fff;
  border: 0px;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  margin-top: 5px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
#sugerencias div {
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
}
#sugerencias div:hover {
  background: #f0f0f0;
}
/* Animación fade-in para la frase */
.frase {
  font-size: 20px;
  font-style: italic;
  color: #666;
  margin-bottom: 30px;
  opacity: 0;
  animation: aparecer 1.2s ease-out forwards;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.redes {
  margin-top: 15px;
  display: flex;
  justify-content: center;     /* Centrado horizontal */
  flex-wrap: wrap;
  gap: 12px;
}

.redes a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 16px;
  color: #4A752C;
  background: #f3f3f3;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.redes a:hover {
  background: #e0e0e0;
}

.redes img {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}
