/* ============================================
   BOTONES DE COMPARTIR - ESTILO CTA
   ============================================ */

.share-buttons-container {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto auto auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.share-section {
  background: transparent;
  border: none;
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: none;
  transition: all var(--transition-normal);
}

.share-header {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-header i {
  display: none;
}

.share-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
  letter-spacing: 0.01em;
}

.share-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Contenedor de botones horizontales */
.share-buttons {
  flex-shrink: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.8rem;
  align-items: center;
}

/* Botones individuales de redes sociales */
.share-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(35, 70, 107, 0.3);
}

.share-btn i {
  font-size: 1.15em;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(35, 70, 107, 0.5);
}

.share-btn:active {
  transform: translateY(-1px);
}

/* Efecto de onda al hacer clic */
.share-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.share-btn:active::before {
  width: 100%;
  height: 100%;
}

/* Ocultar texto en este diseño */
.share-btn-text {
  display: none;
}

/* Colores específicos para cada red social */
.share-twitter {
  background: #1e293b;
}

.share-twitter:hover {
  background: #2d3a52;
}

.share-facebook {
  background: #1e293b;
}

.share-facebook:hover {
  background: #2d3a52;
}

.share-linkedin {
  background: #1e293b;
}

.share-linkedin:hover {
  background: #2d3a52;
}

.share-whatsapp {
  background: #1e293b;
}

.share-whatsapp:hover {
  background: #2d3a52;
}

.share-copy {
  background: #1e293b;
}

.share-copy:hover {
  background: #2d3a52;
}

.share-copy.copied {
  background: var(--color-success);
  animation: copySuccess 0.6s ease;
}

.share-native {
  background: #1e293b;
}

.share-native:hover {
  background: #2d3a52;
}

@keyframes copySuccess {
  0%, 100% {
    transform: translateY(-3px) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.1);
  }
}

/* Animación de entrada */
@keyframes shareContainerFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.share-buttons-container {
  animation: shareContainerFadeIn 0.6s ease 0.3s backwards;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .share-section {
    padding: 1.5rem 1.5rem;
    gap: 1.5rem;
  }

  .share-title {
    font-size: 1.2rem;
  }

  .share-description {
    font-size: 0.95rem;
  }

  .share-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
  .share-section {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .share-header {
    text-align: center;
  }

  .share-title {
    font-size: 1.1rem;
  }

  .share-description {
    font-size: 0.9rem;
  }

  .share-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
  }

  .share-btn {
    width: 42px;
    height: 42px;
  }
}

/* Ocultar cuando el test está activo o se muestran resultados */
body:has(#test-container[style*="display: block"]) .share-buttons-container,
body:has(#test-container[style*="display:block"]) .share-buttons-container,
body:has(#result-container[style*="display: block"]) .share-buttons-container,
body:has(#result-container[style*="display:block"]) .share-buttons-container {
  display: none;
}
