html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Poppins", sans-serif;
  color: white; 
  text-align: center;
}

body {
  background: url("fondo.jpg") no-repeat center center;
  background-size: cover;
}

header {
  background-color: rgba(0,0,0,0.6);
  padding: 1rem;
}

header a {
  text-decoration: none;
  color: white;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.5);
  padding: 0.5rem;
}

.tab {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: 0.3s;
  text-decoration: none;
  font-size: 1rem;
}

.tab:hover {
  background: rgba(255,255,255,0.3);
}

main {
  background-color: rgba(0,0,0,0.45);
  border-radius: 6px;
  margin: 2rem auto;
  padding: 2rem;
  width: 90%;
  max-width: 800px;
  color-scheme: only light;
}
.flores-flotando {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 2rem auto;
}

.flor {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #ffb7e6;
  border-radius: 50%;
  animation: flotar 4s ease-in-out infinite;
}

/* pétalos */
.flor::before,
.flor::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background: #ffb7e6;
  border-radius: 50%;
}

/* Distribución tipo lirio */
.flor::before {
  top: -25px;
  left: 0;
}

.flor::after {
  left: -25px;
  top: 0;
}

/* Posición de cada flor */
.flor:nth-child(1) { top: 20%; left: 45%; animation-delay: 0s; }
.flor:nth-child(2) { top: 50%; left: 10%; animation-delay: 0.7s; }
.flor:nth-child(3) { top: 70%; left: 70%; animation-delay: 1.4s; }

@keyframes flotar {
  0%   { transform: translateY(0) scale(1); opacity: 0.9; }
  50%  { transform: translateY(-20px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 0.9; }
}

textarea {
  width: 90%;
  border-radius: 8px;
  padding: 0.8rem;
  border: none;
  resize: none;
  font-size: 1rem;
  color: white; /* Por si el texto del textarea también se veía oscuro */
  background: rgba(0,0,0,0.3);
}

button {
  background-color: #ff99cc;
  color: white;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  margin-top: 0.8rem;
  cursor: pointer;
  font-size: 1rem;
}
img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  button {
    width: 100%;
    font-size: 0.9rem;
  }
  img {
    width: 100px;
    height: 100px;
  }
}