/* ============================================================
   about.css — Sección "Sobre mí"
   ============================================================ */

.about {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

/* Línea divisora superior con gradiente */
.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
  opacity: 0.3;
}

/* Layout de dos columnas */
.about__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-16);
  align-items: center;
}

/* ── Avatar ── */
.about__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.about__avatar {
  position: relative;
  z-index: 1;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--magenta) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 40px rgba(77, 200, 232, 0.3), 0 0 80px rgba(232, 50, 110, 0.15);
  cursor: default;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.about__avatar:hover {
  transform: scale(1.04);
  box-shadow: 0 0 60px rgba(77, 200, 232, 0.45), 0 0 100px rgba(232, 50, 110, 0.25);
}

/* Anillo animado exterior */
.about__avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(77, 200, 232, 0.3);
  animation: ringRotate 12s linear infinite;
  pointer-events: none;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Logo corporativo ── */
.about__logo {
  max-width: 200px;
  width: 100%;
  display: block;
  margin: 0 auto;
  padding: 1rem;
  filter: drop-shadow(0 0 18px rgba(77, 200, 232, 0.55)) drop-shadow(0 0 40px rgba(77, 200, 232, 0.25));
  transition: filter var(--transition-smooth), transform var(--transition-smooth);
}

.about__logo:hover {
  filter: drop-shadow(0 0 28px rgba(77, 200, 232, 0.75)) drop-shadow(0 0 60px rgba(77, 200, 232, 0.35));
  transform: scale(1.04);
}

/* ── Contenido de texto ── */
.about__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about__bio {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── Stats ── */
.about__stats {
  display: flex;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.about__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

.about__stat > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.about__stat-number {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.about__stat span:last-of-type {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__stat p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Skills ── */
.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--space-10);
    text-align: center;
  }

  .about__content {
    align-items: center;
  }

  .about__stats {
    justify-content: center;
  }

  .about__stat {
    align-items: center;
  }

  .about__skills {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .about__avatar {
    width: 160px;
    height: 160px;
    font-size: 3rem;
  }

  .about__stats {
    gap: var(--space-6);
  }
}
