/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background-image: url("../imagenes/servicio.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header rosa oscuro */
header {
  background-color: #b2caef;
  color: white;
  padding: 1rem;
  text-align: center;
}

/* Logo */
.logo {
  display: block;
  margin: 0 auto 10px;
  width: 120px;
}

/* Menú de navegación */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 1rem 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  background-color: #daaff6; /* Rosa fuerte */
  border-radius: 4px;
  transition: background 0.3s;
}

nav a:hover {
  background-color: #b08bc5; /* Fucsia */
}  
  

/* Main Section */
main {
  flex-grow: 1; /* Que ocupe espacio disponible */
  padding: 2rem;
  text-align: center;
}

/* Títulos y textos generales */
h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Formulario de Comentarios */
.comentarios-form {
  background: #d3dbf7;
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3);
  width: 100%;
  max-width: 400px;
  margin: 3 rem auto; /* margen superior reducido para subir el formulario */
  text-align: left;
}

.comentarios-form h2 {
  text-align: center;
  color: #2d5ca3;
  margin-bottom: 25px;
  font-weight: 700;
}

.comentarios-form label {
  display: block;
  font-weight: 600;
  color: #2d5ca3;
  margin-bottom: 8px;
  font-size: 1rem;
}

.comentarios-form input[type="text"],
.comentarios-form input[type="email"],
.comentarios-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 18px;
  border: 2px solid #2d5ca3;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.comentarios-form input[type="text"]:focus,
.comentarios-form input[type="email"]:focus,
.comentarios-form textarea:focus {
  outline: none;
  border-color: #2d5ca3;
  background-color: #2d5ca3;
}

.comentarios-form textarea {
  resize: vertical;
  min-height: 100px;
}

.comentarios-form button {
  width: 100%;
  padding: 14px;
  background-color: #2d5ca3;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.comentarios-form button:hover {
  background-color: #a31a4d;
}
footer {
  background-color: #b2caef;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

/* Responsive Design para tabletas y móviles */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    width: 80px;
  }

  main {
    padding: 1rem;
  }
}