/* style.css */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilo general */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #222;
}

/* Encabezado */
header {
  background-color: #ff6f00;
  color: white;
  padding: 15px;
  text-align: center;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

nav {
  margin-top: 10px;
}

nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Contenido principal */
.blog-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

.post {
  width: 280px;
  background-color: white;
  margin: 15px;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  text-align: center;
  transition: transform 0.3s;
}

.post:hover {
  transform: scale(1.03);
}

.post img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.post h2 {
  margin-top: 10px;
  font-size: 1.3rem;
  color: #e65100;
}

.post p {
  margin: 10px 0;
}

.post button {
  padding: 10px 15px;
  margin-top: 10px;
  background-color: #ff9800;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.post button:hover {
  background-color: #f57c00;
}

/* Formulario de opinión emergente */
.opinion-popup {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  padding: 20px;
  width: 320px;
  border-radius: 15px;
  box-shadow: 0 0 10px #000;
  z-index: 1000;
  text-align: center;
}

.opinion-popup input,
.opinion-popup textarea {
  width: 90%;
  padding: 8px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.opinion-popup button {
  padding: 10px 15px;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.opinion-popup button:hover {
  background-color: #b71c1c;
}

/* Ocultar elemento */
.hidden {
  display: none;
}

/* Pie de página */
footer {
  background-color: #ff6f00;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 30px;
}
.rating-stars {
  display: flex;
  justify-content: center;
  margin: 10px 0;
  font-size: 2rem;
  cursor: pointer;
}

.rating-stars span {
  padding: 0 5px;
  color: #ccc;
  transition: color 0.3s;
}

.rating-stars span.selected {
  color: gold;
}

/* Opiniones en tarjetas */
.opinion-card {
  background-color: #fff8e1;
  border-left: 6px solid #ff9800;
  margin: 10px 0;
  padding: 12px 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
}

.opinion-card strong {
  color: #e65100;
  font-size: 1rem;
}

.opinion-card p {
  margin: 5px 0;
  color: #444;
}

.opinion-card .stars {
  color: gold;
  font-size: 1.1rem;
}
/* Scroll en el contenedor de opiniones */
#opiniones {
  max-height: 250px;
  overflow-y: auto;
  margin-top: 15px;
  padding-right: 5px; /* para que no se corte el scroll */
}
/* Sección de bienvenida con fondo */
.hero {
  background-image: url('img/fondo-dragonball.jpg'); /* Asegúrate de que exista esta imagen */
  background-size: cover;
  background-position: center;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* oscurece la imagen para que el texto se vea mejor */
  z-index: 1;
  border-bottom: 4px solid #ff6f00;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 20px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-family: 'Permanent Marker', cursive;
}

.hero-content p {
  font-size: 1.2rem;
}
.info-dragonball {
  width: 100%;
  padding: 3rem 2rem;
  color: white;
  font-size: 1.2rem;
  line-height: 1.8;
 background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                  url('img/fondo-dragonball1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.info-dragonball h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ffd700; /* Dorado tipo Super Saiyajin */
}



