/* =====================================================
   Estilos para el Botón Flotante de Llamada a la Acción
   ===========================================/* ===== Floating CTA Button - Tech Plate Style ===== */

.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  text-decoration: none;
  color: #e0f7ff;
  background-color: rgba(255, 82, 82, 0.3); /* Relleno rojo semi-transparente */
  border: 2px solid rgba(255, 82, 82, 0.6);
  font-family: 'Orbitron', sans-serif; /* Keeping Orbitron for a unique touch */
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.floating-cta::before,
.floating-cta::after {
  content: '';
  position: absolute;
  width: 20px; /* Slightly smaller for the smaller button */
  height: 20px;
  border-color: #FF5252; /* Accent red color */
  border-style: solid;
  transition: all 0.4s ease-in-out;
}

.floating-cta::before {
  top: -2px;
  left: -2px;
  border-width: 2px 0 0 2px;
}

.floating-cta::after {
  bottom: -2px;
  right: -2px;
  border-width: 0 2px 2px 0;
}

.floating-cta:hover {
  background-color: rgba(255, 82, 82, 0.5); /* Relleno más opaco al pasar el mouse */
  border-color: rgba(255, 82, 82, 0.9);
  box-shadow: 0 0 25px rgba(255, 82, 82, 0.4);
}

.floating-cta:hover::before,
.floating-cta:hover::after {
  width: calc(100% + 2px);
  height: calc(100% + 2px);
}

.floating-cta-icon {
  margin-right: 10px;
  font-size: 1.2rem;
  animation: pulse-icon 3s infinite ease-in-out;
}

.floating-cta-text {
  white-space: nowrap;
}

/* Animación para el icono */
@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 7px rgba(255, 82, 82, 0.8);
  }
  50% {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 82, 82, 1);
  }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .floating-cta {
    padding: 10px;
    border-radius: 50%; /* Circle on mobile */
  }

  .floating-cta::before,
  .floating-cta::after {
    display: none; /* Hide corner borders on mobile */
  }

  .floating-cta-text {
    display: none;
  }

  .floating-cta-icon {
    margin-right: 0;
    font-size: 1.5rem;
  }
}
