/* ============================================
   MODERN ABOUT SECTION - PALETA AZUL
   ============================================ */

:root {
  --primary-blue: #4682B4;
  --secondary-blue: #3d729e;
  --light-blue: #5b9bd5;
  --sky-blue: #4a90c4;
  --dark-blue: #2d5a7a;
  --navy-blue: #1e3a52;
  --soft-blue: #a8cce5;
  --accent-cyan: #4a9cc4;
  --gradient-start: #3d729e;
  --gradient-end: #5b9bd5;
}

/* Contenedor principal de la sección */
.about.section {
  background: linear-gradient(135deg, #ffffff 0%, #3d729e 50%, #4682B4 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Efectos de fondo animados */
.about.section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(70, 130, 180, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: -250px;
  right: -250px;
  animation: float 20s ease-in-out infinite;
}

.about.section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 144, 196, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -200px;
  left: -200px;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(50px, 50px) rotate(90deg);
  }
  50% {
    transform: translate(0, 100px) rotate(180deg);
  }
  75% {
    transform: translate(-50px, 50px) rotate(270deg);
  }
}

/* Contenedor con efecto glassmorphism */
.about .container {
  position: relative;
  z-index: 1;
}

.about .row {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Columna de imagen */
.about .col-lg-6.position-relative {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about .img-fluid {
  border-radius: 24px !important;
  box-shadow: 0 25px 50px rgba(70, 130, 180, 0.4);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.about .img-fluid::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.about .img-fluid:hover::before {
  left: 100%;
}

.about .img-fluid:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 70px rgba(70, 130, 180, 0.6);
}

/* Overlay de la imagen */
.img-overlay-right {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 20px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(70, 130, 180, 0.5);
  margin-top: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.img-overlay-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.img-overlay-right h4 {
  color: #ffffff;
  font-weight: 700;
  margin: 0;
  font-size: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.img-overlay-right h4 span {
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Columna de contenido */
.about .col-lg-6.ps-lg-5 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about .content p {
  color: #e0e7ff;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Barras de progreso modernas */
.bar {
  margin: 20px 0;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  height: 50px;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bar::before {
  content: attr(data-skill);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 50px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  background-size: 40px 40px;
  animation: progressAnimation 2s linear infinite;
}

@keyframes progressAnimation {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* Estilos específicos por nivel */
.bar.learning::after {
  width: 40%;
  background: linear-gradient(135deg, #5b9bd5 25%, #78b0e0 25%, #78b0e0 50%, #5b9bd5 50%, #5b9bd5 75%, #78b0e0 75%, #78b0e0);
}

.bar.basic::after {
  width: 50%;
  background: linear-gradient(135deg, #4a90c4 25%, #5b9bd5 25%, #5b9bd5 50%, #4a90c4 50%, #4a90c4 75%, #5b9bd5 75%, #5b9bd5);
}

.bar.intermediate::after {
  width: 70%;
  background: linear-gradient(135deg, #4682B4 25%, #5b9bd5 25%, #5b9bd5 50%, #4682B4 50%, #4682B4 75%, #5b9bd5 75%, #5b9bd5);
}

.bar.advanced::after {
  width: 85%;
  background: linear-gradient(135deg, #3d729e 25%, #4a90c4 25%, #4a90c4 50%, #3d729e 50%, #3d729e 75%, #4a90c4 75%, #4a90c4);
}

.bar.expert::after {
  width: 95%;
  background: linear-gradient(135deg, #2d5a7a 25%, #3d729e 25%, #3d729e 50%, #2d5a7a 50%, #2d5a7a 75%, #3d729e 75%, #3d729e);
}

/* Efecto hover en las barras */
.bar:hover::after {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
  filter: brightness(1.2);
}

/* Indicador de porcentaje */
.bar:hover::before {
  animation: textGlow 1s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); }
  50% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 2px 5px rgba(0, 0, 0, 0.5); }
}

/* Badges de tecnología adicionales */
.tech-badge {
  display: inline-block;
  padding: 8px 20px;
  margin: 5px;
  background: linear-gradient(135deg, rgba(70, 130, 180, 0.3), rgba(74, 144, 196, 0.3));
  border: 1px solid rgba(91, 155, 213, 0.5);
  border-radius: 20px;
  color: #dbeafe;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.tech-badge:hover {
  background: linear-gradient(135deg, rgba(70, 130, 180, 0.5), rgba(74, 144, 196, 0.5));
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(70, 130, 180, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
  .about .row {
    padding: 30px 20px;
  }
  
  .about .col-lg-6.ps-lg-5 {
    margin-top: 40px;
  }
  
  .bar {
    height: 45px;
  }
  
  .bar::before {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .about.section {
    padding: 60px 0;
  }
  
  .about .row {
    padding: 20px 15px;
  }
  
  .img-overlay-right h4 {
    font-size: 1.2rem;
  }
  
  .about .content p {
    font-size: 1rem;
  }
  
  .bar {
    height: 40px;
  }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about [data-aos] {
  animation: fadeInUp 0.8s ease-out;
}