/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Poppins', sans-serif;
  color: #003366;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #ffffffcc;
  backdrop-filter: blur(6px);
  padding: 15px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
  font-weight: 600;
  color: #003366;
  margin-bottom: 10px;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #003366;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0077b6;
}

/* Hero con transición */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 3px 6px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  
  position: absolute; 
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}

.hero-bg.active {
  opacity: 1;
}

.hero-text h2 {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 2.4em;
  text-align: center;
  background-color: rgba(0,0,0,0.4);
  padding: 10px 20px;
  border-radius: 10px;
  z-index: 10;
}

/* Contenido */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
}

/* Features */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.feature {
  flex: 1;
  min-width: 280px;
  text-align: center;
  border-radius: 10px;
  background-color: #f5e6ca;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.feature img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.feature img:hover {
  transform: scale(1.05);
}

/* Contacto */
#contacto-box {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #1f4e79;
  color: #fff;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: none;
  transition: opacity 0.5s ease;
}

#contacto-box.show {
  display: block;
  opacity: 1;
}

footer {
  background-color: #1f4e79;
  color: #001a33;
  padding: 4px 10px;
  text-align: center;

  border-radius: 0;

  margin-top: 0;

  font-size: 0.85rem;
  line-height: 1.2;
}


/* Responsive */
@media (max-width: 768px) {
  .features {
    flex-direction: column;
  }
  .hero-text h2 {
    font-size: 1.8em;
  }
}

/* Animación de aparición suave */
.descripcion {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  color: #ffffff; /* Letras blancas */
  font-size: 1.4rem;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.45);
  padding: 25px 20px;
  border-radius: 12px;
  margin-top: 30px;
  line-height: 1.8;
  font-weight: 300;
}

/* Cuando entra en pantalla: se muestra */
.descripcion.visible {
  opacity: 1;
  transform: translateY(0);
}


.seccion-fondo {
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.45)
    ),
    url('imagenes/fondo_inferior.jpeg'); /* ← Aquí la imagen que quieres */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0; /* espacio vertical */
}

