html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff; /* o un color claro */
  color: #222222; /* texto oscuro para contraste */
}

section, p, h1, h2, h3, li {
  color: #222; /* asegúrate de que todos los elementos tengan color definido */
}

.hero-text, .slogan {
  color: #fff; /* si están sobre fondo rojo oscuro */
}

.overlay {
  background-color: rgba(0, 0, 0, 0.5); /* si usas imagen de fondo */
  color: #fff;
}

header {
  background-color: #c62828;
  color: white;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(to bottom, #c62828, #e53935);
  color: white;
  padding: 2rem;
}

.hero-img {
  width: 180px;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.hero-text h1 {
  font-size: 2rem;
  margin: 0.5rem 0;
}

.cta-button {
  background-color: white;
  color: #c62828;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 1rem;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  background-color: #b71c1c;
  margin: 0;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 1rem;
  display: block;
}

section {
  padding: 2rem;
  border-bottom: 1px solid #ddd;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

input, textarea {
  padding: 0.5rem;
  font-size: 1rem;
}

input:invalid, textarea:invalid {
  border: 2px solid #e53935;
}

button {
  background-color: #c62828;
  color: white;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
}

#formStatus {
  margin-top: 1rem;
  font-weight: bold;
  color: green;
}

#map {
  height: 300px;
  margin-top: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

footer {
  background-color: #eee;
  text-align: center;
  padding: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  form {
    width: 100%;
  }

  #map {
    height: 250px;
  }
}