/* ----- Fondo y fuente global ----- */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-image: url('img/background.jpg'); /* Asegúrate de que la ruta sea correcta */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
}

/* ----- Superposición oscura para todo el fondo ----- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5); /* Ajusta opacidad a gusto */
  z-index: -1;
}

/* ----- Encabezado transparente ----- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.logo img {
  height: 90px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #4CAF50;
}

/* ----- Hero section sin fondo propio ----- */
.hero {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: transparent;
  z-index: 1;
}

.overlay {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.hero-text {
  color: #ffffff;
  max-width: 50%;
}

.hero-text h1 {
  font-size: 2.2em;
  margin-bottom: 20px;
}

.cta-button {
  padding: 12px 24px;
  background-color: #4CAF50;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #45a049;
}

.box-image img {
  height: 220px;
  object-fit: cover;
}   

/* ----- segunda seccion ----- */
.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 60px 40px;
  text-align: center;
  flex-wrap: wrap;
  z-index: 1;
  position: relative;
}

.feature-box {
  max-width: 300px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  transition: transform 0.3s, background-color 0.3s;
}

.feature-box:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.2);
}

.feature-box img {
  height: 160px;
  margin-bottom: 20px;
}

.feature-box h3 {
  color: #ffffff;
  margin-bottom: 10px;
}

.feature-box p {
  color: #eeeeee;
  font-size: 0.95em;
}
