/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body, html {
  height: 100%;
  font-family: 'Arial', sans-serif;
  color: white;
  background: transparent;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- FONDO DINÁMICO --- */
#fondo-dinamico {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* --- MENÚ FIJO --- */
.menu-fijo {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 100;
  font-weight: bold;
}

.menu-fijo ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu-fijo a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.menu-fijo a:hover {
  background: rgba(0, 112, 243, 0.7);
  transform: translateY(-2px);
}

/* --- SECCIÓN HERO --- */
.pantalla-completa {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: left;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.contenedor-hero {
  max-width: 800px;
  width: 100%;
  padding: 40px;
}

.contenedor-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: aparecerHero 1s ease forwards;
  line-height: 1.2;
  color: #fff;
}

.contenedor-hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: aparecerHero 1s ease forwards 0.3s;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

/* --- SECCIONES --- */
.seccion {
  padding: 60px 20px;
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.seccion h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
  color: #fff;
}

/* --- GALERÍA PROYECTOS --- */
.galeria-proyectos {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

/* Imagen destacada más grande */
.proyecto-destacado {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 112, 243, 0.6);
  margin-bottom: 40px;
}

.proyecto-destacado img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.proyectos-secundarios {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.proyecto {
  flex: 1;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 112, 243, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.proyecto img {
  width: 100%;
  height: 200px; /* altura fija para todos los proyectos secundarios */
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.proyecto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 112, 243, 0.5);
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .proyectos-secundarios {
    flex-direction: column;
  }

  .proyecto {
    margin-bottom: 20px;
  }
}


/* --- CONTACTO --- */
.contacto .contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacto p {
  font-size: 1.2rem;
  margin: 10px 0;
}

.contacto a {
  color: #4dabf7;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contacto a:hover {
  color: #74c0fc;
  text-decoration: underline;
}

/* --- ANIMACIONES --- */
@keyframes aparecerHero {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .proyectos-secundarios {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-fijo {
    top: 15px;
    right: 15px;
  }
  
  .menu-fijo ul {
    gap: 10px;
  }
  
  .menu-fijo a {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .contenedor-hero {
    padding: 30px;
  }
  
  .contenedor-hero h1 {
    font-size: 2.5rem;
  }
  
  .contenedor-hero p {
    font-size: 1rem;
  }

  .seccion {
    padding: 40px 20px;
    margin-bottom: 40px;
  }
  
  .seccion h2 {
    font-size: 2rem;
  }

  .proyectos-secundarios {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .contenedor-hero {
    padding: 25px 20px;
  }
  
  .contenedor-hero h1 {
    font-size: 2rem;
  }
  
  .contenedor-hero p {
    font-size: 0.95rem;
  }
  
  .menu-fijo {
    top: 10px;
    right: 10px;
  }
  
  .menu-fijo a {
    padding: 5px 10px;
  }
}
