/* 🌟 Intro Section */
.intro {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 43px;
  background: var(--bg-intro);
  color: #e6eef6;
  overflow: hidden;
  border-radius: 15px;
  margin: 1.2rem 1rem;
  transition: all 0.8s ease;
  position: relative;
  max-width: 100%;
}

/* 💙 Estado activo con transición elegante */
.intro.activo {
  background: var(--bg-intro);
  transform: translateX(32rem);
  height: 520px;
  width: 500px;
  box-shadow: 0 0 9px rgba(0, 212, 255, 0.25);
  transition: all 0.8s ease;
}

/* 🧡 Cuando se activa con Entrenador */
.active {
  background: transparent;
  transform: translateX(-137px);
  height: 535px;
  width: 745px;
  transition: all 0.8s ease;
  margin-bottom:10px;
}

.intro-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  gap: 40px;
  flex-wrap: wrap;
}

.intro-texts {
  flex: 1;
  min-width: 280px;
}

.intro-texts h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
  letter-spacing: 1px;
}

.highlight {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.intro-texts p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 25px;
}


.btn.ghost {
  border: 1px solid var(--bg);
  color: var(--btn-c);
}

.btn.ghost:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: scale(1.05);
}

/* Imagen con efecto */
.intro-image {
  overflow: visible;
  position: relative;
  flex: 1;
  min-width: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-img {
  width: 280px;
  height: 280px;
  border-radius: 20%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
  transform: scale(1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.avatar-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.9);
}

/* Efecto brillo animado */
.glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
  animation: pulse 3s infinite alternate;
  pointer-events: none;
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.4;
  }

  to {
    transform: scale(1.15);
    opacity: 0.7;
  }
}

.cv-btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--btn-bg);
  color: white;
  padding: 14px 32px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: var(--btn-shadow);
}

.cv-btn:hover {
  background: var(--btn-hover-bg);
  transform: translateY(-3px);
}

/* ✨ mediaquery*/
/* =============================== */
/* 📱 MEDIA RESPONSIVE INTRO MEJORADA */
/* =============================== */
@media (max-width: 768px) {
  .intro {
    display: block;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3.5rem 1.8rem;
    margin: 1.5rem;
    margin-top: 0;
    height: 100%;
    width: 120%;
    max-width: 160%;
    background: linear-gradient(180deg, var(--bg-card), var(--bg));
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    overflow: visible;
    transform: none !important;
    transition: all 0.6s ease;
    right: 56px;
  }

  /* 🔒 Desactiva movimientos de desktop */
  .activo,
  .active {
    transform: none !important;
    height: auto;
    max-width: 100%;
    background: linear-gradient(180deg, var(--bg-card), var(--bg));
  }

  /* Contenedor interno */
  .intro-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    text-align: center;
    width: 100%;
  }

  /* 🧠 Textos */
  .intro-texts {
    width: 100%;
    max-width: 95%;
    word-wrap: break-word;
  }

  .intro-texts h2 {
    font-size: 2.2rem;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: 1.2rem;
  }

  .intro-texts p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.8rem;
    padding: 0 0.5rem;
  }

  /* 👤 Imagen */
  .intro-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
  }

  .avatar-img {
    width: 260px;
    height: 260px;
    border-radius: 20%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.7);
  }

  .glow {
    width: 270px;
    height: 270px;
  }

  /* ✨ Botones */
  .btn {
    font-size: 1rem;
    padding: 12px 26px;
    border-radius: 14px;
  }

  /* Margen entre intro y las cards */
  .intro+.cards {
    margin-top: 2rem;
  }
}