/* ============================================
   ROBOT 3D FLOTANTE - SPECK DEVELOPERS
   Para reemplazar la imagen en la sección About
   ============================================ */

/* ===== CONTENEDOR PRINCIPAL ===== */
.robot-animation-container {
  background: linear-gradient(135deg, #3d729e 0%, #4682B4 100%);
  border-radius: 24px;
  padding: 60px 40px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(70, 130, 180, 0.4);
  margin-bottom: 30px;
}

/* ===== ESCENA PRINCIPAL ===== */
.robot-scene-container {
  position: relative;
  width: 100%;
  max-width: 550px;
  height: 550px;
}

/* ===== ROBOT FLOTANTE ===== */
.robot-3d {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: robotFloat 4s ease-in-out infinite;
  z-index: 10;
}

@keyframes robotFloat {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-30px);
  }
}

/* Cabeza del robot */
.robot-head {
  width: 140px;
  height: 140px;
  position: relative;
  margin: 0 auto 10px;
}

/* Parte superior de la cabeza */
.head-top {
  width: 140px;
  height: 80px;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  border-radius: 50% 50% 20% 20%;
  position: absolute;
  top: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
              inset 0 5px 15px rgba(255, 255, 255, 0.5);
  border: 3px solid #ffffff;
}

/* Línea decorativa en la cabeza */
.head-line {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #4682B4, #5b9bd5, #4682B4);
  border-radius: 2px;
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(70, 130, 180, 0.6);
}

/* Pantalla/cara del robot */
.robot-face {
  width: 140px;
  height: 90px;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-radius: 20% 20% 35% 35%;
  position: absolute;
  top: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4),
              inset 0 3px 10px rgba(255, 255, 255, 0.1);
  border: 3px solid #333;
}

/* Brillo en la pantalla */
.face-shine {
  width: 60%;
  height: 40%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 20px;
}

/* Ojos del robot */
.robot-eyes {
  position: absolute;
  width: 100%;
  top: 30px;
  display: flex;
  justify-content: center;
  gap: 35px;
}

.robot-eye {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at 30% 30%, #5b9bd5, #4682B4, #2d5a7a);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(70, 130, 180, 0.8),
              inset 0 0 15px rgba(91, 155, 213, 0.6);
  animation: eyeGlow 3s ease-in-out infinite;
}

@keyframes eyeGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(70, 130, 180, 0.8),
                inset 0 0 15px rgba(91, 155, 213, 0.6);
  }
  50% {
    box-shadow: 0 0 35px rgba(70, 130, 180, 1),
                inset 0 0 25px rgba(91, 155, 213, 1);
  }
}

/* Pupila brillante */
.eye-pupil {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 7px;
  left: 7px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: lookAround 5s ease-in-out infinite;
}

@keyframes lookAround {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(5px, -2px);
  }
  50% {
    transform: translate(-5px, 0);
  }
  75% {
    transform: translate(3px, 2px);
  }
}

/* Antena */
.antenna {
  width: 6px;
  height: 35px;
  background: linear-gradient(180deg, #c0c0c0, #888);
  border-radius: 3px;
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.antenna::before {
  content: '';
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #5b9bd5, #4682B4);
  border-radius: 50%;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(70, 130, 180, 0.9);
  animation: antennaBlink 2s ease-in-out infinite;
}

@keyframes antennaBlink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(70, 130, 180, 0.9);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 10px rgba(70, 130, 180, 0.5);
  }
}

/* Cuello/conector */
.robot-neck {
  width: 50px;
  height: 25px;
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  border-radius: 10px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
              inset 0 2px 5px rgba(255, 255, 255, 0.3);
  border: 2px solid #d0d0d0;
}

.neck-ring {
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #4682B4, #5b9bd5, #4682B4);
  border-radius: 4px;
  margin-top: 8px;
}

/* Cuerpo del robot */
.robot-body {
  width: 160px;
  height: 140px;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  border-radius: 35px;
  position: relative;
  margin: 0 auto 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
              inset 0 5px 20px rgba(255, 255, 255, 0.4);
  border: 3px solid #ffffff;
}

/* Panel central del cuerpo */
.body-panel {
  width: 100px;
  height: 80px;
  background: linear-gradient(135deg, #4682B4, #5b9bd5);
  border-radius: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 5px 20px rgba(70, 130, 180, 0.6),
              inset 0 3px 10px rgba(255, 255, 255, 0.3);
  border: 2px solid #5b9bd5;
}

/* Luces indicadoras en el panel */
.panel-lights {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.panel-light {
  width: 10px;
  height: 10px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
  animation: lightBlink 1.5s ease-in-out infinite;
}

.panel-light:nth-child(2) {
  animation-delay: 0.3s;
  background: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
}

.panel-light:nth-child(3) {
  animation-delay: 0.6s;
  background: #f472b6;
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.8);
}

@keyframes lightBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Logo en el panel */
.panel-logo {
  width: 50px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin: 15px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Brazos del robot */
.robot-arms {
  position: absolute;
  width: 100%;
  height: 100%;
}

.robot-arm {
  width: 45px;
  height: 120px;
  position: absolute;
  top: 10px;
}

.arm-left {
  left: -40px;
  animation: waveLeft 3s ease-in-out infinite;
}

.arm-right {
  right: -40px;
  animation: waveRight 3s ease-in-out infinite;
}

@keyframes waveLeft {
  0%, 100% {
    transform: rotate(-20deg);
  }
  50% {
    transform: rotate(-40deg);
  }
}

@keyframes waveRight {
  0%, 100% {
    transform: rotate(20deg);
  }
  50% {
    transform: rotate(40deg);
  }
}

/* Parte superior del brazo */
.arm-upper {
  width: 45px;
  height: 65px;
  background: linear-gradient(135deg, #f5f5f5, #d0d0d0);
  border-radius: 23px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
              inset 0 3px 10px rgba(255, 255, 255, 0.3);
  border: 3px solid #e0e0e0;
  position: relative;
}

/* Franja azul en el brazo */
.arm-stripe {
  width: 100%;
  height: 20px;
  background: linear-gradient(90deg, #4682B4, #5b9bd5);
  border-radius: 10px;
  position: absolute;
  top: 22px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Articulación del codo */
.arm-joint {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3),
              inset 0 2px 8px rgba(255, 255, 255, 0.4);
  border: 2px solid #d0d0d0;
}

/* Parte inferior del brazo */
.arm-lower {
  width: 40px;
  height: 50px;
  background: linear-gradient(135deg, #f5f5f5, #d0d0d0);
  border-radius: 20px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
              inset 0 3px 10px rgba(255, 255, 255, 0.3);
  border: 3px solid #e0e0e0;
}

/* Mano del robot */
.robot-hand {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-radius: 50%;
  margin: 5px auto 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  border: 3px solid #333;
  position: relative;
}

.hand-palm {
  width: 20px;
  height: 20px;
  background: #1a1a1a;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Piernas del robot */
.robot-legs {
  width: 180px;
  height: 140px;
  position: relative;
  margin: 0 auto;
}

.robot-leg {
  width: 55px;
  position: absolute;
  top: 0;
}

.leg-left {
  left: 25px;
}

.leg-right {
  right: 25px;
}

/* Parte superior de la pierna */
.leg-upper {
  width: 55px;
  height: 70px;
  background: linear-gradient(135deg, #f5f5f5, #d0d0d0);
  border-radius: 28px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
              inset 0 3px 10px rgba(255, 255, 255, 0.3);
  border: 3px solid #e0e0e0;
  position: relative;
}

/* Franja azul en la pierna */
.leg-stripe {
  width: 100%;
  height: 22px;
  background: linear-gradient(90deg, #4682B4, #5b9bd5);
  border-radius: 11px;
  position: absolute;
  top: 25px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Rodilla */
.leg-joint {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3),
              inset 0 2px 8px rgba(255, 255, 255, 0.4);
  border: 2px solid #d0d0d0;
}

/* Parte inferior de la pierna */
.leg-lower {
  width: 50px;
  height: 55px;
  background: linear-gradient(135deg, #f5f5f5, #d0d0d0);
  border-radius: 25px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
              inset 0 3px 10px rgba(255, 255, 255, 0.3);
  border: 3px solid #e0e0e0;
}

/* Pie del robot */
.robot-foot {
  width: 60px;
  height: 30px;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-radius: 15px 15px 30% 30%;
  margin: 5px auto 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 3px solid #333;
  position: relative;
}

.foot-sole {
  width: 45px;
  height: 12px;
  background: #4682B4;
  border-radius: 6px;
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
}

/* Sombra del robot */
.robot-shadow {
  width: 220px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4), transparent);
  border-radius: 50%;
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  animation: shadowPulse 4s ease-in-out infinite;
}

@keyframes shadowPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateX(-50%) scale(0.85);
    opacity: 0.6;
  }
}

/* ===== ICONOS FLOTANTES ===== */
.robot-floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.robot-icon-item {
  position: absolute;
  width: 75px;
  height: 75px;
  background: #ffffff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: floatRobotIcon 4s ease-in-out infinite;
}

@keyframes floatRobotIcon {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(5deg);
  }
}

.robot-icon-1 {
  top: 8%;
  left: 3%;
  background: linear-gradient(135deg, #e34c26, #f06529);
  color: white;
  animation-delay: 0s;
}

.robot-icon-2 {
  top: 6%;
  right: 5%;
  background: linear-gradient(135deg, #264de4, #2965f1);
  color: white;
  animation-delay: 0.5s;
}

.robot-icon-3 {
  top: 40%;
  left: -2%;
  background: linear-gradient(135deg, #f0db4f, #f7df1e);
  color: #323330;
  animation-delay: 1s;
}

.robot-icon-4 {
  top: 40%;
  right: -2%;
  background: linear-gradient(135deg, #61dafb, #00d8ff);
  color: #282c34;
  animation-delay: 1.5s;
}

.robot-icon-5 {
  bottom: 8%;
  left: 5%;
  background: linear-gradient(135deg, #3776ab, #ffd43b);
  color: white;
  animation-delay: 2s;
}

.robot-icon-6 {
  bottom: 10%;
  right: 3%;
  background: linear-gradient(135deg, #68a063, #3c873a);
  color: white;
  animation-delay: 2.5s;
}

/* Partículas decorativas */
.robot-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.robot-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: particleFloatRobot 8s ease-in-out infinite;
}

.robot-particle:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.robot-particle:nth-child(2) { top: 65%; left: 15%; animation-delay: 1.5s; }
.robot-particle:nth-child(3) { top: 25%; right: 18%; animation-delay: 3s; }
.robot-particle:nth-child(4) { bottom: 25%; right: 20%; animation-delay: 4.5s; }
.robot-particle:nth-child(5) { top: 50%; left: 12%; animation-delay: 6s; }

@keyframes particleFloatRobot {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-50px);
    opacity: 0.8;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .robot-animation-container {
    min-height: 550px;
    padding: 50px 30px;
  }

  .robot-scene-container {
    max-width: 450px;
    height: 500px;
  }
}

@media (max-width: 768px) {
  .robot-animation-container {
    padding: 40px 20px;
    min-height: 500px;
  }

  .robot-scene-container {
    max-width: 400px;
    height: 450px;
  }

  .robot-head {
    width: 110px;
    height: 110px;
  }

  .head-top {
    width: 110px;
    height: 65px;
  }

  .robot-face {
    width: 110px;
    height: 75px;
  }

  .robot-eyes {
    gap: 28px;
  }

  .robot-eye {
    width: 26px;
    height: 26px;
  }

  .robot-body {
    width: 130px;
    height: 115px;
  }

  .body-panel {
    width: 80px;
    height: 65px;
  }

  .robot-arm {
    width: 38px;
    height: 100px;
  }

  .arm-upper {
    width: 38px;
    height: 55px;
  }

  .robot-legs {
    width: 150px;
    height: 120px;
  }

  .robot-icon-item {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .robot-animation-container {
    min-height: 450px;
    padding: 30px 15px;
  }

  .robot-scene-container {
    max-width: 320px;
    height: 400px;
  }

  .robot-icon-item {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}