/* Página de Construcción - GrupoDyL */

body {
  background: linear-gradient(135deg, #0b2239 0%, #113a62 50%, #1e4a6b 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
}

.construction-container {
  text-align: center;
  color: white;
  z-index: 10;
  position: relative;
}

.construction-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: fadeInDown 1s ease-out;
}

.construction-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.construction-text {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  opacity: 0.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.contact-info {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 1s ease-out 0.9s both;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-item {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-item strong {
  color: #ffd700;
}

/* Animación del obrero */
.worker-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.worker {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.worker:hover {
  transform: scale(1.05);
}

.worker-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 120px;
  background: #8B4513;
  border-radius: 40px 40px 20px 20px;
  animation: workAnimation 2s ease-in-out infinite;
}

.worker-head {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: #FDBCB4;
  border-radius: 50%;
  animation: workAnimation 2s ease-in-out infinite;
}

.worker-helmet {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 40px;
  background: #FFD700;
  border-radius: 50% 50% 40% 40%;
  animation: workAnimation 2s ease-in-out infinite;
}

.worker-arm-left {
  position: absolute;
  top: 20px;
  left: -20px;
  width: 15px;
  height: 60px;
  background: #FDBCB4;
  border-radius: 10px;
  transform-origin: top center;
  animation: armSwing 1.5s ease-in-out infinite;
}

.worker-arm-right {
  position: absolute;
  top: 20px;
  right: -20px;
  width: 15px;
  height: 60px;
  background: #FDBCB4;
  border-radius: 10px;
  transform-origin: top center;
  animation: armSwing 1.5s ease-in-out infinite reverse;
}

.worker-leg-left {
  position: absolute;
  bottom: -40px;
  left: 15px;
  width: 15px;
  height: 50px;
  background: #000080;
  border-radius: 10px;
  animation: legWalk 1s ease-in-out infinite;
}

.worker-leg-right {
  position: absolute;
  bottom: -40px;
  right: 15px;
  width: 15px;
  height: 50px;
  background: #000080;
  border-radius: 10px;
  animation: legWalk 1s ease-in-out infinite reverse;
}

.hammer {
  position: absolute;
  top: 10px;
  right: -40px;
  width: 30px;
  height: 8px;
  background: #8B4513;
  border-radius: 4px;
  animation: hammerSwing 1.5s ease-in-out infinite;
}

.hammer-head {
  position: absolute;
  right: -5px;
  top: -2px;
  width: 12px;
  height: 12px;
  background: #C0C0C0;
  border-radius: 2px;
}

/* Partículas de construcción */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  animation: particleFall 3s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 0.5s; }
.particle:nth-child(3) { left: 30%; animation-delay: 1s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1.5s; }
.particle:nth-child(5) { left: 50%; animation-delay: 2s; }
.particle:nth-child(6) { left: 60%; animation-delay: 2.5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.3s; }
.particle:nth-child(8) { left: 80%; animation-delay: 0.8s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.3s; }

/* Animaciones */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes workAnimation {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes armSwing {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(20deg); }
}

@keyframes legWalk {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes hammerSwing {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(30deg); }
}

@keyframes particleFall {
  0% {
    opacity: 1;
    transform: translateY(-100vh) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .construction-title {
    font-size: 2.5rem;
  }
  
  .construction-subtitle {
    font-size: 1.2rem;
  }
  
  .worker-container {
    width: 250px;
    height: 250px;
  }
  
  .contact-info {
    margin: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .construction-title {
    font-size: 2rem;
  }
  
  .construction-subtitle {
    font-size: 1rem;
  }
  
  .construction-text {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .worker-container {
    width: 200px;
    height: 200px;
  }
  
  .contact-info {
    margin: 0.5rem;
    padding: 1rem;
  }
}
