/* --- Estilos generales y base --- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, #dbe6e4, #a8d5ba);
  color: #333;
}

/* HEADER PRINCIPAL CON IMAGEN DE LA SIRENA Y OVERLAY */
header.inicio {
  position: relative;
  background: url('imagenes/Sirena.png') no-repeat center center/cover;
  padding: 6rem 1rem 4rem 1rem;
  text-align: center;
  color: white;
  overflow: hidden;
}

header.inicio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 112, 74, 0.6); /* verde oscuro translúcido */
  z-index: 0;
}

header.inicio h1 {
  position: relative;
  font-size: 4rem;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  z-index: 1;
}

header.inicio .bienvenida {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  margin-top: 1rem;
  font-style: italic;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  letter-spacing: 1px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #d9e8dd;
}

/* Separador visual entre header y categorías (opcional) */
.separador {
  height: 20px;
  background-color: #cba258;
}

/* --- NUEVOS ESTILOS PARA LA PÁGINA PRINCIPAL --- */
.categorias {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 2rem 1rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
}

.categorias li {
  text-align: center;
}

.categorias img {
  width: 400px;
  height: auto;
  transition: transform 0.3s ease;
}

.categorias img:hover {
  transform: scale(1.1);
}

.categorias a {
  text-decoration: none;
  color: #00704a;
  font-weight: bold;
  display: inline-block;
  margin-top: 0.5rem;
}

/* NAV global */
nav {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

/* BARRA SEPARADORA ABAJO DE CATEGORIAS */
.separador-blog {
  background-color: #00704A;
  color: white;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  user-select: none;
}

/* Contenido Intro */
section.intro {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
}

/* CONTENEDOR PARA PRODUCTOS */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.producto {
  width: 200px;
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  cursor: pointer;
}

.producto:hover {
  transform: scale(1.05);
}

.producto img {
  width: 100%;
  border-radius: 5px;
}

/* FORMULARIOS */
form {
  max-width: 400px;
  margin: 2rem auto;
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

textarea, input, button {
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background-color: #00704A;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

button:hover {
  background-color: #004d32;
}

/* CONTENEDOR DE OPINIONES */
#opiniones {
  max-width: 600px;
  margin: 2rem auto;
}

.comentario {
  background-color: #e7f6ef;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 5px solid #00704A;
  border-radius: 5px;
}

/* BOTON AGREGAR PRODUCTO */
.agregar {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.agregar button {
  padding: 0.75rem 1.5rem;
  background-color: #00704A;
  color: white;
  font-size: 1rem;
  border-radius: 8px;
}

/* ESTRELLAS DE CALIFICACIÓN */
.calificacion {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  user-select: none;
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.calificacion input[type="radio"] {
  display: none;
}

.calificacion label {
  font-size: 1.8rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease;
  order: 1;
  user-select: none;
}

.calificacion label:hover,
.calificacion label:hover ~ label {
  color: #FFD700;
}

.calificacion input[type="radio"]:checked ~ label {
  color: #FFD700;
}

.calificacion input[type="radio"]:checked + label:hover,
.calificacion input[type="radio"]:checked + label:hover ~ label {
  color: #FFC107;
}

/* NAV FIJA para indicar categoría seleccionada */
.nav-fija {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background-color: #00704A;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  gap: 2rem;
  margin: 1rem 0;
}

nav ul li a {
  color: white; /* <-- CAMBIO de azul a blanco */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #a8d5ba; /* un verde suave cuando pasas el mouse */
}

textarea {
  padding: 1rem;
  box-sizing: border-box; /* Asegura que el padding no rompa el diseño */
}

textarea,
input[type="text"] {
  padding: 1rem;
  box-sizing: border-box;
}

