/* ====== Estilos globales ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #111; /* Negro */
  color: #eee;
  line-height: 1.6;
}

/* ====== Encabezado y navegación ====== */
header {
  background: linear-gradient(90deg, #2e8b57, #4b0082); /* Verde a morado */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

header .logo h1 {
  color: white;
  font-size: 1.8rem;
  letter-spacing: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #7fffd4; /* Verde agua brillante */
}

/* ====== Sección principal ====== */
.hero {
  background: url("hero.jpg") center/cover no-repeat;
  text-align: center;
  padding: 6rem 2rem;
  color: white;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.2rem;
}

.about {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #4b0082; /* Morado */
  border-radius: 8px;
}

.about h3 {
  color: #7fffd4;
  margin-bottom: 1rem;
}

/* ====== Pie de página ====== */
footer {
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
  background: #222;
  font-size: 0.9rem;
  color: #aaa;
}
/* ====== Animaciones y transiciones generales ====== */
a {
  transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
  transform: scale(1.05);
}

/* Hover en enlaces de navegación */
nav ul li a:hover,
nav ul li a.active {
  color: #7fffd4; /* Verde agua brillante */
  text-shadow: 0 0 8px #7fffd4;
}

/* Hero: animación de aparición */
.hero {
  animation: fadeIn 1.5s ease-in-out;
}

/* About y Contact Section: animación al cargar */
.about, .menu-section, .contact-section, .gallery {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s forwards;
  animation-delay: 0.3s;
}

.menu-section:nth-child(2) { animation-delay: 0.4s; }
.menu-section:nth-child(3) { animation-delay: 0.5s; }
.menu-section:nth-child(4) { animation-delay: 0.6s; }

/* Animaciones keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover en imágenes de la galería */
.gallery img:hover {
  transform: scale(1.08) rotate(1deg);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Transición suave para todo el body al navegar */
body {
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Footer animado al pasar mouse */
footer:hover {
  color: #7fffd4;
  transition: color 0.3s ease;
}
